Debian Codegraph @

debian/rust-vendor/getrandom/CHANGELOG.md

raw
1 # Changelog
2 All notable changes to this project will be documented in this file.
3
4 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
5 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7 ## [0.4.3] - 2026-06-17
8 ### Added
9 - `wasm64-unknown-unknown` target support for `wasm_js` backend [#848]
10
11 ### Changed
12 - Drop `wasip2` and `wasip3` dependencies in favor of manual bindings [#830]
13
14 [0.4.3]: https://github.com/rust-random/getrandom/compare/v0.4.2...v0.4.3
15 [#830]: https://github.com/rust-random/getrandom/pull/830
16 [#848]: https://github.com/rust-random/getrandom/pull/848
17
18 ## [0.4.2] - 2026-03-03
19
20 ### Changed
21 - Bump `r-efi` dependency to v6 [#814]
22
23 ### Fixed
24 - Read `errno` only when it is set [#810]
25 - Check the return value of `ProcessPrng` on Windows [#811]
26
27 [0.4.2]: https://github.com/rust-random/getrandom/compare/v0.4.1...v0.4.2
28 [#810]: https://github.com/rust-random/getrandom/pull/810
29 [#811]: https://github.com/rust-random/getrandom/pull/811
30 [#814]: https://github.com/rust-random/getrandom/pull/814
31
32 ## [0.4.1] - 2026-02-03
33
34 ### Fixed
35 - Documentation build on docs.rs [#801]
36
37 [0.4.1]: https://github.com/rust-random/getrandom/compare/v0.4.0...v0.4.1
38 [#801]: https://github.com/rust-random/getrandom/pull/801
39
40 ## [0.4.0] - 2026-02-02
41
42 ### Added
43 - `RawOsError` type alias [#739]
44 - `SysRng` behind new feature `sys_rng` [#751]
45 - WASIp3 support [#779]
46 - `extern_impl` opt-in backend [#786] [#794]
47 - Motor OS support [#797]
48
49 ### Changed
50 - Use Edition 2024 and MSRV 1.85 [#749]
51
52 [0.4.0]: https://github.com/rust-random/getrandom/compare/v0.3.4...v0.4.0
53 [#739]: https://github.com/rust-random/getrandom/pull/739
54 [#749]: https://github.com/rust-random/getrandom/pull/749
55 [#751]: https://github.com/rust-random/getrandom/pull/751
56 [#779]: https://github.com/rust-random/getrandom/pull/779
57 [#786]: https://github.com/rust-random/getrandom/pull/786
58 [#794]: https://github.com/rust-random/getrandom/pull/794
59 [#797]: https://github.com/rust-random/getrandom/pull/797
60
61 ## [0.3.4] - 2025-10-14
62
63 ### Major change to `wasm_js` backend
64
65 Now, when the `wasm_js` feature is enabled, the `wasm_js` backend will be used
66 by default. Users of `wasm32-unknown-unknown` targeting JavaScript environments
67 like the Web and Node.js will no longer need to specify:
68 ```
69 --cfg getrandom_backend="wasm_js"
70 ```
71 in `RUSTFLAGS` for the crate to compile. They can now simple enable a feature.
72
73 Note: this should not affect non-JS users of the `wasm32-unknown-unknown`
74 target. Using `--cfg getrandom_backend` will still override the source of
75 randomness _even if_ the `wasm_js` feature is enabled. This includes
76 `--cfg getrandom_backend=custom` and `--cfg getrandom_backend=unsupported`.
77
78 For more information, see the discussions in [#671], [#675], and [#730].
79
80 ### Added
81 - `unsupported` opt-in backend [#667]
82 - `windows_legacy` opt-in backend [#724]
83
84 ### Changed
85 - Implement Memory Sanitizer unpoisoning more precisely [#678]
86 - Relax MSRV for the `linux_raw` opt-in backend on ARM targets [#688]
87 - Use `getrandom` syscall on all RISC-V Linux targets [#699]
88 - Replaced `wasi` dependency with `wasip2` [#721]
89 - Enable `wasm_js` backend by default if the `wasm_js` feature is enabled [#730]
90
91 ### Removed
92 - Unstable `rustc-dep-of-std` crate feature [#694]
93
94 [0.3.4]: https://github.com/rust-random/getrandom/compare/v0.3.3...v0.3.4
95 [#667]: https://github.com/rust-random/getrandom/pull/667
96 [#671]: https://github.com/rust-random/getrandom/issues/671
97 [#675]: https://github.com/rust-random/getrandom/pull/675
98 [#678]: https://github.com/rust-random/getrandom/pull/678
99 [#688]: https://github.com/rust-random/getrandom/pull/688
100 [#694]: https://github.com/rust-random/getrandom/pull/694
101 [#699]: https://github.com/rust-random/getrandom/pull/699
102 [#721]: https://github.com/rust-random/getrandom/pull/721
103 [#724]: https://github.com/rust-random/getrandom/pull/724
104 [#730]: https://github.com/rust-random/getrandom/pull/730
105
106 ## [0.3.3] - 2025-05-09
107
108 ### Changed
109 - Doc improvements [#632] [#634] [#635]
110 - Add crate version to docs.rs links used in `compile_error!`s [#639]
111
112 ### Fixed
113 - Error handling in WASI p1 [#661]
114
115 [0.3.3]: https://github.com/rust-random/getrandom/compare/v0.3.2...v0.3.3
116 [#632]: https://github.com/rust-random/getrandom/pull/632
117 [#634]: https://github.com/rust-random/getrandom/pull/634
118 [#635]: https://github.com/rust-random/getrandom/pull/635
119 [#639]: https://github.com/rust-random/getrandom/pull/639
120 [#661]: https://github.com/rust-random/getrandom/pull/661
121
122 ## [0.3.2] - 2025-03-17
123
124 ### Added
125 - `efi_rng` opt-in backend [#570]
126 - `linux_raw` opt-in backend [#572]
127 - `.cargo/config.toml` example in the crate-level docs [#591]
128 - `getrandom_test_linux_without_fallback` configuration flag to test that file fallback
129 is not triggered in the `linux_android_with_fallback` backend [#605]
130 - Built-in support for `*-linux-none` targets [#618]
131 - Cygwin support [#626]
132
133 ### Changed
134 - Update `wasi` dependency to v0.14 [#594]
135 - Add `#[inline]` attribute to the inner functions [#596]
136 - Update WASI and Emscripten links in the crate-level docs [#597]
137 - Do not use `dlsym` on MUSL targets in the `linux_android_with_fallback` backend [#602]
138 - Remove `linux_android.rs` and use `getrandom.rs` instead [#603]
139 - Always use `RtlGenRandom` on Windows targets when compiling with pre-1.78 Rust [#610]
140 - Internal representation of the `Error` type [#614]
141 - Remove `windows-targets` dependency and use [`raw-dylib`] directly [#627]
142
143 ### Removed
144 - `Error::INTERNAL_START` and `Error::CUSTOM_START` associated constants [#614]
145
146 [0.3.2]: https://github.com/rust-random/getrandom/compare/v0.3.1...v0.3.2
147 [#570]: https://github.com/rust-random/getrandom/pull/570
148 [#572]: https://github.com/rust-random/getrandom/pull/572
149 [#591]: https://github.com/rust-random/getrandom/pull/591
150 [#594]: https://github.com/rust-random/getrandom/pull/594
151 [#596]: https://github.com/rust-random/getrandom/pull/596
152 [#597]: https://github.com/rust-random/getrandom/pull/597
153 [#602]: https://github.com/rust-random/getrandom/pull/602
154 [#603]: https://github.com/rust-random/getrandom/pull/603
155 [#605]: https://github.com/rust-random/getrandom/pull/605
156 [#610]: https://github.com/rust-random/getrandom/pull/610
157 [#614]: https://github.com/rust-random/getrandom/pull/614
158 [#618]: https://github.com/rust-random/getrandom/pull/618
159 [#626]: https://github.com/rust-random/getrandom/pull/626
160 [#627]: https://github.com/rust-random/getrandom/pull/627
161 [`raw-dylib`]: https://doc.rust-lang.org/reference/items/external-blocks.html?highlight=link#dylib-versus-raw-dylib
162
163 ## [0.3.1] - 2025-01-28
164
165 ### Fixed
166 - Build error on Android [#588]
167
168 [0.3.1]: https://github.com/rust-random/getrandom/compare/v0.3.0...v0.3.1
169 [#588]: https://github.com/rust-random/getrandom/pull/588
170
171 ## [0.3.0] - 2025-01-25
172
173 ### Breaking Changes
174
175 #### Changed
176 - Bump MSRV to 1.63 [#542]
177 - Rename `getrandom` and `getrandom_uninit` functions to `fill` and `fill_uninit` respectively [#532]
178
179 #### Removed
180 - `wasm32-wasi` target support (use `wasm32-wasip1` or `wasm32-wasip2` instead) [#499]
181 - `linux_disable_fallback`, `rdrand`, `js`, `test-in-browser`, and `custom` crate features
182 in favor of configuration flags [#504]
183 - `register_custom_getrandom!` macro [#504]
184 - Implementation of `From<NonZeroU32>` for `Error` and `Error::code` method [#507]
185 - Internet Explorer 11 support [#554]
186 - Target-specific associated `Error` constants [#562]
187
188 ### Changed
189 - Use `ProcessPrng` on Windows 10 and up, and use `RtlGenRandom` on older Windows versions [#415]
190 - Do not use locale-specific `strerror_r` for retrieving error code descriptions [#440]
191 - Avoid assuming `usize` is the native word size in the `rdrand` backend [#442]
192 - Do not read from `errno` when `libc` did not indicate error on Solaris [#448]
193 - Switch from `libpthread`'s mutex to `futex` on Linux and to `nanosleep`-based wait loop
194 on other targets in the `use_file` backend [#490]
195 - Do not retry on `EAGAIN` while polling `/dev/random` on Linux [#522]
196 - Remove separate codepath for Node.js in the `wasm_js` backend
197 (bumps minimum supported Node.js version to v19) [#557]
198 - Use `js_namespace` in the `wasm_js` backend [#559]
199
200 ### Added
201 - `wasm32-wasip1` and `wasm32-wasip2` support [#499]
202 - `getrandom_backend` configuration flag for selection of opt-in backends [#504]
203 - `Error::new_custom` method [#507]
204 - `rndr` opt-in backend [#512]
205 - Automatic MemorySanitizer support [#521] [#571]
206 - `u32` and `u64` functions for generating random values of the respective type [#544]
207 - `wasm32v1-none` support in the `wasm_js` backend [#560]
208 - `wasm_js` crate feature which allows users to enable the `wasm_js` opt-in backend [#574]
209
210 ### Fixed
211 - NetBSD fallback code based on `KERN_ARND` [#555]
212
213 [0.3.0]: https://github.com/rust-random/getrandom/compare/v0.2.15...v0.3.0
214 [#415]: https://github.com/rust-random/getrandom/pull/415
215 [#440]: https://github.com/rust-random/getrandom/pull/440
216 [#442]: https://github.com/rust-random/getrandom/pull/442
217 [#448]: https://github.com/rust-random/getrandom/pull/448
218 [#490]: https://github.com/rust-random/getrandom/pull/490
219 [#499]: https://github.com/rust-random/getrandom/pull/499
220 [#504]: https://github.com/rust-random/getrandom/pull/504
221 [#507]: https://github.com/rust-random/getrandom/pull/507
222 [#512]: https://github.com/rust-random/getrandom/pull/512
223 [#521]: https://github.com/rust-random/getrandom/pull/521
224 [#522]: https://github.com/rust-random/getrandom/pull/522
225 [#532]: https://github.com/rust-random/getrandom/pull/532
226 [#542]: https://github.com/rust-random/getrandom/pull/542
227 [#544]: https://github.com/rust-random/getrandom/pull/544
228 [#554]: https://github.com/rust-random/getrandom/pull/554
229 [#555]: https://github.com/rust-random/getrandom/pull/555
230 [#557]: https://github.com/rust-random/getrandom/pull/557
231 [#559]: https://github.com/rust-random/getrandom/pull/559
232 [#560]: https://github.com/rust-random/getrandom/pull/560
233 [#562]: https://github.com/rust-random/getrandom/pull/562
234 [#571]: https://github.com/rust-random/getrandom/pull/571
235 [#574]: https://github.com/rust-random/getrandom/pull/574
236
237 ## [0.2.17] - 2026-01-12
238 ### Fixed
239 - Use `doc_cfg` instead of `doc_auto_cfg` (partial backport of [#732]) [#768]
240 - `BCryptGenRandom` signature [#778]
241
242 [0.2.17]: https://github.com/rust-random/getrandom/compare/v0.2.16...v0.2.17
243 [#732]: https://github.com/rust-random/getrandom/pull/732
244 [#768]: https://github.com/rust-random/getrandom/pull/768
245 [#778]: https://github.com/rust-random/getrandom/pull/778
246
247 ## [0.2.16] - 2025-04-22
248 ### Added
249 - Cygwin support (backport of [#626]) [#654]
250
251 [0.2.16]: https://github.com/rust-random/getrandom/compare/v0.2.15...v0.2.16
252 [#654]: https://github.com/rust-random/getrandom/pull/654
253
254 ## [0.2.15] - 2024-05-06
255 ### Added
256 - Apple visionOS support [#410]
257
258 ### Changed
259 - Use `libc::getrandom` on DragonflyBSD, FreeBSD, illumos, and Solaris [#411] [#416] [#417] [#420]
260 - Unify `libc::getentropy`-based implementations [#418]
261
262 [0.2.15]: https://github.com/rust-random/getrandom/compare/v0.2.14...v0.2.15
263 [#410]: https://github.com/rust-random/getrandom/pull/410
264 [#411]: https://github.com/rust-random/getrandom/pull/411
265 [#416]: https://github.com/rust-random/getrandom/pull/416
266 [#417]: https://github.com/rust-random/getrandom/pull/417
267 [#418]: https://github.com/rust-random/getrandom/pull/418
268 [#420]: https://github.com/rust-random/getrandom/pull/420
269
270 ## [0.2.14] - 2024-04-08
271 ### Fixed
272 - Enable `/dev/urandom` fallback for MUSL-based Linux targets [#408]
273
274 [0.2.14]: https://github.com/rust-random/getrandom/compare/v0.2.13...v0.2.14
275 [#408]: https://github.com/rust-random/getrandom/pull/408
276
277 ## [0.2.13] - 2024-04-06
278 ### Added
279 - `linux_disable_fallback` crate feature to disable `/dev/urandom`-based fallback on Linux and
280 Android targets. Enabling this feature bumps minimum supported Linux kernel version to 3.17 and
281 Android API level to 23 (Marshmallow). [#396]
282
283 ### Changed
284 - Disable `/dev/urandom` fallback for Linux targets outside of the following `target_arch`es:
285 `aarch64`, `arm`, `powerpc`, `powerpc64`, `s390x`, `x86`, `x86_64` [#396]
286 - Do not catch `EPERM` error code on Android while checking availability of
287 the `getrandom` syscall [#396]
288
289 [0.2.13]: https://github.com/rust-random/getrandom/compare/v0.2.12...v0.2.13
290 [#396]: https://github.com/rust-random/getrandom/pull/396
291
292 ## [0.2.12] - 2024-01-09
293 ### Fixed
294 - Custom backend for targets without atomics [#385]
295
296 ### Changed
297 - Improve robustness of the Hermit backend and `sys_fill_exact` [#386]
298 - Raise minimum supported Apple OS versions to macOS 10.12 and iOS 10 [#388]
299
300 ### Added
301 - Document platform support policy [#387]
302
303 [0.2.12]: https://github.com/rust-random/getrandom/compare/v0.2.11...v0.2.12
304 [#385]: https://github.com/rust-random/getrandom/pull/385
305 [#386]: https://github.com/rust-random/getrandom/pull/386
306 [#387]: https://github.com/rust-random/getrandom/pull/387
307 [#388]: https://github.com/rust-random/getrandom/pull/388
308
309 ## [0.2.11] - 2023-11-08
310 ### Added
311 - GNU/Hurd support [#370]
312
313 ### Changed
314 - Renamed `__getrandom_internal` to `__GETRANDOM_INTERNAL` [#369]
315 - Updated link to Hermit docs [#374]
316
317 [0.2.11]: https://github.com/rust-random/getrandom/compare/v0.2.10...v0.2.11
318 [#369]: https://github.com/rust-random/getrandom/pull/369
319 [#370]: https://github.com/rust-random/getrandom/pull/370
320 [#374]: https://github.com/rust-random/getrandom/pull/374
321
322 ## [0.2.10] - 2023-06-06
323 ### Added
324 - Support for PS Vita (`armv7-sony-vita-newlibeabihf`) [#359]
325
326 ### Changed
327 - Use getentropy from libc on Emscripten targets [#362]
328
329 [0.2.10]: https://github.com/rust-random/getrandom/compare/v0.2.9...v0.2.10
330 [#359]: https://github.com/rust-random/getrandom/pull/359
331 [#362]: https://github.com/rust-random/getrandom/pull/362
332
333 ## [0.2.9] - 2023-04-06
334 ### Added
335 - AIX support [#282]
336 - `getrandom_uninit` function [#291]
337 - `wasm64-unknown-unknown` support [#303]
338 - tvOS and watchOS support [#317]
339 - QNX/nto support [#325]
340 - Support for `getrandom` syscall on NetBSD ≥ 10.0 [#331]
341 - `RtlGenRandom` fallback for non-UWP Windows [#337]
342
343 ### Breaking Changes
344 - Update MSRV to 1.36 [#291]
345
346 ### Fixed
347 - Solaris/OpenBSD/Dragonfly build [#301]
348
349 ### Changed
350 - Update MSRV to 1.36 [#291]
351 - Use getentropy on Emscripten [#307]
352 - Solaris: consistently use `/dev/random` source [#310]
353 - Move 3ds selection above rdrand/js/custom fallback [#312]
354 - Remove buffer zeroing from Node.js implementation [#315]
355 - Use `open` instead of `open64` [#326]
356 - Remove #cfg from bsd_arandom.rs [#332]
357 - Hermit: use `sys_read_entropy` syscall [#333]
358 - Eliminate potential panic in sys_fill_exact [#334]
359 - rdrand: Remove checking for 0 and !0 and instead check CPU family and do a self-test [#335]
360 - Move `__getrandom_custom` definition into a const block [#344]
361 - Switch the custom backend to Rust ABI [#347]
362
363 [0.2.9]: https://github.com/rust-random/getrandom/compare/v0.2.8...v0.2.9
364 [#282]: https://github.com/rust-random/getrandom/pull/282
365 [#291]: https://github.com/rust-random/getrandom/pull/291
366 [#301]: https://github.com/rust-random/getrandom/pull/301
367 [#303]: https://github.com/rust-random/getrandom/pull/303
368 [#307]: https://github.com/rust-random/getrandom/pull/307
369 [#310]: https://github.com/rust-random/getrandom/pull/310
370 [#312]: https://github.com/rust-random/getrandom/pull/312
371 [#315]: https://github.com/rust-random/getrandom/pull/315
372 [#317]: https://github.com/rust-random/getrandom/pull/317
373 [#325]: https://github.com/rust-random/getrandom/pull/325
374 [#326]: https://github.com/rust-random/getrandom/pull/326
375 [#331]: https://github.com/rust-random/getrandom/pull/331
376 [#332]: https://github.com/rust-random/getrandom/pull/332
377 [#333]: https://github.com/rust-random/getrandom/pull/333
378 [#334]: https://github.com/rust-random/getrandom/pull/334
379 [#335]: https://github.com/rust-random/getrandom/pull/335
380 [#337]: https://github.com/rust-random/getrandom/pull/337
381 [#344]: https://github.com/rust-random/getrandom/pull/344
382 [#347]: https://github.com/rust-random/getrandom/pull/347
383
384 ## [0.2.8] - 2022-10-20
385 ### Changed
386 - The [Web Cryptography API] will now be preferred on `wasm32-unknown-unknown`
387 when using the `"js"` feature, even on Node.js [#284] [#295]
388
389 ### Added
390 - Added benchmarks to track buffer initialization cost [#272]
391
392 ### Fixed
393 - Use `$crate` in `register_custom_getrandom!` [#270]
394
395 ### Documentation
396 - Add information about enabling `"js"` feature [#280]
397 - Fix link to `wasm-bindgen` [#278]
398 - Document the varied implementations for underlying randomness sources [#276]
399
400 [0.2.8]: https://github.com/rust-random/getrandom/compare/v0.2.7...v0.2.8
401 [#284]: https://github.com/rust-random/getrandom/pull/284
402 [#295]: https://github.com/rust-random/getrandom/pull/295
403 [#272]: https://github.com/rust-random/getrandom/pull/272
404 [#270]: https://github.com/rust-random/getrandom/pull/270
405 [#280]: https://github.com/rust-random/getrandom/pull/280
406 [#278]: https://github.com/rust-random/getrandom/pull/278
407 [#276]: https://github.com/rust-random/getrandom/pull/276
408 [Web Cryptography API]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API
409
410 ## [0.2.7] - 2022-06-14
411 ### Changed
412 - Update `wasi` dependency to `0.11` [#253]
413
414 ### Fixed
415 - Use `AtomicPtr` instead of `AtomicUsize` for Strict Provenance compatibility. [#263]
416
417 ### Documentation
418 - Add comments explaining use of fallback mechanisms [#257] [#260]
419
420 [0.2.7]: https://github.com/rust-random/getrandom/compare/v0.2.6...v0.2.7
421 [#263]: https://github.com/rust-random/getrandom/pull/263
422 [#260]: https://github.com/rust-random/getrandom/pull/260
423 [#253]: https://github.com/rust-random/getrandom/pull/253
424 [#257]: https://github.com/rust-random/getrandom/pull/257
425
426 ## [0.2.6] - 2022-03-28
427 ### Added
428 - Nintendo 3DS (`armv6k-nintendo-3ds`) support [#248]
429
430 ### Changed
431 - Retry `open` when interrupted [#252]
432
433 [0.2.6]: https://github.com/rust-random/getrandom/compare/v0.2.5...v0.2.6
434 [#248]: https://github.com/rust-random/getrandom/pull/248
435 [#252]: https://github.com/rust-random/getrandom/pull/252
436
437 ## [0.2.5] - 2022-02-22
438 ### Added
439 - ESP-IDF targets (`*‑espidf`) support [#245]
440
441 ### Fixed
442 - Webpack warning caused by dynamic require [#234]
443 - Error checking on iOS for `SecRandomCopyBytes` [#244]
444
445 [0.2.5]: https://github.com/rust-random/getrandom/compare/v0.2.4...v0.2.5
446 [#234]: https://github.com/rust-random/getrandom/pull/234
447 [#244]: https://github.com/rust-random/getrandom/pull/244
448 [#245]: https://github.com/rust-random/getrandom/pull/245
449
450 ## [0.2.4] - 2021-12-13
451 ### Changed
452 - Use explicit imports in the `js` backend [#220]
453 - Use `/dev/urandom` on Redox instead of `rand:` [#222]
454 - Use `NonZeroU32::new_unchecked` to convert wasi error [#233]
455
456 ### Added
457 - SOLID targets (`*-kmc-solid_*`) support [#235]
458 - Limited Hermit (`x86_64-unknown-hermit`) support [#236]
459
460 [0.2.4]: https://github.com/rust-random/getrandom/compare/v0.2.3...v0.2.4
461 [#220]: https://github.com/rust-random/getrandom/pull/220
462 [#222]: https://github.com/rust-random/getrandom/pull/222
463 [#233]: https://github.com/rust-random/getrandom/pull/233
464 [#235]: https://github.com/rust-random/getrandom/pull/235
465 [#236]: https://github.com/rust-random/getrandom/pull/236
466
467 ## [0.2.3] - 2021-04-10
468 ### Changed
469 - Replace build.rs with link attributes. [#205]
470 - Add support for getrandom syscall on DragonFly BSD. [#210]
471 - Improve Node.js detection. [#215]
472
473 [0.2.3]: https://github.com/rust-random/getrandom/compare/v0.2.2...v0.2.3
474 [#205]: https://github.com/rust-random/getrandom/pull/205
475 [#210]: https://github.com/rust-random/getrandom/pull/210
476 [#215]: https://github.com/rust-random/getrandom/pull/215
477
478 ## [0.2.2] - 2021-01-19
479 ### Changed
480 - Forward `rustc-dep-of-std` to dependencies. [#198]
481 - Highlight feature-dependent functionality in documentation using the `doc_cfg` feature. [#200]
482
483 [0.2.2]: https://github.com/rust-random/getrandom/compare/v0.2.1...v0.2.2
484 [#198]: https://github.com/rust-random/getrandom/pull/198
485 [#200]: https://github.com/rust-random/getrandom/pull/200
486
487 ## [0.2.1] - 2021-01-03
488 ### Changed
489 - Update `cfg-if` to v1.0. [#166]
490 - Update `wasi` to v0.10. [#167]
491
492 ### Fixed
493 - Multithreaded WASM support. [#165]
494
495 ### Removed
496 - Windows XP support. [#177]
497 - Direct `stdweb` support. [#178]
498 - CloudABI support. [#184]
499
500 [0.2.1]: https://github.com/rust-random/getrandom/compare/v0.2.0...v0.2.1
501 [#165]: https://github.com/rust-random/getrandom/pull/165
502 [#166]: https://github.com/rust-random/getrandom/pull/166
503 [#167]: https://github.com/rust-random/getrandom/pull/167
504 [#177]: https://github.com/rust-random/getrandom/pull/177
505 [#178]: https://github.com/rust-random/getrandom/pull/178
506 [#184]: https://github.com/rust-random/getrandom/pull/184
507
508 ## [0.2.0] - 2020-09-10
509 ### Features for using getrandom on unsupported targets
510
511 The following (off by default) Cargo features have been added:
512 - `"rdrand"` - use the RDRAND instruction on `no_std` `x86`/`x86_64` targets [#133]
513 - `"js"` - use JavaScript calls on `wasm32-unknown-unknown` [#149]
514 - Replaces the `stdweb` and `wasm-bindgen` features (which are removed)
515 - `"custom"` - allows a user to specify a custom implementation [#109]
516
517 ### Breaking Changes
518 - Unsupported targets no longer compile [#107]
519 - Change/Add `Error` constants [#120]
520 - Only impl `std` traits when the `"std"` Cargo feature is specified [#106]
521 - Remove official support for Hermit, L4Re, and UEFI [#133]
522 - Remove optional `"log"` dependency [#131]
523 - Update minimum supported Linux kernel to 2.6.32 [#153]
524 - Update MSRV to 1.34 [#159]
525
526 [0.2.0]: https://github.com/rust-random/getrandom/compare/v0.1.16...v0.2.0
527 [#106]: https://github.com/rust-random/getrandom/pull/106
528 [#107]: https://github.com/rust-random/getrandom/pull/107
529 [#109]: https://github.com/rust-random/getrandom/pull/109
530 [#120]: https://github.com/rust-random/getrandom/pull/120
531 [#131]: https://github.com/rust-random/getrandom/pull/131
532 [#133]: https://github.com/rust-random/getrandom/pull/133
533 [#149]: https://github.com/rust-random/getrandom/pull/149
534 [#153]: https://github.com/rust-random/getrandom/pull/153
535 [#159]: https://github.com/rust-random/getrandom/pull/159
536
537 ## [0.1.16] - 2020-12-31
538 ### Changed
539 - Update `cfg-if` to v1.0. [#173]
540 - Implement `std::error::Error` for the `Error` type on additional targets. [#169]
541
542 ### Fixed
543 - Multithreaded WASM support. [#171]
544
545 [0.1.16]: https://github.com/rust-random/getrandom/compare/v0.1.15...v0.1.16
546 [#173]: https://github.com/rust-random/getrandom/pull/173
547 [#171]: https://github.com/rust-random/getrandom/pull/171
548 [#169]: https://github.com/rust-random/getrandom/pull/169
549
550 ## [0.1.15] - 2020-09-10
551 ### Changed
552 - Added support for Internet Explorer 11 [#139]
553 - Fix Webpack require warning with `wasm-bindgen` [#137]
554
555 [0.1.15]: https://github.com/rust-random/getrandom/compare/v0.1.14...v0.1.15
556 [#137]: https://github.com/rust-random/getrandom/pull/137
557 [#139]: https://github.com/rust-random/getrandom/pull/139
558
559 ## [0.1.14] - 2020-01-07
560 ### Changed
561 - Remove use of spin-locks in the `use_file` module. [#125]
562 - Update `wasi` to v0.9. [#126]
563 - Do not read errno value on DragonFlyBSD to fix compilation failure. [#129]
564
565 [0.1.14]: https://github.com/rust-random/getrandom/compare/v0.1.13...v0.1.14
566 [#125]: https://github.com/rust-random/getrandom/pull/125
567 [#126]: https://github.com/rust-random/getrandom/pull/126
568 [#129]: https://github.com/rust-random/getrandom/pull/129
569
570 ## [0.1.13] - 2019-08-25
571 ### Added
572 - VxWorks targets support. [#86]
573
574 ### Changed
575 - If zero-length slice is passed to the `getrandom` function, always return
576 `Ok(())` immediately without doing any calls to the underlying operating
577 system. [#104]
578 - Use the `kern.arandom` sysctl on NetBSD. [#115]
579
580 ### Fixed
581 - Bump `cfg-if` minimum version from 0.1.0 to 0.1.2. [#112]
582 - Typos and bad doc links. [#117]
583
584 [0.1.13]: https://github.com/rust-random/getrandom/compare/v0.1.12...v0.1.13
585 [#86]: https://github.com/rust-random/getrandom/pull/86
586 [#104]: https://github.com/rust-random/getrandom/pull/104
587 [#112]: https://github.com/rust-random/getrandom/pull/112
588 [#115]: https://github.com/rust-random/getrandom/pull/115
589 [#117]: https://github.com/rust-random/getrandom/pull/117
590
591 ## [0.1.12] - 2019-08-18
592 ### Changed
593 - Update wasi dependency from v0.5 to v0.7. [#100]
594
595 [0.1.12]: https://github.com/rust-random/getrandom/compare/v0.1.11...v0.1.12
596 [#100]: https://github.com/rust-random/getrandom/pull/100
597
598 ## [0.1.11] - 2019-08-25
599 ### Fixed
600 - Implement `std`-dependent traits for selected targets even if `std`
601 feature is disabled. (backward compatibility with v0.1.8) [#96]
602
603 [0.1.11]: https://github.com/rust-random/getrandom/compare/v0.1.10...v0.1.11
604 [#96]: https://github.com/rust-random/getrandom/pull/96
605
606 ## [0.1.10] - 2019-08-18 [YANKED]
607 ### Changed
608 - Use the dummy implementation on `wasm32-unknown-unknown` even with the
609 disabled `dummy` feature. [#90]
610
611 ### Fixed
612 - Fix CSP error for `wasm-bindgen`. [#92]
613
614 [0.1.10]: https://github.com/rust-random/getrandom/compare/v0.1.9...v0.1.10
615 [#90]: https://github.com/rust-random/getrandom/pull/90
616 [#92]: https://github.com/rust-random/getrandom/pull/92
617
618 ## [0.1.9] - 2019-08-14 [YANKED]
619 ### Changed
620 - Remove `std` dependency for opening and reading files. [#58]
621 - Use `wasi` instead of `libc` on WASI target. [#64]
622 - By default emit a compile-time error when built for an unsupported target.
623 This behaviour can be disabled by using the `dummy` feature. [#71]
624
625 ### Added
626 - Add support for UWP targets. [#69]
627 - Add unstable `rustc-dep-of-std` feature. [#78]
628
629 [0.1.9]: https://github.com/rust-random/getrandom/compare/v0.1.8...v0.1.9
630 [#58]: https://github.com/rust-random/getrandom/pull/58
631 [#64]: https://github.com/rust-random/getrandom/pull/64
632 [#69]: https://github.com/rust-random/getrandom/pull/69
633 [#71]: https://github.com/rust-random/getrandom/pull/71
634 [#78]: https://github.com/rust-random/getrandom/pull/78
635
636 ## [0.1.8] - 2019-07-29
637 ### Changed
638 - Explicitly specify types to arguments of 'libc::syscall'. [#74]
639
640 [0.1.8]: https://github.com/rust-random/getrandom/compare/v0.1.7...v0.1.8
641 [#74]: https://github.com/rust-random/getrandom/pull/74
642
643 ## [0.1.7] - 2019-07-29
644 ### Added
645 - Support for hermit and l4re. [#61]
646 - `Error::raw_os_error` method, `Error::INTERNAL_START` and
647 `Error::CUSTOM_START` constants. Use `libc` for retrieving OS error descriptions. [#54]
648
649 ### Changed
650 - Remove `lazy_static` dependency and use custom structures for lock-free
651 initialization. [#51] [#52]
652 - Try `getrandom()` first on FreeBSD. [#57]
653
654 ### Removed
655 - Bitrig support. [#56]
656
657 ### Deprecated
658 - `Error::UNKNOWN`, `Error::UNAVAILABLE`. [#54]
659
660 [0.1.7]: https://github.com/rust-random/getrandom/compare/v0.1.6...v0.1.7
661 [#51]: https://github.com/rust-random/getrandom/pull/51
662 [#52]: https://github.com/rust-random/getrandom/pull/52
663 [#54]: https://github.com/rust-random/getrandom/pull/54
664 [#56]: https://github.com/rust-random/getrandom/pull/56
665 [#57]: https://github.com/rust-random/getrandom/pull/57
666 [#61]: https://github.com/rust-random/getrandom/pull/61
667
668 ## [0.1.6] - 2019-06-30
669 ### Changed
670 - Minor change of RDRAND AMD bug handling. [#48]
671
672 [0.1.6]: https://github.com/rust-random/getrandom/compare/v0.1.5...v0.1.6
673 [#48]: https://github.com/rust-random/getrandom/pull/48
674
675 ## [0.1.5] - 2019-06-29
676 ### Fixed
677 - Use shared `File` instead of shared file descriptor. [#44]
678 - Workaround for RDRAND hardware bug present on some AMD CPUs. [#43]
679
680 ### Changed
681 - Try `getentropy` and then fallback to `/dev/random` on macOS. [#38]
682
683 [0.1.5]: https://github.com/rust-random/getrandom/compare/v0.1.4...v0.1.5
684 [#38]: https://github.com/rust-random/getrandom/issues/38
685 [#43]: https://github.com/rust-random/getrandom/pull/43
686 [#44]: https://github.com/rust-random/getrandom/issues/44
687
688 ## [0.1.4] - 2019-06-28
689 ### Added
690 - Add support for `x86_64-unknown-uefi` target by using RDRAND with CPUID
691 feature detection. [#30]
692
693 ### Fixed
694 - Fix long buffer issues on Windows and Linux. [#31] [#32]
695 - Check `EPERM` in addition to `ENOSYS` on Linux. [#37]
696
697 ### Changed
698 - Improve efficiency by sharing file descriptor across threads. [#13]
699 - Remove `cloudabi`, `winapi`, and `fuchsia-cprng` dependencies. [#40]
700 - Improve RDRAND implementation. [#24]
701 - Don't block during syscall detection on Linux. [#26]
702 - Increase consistency with libc implementation on FreeBSD. [#36]
703 - Apply `rustfmt`. [#39]
704
705 [0.1.4]: https://github.com/rust-random/getrandom/compare/v0.1.3...v0.1.4
706 [#30]: https://github.com/rust-random/getrandom/pull/30
707 [#13]: https://github.com/rust-random/getrandom/issues/13
708 [#40]: https://github.com/rust-random/getrandom/pull/40
709 [#26]: https://github.com/rust-random/getrandom/pull/26
710 [#24]: https://github.com/rust-random/getrandom/pull/24
711 [#39]: https://github.com/rust-random/getrandom/pull/39
712 [#36]: https://github.com/rust-random/getrandom/pull/36
713 [#31]: https://github.com/rust-random/getrandom/issues/31
714 [#32]: https://github.com/rust-random/getrandom/issues/32
715 [#37]: https://github.com/rust-random/getrandom/issues/37
716
717 ## [0.1.3] - 2019-05-15
718 - Update for `wasm32-unknown-wasi` being renamed to `wasm32-wasi`, and for
719 WASI being categorized as an OS.
720
721 [0.1.3]: https://github.com/rust-random/getrandom/compare/v0.1.2...v0.1.3
722
723 ## [0.1.2] - 2019-04-06
724 - Add support for `wasm32-unknown-wasi` target.
725
726 [0.1.2]: https://github.com/rust-random/getrandom/compare/v0.1.1...v0.1.2
727
728 ## [0.1.1] - 2019-04-05
729 - Enable std functionality for CloudABI by default.
730
731 [0.1.1]: https://github.com/rust-random/getrandom/compare/v0.1.0...v0.1.1
732
733 ## [0.1.0] - 2019-03-23
734 Publish initial implementation.
735
736 [0.1.0]: https://github.com/rust-random/getrandom/compare/v0.0.0...v0.1.0
737
738 ## [0.0.0] - 2019-01-19
739 Publish an empty template library.
740
741 [0.0.0]: https://github.com/rust-random/getrandom/releases/tag/v0.0.0