-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
32 lines (27 loc) · 1.08 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[package]
name = "actix-casbin"
version = "1.1.0"
authors = ["Eason Chai <[email protected]>","Cheng JIANG <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
description = "An Actix actor for casbin"
homepage="https://github.com/casbin-rs/actix-casbin"
readme="README.md"
[lib]
name = "actix_casbin"
path = "src/lib.rs"
[dependencies]
actix = "0.13.0"
casbin = { version = "2.0.9", default-features = false, features = [ "incremental", "cached"] }
actix-casbin-auth = { version = "1.0.0", default-features = false }
tokio = { version = "1.36.0", default-features = false, optional = true }
async-std = { version = "1.11.0", default-features = false, optional = true }
futures = "0.3.21"
[features]
default = ["runtime-async-std"]
runtime-tokio = ["casbin/runtime-tokio", "tokio/sync", "actix-casbin-auth/runtime-tokio"]
runtime-async-std = ["casbin/runtime-async-std", "async-std/std", "actix-casbin-auth/runtime-async-std"]
[dev-dependencies]
tokio = { version = "1.36.0", features = [ "full" ] }
async-std = { version = "1.11.0", features = [ "attributes" ] }
actix-rt = "2.7.0"