[package] authors = ["lingdu "] categories = ["database"] description = "❤ casbin adapter for rust with sea_orm" documentation = "https://docs.rs/sea_orm_casbin_adapter" edition = "2021" homepage = "https://github.com/lingdu1234/sea_orm_casbin_adapter.git" keywords = ["casbin", "mysql", "postgres", "sqlite", "sea_orm"] license = "MIT" name = "sea_orm_casbin_adapter" readme = "README.md" repository = "https://github.com/lingdu1234/sea_orm_casbin_adapter.git" version = "0.3.8" [package.metadata.docs.rs] features = ["mysql", "runtime-tokio-rustls"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] async-trait = "0.1.53" casbin = {version = "2.0.9", default-features = false, features = ["logging"]} # option actix-rt = {version = "2.7.0", default-features = false, optional = true} async-std = {version = "1.11.0", optional = true} sqlx = {version = "^0.5", optional = true} tokio = {version = "1.18.2", optional = true, default-features = false} [dev-dependencies] tokio = {version = "1.18.2", features = ["full"]} [dependencies.sea-orm] default-features = false features = ["macros"] version = "0.8" [features] default = [] # default = ["mysql", "runtime-tokio-rustls"] # sea-orm mysql = ["sea-orm/sqlx-mysql"] postgres = ["sea-orm/sqlx-postgres"] sqlite = ["sea-orm/sqlx-sqlite"] # casbin # casbin_runtime = [] # runtime-async-std = ["async-std"] # runtime-tokio = ["tokio/fs", "tokio/io-util"] # async runtime # async-std async_runtime = [] 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-native-tls = ["casbin/runtime-tokio", "sqlx/runtime-tokio-native-tls"] runtime-tokio-rustls = ["casbin/runtime-tokio", "sqlx/runtime-tokio-rustls"] # actix (actually based on tokio) runtime-actix-native-tls = ["casbin/runtime-tokio", "sqlx/runtime-actix-native-tls"] runtime-actix-rustls = ["casbin/runtime-tokio", "sqlx/runtime-actix-rustls"] [profile.release] codegen-units = 1 debug = false lto = true opt-level = "z" # Optimize for size. panic = 'abort' # cargo build --features mysql,runtime-tokio-rustls # crm publish --features mysql,runtime-tokio-rustls