You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but when i run cargo build --target wasm32-unknown-unknown --release
error: the wasm*-unknown-unknown targets are not supported by default, you may need to enable the "js" feature. For more information see: https://docs.rs/getrandom/#webassembly-support
--> /Users/alex/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/getrandom-0.2.15/src/lib.rs:342:9
|
342 | / compile_error!("the wasm*-unknown-unknown targets are not supported by \
343 | | default, you may need to enable the \"js\" feature. \
344 | | For more information see: \
345 | | https://docs.rs/getrandom/#webassembly-support");
| |________________________________________________________________________^
error[E0433]: failed to resolve: use of undeclared crate or module `imp`
--> /Users/alex/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/getrandom-0.2.15/src/lib.rs:398:9
|
398 | imp::getrandom_inner(dest)?;
| ^^^ use of undeclared crate or module `imp`
For more information about this error, try `rustc --explain E0433`.
error: could not compile `getrandom` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:
The text was updated successfully, but these errors were encountered:
You need to add an explicit dependency to getrandom in your crate with the js feature turned on.
Historically cargo has not given us any way to do this from rust-bitcoin. Though maybe now that we have weak dependencies it might be possible? Not sure about the interaction between weak dependencies and architecture-specific options.
in Cargo.toml
but when i run cargo build --target wasm32-unknown-unknown --release
The text was updated successfully, but these errors were encountered: