forked from casbin-rs/yaml-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
30 lines (25 loc) · 1.07 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 = "0.1.0"
authors = ["closetool <[email protected]>","Cheng JIANG <[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" }
tokio = { version = "0.3.1", 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 = "0.3.1", 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"]