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`]
34 //! | SOLID | `*-kmc-solid_*` | `SOLID_RNG_SampleRandomBytes`
35 //! | Nintendo 3DS | `armv6k-nintendo-3ds` | [`getrandom`][1]
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 [`wasm-bindgen`] toolchain.
91 //! This feature has no effect on targets other than `wasm32-unknown-unknown`.
96 //! limitations in wasm-bindgen's [`module`] support, we cannot directly
130 //! entropy yet. To avoid returning low-entropy bytes, we first poll
150 //! [1]: http://man7.org/linux/man-pages/man2/getrandom.2.html
151 //! [2]: http://man7.org/linux/man-pages/man4/urandom.4.html
152 //! [3]: https://www.unix.com/man-page/mojave/2/getentropy/
153 //! [4]: https://www.unix.com/man-page/mojave/4/random/
154 //! [5]: https://www.freebsd.org/cgi/man.cgi?query=getrandom&manpath=FreeBSD+12.0-stable
158 //! [9]: https://leaf.dragonflybsd.org/cgi/web-man?command=getrandom
159 //! [10]: https://leaf.dragonflybsd.org/cgi/web-man?command=random§ion=4
160 //! [11]: https://docs.oracle.com/cd/E88353_01/html/E37841/getrandom-2.html
161 //! [12]: https://docs.oracle.com/cd/E86824_01/html/E54777/random-7d.html
163 //! [`BCryptGenRandom`]: https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcrypt…
164 //! [`Crypto.getRandomValues`]: https://www.w3.org/TR/WebCryptoAPI/#Crypto-method-getRandomValues
165 …AND`]: https://software.intel.com/en-us/articles/intel-digital-random-number-generator-drng-softwa…
166 //! [`SecRandomCopyBytes`]: https://developer.apple.com/documentation/security/1399291-secrandomcop…
167 //! [`cprng_draw`]: https://fuchsia.dev/fuchsia-src/zircon/syscalls/cprng_draw
168 …`crypto.randomFillSync`]: https://nodejs.org/api/crypto.html#cryptorandomfillsyncbuffer-offset-size
169 //! [`esp_fill_random`]: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/…
170 ….com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md#-random_getbuf-pointeru8-buf_len-size---er…
171 //! [WebAssembly support]: #webassembly-support
172 //! [`wasm-bindgen`]: https://github.com/rustwasm/wasm-bindgen
173 //! [`module`]: https://rustwasm.github.io/wasm-bindgen/reference/attributes/on-js-imports/module.h…
178 html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
179 html_favicon_url = "https://www.rust-lang.org/favicon.ico",
200 // System-specific implementations.
263 compile_error!("the wasm32-unknown-unknown target is not supported by \
266 https://docs.rs/getrandom/#webassembly-support");
269 https://docs.rs/getrandom/#unsupported-targets");
284 /// significantly slower than a user-space CSPRNG; for the latter consider
286 pub fn getrandom(dest: &mut [u8]) -> Result<(), Error> { in getrandom()