Skip to content

Release Version v0.3.4#735

Merged
josephlr merged 3 commits intorust-random:masterfrom
josephlr:release
Oct 14, 2025
Merged

Release Version v0.3.4#735
josephlr merged 3 commits intorust-random:masterfrom
josephlr:release

Conversation

@josephlr
Copy link
Member

[0.3.4] - 2025-10-14

Major change to wasm_js backend

Now, when the wasm_js feature is enabled, the wasm_js backend will be used
by default. Users of wasm32-unknown-unknown targeting JavaScript environments
like the Web and Node.js will no longer need to specify:

--cfg getrandom_backend="wasm_js"

in RUSTFLAGS for the crate to compile. They can now simple enable a feature.

Note: this should not affect non-JS users of the wasm32-unknown-unknown
target. Using --cfg getrandom_backend will still override the source of
randomness even if the wasm_js feature is enabled. This includes
--cfg getrandom_backend=custom and --cfg getrandom_backend=unsupported.

For more information, see the discussions in #671, #675, and #730.

Added

  • unsupported opt-in backend #667
  • windows_legacy opt-in backend #724

Changed

  • Implement Memory Sanitizer unpoisoning more precisely #678
  • Relax MSRV for the linux_raw opt-in backend on ARM targets #688
  • Use getrandom syscall on all RISC-V Linux targets #699
  • Replaced wasi dependency with wasip2 #721
  • Enable wasm_js backend by default if the wasm_js feature is enabled #730

Removed

  • Unstable rustc-dep-of-std crate feature #694

Signed-off-by: Joe Richey <joerichey@google.com>
Signed-off-by: Joe Richey <joerichey@google.com>
Signed-off-by: Joe Richey <joerichey@google.com>
@josephlr josephlr requested review from dhardy and newpavlov October 14, 2025 08:11
@josephlr josephlr merged commit 2d033b7 into rust-random:master Oct 14, 2025
75 checks passed
@josephlr josephlr deleted the release branch October 14, 2025 17:31
@josephlr
Copy link
Member Author

Whoops, forgot to change the version number, this is done in #736

Crate released: https://crates.io/crates/getrandom/0.3.4

@janhohenheim
Copy link

janhohenheim commented Oct 14, 2025

Thank you so much ❤️

takumi-earth pushed a commit to earthlings-dev/getrandom that referenced this pull request Jan 27, 2026
## [0.3.4] - 2025-10-14

### Major change to `wasm_js` backend

Now, when the `wasm_js` feature is enabled, the `wasm_js` backend will
be used
by default. Users of `wasm32-unknown-unknown` targeting JavaScript
environments
like the Web and Node.js will no longer need to specify:
```
--cfg getrandom_backend="wasm_js"
```
in `RUSTFLAGS` for the crate to compile. They can now simple enable a
feature.

Note: this should not affect non-JS users of the
`wasm32-unknown-unknown`
target. Using `--cfg getrandom_backend` will still override the source
of
randomness _even if_ the `wasm_js` feature is enabled. This includes
`--cfg getrandom_backend=custom` and `--cfg
getrandom_backend=unsupported`.

For more information, see the discussions in [rust-random#671], [rust-random#675], and [rust-random#730].

### Added
- `unsupported` opt-in backend [rust-random#667]
- `windows_legacy` opt-in backend [rust-random#724]

### Changed
- Implement Memory Sanitizer unpoisoning more precisely [rust-random#678]
- Relax MSRV for the `linux_raw` opt-in backend on ARM targets [rust-random#688]
- Use `getrandom` syscall on all RISC-V Linux targets [rust-random#699]
- Replaced `wasi` dependency with `wasip2` [rust-random#721]
- Enable `wasm_js` backend by default if the `wasm_js` feature is
enabled [rust-random#730]

### Removed
- Unstable `rustc-dep-of-std` crate feature [rust-random#694]

[rust-random#667]: rust-random#667
[rust-random#671]: rust-random#671
[rust-random#675]: rust-random#675
[rust-random#678]: rust-random#678
[rust-random#688]: rust-random#688
[rust-random#694]: rust-random#694
[rust-random#699]: rust-random#699
[rust-random#721]: rust-random#721
[rust-random#724]: rust-random#724
[rust-random#730]: rust-random#730

---------

Signed-off-by: Joe Richey <joerichey@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants