Commit 6b59b2d
authored
Release Version v0.3.4 (rust-random#735)
## [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>1 parent cce881a commit 6b59b2d
3 files changed
Lines changed: 29 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
8 | 25 | | |
9 | 26 | | |
10 | 27 | | |
| |||
15 | 32 | | |
16 | 33 | | |
17 | 34 | | |
| 35 | + | |
18 | 36 | | |
19 | 37 | | |
20 | 38 | | |
21 | 39 | | |
22 | 40 | | |
| 41 | + | |
| 42 | + | |
23 | 43 | | |
24 | 44 | | |
25 | 45 | | |
26 | 46 | | |
27 | 47 | | |
28 | 48 | | |
| 49 | + | |
29 | 50 | | |
30 | 51 | | |
31 | 52 | | |
32 | 53 | | |
33 | 54 | | |
34 | 55 | | |
35 | 56 | | |
36 | | - | |
| 57 | + | |
37 | 58 | | |
38 | 59 | | |
39 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments