diff --git a/axum-core/Cargo.toml b/axum-core/Cargo.toml index f9e7869283..76dde1bc23 100644 --- a/axum-core/Cargo.toml +++ b/axum-core/Cargo.toml @@ -32,7 +32,7 @@ tower-layer = "0.3" tower-service = "0.3" # optional dependencies -tower-http = { version = "0.5.0", optional = true, features = ["limit"] } +tower-http = { version = "0.6.0", optional = true, features = ["limit"] } tracing = { version = "0.1.37", default-features = false, optional = true } [dev-dependencies] @@ -41,7 +41,7 @@ axum-extra = { path = "../axum-extra", features = ["typed-header"] } futures-util = { version = "0.3", default-features = false, features = ["alloc"] } hyper = "1.0.0" tokio = { version = "1.25.0", features = ["macros"] } -tower-http = { version = "0.5.0", features = ["limit"] } +tower-http = { version = "0.6.0", features = ["limit"] } [package.metadata.cargo-public-api-crates] allowed = [ diff --git a/axum-extra/Cargo.toml b/axum-extra/Cargo.toml index e091cd9c81..3032f661d0 100644 --- a/axum-extra/Cargo.toml +++ b/axum-extra/Cargo.toml @@ -49,7 +49,7 @@ http-body-util = "0.1.0" mime = "0.3" pin-project-lite = "0.2" serde = "1.0" -tower = { version = "0.4", default-features = false, features = ["util"] } +tower = { version = "0.5.1", default-features = false, features = ["util"] } tower-layer = "0.3" tower-service = "0.3" @@ -76,8 +76,8 @@ reqwest = { version = "0.12", default-features = false, features = ["json", "str serde = { version = "1.0", features = ["derive"] } serde_json = "1.0.71" tokio = { version = "1.14", features = ["full"] } -tower = { version = "0.4", features = ["util"] } -tower-http = { version = "0.5.0", features = ["map-response-body", "timeout"] } +tower = { version = "0.5.1", features = ["util"] } +tower-http = { version = "0.6.0", features = ["map-response-body", "timeout"] } [package.metadata.docs.rs] all-features = true diff --git a/axum/Cargo.toml b/axum/Cargo.toml index a88a199786..b1f30997c9 100644 --- a/axum/Cargo.toml +++ b/axum/Cargo.toml @@ -57,7 +57,7 @@ pin-project-lite = "0.2.7" rustversion = "1.0.9" serde = "1.0" sync_wrapper = "1.0.0" -tower = { version = "0.4.13", default-features = false, features = ["util"] } +tower = { version = "0.5.1", default-features = false, features = ["util"] } tower-layer = "0.3.2" tower-service = "0.3" @@ -76,7 +76,7 @@ tokio-tungstenite = { version = "0.23", optional = true } tracing = { version = "0.1", default-features = false, optional = true } [dependencies.tower-http] -version = "0.5.0" +version = "0.6.0" optional = true features = [ # all tower-http features except (de)?compression-zstd which doesn't diff --git a/axum/src/boxed.rs b/axum/src/boxed.rs index 32808f51de..217a6cc98e 100644 --- a/axum/src/boxed.rs +++ b/axum/src/boxed.rs @@ -2,7 +2,7 @@ use std::{convert::Infallible, fmt}; use crate::extract::Request; use crate::util::AxumMutex; -use tower::Service; +use tower_service::Service; use crate::{ handler::Handler,