mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 14:46:32 +01:00
Upgrade most example dependencies (#2936)
This commit is contained in:
parent
2fb6cea732
commit
85b6fd49c7
34 changed files with 47 additions and 47 deletions
|
@ -8,14 +8,14 @@ publish = false
|
|||
axum = { path = "../../axum" }
|
||||
serde_json = "1"
|
||||
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
|
||||
tower = "0.4"
|
||||
tower-http = { version = "0.5", features = ["compression-full", "decompression-full"] }
|
||||
tower = "0.5.1"
|
||||
tower-http = { version = "0.6.1", features = ["compression-full", "decompression-full"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
[dev-dependencies]
|
||||
assert-json-diff = "2.0"
|
||||
brotli = "3.4"
|
||||
brotli = "6.0"
|
||||
flate2 = "1"
|
||||
http = "1"
|
||||
zstd = "0.13"
|
||||
|
|
|
@ -7,4 +7,4 @@ publish = false
|
|||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower-http = { version = "0.5.0", features = ["cors"] }
|
||||
tower-http = { version = "0.6.1", features = ["cors"] }
|
||||
|
|
|
@ -8,7 +8,7 @@ publish = false
|
|||
axum = { path = "../../axum", features = ["macros"] }
|
||||
bb8 = "0.8"
|
||||
diesel = "2"
|
||||
diesel-async = { version = "0.3", features = ["postgres", "bb8"] }
|
||||
diesel-async = { version = "0.5", features = ["postgres", "bb8"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
|
|
|
@ -6,7 +6,7 @@ publish = false
|
|||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum", features = ["macros"] }
|
||||
deadpool-diesel = { version = "0.4.1", features = ["postgres"] }
|
||||
deadpool-diesel = { version = "0.6.1", features = ["postgres"] }
|
||||
diesel = { version = "2", features = ["postgres"] }
|
||||
diesel_migrations = "2"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
|
|
@ -8,6 +8,6 @@ publish = false
|
|||
axum = { path = "../../axum", features = ["macros"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower-http = { version = "0.5", features = ["trace"] }
|
||||
tower-http = { version = "0.6.1", features = ["trace"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -7,5 +7,5 @@ publish = false
|
|||
[dependencies]
|
||||
axum = { path = "../../axum", features = ["tracing"] }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower-http = { version = "0.5", features = ["timeout", "trace"] }
|
||||
tower-http = { version = "0.6.1", features = ["timeout", "trace"] }
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -11,4 +11,4 @@ tokio = { version = "1.0", features = ["full"] }
|
|||
[dev-dependencies]
|
||||
http-body-util = "0.1.0"
|
||||
hyper = { version = "1.0.0", features = ["full"] }
|
||||
tower = { version = "0.4", features = ["util"] }
|
||||
tower = { version = "0.5.1", features = ["util"] }
|
||||
|
|
|
@ -9,6 +9,6 @@ axum = { path = "../../axum" }
|
|||
hyper = { version = "1", features = ["full"] }
|
||||
hyper-util = "0.1.1"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower = { version = "0.4", features = ["make", "util"] }
|
||||
tower = { version = "0.5.1", features = ["make", "util"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -7,7 +7,7 @@ publish = false
|
|||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
axum-extra = { path = "../../axum-extra", features = ["typed-header"] }
|
||||
jsonwebtoken = "8.0"
|
||||
jsonwebtoken = "9.3"
|
||||
once_cell = "1.8"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
|
|
|
@ -7,8 +7,8 @@ publish = false
|
|||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower = { version = "0.4", features = ["util", "timeout", "load-shed", "limit"] }
|
||||
tower-http = { version = "0.5.0", features = [
|
||||
tower = { version = "0.5.1", features = ["util", "timeout", "load-shed", "limit"] }
|
||||
tower-http = { version = "0.6.1", features = [
|
||||
"add-extension",
|
||||
"auth",
|
||||
"compression-full",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "listen-multiple-addrs"
|
||||
name = "example-listen-multiple-addrs"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
|
@ -9,4 +9,4 @@ axum = { path = "../../axum" }
|
|||
hyper = { version = "1.0.0", features = ["full"] }
|
||||
hyper-util = { version = "0.1", features = ["tokio", "server-auto", "http1"] }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tower = { version = "0.4", features = ["util"] }
|
||||
tower = { version = "0.5.1", features = ["util"] }
|
||||
|
|
|
@ -12,6 +12,6 @@ hyper-util = { version = "0.1" }
|
|||
openssl = "0.10"
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tokio-openssl = "0.6"
|
||||
tower = { version = "0.4", features = ["make"] }
|
||||
tower = { version = "0.5.1", features = ["make"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -7,6 +7,6 @@ publish = false
|
|||
[dependencies]
|
||||
axum = { path = "../../axum", features = ["multipart"] }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower-http = { version = "0.5.0", features = ["limit", "trace"] }
|
||||
tower-http = { version = "0.6.1", features = ["limit", "trace"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -6,8 +6,8 @@ publish = false
|
|||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
metrics = { version = "0.22", default-features = false }
|
||||
metrics-exporter-prometheus = { version = "0.13", default-features = false }
|
||||
metrics = { version = "0.23", default-features = false }
|
||||
metrics-exporter-prometheus = { version = "0.15", default-features = false }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -9,4 +9,4 @@ axum = { path = "../../axum" }
|
|||
http-body-util = "0.1.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower = { version = "0.4", features = ["util"] }
|
||||
tower = { version = "0.5.1", features = ["util"] }
|
||||
|
|
|
@ -9,6 +9,6 @@ axum = { path = "../../axum" }
|
|||
reqwest = { version = "0.12", features = ["stream"] }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tokio-stream = "0.1"
|
||||
tower-http = { version = "0.5.0", features = ["trace"] }
|
||||
tower-http = { version = "0.6.1", features = ["trace"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -12,7 +12,7 @@ hyper = { version = "1.0.0", features = ["full"] }
|
|||
#tokio = { version = "1", features = ["full"] }
|
||||
#tonic = { version = "0.9" }
|
||||
#tonic-reflection = "0.9"
|
||||
tower = { version = "0.4", features = ["full"] }
|
||||
tower = { version = "0.5.1", features = ["full"] }
|
||||
#tracing = "0.1"
|
||||
#tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
|
|
|
@ -9,4 +9,4 @@ axum = { path = "../../axum" }
|
|||
hyper = { version = "1.0", features = [] }
|
||||
hyper-util = { version = "0.1", features = ["tokio", "server-auto", "http1"] }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower = { version = "0.4", features = ["util"] }
|
||||
tower = { version = "0.5.1", features = ["util"] }
|
||||
|
|
|
@ -10,4 +10,4 @@ tokio = { version = "1.0", features = ["full"] }
|
|||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "any", "postgres"] }
|
||||
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "any", "postgres"] }
|
||||
|
|
|
@ -11,11 +11,11 @@ futures = "0.3"
|
|||
headers = "0.4"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tokio-stream = "0.1"
|
||||
tower-http = { version = "0.5.0", features = ["fs", "trace"] }
|
||||
tower-http = { version = "0.6.1", features = ["fs", "trace"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
[dev-dependencies]
|
||||
eventsource-stream = "0.2"
|
||||
reqwest = { version = "0.12", features = ["stream"] }
|
||||
reqwest-eventsource = "0.5"
|
||||
reqwest-eventsource = "0.6"
|
||||
|
|
|
@ -7,7 +7,7 @@ publish = false
|
|||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower = { version = "0.4", features = ["util"] }
|
||||
tower-http = { version = "0.5.0", features = ["fs", "trace"] }
|
||||
tower = { version = "0.5.1", features = ["util"] }
|
||||
tower-http = { version = "0.6.1", features = ["fs", "trace"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -6,5 +6,5 @@ publish = false
|
|||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
minijinja = "1.0.11"
|
||||
minijinja = "2.3.1"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
|
|
|
@ -5,7 +5,7 @@ edition = "2021"
|
|||
publish = false
|
||||
|
||||
[dependencies]
|
||||
askama = "0.11"
|
||||
askama = "0.12"
|
||||
axum = { path = "../../axum" }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
|
|
|
@ -8,4 +8,4 @@ publish = false
|
|||
axum = { path = "../../axum", features = ["ws"] }
|
||||
futures = "0.3"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tokio-tungstenite = "0.23"
|
||||
tokio-tungstenite = "0.24"
|
||||
|
|
|
@ -11,9 +11,9 @@ hyper-util = { version = "0.1", features = ["client", "http1", "client-legacy"]
|
|||
mime = "0.3"
|
||||
serde_json = "1.0"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower-http = { version = "0.5.0", features = ["trace"] }
|
||||
tower-http = { version = "0.6.1", features = ["trace"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
[dev-dependencies]
|
||||
tower = { version = "0.4", features = ["util"] }
|
||||
tower = { version = "0.5.1", features = ["util"] }
|
||||
|
|
|
@ -6,7 +6,7 @@ publish = false
|
|||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
axum-server = { version = "0.6", features = ["tls-rustls"] }
|
||||
axum-server = { version = "0.7", features = ["tls-rustls"] }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -6,7 +6,7 @@ publish = false
|
|||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
axum-server = { version = "0.6", features = ["tls-rustls"] }
|
||||
axum-server = { version = "0.7", features = ["tls-rustls"] }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -8,8 +8,8 @@ publish = false
|
|||
axum = { path = "../../axum" }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower = { version = "0.4", features = ["util", "timeout"] }
|
||||
tower-http = { version = "0.5.0", features = ["add-extension", "trace"] }
|
||||
tower = { version = "0.5.1", features = ["util", "timeout"] }
|
||||
tower-http = { version = "0.6.1", features = ["add-extension", "trace"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
uuid = { version = "1.0", features = ["serde", "v4"] }
|
||||
|
|
|
@ -6,8 +6,8 @@ publish = false
|
|||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
bb8 = "0.7.1"
|
||||
bb8-postgres = "0.7.0"
|
||||
bb8 = "0.8.5"
|
||||
bb8-postgres = "0.8.1"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tokio-postgres = "0.7.2"
|
||||
tracing = "0.1"
|
||||
|
|
|
@ -6,9 +6,9 @@ publish = false
|
|||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
bb8 = "0.7.1"
|
||||
bb8-redis = "0.14.0"
|
||||
redis = "0.24.0"
|
||||
bb8 = "0.8.5"
|
||||
bb8-redis = "0.17.0"
|
||||
redis = "0.27.2"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -7,6 +7,6 @@ publish = false
|
|||
[dependencies]
|
||||
axum = { path = "../../axum", features = ["tracing"] }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower-http = { version = "0.5.0", features = ["trace"] }
|
||||
tower-http = { version = "0.6.1", features = ["trace"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -10,5 +10,5 @@ http-body-util = "0.1"
|
|||
hyper = { version = "1.0.0", features = ["full"] }
|
||||
hyper-util = { version = "0.1", features = ["tokio", "server-auto", "http1"] }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower = { version = "0.4", features = ["util"] }
|
||||
tower = { version = "0.5.1", features = ["util"] }
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
|
|
@ -12,4 +12,4 @@ thiserror = "1.0.29"
|
|||
tokio = { version = "1.0", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
validator = { version = "0.14.0", features = ["derive"] }
|
||||
validator = { version = "0.18.1", features = ["derive"] }
|
||||
|
|
|
@ -11,8 +11,8 @@ futures = "0.3"
|
|||
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
|
||||
headers = "0.4"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tokio-tungstenite = "0.23"
|
||||
tower-http = { version = "0.5.0", features = ["fs", "trace"] }
|
||||
tokio-tungstenite = "0.24.0"
|
||||
tower-http = { version = "0.6.1", features = ["fs", "trace"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
|
|
Loading…
Reference in a new issue