Package: rust-ahash
Version: 0.8.12-3
We hope to update getrandom to 0.4 and rand to 0.10 soon.
The new versions are vaailble in experimental, ahash has
a dependency on getrandom, and a dev-dependency on rand.
The getrandom update simplifies the getrandom patch, in the new
version it becomes only a dependency patch rather than a code
patch.
It appears that the "no-benches" patch already removes all the
code that uses rand, so I removed the dev-dependency as well.
debdiff is attatched.
Since a bunch of stuff depends on ahash, we would appreciate an
upload to experimental to facilitate testing stuff further down
the stack.
diff -Nru rust-ahash-0.8.12/debian/changelog rust-ahash-0.8.12/debian/changelog
--- rust-ahash-0.8.12/debian/changelog 2026-02-24 08:51:31.000000000 +0000
+++ rust-ahash-0.8.12/debian/changelog 2026-03-03 02:05:49.000000000 +0000
@@ -1,3 +1,13 @@
+rust-ahash (0.8.12-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Upgrade getrandom to 0.4
+ * Remove dev-dependency on rand, and corresponding build-
+ and test-dependencies. rand was only used by benches
+ that were already patched out.
+
+ -- Peter Michael Green <[email protected]> Tue, 03 Mar 2026 02:05:49 +0000
+
rust-ahash (0.8.12-3) unstable; urgency=medium
* update DEP-3 patch headers
diff -Nru rust-ahash-0.8.12/debian/control rust-ahash-0.8.12/debian/control
--- rust-ahash-0.8.12/debian/control 2026-02-24 08:44:38.000000000 +0000
+++ rust-ahash-0.8.12/debian/control 2026-03-03 02:05:49.000000000 +0000
@@ -6,12 +6,11 @@
librust-portable-atomic-dev,
librust-cfg-if-dev,
librust-const-random-dev,
- librust-getrandom-dev,
+ librust-getrandom-0.4-dev,
librust-hex-dev,
librust-no-panic-dev,
librust-once-cell-dev,
librust-once-cell-dev,
- librust-rand-dev,
librust-serde-dev,
librust-serde-json-dev,
librust-smallvec-dev,
@@ -30,7 +29,7 @@
librust-portable-atomic-dev,
librust-cfg-if-dev,
librust-const-random-dev,
- librust-getrandom-dev,
+ librust-getrandom-0.4-dev,
librust-once-cell-dev,
librust-once-cell-dev,
librust-serde-dev,
diff -Nru rust-ahash-0.8.12/debian/patches/2001_getrandom.patch
rust-ahash-0.8.12/debian/patches/2001_getrandom.patch
--- rust-ahash-0.8.12/debian/patches/2001_getrandom.patch 2025-09-24
09:38:35.000000000 +0000
+++ rust-ahash-0.8.12/debian/patches/2001_getrandom.patch 2026-03-03
02:05:36.000000000 +0000
@@ -1,9 +1,7 @@
-Description: use older branch of crate getrandom
- This essentially reverts upstream git commit 08a2be6.
-Author: Jonas Smedegaard <[email protected]>
-Bug-Debian: https://bugs.debian.org/1095488
-Forwarded: not-needed
-Last-Update: 2025-09-24
+Description: use newer branch of crate getrandom
+Author: Peter Michael Green <[email protected]>
+Forwarded: no
+Last-Update: 2026-03-03
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
@@ -13,18 +11,7 @@
cfg-if = "1.0"
portable-atomic = { version = "1.0.0", optional = true }
-getrandom = { version = "0.3.1", optional = true }
-+getrandom = { version = "0.2.7", optional = true }
++getrandom = { version = "0.4", optional = true }
zerocopy = { version = "0.8.24", default-features = false, features =
["simd"] }
[target.'cfg(not(all(target_arch = "arm", target_os = "none")))'.dependencies]
---- a/src/random_state.rs
-+++ b/src/random_state.rs
-@@ -74,7 +74,7 @@
-
- SEEDS.get_or_init(|| {
- let mut result: [u8; 64] = [0; 64];
-- getrandom::fill(&mut result).expect("getrandom::fill()
failed.");
-+ getrandom::getrandom(&mut
result).expect("getrandom::getrandom() failed.");
- Box::new(result.convert())
- })
- }
diff -Nru rust-ahash-0.8.12/debian/patches/2002_no_benches.patch
rust-ahash-0.8.12/debian/patches/2002_no_benches.patch
--- rust-ahash-0.8.12/debian/patches/2002_no_benches.patch 2025-08-11
09:27:26.000000000 +0000
+++ rust-ahash-0.8.12/debian/patches/2002_no_benches.patch 2026-03-03
02:05:49.000000000 +0000
@@ -11,9 +11,11 @@
Last-Update: 2025-08-11
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -47,16 +47,6 @@
+Index: rust-ahash-0.8.12/Cargo.toml
+===================================================================
+--- rust-ahash-0.8.12.orig/Cargo.toml
++++ rust-ahash-0.8.12/Cargo.toml
+@@ -47,16 +47,6 @@ atomic-polyfill = [ "dep:portable-atomic
# Nightly-only support for AES intrinsics on 32-bit ARM
nightly-arm-aes = []
@@ -30,7 +32,7 @@
[profile.test]
opt-level = 2
lto = 'fat'
-@@ -91,14 +81,9 @@
+@@ -91,14 +81,8 @@ once_cell = { version = "1.18.0", defaul
[dev-dependencies]
no-panic = "0.1.10"
@@ -39,13 +41,15 @@
-fnv = "1.0.5"
-fxhash = "0.2.1"
hex = "0.4.2"
- rand = "0.8.5"
+-rand = "0.8.5"
serde_json = "1.0.59"
-hashbrown = "0.14.3"
smallvec = "1.13.1"
[package.metadata.docs.rs]
---- a/tests/bench.rs
+Index: rust-ahash-0.8.12/tests/bench.rs
+===================================================================
+--- rust-ahash-0.8.12.orig/tests/bench.rs
+++ /dev/null
@@ -1,202 +0,0 @@
-#![cfg_attr(specialize, feature(build_hasher_simple_hash_one))]
@@ -250,7 +254,9 @@
- bench_sip,
- bench_map
-);
---- a/tests/map_tests.rs
+Index: rust-ahash-0.8.12/tests/map_tests.rs
+===================================================================
+--- rust-ahash-0.8.12.orig/tests/map_tests.rs
+++ /dev/null
@@ -1,310 +0,0 @@
-#![cfg_attr(specialize, feature(build_hasher_simple_hash_one))]
@@ -563,7 +569,9 @@
-
-criterion_main!(benches);
-criterion_group!(benches, bench_ahash_words, bench_fx_words,);
---- a/tests/nopanic.rs
+Index: rust-ahash-0.8.12/tests/nopanic.rs
+===================================================================
+--- rust-ahash-0.8.12.orig/tests/nopanic.rs
+++ /dev/null
@@ -1,81 +0,0 @@
-use ahash::{AHasher, RandomState};
diff -Nru rust-ahash-0.8.12/debian/tests/control
rust-ahash-0.8.12/debian/tests/control
--- rust-ahash-0.8.12/debian/tests/control 2026-02-24 08:44:09.000000000
+0000
+++ rust-ahash-0.8.12/debian/tests/control 2026-03-03 02:05:49.000000000
+0000
@@ -8,7 +8,6 @@
librust-ahash-dev,
librust-hex-dev,
librust-no-panic-dev,
- librust-rand-dev,
librust-serde-json-dev,
librust-smallvec-dev,
Restrictions: allow-stderr
@@ -21,7 +20,6 @@
librust-ahash-0.8+default-dev,
librust-hex-dev,
librust-no-panic-dev,
- librust-rand-dev,
librust-serde-json-dev,
librust-smallvec-dev,
Restrictions: allow-stderr
@@ -34,7 +32,6 @@
librust-ahash-dev,
librust-hex-dev,
librust-no-panic-dev,
- librust-rand-dev,
librust-serde-json-dev,
librust-smallvec-dev,
Restrictions: allow-stderr
@@ -47,7 +44,6 @@
librust-ahash-0.8+atomic-polyfill-dev,
librust-hex-dev,
librust-no-panic-dev,
- librust-rand-dev,
librust-serde-json-dev,
librust-smallvec-dev,
Restrictions: allow-stderr
@@ -61,7 +57,6 @@
librust-ahash-0.8+compile-time-rng-dev,
librust-hex-dev,
librust-no-panic-dev,
- librust-rand-dev,
librust-serde-json-dev,
librust-smallvec-dev,
Restrictions: allow-stderr
@@ -75,7 +70,6 @@
librust-ahash-0.8+no-rng-dev,
librust-hex-dev,
librust-no-panic-dev,
- librust-rand-dev,
librust-serde-json-dev,
librust-smallvec-dev,
Restrictions: allow-stderr
@@ -89,7 +83,6 @@
librust-ahash-0.8+runtime-rng-dev,
librust-hex-dev,
librust-no-panic-dev,
- librust-rand-dev,
librust-serde-json-dev,
librust-smallvec-dev,
Restrictions: allow-stderr
@@ -103,7 +96,6 @@
librust-ahash-0.8+serde-dev,
librust-hex-dev,
librust-no-panic-dev,
- librust-rand-dev,
librust-serde-json-dev,
librust-smallvec-dev,
Restrictions: allow-stderr
@@ -117,7 +109,6 @@
librust-ahash-0.8+std-dev,
librust-hex-dev,
librust-no-panic-dev,
- librust-rand-dev,
librust-serde-json-dev,
librust-smallvec-dev,
Restrictions: allow-stderr