From 8c397f83a3c391aefbab5cba2deefdfe27ffcb03 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 18 Apr 2026 14:22:44 +0900 Subject: [PATCH] chore(http,web): upgrade `foldhash` to 0.2 (#4030) --- Cargo.lock | 12 +++++++++--- actix-http/CHANGES.md | 1 + actix-http/Cargo.toml | 2 +- actix-web/CHANGES.md | 1 + actix-web/Cargo.toml | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 08f1e7b1e..a520f1f6a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -72,7 +72,7 @@ dependencies = [ "encoding_rs", "env_logger", "flate2", - "foldhash", + "foldhash 0.2.0", "futures-core", "futures-util", "h2", @@ -351,7 +351,7 @@ dependencies = [ "encoding_rs", "env_logger", "flate2", - "foldhash", + "foldhash 0.2.0", "futures-core", "futures-util", "impl-more", @@ -1320,6 +1320,12 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + [[package]] name = "foreign-types" version = "0.3.2" @@ -1535,7 +1541,7 @@ version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" dependencies = [ - "foldhash", + "foldhash 0.1.5", ] [[package]] diff --git a/actix-http/CHANGES.md b/actix-http/CHANGES.md index 68a6188c4..bcc13abe0 100644 --- a/actix-http/CHANGES.md +++ b/actix-http/CHANGES.md @@ -3,6 +3,7 @@ ## Unreleased - When configured, gracefully close HTTP/1 connections after early responses to unread request bodies. [#3967] +- Update `foldhash` dependency to `0.2`. [#3967]: https://github.com/actix/actix-web/issues/3967 diff --git a/actix-http/Cargo.toml b/actix-http/Cargo.toml index 07a4090c9..c76913cc5 100644 --- a/actix-http/Cargo.toml +++ b/actix-http/Cargo.toml @@ -102,7 +102,7 @@ bytes = "1" bytestring = "1" derive_more = { version = "2", features = ["as_ref", "deref", "deref_mut", "display", "error", "from"] } encoding_rs = "0.8" -foldhash = "0.1" +foldhash = "0.2" futures-core = { version = "0.3.17", default-features = false, features = ["alloc"] } http = "0.2.7" httparse = "1.5.1" diff --git a/actix-web/CHANGES.md b/actix-web/CHANGES.md index 884017a47..e0dffae8e 100644 --- a/actix-web/CHANGES.md +++ b/actix-web/CHANGES.md @@ -7,6 +7,7 @@ - Panic when calling `Route::to()` or `Route::service()` after `Route::wrap()` to prevent silently dropping route middleware. [#3944] - Fix `HttpRequest::{match_pattern,match_name}` reporting path-only matches when route guards disambiguate overlapping resources. [#3346] - Fix `Readlines` handling of lines split across payload chunks so combined line limits are enforced and complete lines are yielded. +- Update `foldhash` dependency to `0.2`. - Update `rand` dependency to `0.10`. - Add `HttpServer::h1_write_buffer_size()`. diff --git a/actix-web/Cargo.toml b/actix-web/Cargo.toml index e1cae53e3..bf788a89d 100644 --- a/actix-web/Cargo.toml +++ b/actix-web/Cargo.toml @@ -147,7 +147,7 @@ cfg-if = "1" cookie = { version = "0.16", features = ["percent-encode"], optional = true } derive_more = { version = "2", features = ["as_ref", "deref", "deref_mut", "display", "error", "from"] } encoding_rs = "0.8" -foldhash = "0.1" +foldhash = "0.2" futures-core = { version = "0.3.17", default-features = false } futures-util = { version = "0.3.17", default-features = false } impl-more = "0.1.4"