Skip to content

Split out wasm32_unknown_unknown_js feature - #2130

Closed
Protryon wants to merge 1 commit into
briansmith:mainfrom
nginxinc:main
Closed

Protryon wants to merge 1 commit into
briansmith:mainfrom
nginxinc:main

Conversation

@Protryon

Copy link
Copy Markdown

This PR:

  • Adds a feature wasm32_unknown_unknown, which is identical to wasm32_unknown_unknown_js, except it doesn't enable the getrandom crate features.
  • This allows WASM-only environments to implement their own context-specific rand functionality and register it with getrandom.

@briansmith

Copy link
Copy Markdown
Owner

One of the getrandom crate's maintainers has proposed something related to this in rust-random/getrandom#498. I think we should resolve that issue and then revisit this once the getrandom issue is resolved.

@oligamiq oligamiq mentioned this pull request Feb 8, 2025
@briansmith

Copy link
Copy Markdown
Owner

Thanks for the PR. I'm no longer accepting PRs for this project, but I appreciate your effort.

@briansmith briansmith closed this Feb 25, 2025
Repository owner locked and limited conversation to collaborators Feb 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants