From 5793e75aacfeae16f02fea144ecc2ee7dcb12f55 Mon Sep 17 00:00:00 2001 From: tottoto Date: Fri, 10 Mar 2023 08:23:50 -0800 Subject: [PATCH] Change tower-http to optional (#1838) --- axum/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axum/Cargo.toml b/axum/Cargo.toml index 7404f6238e..fef5a5ec0a 100644 --- a/axum/Cargo.toml +++ b/axum/Cargo.toml @@ -78,7 +78,6 @@ pin-project-lite = "0.2.7" serde = "1.0" sync_wrapper = "0.1.1" tower = { version = "0.4.13", default-features = false, features = ["util"] } -tower-http = { version = "0.4", features = ["util", "map-response-body"] } tower-layer = "0.3.2" tower-service = "0.3" @@ -93,6 +92,7 @@ serde_urlencoded = { version = "0.7", optional = true } sha1 = { version = "0.10", optional = true } tokio = { package = "tokio", version = "1.25.0", features = ["time"], optional = true } tokio-tungstenite = { version = "0.18.0", optional = true } +tower-http = { version = "0.4", features = ["util", "map-response-body"], optional = true } [build-dependencies] rustversion = "1.0.9"