-
Notifications
You must be signed in to change notification settings - Fork 428
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
rand 0.6.2 is broken on wasm32-unknown-unknown #674
Comments
I experience this problem too. When I add the "wasm-bindgen" feature in my dependencies, like so: [dependencies]
wasm-bindgen = "0.2"
rand = { version = "0.6", features = ["wasm-bindgen"] } I get this error upon compilation:
|
Hmm, that's what we get for moving optional dependencies... forgetting that they are also features. You can directly depend on |
I seem to be running into this issue even on rand 0.6.3, but with a different error message. My dependencies are
Which works on rand 0.6.1, but on 0.6.3 when I try to compile it via
I tried adding the |
Yes, this is #682 which has an easy fix but I didn't get to it yet... |
The following line is triggered when one compiles
rand
onwasm32-unknown-unknown
:rand/rand_os/src/lib.rs
Line 339 in ec634c3
rand
doesn't enable neitherstdweb
orwasm-bindgen
in itsrand_os
dependency, and doesn't have any way of enabling them.The text was updated successfully, but these errors were encountered: