[package]
edition = "2018"
rust-version = "1.94"
name = "casbin-sqlx-adapter"
version = "1.9.0"
authors = [
"Eason Chai <hackerchai.com@gmail.com>",
"Cheng JIANG <jiang.cheng@vip.163.com>",
]
build = false
exclude = [
"*.db",
"*.db-wal",
"*.db-shm",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQLx adapter for Apache Casbin (Incubating)"
homepage = "https://casbin.apache.org"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/apache/casbin-sqlx-adapter"
[features]
default = [
"postgres",
"runtime-tokio-native-tls",
]
mysql = ["sqlx/mysql"]
postgres = ["sqlx/postgres"]
runtime-async-std = [
"casbin/runtime-async-std",
"sqlx/runtime-async-std",
]
runtime-async-std-native-tls = [
"runtime-async-std",
"tls-native-tls",
]
runtime-async-std-rustls = [
"runtime-async-std",
"tls-rustls",
]
runtime-tokio = [
"casbin/runtime-tokio",
"sqlx/runtime-tokio",
]
runtime-tokio-native-tls = [
"runtime-tokio",
"tls-native-tls",
]
runtime-tokio-rustls = [
"runtime-tokio",
"tls-rustls",
]
sqlite = ["sqlx/sqlite"]
tls-native-tls = ["sqlx/tls-native-tls"]
tls-rustls = ["sqlx/tls-rustls"]
[lib]
name = "sqlx_adapter"
path = "src/lib.rs"
[dependencies.async-trait]
version = "0.1.51"
[dependencies.casbin]
version = "2.1.0"
default-features = false
[dependencies.sqlx]
version = "0.9"
features = ["macros"]
default-features = false
[dev-dependencies.async-std]
version = "1.9.0"
features = ["attributes"]
[dev-dependencies.tokio]
version = "1.10.0"
features = ["full"]
[profile.dev]
split-debuginfo = "packed"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1