From fddeacc2532fa95b9c8a36830ed78cdcef12dcb6 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 27 Jul 2026 20:22:37 -0400 Subject: [PATCH 1/2] Update to `tracing 0.1.36` `tracing 0.1.35` pulls in `tracing-core 0.1.27` which adopted `once_cell` over `lazy_static`, fixing some macro issues I had when I tried to compile with minimal dependencies. `tracing 0.1.36` is explicitly guaranteed to compile with `-Zminimal-versions`. `hyper-util` explicitly does not compile against the minimal version of `tracing 0.1` as it uses misc features added between `0.1 and 0.x`. `0.1.36` is within `hyper-util`'s MSRV bound. This version of `tracing` is sufficient for all my experiments I did with `-Zminimal-versions`, hence why I PR it here, but I can't confirm this is sufficient for all environments, the exact latest version of `hyper-util`, and in the future, a workflow confirming `hyper-util` compiles with `-Zminimal-versions` would be valuable. I also encountered issues with how `tower 0.4` wouldn't compile against `tower-layer 0.3` (solely `tower-layer 0.3.1`), but `tower` is no longer an explicit dependency of `hyper-util`. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f21a5788..7be50fcf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ libc = { version = "0.2", optional = true } percent-encoding = { version = "2.3", optional = true } pin-project-lite = "0.2.4" socket2 = { version = "0.6", optional = true, features = ["all"] } -tracing = { version = "0.1", default-features = false, features = ["std"], optional = true } +tracing = { version = "0.1.36", default-features = false, features = ["std"], optional = true } tokio = { version = "1", optional = true, default-features = false } tower-layer = { version = "0.3", optional = true } tower-service = { version = "0.3", optional = true } From f900d0ac2d5f27b27502e56df60fd346e7ee85e8 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Tue, 28 Jul 2026 00:18:29 -0400 Subject: [PATCH 2/2] `tokio 1.13` https://github.com/tokio-rs/tokio/blob/master/tokio/CHANGELOG.md#1130-october-29-2021 added `watch::Sender::send_replace`, as used in `src/client/legacy/connect/capture.rs`. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7be50fcf..98c3cf1b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ percent-encoding = { version = "2.3", optional = true } pin-project-lite = "0.2.4" socket2 = { version = "0.6", optional = true, features = ["all"] } tracing = { version = "0.1.36", default-features = false, features = ["std"], optional = true } -tokio = { version = "1", optional = true, default-features = false } +tokio = { version = "1.13", optional = true, default-features = false } tower-layer = { version = "0.3", optional = true } tower-service = { version = "0.3", optional = true }