From 306ed1c30b67d78c8158e601acfda3b8650008dd Mon Sep 17 00:00:00 2001 From: tsyrulb <92333588+tsyrulb@users.noreply.github.com> Date: Fri, 6 Feb 2026 12:45:30 +0200 Subject: [PATCH] stream: bump minimum tokio version to 1.38 (#7887) tokio-stream 0.1.18 added `Stream::size_hint` for `ReceiverStream` and `UnboundedReceiverStream` (PR #7492), which calls `Receiver::is_closed()` and `Receiver::len()` (added in tokio 1.37.0) and `Receiver::capacity()` and `Receiver::max_capacity()` (added in tokio 1.38.0). The declared minimum of tokio 1.15.0 is no longer sufficient, causing compilation failures when resolved via `-Z direct-minimal-versions`. Refs: #7492 --- tokio-stream/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-stream/Cargo.toml b/tokio-stream/Cargo.toml index ddcdb9762..3468cbb4b 100644 --- a/tokio-stream/Cargo.toml +++ b/tokio-stream/Cargo.toml @@ -38,7 +38,7 @@ signal = ["tokio/signal"] [dependencies] futures-core = { version = "0.3.0" } pin-project-lite = "0.2.11" -tokio = { version = "1.15.0", path = "../tokio", features = ["sync"] } +tokio = { version = "1.38.0", path = "../tokio", features = ["sync"] } tokio-util = { version = "0.7.0", path = "../tokio-util", optional = true } [dev-dependencies]