-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
34 lines (29 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
31
32
33
34
[package]
name = "tokio-postgres-adapter"
version = "0.1.0"
authors = ["Eason Chai <[email protected]>", "Cheng JIANG <[email protected]>", "David Miguel <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
description = "tokio-postgres adapter for casbin-rs"
homepage= "https://github.com/casbin-rs/postgres-adapter"
readme= "README.md"
[dependencies]
casbin = { version = "2.0.9", default-features = false }
async-trait = "0.1.56"
dotenv = { version = "0.15.0", default-features = false }
tokio = { version = "1.19.2", default-features = false, optional = true }
tokio-postgres = { version = "0.7.6", default-features = false }
deadpool-postgres = { version = "0.10.2", default-features = false }
deadpool = { version = "0.9.5", default-features = false }
futures = "0.3"
[features]
default = ["runtime-tokio"]
runtime-tokio = ["casbin/runtime-tokio", "deadpool/rt_tokio_1"]
[dev-dependencies]
tokio = { version = "1.19.2", features = [ "full" ] }
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
[profile.dev]
split-debuginfo = "unpacked"