forked from casbin/casbin-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
94 lines (78 loc) · 2.44 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
87
88
89
90
91
92
93
94
[package]
authors = ["Joey <[email protected]>", "Cheng JIANG <[email protected]>"]
description = "An authorization library that supports access control models like ACL, RBAC, ABAC."
edition = "2021"
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.5.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
async-std = { version = "1.10.0", optional = true }
async-trait = "0.1.52"
globset = { version = "0.4.8", optional = true }
hashlink = "0.9.0"
ip_network = { version = "0.4.1", optional = true }
once_cell = "1.9.0"
mini-moka = { version = "0.10", optional = true }
parking_lot = "0.12.0"
regex = "1.5.4"
petgraph = "0.6"
fixedbitset = "0.4"
rhai = { version = "1.5.0", features = [
"sync",
"only_i32",
"no_function",
"no_float",
"no_optimize",
"no_module",
"serde",
"unchecked",
] }
serde = "1.0.136"
slog = { version = "2.7.0", optional = true }
slog-async = { version = "2.7.0", optional = true }
slog-term = { version = "2.9.0", optional = true }
thiserror = "1.0.30"
tokio = { version = "1.17.0", optional = true, default-features = false }
tokio-stream = { version = "0.1.8", optional = true, default-features = false }
serde_json = "1.0.127"
[features]
default = ["runtime-tokio", "incremental"]
cached = ["mini-moka"]
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")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
async-std = { version = "1.9.0", features = ["attributes"] }
serde = { version = "1.0.136", features = ["derive"] }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
async-std = { version = "1.10.0", features = ["attributes"] }
serde = { version = "1.0.136", features = ["derive"] }
tokio = { version = "1.17.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.5", features = ["html_reports"] }
[lib]
bench = false