Hi,
This is my (virtual) workspace excerpt:
Cargo.toml
[workspace.dependencies]
getrandom = { version = "0.3.2", features = ["wasm_js"] }
getrandom_0_2 = { package = "getrandom", version = "0.2.15", features = ["js"] }
cargo/config.toml
[target.wasm32-unknown-unknown]
rustflags = ["-Z", "share-generics=y", "--cfg", "reqwest_unstable", '--cfg', 'getrandom_backend="wasm_js"']
the issue is that my workspace has multiple getrandom deps (0.3.2, 0.2.15 and 0.1.X).
And when compiling:
error[E0425]: cannot find function `inner_u64` in module `backends`
backends::inner_u64()
| ^^^^^^^^^ not found in `backends`
|
help: consider importing this function
|
33 + use crate::util::inner_u64;
|
help: if you import `inner_u64`, refer to it directly
|
142 - backends::inner_u64()
142 + inner_u64()
and further:
"The "wasm_js" backend requires the
wasm_jsfeature for
getrandom."
Except I already added the feature in the cargo.toml.
I would like to force set the "js"/"web_js" feature on my tree for the wasm-unknown-unknown target only.
And for all the deps.
How do I do that ?