forked from casbin/casbin-rs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
86 lines (74 loc) · 2.63 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[package]
authors = ["Joey <[email protected]>", "Cheng JIANG <[email protected]>"]
description = "An authorization library that supports access control models like ACL, RBAC, ABAC."
edition = "2018"
homepage = "https://casbin.org/"
keywords = ["auth", "authorization", "rbac", "acl", "abac"]
license = "Apache-2.0"
name = "casbin"
readme = "README.md"
repository = "https://github.com/casbin/casbin-rs"
version = "2.0.7"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
async-std = { version = "1.9.0", optional = true }
async-trait = "0.1.48"
globset = { version = "0.4.6", optional = true }
ritelinked = { version = "0.3.0", default-features = false, features = ["ahash", "inline-more"] }
ip_network = { version = "0.3.4", optional = true }
lazy_static = "1.4.0"
lru = { version = "0.6.5", optional = true }
parking_lot = "0.11"
regex = "1.4.5"
rhai = { version = "0.20.0", features = [
"sync",
"only_i32",
"no_function",
"no_float",
"no_optimize",
"no_module",
"serde",
"unchecked",
] }
serde = "1.0.125"
slog = { version = "2.7.0", optional = true }
slog-async = { version = "2.6.0", optional = true }
slog-term = { version = "2.8.0", optional = true }
thiserror = "1.0.24"
tokio = { version = "1.5.0", optional = true, default-features = false }
tokio-stream = { version = "0.1", optional = true, default-features = false }
[features]
default = ["runtime-tokio", "incremental"]
amortized = ["ritelinked/ahash-amortized", "ritelinked/inline-more-amortized"]
cached = ["lru"]
explain = []
glob = ["globset"]
incremental = []
ip = ["ip_network"]
logging = ["slog", "slog-term", "slog-async"]
runtime-async-std = ["async-std"]
runtime-tokio = ["tokio/fs", "tokio/io-util"]
watcher = []
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
async-std = { version = "1.9.0", features = ["attributes"] }
serde = { version = "1.0.125", features = ["derive"] }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
async-std = { version = "1.9.0", features = ["attributes"] }
serde = { version = "1.0.125", features = ["derive"] }
tokio = { version = "1.5.0", features = ["full"] }
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
[profile.dev]
split-debuginfo = "unpacked"
[profile.bench]
lto = true
opt-level = 3
[[bench]]
name = "benchmark"
harness = false
[dev-dependencies]
criterion = { version = "0.3", features = ["html_reports"] }
[lib]
bench = false