-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"All entropy sources failed" on wasm32-wasi #34
Comments
Looks like you are not building for WASI target (note: WASM is like CPU architecture and WASI is in a certain sense an operating system, so the first does not necessarily imply the second). Depending on that you use, enable getrandom = { version = "*", features = ["wasm-bindgen"] } |
i'm doing |
As I said in the other issue, use the target |
updating to rustc beta and using |
Hm, this is strange... I can't find from where this error comes. Search does not show any code in this and Note that |
using |
A project i'm trying to build fails with
All entropy sources failed (permanently unavailable); cause: OsRng: support for wasm32 requires emscripten, stdweb or wasm-bindgen (permanently unavailable)
, thoughgetrandom
says it supports__wasi_random_get
The text was updated successfully, but these errors were encountered: