]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
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](http://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.2.0] - 2020-09-10 | |
8 | ### Features for using getrandom on unsupported targets | |
9 | ||
10 | The following (off by default) Cargo features have been added: | |
11 | - `"rdrand"` - use the RDRAND instruction on `no_std` `x86`/`x86_64` targets [#133] | |
12 | - `"js"` - use JavaScript calls on `wasm32-unknown-unknown` [#149] | |
13 | - Replaces the `stdweb` and `wasm-bindgen` features (which are removed) | |
14 | - `"custom"` - allows a user to specify a custom implementation [#109] | |
15 | ||
16 | ### Breaking Changes | |
17 | - Unsupported targets no longer compile [#107] | |
18 | - Change/Add `Error` constants [#120] | |
19 | - Only impl `std` traits when the `"std"` Cargo feature is specified [#106] | |
20 | - Remove offical support for Hermit, L4Re, and UEFI [#133] | |
21 | - Remove optional `"log"` dependancy [#131] | |
22 | - Update minimum supported Linux kernel to 2.6.32 [#153] | |
23 | - Update MSRV to 1.34 [#159] | |
24 | ||
25 | [#106]: https://github.com/rust-random/getrandom/pull/106 | |
26 | [#107]: https://github.com/rust-random/getrandom/pull/107 | |
27 | [#109]: https://github.com/rust-random/getrandom/pull/109 | |
28 | [#120]: https://github.com/rust-random/getrandom/pull/120 | |
29 | [#131]: https://github.com/rust-random/getrandom/pull/131 | |
30 | [#133]: https://github.com/rust-random/getrandom/pull/133 | |
31 | [#149]: https://github.com/rust-random/getrandom/pull/149 | |
32 | [#153]: https://github.com/rust-random/getrandom/pull/153 | |
33 | [#159]: https://github.com/rust-random/getrandom/pull/159 | |
34 | ||
35 | ## [0.1.15] - 2020-09-10 | |
36 | ### Changed | |
37 | - Added support for Internet Explorer 11 [#139] | |
38 | - Fix Webpack require warning with `wasm-bindgen` [#137] | |
39 | ||
40 | [#137]: https://github.com/rust-random/getrandom/pull/137 | |
41 | [#139]: https://github.com/rust-random/getrandom/pull/139 | |
42 | ||
43 | ## [0.1.14] - 2020-01-07 | |
44 | ### Changed | |
45 | - Remove use of spin-locks in the `use_file` module. [#125] | |
46 | - Update `wasi` to v0.9. [#126] | |
47 | - Do not read errno value on DragonFlyBSD to fix compilation failure. [#129] | |
48 | ||
49 | [#125]: https://github.com/rust-random/getrandom/pull/125 | |
50 | [#126]: https://github.com/rust-random/getrandom/pull/126 | |
51 | [#129]: https://github.com/rust-random/getrandom/pull/129 | |
52 | ||
53 | ## [0.1.13] - 2019-08-25 | |
54 | ### Added | |
55 | - VxWorks targets support. [#86] | |
56 | ||
57 | ### Changed | |
58 | - If zero-length slice is passed to the `getrandom` function, always return | |
59 | `Ok(())` immediately without doing any calls to the underlying operating | |
60 | system. [#104] | |
61 | - Use the `kern.arandom` sysctl on NetBSD. [#115] | |
62 | ||
63 | ### Fixed | |
64 | - Bump `cfg-if` minimum version from 0.1.0 to 0.1.2. [#112] | |
65 | - Typos and bad doc links. [#117] | |
66 | ||
67 | [#86]: https://github.com/rust-random/getrandom/pull/86 | |
68 | [#104]: https://github.com/rust-random/getrandom/pull/104 | |
69 | [#112]: https://github.com/rust-random/getrandom/pull/112 | |
70 | [#115]: https://github.com/rust-random/getrandom/pull/115 | |
71 | [#117]: https://github.com/rust-random/getrandom/pull/117 | |
72 | ||
73 | ## [0.1.12] - 2019-08-18 | |
74 | ### Changed | |
75 | - Update wasi dependency from v0.5 to v0.7. [#100] | |
76 | ||
77 | [#100]: https://github.com/rust-random/getrandom/pull/100 | |
78 | ||
79 | ## [0.1.11] - 2019-08-25 | |
80 | ### Fixed | |
81 | - Implement `std`-dependent traits for selected targets even if `std` | |
82 | feature is disabled. (backward compatibility with v0.1.8) [#96] | |
83 | ||
84 | [#96]: https://github.com/rust-random/getrandom/pull/96 | |
85 | ||
86 | ## [0.1.10] - 2019-08-18 [YANKED] | |
87 | ### Changed | |
88 | - Use the dummy implementation on `wasm32-unknown-unknown` even with the | |
89 | disabled `dummy` feature. [#90] | |
90 | ||
91 | ### Fixed | |
92 | - Fix CSP error for `wasm-bindgen`. [#92] | |
93 | ||
94 | [#90]: https://github.com/rust-random/getrandom/pull/90 | |
95 | [#92]: https://github.com/rust-random/getrandom/pull/92 | |
96 | ||
97 | ## [0.1.9] - 2019-08-14 [YANKED] | |
98 | ### Changed | |
99 | - Remove `std` dependency for opening and reading files. [#58] | |
100 | - Use `wasi` isntead of `libc` on WASI target. [#64] | |
101 | - By default emit a compile-time error when built for an unsupported target. | |
102 | This behaviour can be disabled by using the `dummy` feature. [#71] | |
103 | ||
104 | ### Added | |
105 | - Add support for UWP targets. [#69] | |
106 | - Add unstable `rustc-dep-of-std` feature. [#78] | |
107 | ||
108 | [#58]: https://github.com/rust-random/getrandom/pull/58 | |
109 | [#64]: https://github.com/rust-random/getrandom/pull/64 | |
110 | [#69]: https://github.com/rust-random/getrandom/pull/69 | |
111 | [#71]: https://github.com/rust-random/getrandom/pull/71 | |
112 | [#78]: https://github.com/rust-random/getrandom/pull/78 | |
113 | ||
114 | ## [0.1.8] - 2019-07-29 | |
115 | ### Changed | |
116 | - Explicitly specify types to arguments of 'libc::syscall'. [#74] | |
117 | ||
118 | [#74]: https://github.com/rust-random/getrandom/pull/74 | |
119 | ||
120 | ## [0.1.7] - 2019-07-29 | |
121 | ### Added | |
122 | - Support for hermit and l4re. [#61] | |
123 | - `Error::raw_os_error` method, `Error::INTERNAL_START` and | |
124 | `Error::CUSTOM_START` constants. Use `libc` for retrieving OS error descriptions. [#54] | |
125 | ||
126 | ### Changed | |
127 | - Remove `lazy_static` dependency and use custom structures for lock-free | |
128 | initialization. [#51] [#52] | |
129 | - Try `getrandom()` first on FreeBSD. [#57] | |
130 | ||
131 | ### Removed | |
132 | - Bitrig support. [#56] | |
133 | ||
134 | ### Deprecated | |
135 | - `Error::UNKNOWN`, `Error::UNAVAILABLE`. [#54] | |
136 | ||
137 | [#51]: https://github.com/rust-random/getrandom/pull/51 | |
138 | [#52]: https://github.com/rust-random/getrandom/pull/52 | |
139 | [#54]: https://github.com/rust-random/getrandom/pull/54 | |
140 | [#56]: https://github.com/rust-random/getrandom/pull/56 | |
141 | [#57]: https://github.com/rust-random/getrandom/pull/57 | |
142 | [#61]: https://github.com/rust-random/getrandom/pull/61 | |
143 | ||
144 | ## [0.1.6] - 2019-06-30 | |
145 | ### Changed | |
146 | - Minor change of RDRAND AMD bug handling. [#48] | |
147 | ||
148 | [#48]: https://github.com/rust-random/getrandom/pull/48 | |
149 | ||
150 | ## [0.1.5] - 2019-06-29 | |
151 | ### Fixed | |
152 | - Use shared `File` instead of shared file descriptor. [#44] | |
153 | - Workaround for RDRAND hardware bug present on some AMD CPUs. [#43] | |
154 | ||
155 | ### Changed | |
156 | - Try `getentropy` and then fallback to `/dev/random` on macOS. [#38] | |
157 | ||
158 | [#38]: https://github.com/rust-random/getrandom/issues/38 | |
159 | [#43]: https://github.com/rust-random/getrandom/pull/43 | |
160 | [#44]: https://github.com/rust-random/getrandom/issues/44 | |
161 | ||
162 | ## [0.1.4] - 2019-06-28 | |
163 | ### Added | |
164 | - Add support for `x86_64-unknown-uefi` target by using RDRAND with CPUID | |
165 | feature detection. [#30] | |
166 | ||
167 | ### Fixed | |
168 | - Fix long buffer issues on Windows and Linux. [#31] [#32] | |
169 | - Check `EPERM` in addition to `ENOSYS` on Linux. [#37] | |
170 | ||
171 | ### Changed | |
172 | - Improve efficiency by sharing file descriptor across threads. [#13] | |
173 | - Remove `cloudabi`, `winapi`, and `fuchsia-cprng` dependencies. [#40] | |
174 | - Improve RDRAND implementation. [#24] | |
175 | - Don't block during syscall detection on Linux. [#26] | |
176 | - Increase consistency with libc implementation on FreeBSD. [#36] | |
177 | - Apply `rustfmt`. [#39] | |
178 | ||
179 | [#30]: https://github.com/rust-random/getrandom/pull/30 | |
180 | [#13]: https://github.com/rust-random/getrandom/issues/13 | |
181 | [#40]: https://github.com/rust-random/getrandom/pull/40 | |
182 | [#26]: https://github.com/rust-random/getrandom/pull/26 | |
183 | [#24]: https://github.com/rust-random/getrandom/pull/24 | |
184 | [#39]: https://github.com/rust-random/getrandom/pull/39 | |
185 | [#36]: https://github.com/rust-random/getrandom/pull/36 | |
186 | [#31]: https://github.com/rust-random/getrandom/issues/31 | |
187 | [#32]: https://github.com/rust-random/getrandom/issues/32 | |
188 | [#37]: https://github.com/rust-random/getrandom/issues/37 | |
189 | ||
190 | ## [0.1.3] - 2019-05-15 | |
191 | - Update for `wasm32-unknown-wasi` being renamed to `wasm32-wasi`, and for | |
192 | WASI being categorized as an OS. | |
193 | ||
194 | ## [0.1.2] - 2019-04-06 | |
195 | - Add support for `wasm32-unknown-wasi` target. | |
196 | ||
197 | ## [0.1.1] - 2019-04-05 | |
198 | - Enable std functionality for CloudABI by default. | |
199 | ||
200 | ## [0.1.0] - 2019-03-23 | |
201 | Publish initial implementation. | |
202 | ||
203 | ## [0.0.0] - 2019-01-19 | |
204 | Publish an empty template library. |