Skip to content

Commit

Permalink
migrate some more depedencies as workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Apr 12, 2024
1 parent c5bafb7 commit fa466e5
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 40 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ 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"
axum = { version = "0.7.4" }

[package.metadata.docs.rs]
features = [
Expand Down
8 changes: 4 additions & 4 deletions examples/any/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ authors = ["Andrew Wheeler <[email protected]>"]
edition = "2021"

[dependencies]
axum = {version = "0.7.1"}
tokio = { version = "1.29.1", features = ["full", "tracing"] }
async-trait = "0.1.71"
axum.workspace = true
tokio.workspace = true
async-trait.workspace = true
sqlx = { version = "0.7.2", features = [
"macros",
"sqlite",
Expand All @@ -16,5 +16,5 @@ sqlx = { version = "0.7.2", features = [
"tls-rustls",
"runtime-tokio",
] }
axum_session = { path = "../../" }
axum_session.workspace = true
axum_session_sqlx = { path = "../../databases/sqlx" }
8 changes: 4 additions & 4 deletions examples/enable_signed_cookies_headers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ authors = ["Andrew Wheeler <[email protected]>"]
edition = "2021"

[dependencies]
axum = {version = "0.7.1"}
tokio = { version = "1.29.1", features = ["full", "tracing"] }
async-trait = "0.1.71"
axum.workspace = true
tokio.workspace = true
async-trait.workspace = true
sqlx = { version = "0.7.2", features = [
"macros",
"postgres",
"_unstable-all-types",
"tls-rustls",
"runtime-tokio",
] }
axum_session = { path = "../../" }
axum_session.workspace = true
axum_session_sqlx = { path = "../../databases/sqlx" }
8 changes: 4 additions & 4 deletions examples/middleware_layer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ authors = ["Andrew Wheeler <[email protected]>"]
edition = "2021"

[dependencies]
axum = { version = "0.7.1" }
tokio = { version = "1.29.1", features = ["full", "tracing"] }
async-trait = "0.1.71"
axum.workspace = true
tokio.workspace = true
async-trait.workspace = true
surrealdb = { version = "1.0.0", features = ["kv-mem"] }
hyper = "1.0.1"
axum_session = { path = "../../" }
axum_session.workspace = true
axum_session_surreal = { path = "../../databases/surreal" }
8 changes: 4 additions & 4 deletions examples/postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ authors = ["Andrew Wheeler <[email protected]>"]
edition = "2021"

[dependencies]
axum = {version = "0.7.1"}
tokio = { version = "1.29.1", features = ["full", "tracing"] }
async-trait = "0.1.71"
axum.workspace = true
tokio.workspace = true
async-trait.workspace = true
sqlx = { version = "0.7.2", features = [
"macros",
"postgres",
"_unstable-all-types",
"tls-rustls",
"runtime-tokio",
] }
axum_session = { path = "../../" }
axum_session.workspace = true
axum_session_sqlx = { path = "../../databases/sqlx" }
8 changes: 4 additions & 4 deletions examples/redis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ authors = ["Hossam Maher<[email protected]>"]
edition = "2021"

[dependencies]
axum = {version = "0.7.1"}
tokio = { version = "1.29.1", features = ["full", "tracing"] }
async-trait = "0.1.71"
axum.workspace = true
tokio.workspace = true
async-trait.workspace = true
redis_pool = "0.3.0"
redis = { version = "0.24.0" }
axum_session = { path = "../../" }
axum_session.workspace = true
axum_session_redispool = { path = "../../databases/redispool" }
8 changes: 4 additions & 4 deletions examples/rest_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ authors = ["Andrew Wheeler <[email protected]>"]
edition = "2021"

[dependencies]
axum = { version = "0.7.1" }
tokio = { version = "1.29.1", features = ["full", "tracing"] }
async-trait = "0.1.71"
axum.workspace = true
tokio.workspace = true
async-trait.workspace = true
surrealdb = { version = "1.0.0", features = ["kv-mem"] }
tower = "0.4.13"
hyper = "1.0.1"
http-body-util = "0.1.0"
axum_session = { path = "../../", features = ["rest_mode"] }
axum_session = { workspace = true, features = ["rest_mode"] }
axum_session_surreal = { path = "../../databases/surreal" }
8 changes: 4 additions & 4 deletions examples/session_mode/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ authors = ["Andrew Wheeler <[email protected]>"]
edition = "2021"

[dependencies]
axum = {version = "0.7.1"}
tokio = { version = "1.29.1", features = ["full", "tracing"] }
async-trait = "0.1.71"
axum.workspace = true
tokio.workspace = true
async-trait.workspace = true
sqlx = { version = "0.7.2", features = [
"macros",
"postgres",
"_unstable-all-types",
"tls-rustls",
"runtime-tokio",
] }
axum_session = { path = "../../" }
axum_session.workspace = true
axum_session_sqlx = { path = "../../databases/sqlx" }
8 changes: 4 additions & 4 deletions examples/session_null_pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Andrew Wheeler <[email protected]>"]
edition = "2021"

[dependencies]
axum = {version = "0.7.1"}
tokio = { version = "1.29.1", features = ["full", "tracing"] }
async-trait = "0.1.71"
axum_session = { path = "../../" }
axum.workspace = true
tokio.workspace = true
async-trait.workspace = true
axum_session.workspace = true
8 changes: 4 additions & 4 deletions examples/sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ authors = ["Andrew Wheeler <[email protected]>"]
edition = "2021"

[dependencies]
axum = {version = "0.7.1"}
tokio = { version = "1.29.1", features = ["full", "tracing"] }
async-trait = "0.1.71"
axum.workspace = true
tokio.workspace = true
async-trait.workspace = true
sqlx = { version = "0.7.2", features = [
"macros",
"sqlite",
"_unstable-all-types",
"tls-rustls",
"runtime-tokio",
] }
axum_session = { path = "../../" }
axum_session.workspace = true
axum_session_sqlx = { path = "../../databases/sqlx", features = ["sqlite"] }
8 changes: 4 additions & 4 deletions examples/surrealdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ authors = ["Andrew Wheeler <[email protected]>"]
edition = "2021"

[dependencies]
axum = { version = "0.7.1" }
tokio = { version = "1.29.1", features = ["full", "tracing"] }
async-trait = "0.1.71"
axum_session = { path = "../../"}
axum.workspace = true
tokio.workspace = true
async-trait.workspace = true
axum_session.workspace = true
surrealdb = { version = "1.0.0", features = ["kv-mem"] }
axum_session_surreal = { path = "../../databases/surreal" }

0 comments on commit fa466e5

Please sign in to comment.