-
-
Notifications
You must be signed in to change notification settings - Fork 435
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+ panic when using wasm-bindgen #810
Comments
It turns out that my
Sorry for wasting your time. This issue can be closed. |
Yes, we require specification of a feature flag for WASM. Not sure why the error message is so terrible, but the code for Rand 0.7 is already totally different so there isn't much incentive to investigate further. |
I had the same error message with version "0.6.5" and "0.7". I added
I am using WSL Ubuntu LTS 18. I don't think this should matter, though. |
@yixing-liu minimal example please, and also test whether the same happens when using the getrandom crate directly. |
Note that if you're trying to reproduce this only using [dependencies]
getrandom = { version = "0.2", features = ["js"] } |
I just want to note that the error message is still terrible. I can open a separate issue if that'd be appreciated. |
Regarding Rand v0.6? Sorry, we have limited (human) resources, and investigating poor error messages for (very) outdated versions is not a good use of what we have. Unless you wish to make a PR yourself, in which case please go ahead. |
Oh sorry, v0.7 |
I'm familiar with the #616 issue, however I still experience this problem while using
rand 0.6.5
andwasm-bindgen 0.2.45
.The source code:
Cargo.toml
Executing the
test()
function in JS results in panic:EDIT: Maybe it's worth mentioning that I'm using Manjaro Linux.
The text was updated successfully, but these errors were encountered: