[workspace] members = [ ".", "example", ] [package] name = "axum_database_sessions" version = "7.0.2" authors = ["Andrew Wheeler "] description = "Memory and/or Database Session management layer for axum." edition = "2021" license = "MIT OR Apache-2.0" readme = "README.md" documentation = "https://docs.rs/axum_session" keywords = ["Axum", "Tower", "SQLx", "Session", "surrealdb"] repository = "https://github.com/AscendingCreations/AxumSessions" [features] default = ["postgres-rustls"] sqlite-rustls = ["sqlx/sqlite", "sqlx/runtime-tokio-rustls"] sqlite-native = ["sqlx/sqlite", "sqlx/runtime-tokio-native-tls"] postgres-rustls = ["sqlx/postgres", "sqlx/runtime-tokio-rustls"] postgres-native = ["sqlx/postgres", "sqlx/runtime-tokio-native-tls"] mysql-rustls = ["sqlx/mysql", "sqlx/runtime-tokio-rustls"] mysql-native = ["sqlx/mysql", "sqlx/runtime-tokio-native-tls"] redis-db = ["redis"] surrealdb-rocksdb = ["surrealdb/kv-rocksdb", "surrealdb_tag"] surrealdb-tikv = ["surrealdb/kv-tikv", "surrealdb_tag"] surrealdb-indxdb = ["surrealdb/kv-indxdb", "surrealdb_tag"] surrealdb-fdb-5_1 = ["surrealdb/kv-fdb-5_1", "surrealdb_tag", "fdb_tag"] surrealdb-fdb-5_2 = ["surrealdb/kv-fdb-5_2", "surrealdb_tag", "fdb_tag"] surrealdb-fdb-6_0 = ["surrealdb/kv-fdb-6_0", "surrealdb_tag", "fdb_tag"] surrealdb-fdb-6_1 = ["surrealdb/kv-fdb-6_1", "surrealdb_tag", "fdb_tag"] surrealdb-fdb-6_2 = ["surrealdb/kv-fdb-6_2", "surrealdb_tag", "fdb_tag"] surrealdb-fdb-6_3 = ["surrealdb/kv-fdb-6_3", "surrealdb_tag", "fdb_tag"] surrealdb-fdb-7_0 = ["surrealdb/kv-fdb-7_0", "surrealdb_tag", "fdb_tag"] surrealdb-fdb-7_1 = ["surrealdb/kv-fdb-7_1", "surrealdb_tag", "fdb_tag"] surrealdb-mem = ["surrealdb/kv-mem", "surrealdb_tag"] #private features. surrealdb_tag = [] fdb_tag = [] [dependencies] axum-core = {version = "0.3.3"} serde = { version = "1.0.155", features = ["derive"] } serde_json = "1.0.94" chrono = { version = "0.4.24", features = ["clock", "serde", "std"] } tokio = { version = "1.26.0", features = ["full"] } async-trait = "0.1.66" tracing = "0.1.37" thiserror = "1.0.39" http-body = "0.4.5" uuid = { version = "1.3.0", features = ["v4", "serde"] } http = "0.2.9" tower-layer = "0.3.2" tower-service = "0.3.2" sqlx = { version = "0.6.3", default-features = false, features = [ "chrono", "uuid", ], optional = true } cookie = { version = "0.17.0", features = ["percent-encode", "private"] } futures = "0.3.27" bytes = "1.4.0" dashmap = "5.4.0" redis = { version = "0.22.3", features = ["tokio-comp"], optional = true } surrealdb = { version = "1.0.0-beta.8", optional = true } [dev-dependencies] axum = { version = "0.6.12", features = ["macros"]} hyper = "0.14.25" tower = "0.4.13" log = { version = "0.4.17", default-features = false }