- Package:
- src:rust-fastrand
- Source:
- src:rust-fastrand
- Submitter:
- Rene Engelhard
- Date:
- 2025-07-01 09:37:02 UTC
- Severity:
- normal
Version: 2.1.1-1
Severity: wishlist
Hi,
I need rust-yrs (see #1108320) which apparently needs the js feature in fastrand (which needs it in getrandom).
I fail to get the debcargo-conf workflow to work so I am filing this bug. Maybe you can have a look?
If I did it manually I'd have done
$ debdiff rust-fastrand_2.1.1-1.dsc rust-fastrand_2.1.1-2.dsc
diff -Nru rust-fastrand-2.1.1/debian/changelog rust-fastrand-2.1.1/debian/changelog
--- rust-fastrand-2.1.1/debian/changelog 2024-10-13 18:35:07.000000000 +0200
+++ rust-fastrand-2.1.1/debian/changelog 2025-06-24 21:25:23.000000000 +0200
@@ -1,3 +1,11 @@
+rust-fastrand (2.1.1-2) UNRELEASED; urgency=medium
+
+ * Team upload
+ * disable no-wasm.diff to get +js feature
+ * add +js Provides. B-D on libgetrandom+js-dev
+
+ -- Rene Engelhard <rene@debian.org> Tue, 24 Jun 2025 21:25:23 +0200
+
rust-fastrand (2.1.1-1) unstable; urgency=medium
* Team upload.
diff -Nru rust-fastrand-2.1.1/debian/control rust-fastrand-2.1.1/debian/control
--- rust-fastrand-2.1.1/debian/control 2024-10-13 18:35:07.000000000 +0200
+++ rust-fastrand-2.1.1/debian/control 2025-06-24 21:25:23.000000000 +0200
@@ -5,7 +5,8 @@
dh-sequence-cargo,
cargo:native <!nocheck>,
rustc:native (>= 1.36) <!nocheck>,
- libstd-rust-dev <!nocheck>
+ libstd-rust-dev <!nocheck>,
+ librust-getrandom+js-dev
Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Uploaders:
Andrej Shadura <andrewsh@debian.org>
@@ -23,18 +24,22 @@
Provides:
librust-fastrand+alloc-dev (= ${binary:Version}),
librust-fastrand+default-dev (= ${binary:Version}),
+ librust-fastrand+js-dev (= ${binary:Version}),
librust-fastrand+std-dev (= ${binary:Version}),
librust-fastrand-2-dev (= ${binary:Version}),
librust-fastrand-2+alloc-dev (= ${binary:Version}),
librust-fastrand-2+default-dev (= ${binary:Version}),
+ librust-fastrand-2+js-dev (= ${binary:Version}),
librust-fastrand-2+std-dev (= ${binary:Version}),
librust-fastrand-2.1-dev (= ${binary:Version}),
librust-fastrand-2.1+alloc-dev (= ${binary:Version}),
librust-fastrand-2.1+default-dev (= ${binary:Version}),
+ librust-fastrand-2.1+js-dev (= ${binary:Version}),
librust-fastrand-2.1+std-dev (= ${binary:Version}),
librust-fastrand-2.1.1-dev (= ${binary:Version}),
librust-fastrand-2.1.1+alloc-dev (= ${binary:Version}),
librust-fastrand-2.1.1+default-dev (= ${binary:Version}),
+ librust-fastrand-2.1.1+js-dev (= ${binary:Version}),
librust-fastrand-2.1.1+std-dev (= ${binary:Version})
Description: Simple and fast random number generator - Rust source code
Source code for Debianized Rust crate "fastrand"
diff -Nru rust-fastrand-2.1.1/debian/patches/no-wasm.patch rust-fastrand-2.1.1/debian/patches/no-wasm.patch
--- rust-fastrand-2.1.1/debian/patches/no-wasm.patch 2024-10-13 18:35:07.000000000 +0200
+++ rust-fastrand-2.1.1/debian/patches/no-wasm.patch 1970-01-01 01:00:00.000000000 +0100
@@ -1,35 +0,0 @@
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -71,18 +71,18 @@
- default = ["std"]
--js = [
-- "std",
-- "getrandom",
--]
-+#js = [
-+# "std",
-+# "getrandom",
-+#]
- std = ["alloc"]
-
--[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies.getrandom]
--version = "0.2"
--features = ["js"]
--optional = true
--
--[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies.getrandom]
--version = "0.2"
--features = ["js"]
-+#[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies.getrandom]
-+#version = "0.2"
-+#features = ["js"]
-+#optional = true
-+
-+#[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies.getrandom]
-+#version = "0.2"
-+#features = ["js"]
-
--[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test]
--version = "0.3"
-+#[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test]
-+#version = "0.3"
diff -Nru rust-fastrand-2.1.1/debian/patches/series rust-fastrand-2.1.1/debian/patches/series
--- rust-fastrand-2.1.1/debian/patches/series 2024-10-13 18:35:07.000000000 +0200
+++ rust-fastrand-2.1.1/debian/patches/series 2025-06-24 21:25:23.000000000 +0200
@@ -1,4 +1,3 @@
-no-wasm.patch
disable-benches.patch
fix-tests-no-default-features.patch
fix-gated-tests.patch
At least with that fastrand builds fine with +js used from getrandom, too.
Can you please apply/do the right thing to make the same effect?
Regards,
Rene
We believe that the bug you reported is fixed in the latest version of rust-fastrand, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1108397@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Rene Engelhard <rene@debian.org> (supplier of updated rust-fastrand package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Tue, 24 Jun 2025 21:25:23 +0200 Source: rust-fastrand Architecture: source Version: 2.1.1-2 Distribution: unstable Urgency: medium Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> Changed-By: Rene Engelhard <rene@debian.org> Closes: 1108397 Changes: rust-fastrand (2.1.1-2) unstable; urgency=medium . * Disable no-wasm.diff to get +js feature (Closes: #1108397). Checksums-Sha1: b9db9a9408d7d5de069d56fd26a216ad4057b73a 1738 rust-fastrand_2.1.1-2.dsc d2e3cdf6deef12701b898b0b8ee31b150cc6da6f 3720 rust-fastrand_2.1.1-2.debian.tar.xz fbdcc35b993bcdcf09d602ad97f183453aa29057 7045 rust-fastrand_2.1.1-2_source.buildinfo Checksums-Sha256: 7eb425f60c937175fb401e0d1eba51ed96b4ead714f9591cf42ec7190ed1a688 1738 rust-fastrand_2.1.1-2.dsc 6b607c429c9efaab2119b8202df71173a9275047320f19ae4afd37cae52c9d2f 3720 rust-fastrand_2.1.1-2.debian.tar.xz b1f1c2a3a9d973fbdf03919cee1f423c5b0780374bd84073be4d6b3cfd88e3f0 7045 rust-fastrand_2.1.1-2_source.buildinfo Files: a1b5156e93b85da4344ff0da99d1838a 1738 rust optional rust-fastrand_2.1.1-2.dsc 043ea90f90f2d02bd9f9cdda9e82b31a 3720 rust optional rust-fastrand_2.1.1-2.debian.tar.xz 7575abeb46cb91f1bc4aa24d971352b3 7045 rust optional rust-fastrand_2.1.1-2_source.buildinfo -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSD3NF/RLIsyDZW7aHoRGtKyMdyYQUCaGKD3wAKCRDoRGtKyMdy Ybd9AP9b0IMoKnQoIm7dZSiXiGxbrz2nYxa5PwRvaJfRvkW7jwEA+daxg/XaCE7Q uMxKh3Do3WkdCjpRDUmEi1YX2otLvwE= =DOo+ -----END PGP SIGNATURE-----
Hi all, I made a mistake and uploaded this change to unstable. I have reverted that change and will re-upload to experimental. Sorry for the noise. And don’t blame Rene :)
We believe that the bug you reported is fixed in the latest version of rust-fastrand, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1108397@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Andrej Shadura <andrewsh@debian.org> (supplier of updated rust-fastrand package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Tue, 01 Jul 2025 11:20:47 +0200 Source: rust-fastrand Architecture: source Version: 2.1.1-5 Distribution: experimental Urgency: medium Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> Changed-By: Andrej Shadura <andrewsh@debian.org> Closes: 1108397 Changes: rust-fastrand (2.1.1-5) experimental; urgency=medium . * Disable no-wasm.diff to get +js feature (Closes: #1108397). Checksums-Sha1: 93938f1b5ac101cd5f45fba4b5ed19a1b037c6de 1738 rust-fastrand_2.1.1-5.dsc 890762fc7a9a4052954fbd34098e8616bac1dafa 3800 rust-fastrand_2.1.1-5.debian.tar.xz 77d49bed360b076e9073238b0a8409eede6b26f8 7045 rust-fastrand_2.1.1-5_source.buildinfo Checksums-Sha256: fc40c8dfafa8462fa1bea2e049b83949e67bc20779a577a103c4cf89d31fb214 1738 rust-fastrand_2.1.1-5.dsc 8ae79685c649e73ee615bb7c316d11411a4fd18df9eed39256b39a9bf3ca365c 3800 rust-fastrand_2.1.1-5.debian.tar.xz c406a0a5ed3039ee8762a39a2cc7ce6c858fe5a1b86a4ddf3295b535d27bab7c 7045 rust-fastrand_2.1.1-5_source.buildinfo Files: 20e3cc7f8f999deac292c4a8e1c630ad 1738 rust optional rust-fastrand_2.1.1-5.dsc c749ecedb29c287f624b8ec5d349e027 3800 rust optional rust-fastrand_2.1.1-5.debian.tar.xz c67e75774c4724e096207ce77eded38f 7045 rust optional rust-fastrand_2.1.1-5_source.buildinfo -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSD3NF/RLIsyDZW7aHoRGtKyMdyYQUCaGOohwAKCRDoRGtKyMdy YbGgAP9CQv9T0juXrtDbi9a9/17Z6Gjlv3aAViVwZGRHLaN76wD+PW525LES/5Ue xJqYq+zNveqrQWyZmqgfBR7xRBbamQM= =HH4Q -----END PGP SIGNATURE-----