-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
30 lines (25 loc) · 1.05 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
[package]
name = "yaml-adapter"
version = "1.0.0"
authors = ["closetool <[email protected]>"]
edition = "2018"
description = "a adapter which reads yaml format policy file for casbin repo"
repository = "https://github.com/casbin-rs/yaml-adapter"
homepage = "https://github.com/casbin-rs/yaml-adapter"
license-file = "LICENSE"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.8"
async-trait = "0.1.40"
casbin = { version = "2.0", default-features = false }
tokio = { version = "1.36.0", default-features = false, optional = true }
async-std = { version = "1.6.4", default-features = false, optional = true }
[dev-dependencies]
async-std = { version = "1.6.4", features = [ "attributes" ] }
tokio = { version = "1.36.0", features = [ "full" ] }
[features]
default = ["runtime-async-std"]
runtime-async-std = ["casbin/runtime-async-std","async-std"]
runtime-tokio = ["casbin/runtime-tokio", "tokio/fs", "tokio/io-util"]