From 48074a60f6b317126f1d01aceb6d1c0c13a461f4 Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Tue, 14 Oct 2025 20:05:15 -0700 Subject: [PATCH] fix(tonic): depend on http at least 1.1.0 We use `try_insert`, which was added in v1.1.0: * https://github.com/hyperium/http/pull/682 ``` error[E0599]: no method named `try_insert` found for mutable reference `&mut HeaderMap` in the current scope --> tonic/src/transport/channel/service/user_agent.rs:44:14 | 42 | if let Ok(Some(user_agent)) = req | _______________________________________- 43 | | .headers_mut() 44 | | .try_insert(USER_AGENT, self.user_agent.clone()) | |_____________-^^^^^^^^^^ | help: there is a method `insert` with a similar name | 44 - .try_insert(USER_AGENT, self.user_agent.clone()) 44 + .insert(USER_AGENT, self.user_agent.clone()) | ``` --- tonic/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tonic/Cargo.toml b/tonic/Cargo.toml index 855a16a3f..610641c3b 100644 --- a/tonic/Cargo.toml +++ b/tonic/Cargo.toml @@ -57,7 +57,7 @@ transport = ["server", "channel"] [dependencies] base64 = "0.22" bytes = "1.0" -http = "1" +http = "1.1.0" tracing = "0.1" http-body = "1"