Skip to content

Commit

Permalink
add some more workspace dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Apr 12, 2024
1 parent a11358f commit c5bafb7
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 43 deletions.
6 changes: 0 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 8 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
11 changes: 4 additions & 7 deletions databases/mongo/cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
2 changes: 1 addition & 1 deletion databases/redispool/cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 5 additions & 9 deletions databases/sqlx/cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,15 @@ repository = "https://github.com/AscendingCreations/AxumSession"

[features]
default = ["postgres", "tls-rustls"]

sqlite = ["sqlx/sqlite"]
postgres = ["sqlx/postgres"]
mysql = ["sqlx/mysql"]
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",
Expand All @@ -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"
tokio.workspace = true
serde.workspace = true
serde_json.workspace = true
7 changes: 2 additions & 5 deletions databases/surreal/cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}

0 comments on commit c5bafb7

Please sign in to comment.