-
Notifications
You must be signed in to change notification settings - Fork 432
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
Fails to build on wasm32-unknown-unknown using getrandom #1110
Comments
We intentionally have removed such feature-forwarding and we do not recommend addition of such features in library crates dependent on |
Yes, but I don't depend directly on getrandom; it's two levels down from rand. Are you recommending that I add getrandom to my Cargo.toml as a way to enable the feature? |
Yes, it's exactly what is written in the link.
|
Okay, I did the above and it worked! Thank you for your help! |
I added like following in my
If above doesn't work please try following. |
When the
std
feature is enabled, the latest version of this crate fails to build onwasm32-unknown-unknown
with the following error:The solution seems to be enabling the
"js"
feature ofgetrandom
. However, the client ofrand
cannot do that right now, becauserand
does not have a"js"
feature.So, I think the solution is to add a
"js"
feature torand
that enables the"js"
feature ofgetrandom
.The text was updated successfully, but these errors were encountered: