-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
37 lines (30 loc) · 1006 Bytes
/
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
[package]
name = "poem-casbin-auth"
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
description = "Casbin poem access control middleware"
homepage = "https://github.com/casbin-rs/poem-cabin"
readme = "README.md"
[lib]
name = "poem_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 }
poem = "1.3.31"
[features]
default = ["runtime-tokio"]
runtime-tokio = ["casbin/runtime-tokio", "tokio/sync"]
runtime-async-std = ["casbin/runtime-async-std", "async-std/std"]
[dev-dependencies]
poem = { version = "1.3.31", features = ["test"] }
tokio = { version = "1.17.0", features = ["full"] }
async-std = { version = "1.10.0", features = ["attributes"] }
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
[profile.dev]
split-debuginfo = "unpacked"