-
Notifications
You must be signed in to change notification settings - Fork 183
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
Should the "custom" feature take precedence over the "js" feature? #346
Comments
And what will happen when someone sets the All in all, I am not strongly against the proposed reordering, but I can't say I like it either. Ideally, we should use configuration flags instead of crate features (i.e. |
Maybe we should raise compilation errors if more than one feature is used out of |
The answer and reasoning for JS is totally different for RDRAND. We should discuss the JS situation in its own issue. We should discuss the RDRAND vs Custom in #230. |
Changed the name and description of this issue to just track the Copying from #438
|
I have been told there are some popular real-world uses of wasm32-unknown-unknown that aren't Web Platform(-ish) targets, so I don't think making Now, in the case where the user is targeting the web platform, then Ideally we're replace the web platform use of wasm32-unknown-unknown with distinct new wasm32-unknown-browser triple which would make our lives much easier, but I don't see that happening any time soon. I think the current state of affairs is as close to the ideal as we can get. |
Currently the "custom" feature is last in our precedence order for selecting implementations. The original idea behind this was to ensure that a crate couldn't (accidentally or intentionally) change the RNG source for a program.
Sometimes folks are targeting
wasm32-unknown-unknown
, bu they are not targeting the web, but their deps are enabling thejs
feature. #342 CC: @nickrayI would propose the following new precedence order:
custom
feature is enabled, use the custom implementationwasm32-unknown-unknown
andjs
is enabled, use thewasm-bindgen
implementation.The text was updated successfully, but these errors were encountered: