From 0cf30957b47fb06ebe0584b96fcf4aa23a54adab Mon Sep 17 00:00:00 2001 From: tottoto Date: Sun, 21 Sep 2025 00:55:36 +0900 Subject: [PATCH] axum-extra: Remove unused tower dependency --- axum-extra/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axum-extra/Cargo.toml b/axum-extra/Cargo.toml index bdb5fc6ba4..d532df4d2d 100644 --- a/axum-extra/Cargo.toml +++ b/axum-extra/Cargo.toml @@ -79,7 +79,7 @@ typed-routing = [ # Enabled by docs.rs because it uses all-features # Enables upstream things linked to in docs -__private_docs = ["axum/json", "dep:serde"] +__private_docs = ["axum/json", "dep:serde", "dep:tower"] [dependencies] axum = { path = "../axum", version = "0.8.4", default-features = false, features = ["original-uri"] } @@ -94,7 +94,6 @@ mime = "0.3" pin-project-lite = "0.2" rustversion = "1.0.9" serde_core = "1.0.221" -tower = { version = "0.5.2", default-features = false, features = ["util"] } tower-layer = "0.3" tower-service = "0.3" @@ -118,6 +117,7 @@ typed-json = { version = "0.1.1", optional = true } # doc dependencies serde = { version = "1.0.221", optional = true } +tower = { version = "0.5.2", default-features = false, features = ["util"], optional = true } [dev-dependencies] axum = { path = "../axum", features = ["macros", "__private"] }