[package] name = "sqlx-adapter" version = "1.6.0" authors = ["Eason Chai ","Cheng JIANG "] edition = "2018" license = "Apache-2.0" description = "Sqlx adapter for casbin-rs" homepage= "https://github.com/casbin-rs/sqlx-adapter" readme= "README.md" [dependencies] casbin = { version = "2.1.0", default-features = false } sqlx = { version = "0.8", default-features = false, features = [ "macros" ] } async-trait = "0.1.51" dotenvy = { version = "0.15.0", default-features = false } tokio = { version = "1.10.0", default-features = false, optional = true } async-std = { version = "1.9.0", default-features = false, optional = true } [features] default = ["postgres", "runtime-tokio-native-tls"] #databases postgres = ["sqlx/postgres"] mysql = ["sqlx/mysql"] sqlite = ["sqlx/sqlite"] # async runtime # async-std runtime-async-std-native-tls = ["casbin/runtime-async-std", "sqlx/runtime-async-std-native-tls"] runtime-async-std-rustls = ["casbin/runtime-async-std", "sqlx/runtime-async-std-rustls"] # tokio runtime-tokio = ["casbin/runtime-tokio", "sqlx/runtime-tokio"] runtime-tokio-native-tls = ["casbin/runtime-tokio", "sqlx/runtime-tokio-native-tls"] runtime-tokio-rustls = ["casbin/runtime-tokio", "sqlx/runtime-tokio-rustls"] [dev-dependencies] async-std = { version = "1.9.0", features = [ "attributes" ] } tokio = { version = "1.10.0", features = [ "full" ] } [profile.release] codegen-units = 1 lto = true opt-level = 3 [profile.dev] split-debuginfo = "packed"