forked from casbin-rs/diesel-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
41 lines (34 loc) · 1.26 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
[package]
authors = ["Cheng JIANG <[email protected]>"]
description = "Diesel adapter for casbin-rs"
edition = "2018"
homepage = "https://github.com/casbin-rs/diesel-adapter"
license = "Apache-2.0"
name = "diesel-adapter"
readme = "README.md"
version = "0.9.0"
[dependencies]
async-std = { version = "1.9.0", default-features = false, optional = true }
async-trait = "0.1.42"
casbin = { version = "2.0.6", default-features = false }
diesel = { version = "2.0.3", default-features = false, features = ["r2d2"] }
futures = "0.3"
libsqlite3-sys = { version = "0.26.0", features = ["bundled"] }
tokio = { version = "1.1.1", default-features = false, optional = true }
once_cell = "1.5.2"
[features]
default = ["postgres", "runtime-tokio"]
mysql = ["diesel/mysql"]
postgres = ["diesel/postgres"]
sqlite = ["diesel/sqlite", "libsqlite3-sys/bundled"]
runtime-async-std = ["casbin/runtime-async-std", "async-std/unstable"]
runtime-tokio = ["casbin/runtime-tokio", "tokio/rt"]
[dev-dependencies]
async-std = { version = "1.9.0", features = ["attributes"] }
tokio = { version = "1.1.1", features = ["full"] }
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
[profile.dev]
split-debuginfo = "unpacked"