-
Notifications
You must be signed in to change notification settings - Fork 15
/
Cargo.toml
42 lines (35 loc) · 1.21 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
33
34
35
36
37
38
39
40
41
42
[package]
name = "actix-casbin-auth"
version = "1.1.0"
authors = ["Eason Chai <[email protected]>","Cheng JIANG <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
description = "Casbin actix-web access control middleware"
repository = "https://github.com/casbin-rs/actix-casbin-auth"
readme= "README.md"
[lib]
name = "actix_casbin_auth"
path = "src/lib.rs"
[dependencies]
casbin = { version = "2.0.9", default-features = false, features = ["incremental", "cached"] }
tokio = { version = "1.17.0", default-features = false, optional = true }
async-std = { version = "1.10.0", default-features = false, optional = true }
actix-web = { version = "4.0.1", default-features = false }
actix-service = "2.0.0"
futures = "0.3"
[features]
default = ["runtime-tokio"]
explain = ["casbin/explain"]
logging = ["casbin/logging"]
runtime-tokio = ["casbin/runtime-tokio", "tokio/sync"]
runtime-async-std = ["casbin/runtime-async-std", "async-std/std"]
[dev-dependencies]
tokio = { version = "1.17.0", features = [ "full" ] }
async-std = { version = "1.10.0", features = [ "attributes" ] }
actix-rt = "2.7.0"
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
[profile.dev]
split-debuginfo = "unpacked"