chacha: fix wasm32-unknown-unknown build#1086
chacha: fix wasm32-unknown-unknown build#1086ordian wants to merge 4 commits intorust-random:masterfrom
Conversation
|
Ideally, in addition to the |
| ppv-lite86 = { version = "0.2.8", default-features = false, features = ["simd"] } | ||
|
|
||
| [features] | ||
| default = ["std"] |
There was a problem hiding this comment.
rand_core/std enables rand_core/getrandom, so I don't think we need to have rand_core/getrandom listed separately here?
There was a problem hiding this comment.
Thanks, I find it a bit surprising though. Extracted getrandom in a separate feature now in 19de8ba.
Let me know if there is anything else that needs to be changed.
dhardy
left a comment
There was a problem hiding this comment.
I'm not actually sure how this helps — are you sure it isn't another dependency which depends on rand_core/std or rand_core/getrandom? (Assuming you are already disabling default features for rand_chacha in your build.)
Regarding adding the getrandom feature I don't see any harm, but it's also not really difficult to depend on rand_core/getrandom directly where required.
|
|
||
| [dependencies] | ||
| rand_core = { path = "../rand_core", version = "0.6.0" } | ||
| rand_core = { path = "../rand_core", version = "0.6.0", default-features = false } |
There was a problem hiding this comment.
rand_core doesn't have any default features, so this change does nothing IIUC
Oh, you're right. I somehow overlooked the lack of |
rand_chachapullsrand_core/getrandomfeature, which it doesn't seem to require.This breaks
wasm32-unknown-unknownbuilds.