Lines Matching +full:wasm +full:- +full:pack
3 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4 // https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5 // <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
14 //! | ----------------- | ------------------ | --------------
27 //! | Hermit | `x86_64-*-hermit` | [`RDRAND`]
30 //! | ESP-IDF | `*‑espidf` | [`esp_fill_random`]
35 //! | SOLID | `*-kmc-solid_*` | `SOLID_RNG_SampleRandomBytes`
63 //! [`wasm32-wasi`](https://github.com/CraneStation/wasi) and
64 //! [`wasm32-unknown-emscripten`](https://www.hellorust.com/setup/emscripten/)
65 //! targets. However, the `wasm32-unknown-unknown` target (i.e. the target used
66 //! by `wasm-pack`) is not automatically
74 //! [described above](#supported-targets) using the
75 //! [wasm-bindgen](https://github.com/rust-lang/rust-bindgen) toolchain.
77 //! This feature has no effect on targets other than `wasm32-unknown-unknown`.
114 //! entropy yet. To avoid returning low-entropy bytes, we first poll
125 //! [1]: http://man7.org/linux/man-pages/man2/getrandom.2.html
126 //! [2]: http://man7.org/linux/man-pages/man4/urandom.4.html
127 //! [3]: https://www.unix.com/man-page/mojave/2/getentropy/
128 //! [4]: https://www.unix.com/man-page/mojave/4/random/
129 //! [5]: https://www.freebsd.org/cgi/man.cgi?query=getrandom&manpath=FreeBSD+12.0-stable
133 //! [9]: https://leaf.dragonflybsd.org/cgi/web-man?command=getrandom
134 //! [10]: https://leaf.dragonflybsd.org/cgi/web-man?command=random§ion=4
135 //! [11]: https://docs.oracle.com/cd/E88353_01/html/E37841/getrandom-2.html
136 //! [12]: https://docs.oracle.com/cd/E86824_01/html/E54777/random-7d.html
138 //! [`BCryptGenRandom`]: https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcrypt…
139 //! [`Crypto.getRandomValues`]: https://www.w3.org/TR/WebCryptoAPI/#Crypto-method-getRandomValues
140 …AND`]: https://software.intel.com/en-us/articles/intel-digital-random-number-generator-drng-softwa…
141 //! [`SecRandomCopyBytes`]: https://developer.apple.com/documentation/security/1399291-secrandomcop…
142 //! [`cprng_draw`]: https://fuchsia.dev/fuchsia-src/zircon/syscalls/cprng_draw
144 //! [`esp_fill_random`]: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/…
145 ….com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md#-random_getbuf-pointeru8-buf_len-size---er…
146 //! [WebAssembly support]: #webassembly-support
149 html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
150 html_favicon_url = "https://www.rust-lang.org/favicon.ico",
171 // System-specific implementations.
229 compile_error!("the wasm32-unknown-unknown target is not supported by \
232 https://docs.rs/getrandom/#webassembly-support");
235 https://docs.rs/getrandom/#unsupported-targets");
250 /// significantly slower than a user-space CSPRNG; for the latter consider
252 pub fn getrandom(dest: &mut [u8]) -> Result<(), Error> { in getrandom()