-
Notifications
You must be signed in to change notification settings - Fork 31
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
Do we still need getrandom
?
#955
Comments
|
Right, but can we avoid using it directly here? I.e., could we replace |
Dropping a direct dependency would be nice, but it sounds like this would have no other functional effect. On the other hand, we have a couple error enums with variants: /// Failure when calling getrandom().
#[error("getrandom: {0}")]
GetRandom(#[from] getrandom::Error) That means that dropping |
I think it's worth doing, and yeah this could wait until 0.17. |
Note that dropping our direct dependency on getrandom would now require removing our |
Looks like we're good to drop the "wasm-compat" feature in daphne: cloudflare/daphne#613 |
I recall I initially pushed for using
getrandom
in lieu ofrand
in order to have compatibility with WASM. First, I'm not sure this was ever technically necessary. Second, we no longer need WASM for Daphne:https://github.com/cloudflare/daphne/blob/b59507a0092e1267e7ec7c3f99c33b59bd1deb34/daphne_worker_test/Cargo.toml#L31-L34
What do you think about removing the dependency?
cc/ @mendess
The text was updated successfully, but these errors were encountered: