# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2018" name = "sqlx-adapter" version = "1.6.0" authors = [ "Eason Chai ", "Cheng JIANG ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Sqlx adapter for casbin-rs" homepage = "https://github.com/casbin-rs/sqlx-adapter" readme = "README.md" license = "Apache-2.0" [profile.dev] split-debuginfo = "packed" [profile.release] opt-level = 3 lto = true codegen-units = 1 [lib] name = "sqlx_adapter" path = "src/lib.rs" [dependencies.async-std] version = "1.9.0" optional = true default-features = false [dependencies.async-trait] version = "0.1.51" [dependencies.casbin] version = "2.1.0" default-features = false [dependencies.dotenvy] version = "0.15.0" default-features = false [dependencies.sqlx] version = "0.8" features = ["macros"] default-features = false [dependencies.tokio] version = "1.10.0" optional = true default-features = false [dev-dependencies.async-std] version = "1.9.0" features = ["attributes"] [dev-dependencies.tokio] version = "1.10.0" features = ["full"] [features] default = [ "postgres", "runtime-tokio-native-tls", ] mysql = ["sqlx/mysql"] postgres = ["sqlx/postgres"] 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", ] 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", ] sqlite = ["sqlx/sqlite"]