-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCargo.toml
52 lines (46 loc) · 1.56 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
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "sea-orm-adapter"
version = "0.4.0"
edition = "2021"
authors = ["zihan <[email protected]>"]
license = "MIT/Apache-2.0"
homepage = "https://github.com/ZihanType/sea-orm-adapter"
repository = "https://github.com/ZihanType/sea-orm-adapter"
description = "Sea ORM adapter for casbin-rs"
keywords = ["casbin", "adapter", "sea-orm"]
include = ["src/**/*", "Cargo.toml"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
async-trait = { version = "0.1", default-features = false }
casbin = { version = "2", default-features = false }
sea-orm = { version = "1", default-features = false, features = ["macros"] }
[dev-dependencies]
tokio = { version = "1", default-features = false, features = ["full"] }
[features]
default = ["mysql", "runtime-tokio-rustls"]
#databases
mysql = ["sea-orm/sqlx-mysql"]
postgres = ["sea-orm/sqlx-postgres"]
sqlite = ["sea-orm/sqlx-sqlite"]
# async runtime
# async-std
runtime-async-std-native-tls = [
"casbin/runtime-async-std",
"sea-orm/runtime-async-std-native-tls",
]
runtime-async-std-rustls = [
"casbin/runtime-async-std",
"sea-orm/runtime-async-std-rustls",
]
# tokio
runtime-tokio-native-tls = [
"casbin/runtime-tokio",
"sea-orm/runtime-tokio-native-tls",
]
runtime-tokio-rustls = ["casbin/runtime-tokio", "sea-orm/runtime-tokio-rustls"]
# actix (actually based on tokio)
runtime-actix-native-tls = [
"casbin/runtime-tokio",
"sea-orm/runtime-actix-native-tls",
]
runtime-actix-rustls = ["casbin/runtime-tokio", "sea-orm/runtime-actix-rustls"]