Skip to content

Commit 6bbd092

Browse files
committed
Added x86_64-unknown-hermit support
1 parent 0d0404b commit 6bbd092

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
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`)
@@ -203,6 +204,8 @@ cfg_if! {
203204
} else if #[cfg(target_os = "vxworks")] {
204205
mod util_libc;
205206
#[path = "vxworks.rs"] mod imp;
207+
} else if #[cfg(all(target_arch = "x86_64", target_os = "hermit"))] {
208+
#[path = "rdrand.rs"] mod imp;
206209
} else if #[cfg(windows)] {
207210
#[path = "windows.rs"] mod imp;
208211
} else if #[cfg(all(target_arch = "x86_64", target_env = "sgx"))] {

0 commit comments

Comments
 (0)