ring
ring copied to clipboard
Split out wasm32_unknown_unknown_js feature
This PR:
- Adds a feature
wasm32_unknown_unknown, which is identical towasm32_unknown_unknown_js, except it doesn't enable thegetrandomcrate features. - This allows WASM-only environments to implement their own context-specific rand functionality and register it with
getrandom.
One of the getrandom crate's maintainers has proposed something related to this in https://github.com/rust-random/getrandom/issues/498. I think we should resolve that issue and then revisit this once the getrandom issue is resolved.
Thanks for the PR. I'm no longer accepting PRs for this project, but I appreciate your effort.