From 6ab6f99aac9428f1acc0e21871e86f12a1e5384e Mon Sep 17 00:00:00 2001 From: Artem Starikov Date: Fri, 14 Aug 2026 09:39:18 +0300 Subject: [PATCH] axum: don't enable `tokio/macros` feature (#3864) --- axum/Cargo.toml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/axum/Cargo.toml b/axum/Cargo.toml index 8d02eb26..9c7b5224 100644 --- a/axum/Cargo.toml +++ b/axum/Cargo.toml @@ -72,9 +72,7 @@ query = [ tokio = [ "dep:hyper-util", "dep:tokio", - "tokio/rt", "tower/make", - "tokio/macros", ] tower-log = ["tower/log"] tracing = ["dep:tracing", "axum-core/tracing"] @@ -102,10 +100,10 @@ __private_docs = [ __private = ["tokio", "http1", "dep:reqwest"] [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -tokio = { package = "tokio", version = "1.44", features = ["time", "net"], optional = true } +tokio = { package = "tokio", version = "1.44", features = ["time", "rt", "net"], optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] -tokio = { package = "tokio", version = "1.44", features = ["time"], optional = true } +tokio = { package = "tokio", version = "1.44", features = ["time", "rt"], optional = true } [dependencies] axum-core = { path = "../axum-core", version = "0.5.6" }