Skip to content
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

wasm32 build job is failing getrandom not supports it #797

Closed
gnzlbg opened this issue Aug 17, 2019 · 3 comments
Closed

wasm32 build job is failing getrandom not supports it #797

gnzlbg opened this issue Aug 17, 2019 · 3 comments

Comments

@gnzlbg
Copy link
Contributor

gnzlbg commented Aug 17, 2019

cc @alexcrichton @josephlr

@josephlr
Copy link
Contributor

We just released 0.1.10 of getrandom to fix this kind of issue (rust-random/getrandom#87), now it will always build on wasm32-unknown-unknown and will fail at runtime if there's no way to call JavaScript.

Running cargo test --target=wasm32-unknown-unknown now properly builds the output. Note that if we ever want to have any wasm32-unknown-unknown tests in this repo that use randomness, we should enable the wasm-bindgen feature of getrandom.

I think this issue can be closed.

@gnzlbg
Copy link
Contributor Author

gnzlbg commented Aug 18, 2019 via email

@alexcrichton
Copy link
Member

I think this has long since been fixed, so I think this can be closed now?

@Amanieu Amanieu closed this as completed May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants