diff --git a/Cargo.lock b/Cargo.lock index 17b1169..5cf8bf1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -361,7 +361,6 @@ dependencies = [ "aes-gcm", "async-trait", "axum", - "axum_session_sqlx", "base64 0.21.7", "bytes", "chrono", @@ -373,17 +372,12 @@ dependencies = [ "hmac", "http 1.1.0", "http-body 1.0.0", - "http-body-util", - "hyper 1.2.0", - "log", "rand 0.8.5", "serde", "serde_json", "sha2", - "sqlx", "thiserror", "tokio", - "tower", "tower-layer", "tower-service", "tracing", diff --git a/Cargo.toml b/Cargo.toml index 3d753b1..c89da0b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,23 +64,16 @@ sha2 = "0.10.8" forwarded-header-value = "0.1.1" fastbloom-rs = { version = "0.5.9", optional = true } -[dev-dependencies] -axum = { version = "0.7.4", features = ["macros"] } -hyper = "1.2.0" -tower = "0.4.13" -log = { version = "0.4.20", default-features = false } -http-body-util = "0.1.0" -sqlx = { version = "0.7.3", default-features = false, features = [ - "runtime-tokio", - "chrono", - "uuid", - "postgres", - "tls-rustls" -]} -axum_session_sqlx = {version = "0.1.0", path = "databases/sqlx"} - [workspace.dependencies] axum_session = {version = "0.13.0", path = "./"} +chrono = { version = "0.4.31", default-features = false, features = [ + "clock", + "serde", +] } +async-trait = "0.1.74" +tokio = { version = "1.36.0", features = ["full", "tracing"] } +serde = { version = "1.0.192", features = ["derive"] } +serde_json = "1.0.108" [package.metadata.docs.rs] features = [ diff --git a/databases/mongo/cargo.toml b/databases/mongo/cargo.toml index 679762f..49942fb 100644 --- a/databases/mongo/cargo.toml +++ b/databases/mongo/cargo.toml @@ -12,11 +12,8 @@ repository = "https://github.com/AscendingCreations/AxumSession" [dependencies] axum_session.workspace = true -serde = { version = "1.0.192", features = ["derive"] } -serde_json = "1.0.108" -chrono = { version = "0.4.31", default-features = false, features = [ - "clock", - "serde", -] } -async-trait = "0.1.74" +serde.workspace = true +serde_json.workspace = true +chrono.workspace = true +async-trait.workspace = true mongodb = { version = "2.8.1"} diff --git a/databases/redispool/cargo.toml b/databases/redispool/cargo.toml index 7c3dc37..254f372 100644 --- a/databases/redispool/cargo.toml +++ b/databases/redispool/cargo.toml @@ -14,7 +14,7 @@ repository = "https://github.com/AscendingCreations/AxumSession" redis-clusterdb = ["redis_pool/cluster", "redis/cluster-async"] [dependencies] -async-trait = "0.1.74" +async-trait.workspace = true redis_pool = { version = "0.3.0" } redis = { version = "0.24.0", features = [ "aio", diff --git a/databases/sqlx/cargo.toml b/databases/sqlx/cargo.toml index 47e3b69..f51be53 100644 --- a/databases/sqlx/cargo.toml +++ b/databases/sqlx/cargo.toml @@ -12,7 +12,6 @@ repository = "https://github.com/AscendingCreations/AxumSession" [features] default = ["postgres", "tls-rustls"] - sqlite = ["sqlx/sqlite"] postgres = ["sqlx/postgres"] mysql = ["sqlx/mysql"] @@ -20,11 +19,8 @@ tls-rustls = ["sqlx/tls-rustls"] tls-native-tls = ["sqlx/tls-native-tls"] [dependencies] -chrono = { version = "0.4.31", default-features = false, features = [ - "clock", - "serde", -] } -async-trait = "0.1.74" +chrono.workspace = true +async-trait.workspace = true sqlx = { version = "0.7.3", default-features = false, features = [ "runtime-tokio", "chrono", @@ -45,6 +41,6 @@ sqlx = { version = "0.7.3", default-features = false, features = [ "postgres", "tls-rustls" ]} -tokio = { version = "1.36.0", features = ["full"] } -serde = { version = "1.0.192", features = ["derive"] } -serde_json = "1.0.108" \ No newline at end of file +tokio.workspace = true +serde.workspace = true +serde_json.workspace = true \ No newline at end of file diff --git a/databases/surreal/cargo.toml b/databases/surreal/cargo.toml index 43a931b..c2aef8b 100644 --- a/databases/surreal/cargo.toml +++ b/databases/surreal/cargo.toml @@ -12,9 +12,6 @@ repository = "https://github.com/AscendingCreations/AxumSession" [dependencies] axum_session.workspace = true -chrono = { version = "0.4.31", default-features = false, features = [ - "clock", - "serde", -] } -async-trait = "0.1.74" +chrono.workspace = true +async-trait.workspace = true surrealdb = { version = "1.2.2"}