Package: rust-regalloc2
Now that rust-ahash 0.8 is in trixie and noble I hope to update
rust-hashbrown and rust-indexmap soon to versions 0.14
and version 2 respectively.
The release of regalloc2 currently in Debian, depends on
hashbrown 0.13 as does the latest upstream release. Upstream
git has upgraded to 0.14, when they did so they decided to make
some changes to the feature settings, setting
"default_features=false" and manually enabling the "ahash"
feature.
https://github.com/bytecodealliance/regalloc2/commit/5d79e12d0a93b10fc181f4da409b4671dd365228
The default features for hashbrown are currently
"ahash", "inline-more" and "allocator-api2" so this amounts
to not enabling the "inline-more" and "allocator-api2"
features.
I have tested that simply relaxing the dependency is enough
to make rust-regalloc2 build with the new hashbrown. The
debdiff I used for testing is attached.
diff -Nru rust-regalloc2-0.9.2/debian/changelog
rust-regalloc2-0.9.2/debian/changelog
--- rust-regalloc2-0.9.2/debian/changelog 2023-09-21 17:38:27.000000000
+0000
+++ rust-regalloc2-0.9.2/debian/changelog 2024-02-14 02:21:52.000000000
+0000
@@ -1,3 +1,10 @@
+rust-regalloc2 (0.9.2-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Bump hashbrown to 0.14
+
+ -- Peter Michael Green <plugw...@debian.org> Wed, 14 Feb 2024 02:21:52 +0000
+
rust-regalloc2 (0.9.2-2) unstable; urgency=medium
* generate documentation during build;
diff -Nru rust-regalloc2-0.9.2/debian/control
rust-regalloc2-0.9.2/debian/control
--- rust-regalloc2-0.9.2/debian/control 2023-09-21 07:02:26.000000000 +0000
+++ rust-regalloc2-0.9.2/debian/control 2024-02-14 02:21:52.000000000 +0000
@@ -9,7 +9,7 @@
librust-bincode-1+default-dev,
librust-clap-4+default-dev,
librust-clap-4+derive-dev,
- librust-hashbrown-0.12+default-dev,
+ librust-hashbrown-0.14+default-dev,
librust-log-0.4-dev,
librust-pretty-env-logger-0.5+default-dev,
librust-rustc-hash-1-dev,
@@ -30,7 +30,7 @@
Architecture: all
Multi-Arch: foreign
Depends:
- librust-hashbrown-0.12+default-dev,
+ librust-hashbrown-0.14+default-dev,
librust-log-0.4-dev,
librust-rustc-hash-1-dev,
librust-serde-1+alloc-dev,
diff -Nru rust-regalloc2-0.9.2/debian/patches/2002_hashbrown.patch
rust-regalloc2-0.9.2/debian/patches/2002_hashbrown.patch
--- rust-regalloc2-0.9.2/debian/patches/2002_hashbrown.patch 2023-09-19
17:10:38.000000000 +0000
+++ rust-regalloc2-0.9.2/debian/patches/2002_hashbrown.patch 2024-02-14
02:21:23.000000000 +0000
@@ -12,7 +12,7 @@
rustc-hash = { version = "1.1.0", default-features = false }
slice-group-by = { version = "0.3.0", default-features = false }
-hashbrown = "0.13.2"
-+hashbrown = ">= 0.12, < 0.14"
++hashbrown = ">= 0.12, < 0.15"
# Optional serde support, enabled by feature below.
serde = { version = "1.0.136", features = [