File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -306,10 +306,10 @@ jobs:
306306 components : rust-src
307307 override : true
308308 - uses : Swatinem/rust-cache@v1
309+ - name : Hermit (x86-64 only)
310+ run : cargo build -Z build-std=core --target=x86_64-unknown-hermit
309311 - name : UEFI (RDRAND)
310312 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
313313 - name : L4Re (RDRAND)
314314 run : cargo build -Z build-std=core --features=rdrand --target=x86_64-unknown-l4re-uclibc
315315 - 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.
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ Unreleased]
8+ - Added x86_64-unknown-hermit support [ #236 ]
9+
10+ [ #236 ] : https://github.com/rust-random/getrandom/pull/236
11+
712## [ 0.2.3] - 2021-04-10
813### Changed
914- Replace build.rs with link attributes. [ #205 ]
Original file line number Diff line number Diff line change 2424//! | Fuchsia OS | `*‑fuchsia` | [`cprng_draw`][11]
2525//! | Redox | `*‑redox` | [`/dev/urandom`][12]
2626//! | Haiku | `*‑haiku` | `/dev/random` (identical to `/dev/urandom`)
27+ //! | Hermit | `x86_64-*-hermit` | [`RDRAND`][18]
2728//! | SGX | `x86_64‑*‑sgx` | [RDRAND][18]
2829//! | VxWorks | `*‑wrs‑vxworks‑*` | `randABytes` after checking entropy pool initialization with `randSecure`
2930//! | Emscripten | `*‑emscripten` | `/dev/random` (identical to `/dev/urandom`)
@@ -201,6 +202,8 @@ cfg_if! {
201202 #[ path = "openbsd.rs" ] mod imp;
202203 } else if #[ cfg( target_os = "wasi" ) ] {
203204 #[ path = "wasi.rs" ] mod imp;
205+ } else if #[ cfg( all( target_arch = "x86_64" , target_os = "hermit" ) ) ] {
206+ #[ path = "rdrand.rs" ] mod imp;
204207 } else if #[ cfg( target_os = "vxworks" ) ] {
205208 mod util_libc;
206209 #[ path = "vxworks.rs" ] mod imp;
You can’t perform that action at this time.
0 commit comments