File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -306,10 +306,10 @@ jobs:
306
306
components : rust-src
307
307
override : true
308
308
- uses : Swatinem/rust-cache@v1
309
+ - name : Hermit (x86-64 only)
310
+ run : cargo build -Z build-std=core --target=x86_64-unknown-hermit
309
311
- name : UEFI (RDRAND)
310
312
run : cargo build -Z build-std=core --features=rdrand --target=x86_64-unknown-uefi
311
- - name : Hermit (RDRAND)
312
- run : cargo build -Z build-std=core --features=rdrand --target=x86_64-unknown-hermit
313
313
- name : L4Re (RDRAND)
314
314
run : cargo build -Z build-std=core --features=rdrand --target=x86_64-unknown-l4re-uclibc
315
315
- name : VxWorks
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ Unreleased]
8
+ - Added x86_64-unknown-hermit support [ #236 ]
9
+
10
+ [ #236 ] : https://github.com/rust-random/getrandom/pull/236
11
+
7
12
## [ 0.2.3] - 2021-04-10
8
13
### Changed
9
14
- Replace build.rs with link attributes. [ #205 ]
Original file line number Diff line number Diff line change 24
24
//! | Fuchsia OS | `*‑fuchsia` | [`cprng_draw`][11]
25
25
//! | Redox | `*‑redox` | [`/dev/urandom`][12]
26
26
//! | Haiku | `*‑haiku` | `/dev/random` (identical to `/dev/urandom`)
27
+ //! | Hermit | `x86_64-*-hermit` | [`RDRAND`][18]
27
28
//! | SGX | `x86_64‑*‑sgx` | [RDRAND][18]
28
29
//! | VxWorks | `*‑wrs‑vxworks‑*` | `randABytes` after checking entropy pool initialization with `randSecure`
29
30
//! | Emscripten | `*‑emscripten` | `/dev/random` (identical to `/dev/urandom`)
@@ -201,6 +202,8 @@ cfg_if! {
201
202
#[ path = "openbsd.rs" ] mod imp;
202
203
} else if #[ cfg( target_os = "wasi" ) ] {
203
204
#[ path = "wasi.rs" ] mod imp;
205
+ } else if #[ cfg( all( target_arch = "x86_64" , target_os = "hermit" ) ) ] {
206
+ #[ path = "rdrand.rs" ] mod imp;
204
207
} else if #[ cfg( target_os = "vxworks" ) ] {
205
208
mod util_libc;
206
209
#[ path = "vxworks.rs" ] mod imp;
You can’t perform that action at this time.
0 commit comments