-
Notifications
You must be signed in to change notification settings - Fork 182
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
Consider using web_sys and unifying wasm32-unknown-unknown targets #63
Comments
@koute would it be reasonable to make |
If stdweb does not give any advantage over wasm-bindgen, and if it can't lead to less deps being pulled in, this would greatly simplify issues downstream... I mean to just get the random data out of wasm-bindgen without features. |
I am strongly against making |
@newpavlov Does setting Or are you just thinking other features like |
@najamelan Ideally I would like to drop feature-gated support for |
@newpavlov both our Of course I agree that ideally more specific targets will replace the |
@dhardy Yes, this approach is more painful and less convenient in a short-term, but should be more beneficial in a longer term. |
This comment has been minimized.
This comment has been minimized.
#102 addresses half of this issue. To address the other half, we could just make the |
Thanks for the clarification @newpavlov. |
Closing this as we've gone with custom RNG crates to handle the issues on the |
Right now,
stdweb
depends onwasm-bindgen
so it doesn't really make a whole lot of sense to have two seperate implementations ingetrandom
for this.A better approach might just be to depend on the
web_sys
crate from thewasm-bindgen
repo and eliminate the need for separate wasm32 features.I'm not sure how this would work with Node, but for Client Web, we could just use
Crypto::get_random_values_with_u8_array
The text was updated successfully, but these errors were encountered: