Uh oh!
There was an error while loading. Please reload this page.
Conversation
dhardy
commented
Jan 10, 2025
I think it would make more sense to call this feature I also don't see much point in |
josephlr
commented
Jan 10, 2025
I think the ideal situation would be to get @dhardy's idea in #433 (comment) to work somehow. That way an external crate (say use getrandom::{register_backend,Error};register_backend!("js", web_crypto_fill);unsafeextern"C"fnweb_crypto_fill(ptr:*mutu8,len:size) -> Option<Error>{// ...}And then passing |
dhardy
commented
Jan 10, 2025
@josephlr: I don't think |
The @josephlr As I wrote here, one alternative approach is to move WASM JS implementation into a separate crate and rely on the custom backend. |
dhardy
commented
Jan 16, 2025
Using a separate feature flag for each backend (or group of backends for some target platform) makes more sense IMO, so e.g. Unless your intention is that |
What about the
Yes, it's exactly my intention.
Hm, I don't see why it would be a problem. IIUC UPD: I updated the code and, as you can see, CI passes without any lint warnings. |
newpavlov
commented
Jan 22, 2025
Closing in favor of #574. |
This feature resolves the lock file bloat issue at the cost of less ergonomic use of opt-in backends.
TODO: update docs