Skip to content
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

[BUG] Cannot build executor_custom_data_model smartcontract #5114

Open
0x009922 opened this issue Oct 2, 2024 · 0 comments
Open

[BUG] Cannot build executor_custom_data_model smartcontract #5114

0x009922 opened this issue Oct 2, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@0x009922
Copy link
Contributor

0x009922 commented Oct 2, 2024

OS and Environment

macOs 15.0

GIT commit hash

a9ea21a

Minimum working example / Steps to reproduce

cargo run --bin iroha_wasm_builder -- build ./wasm_samples/executor_custom_data_model/ --out-file ./whatever.wasm

Actual result

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/qua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/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");
    | |________________________________________________________________________^

warning: `iroha_primitives` (lib) generated 27 warnings (run `cargo fix --lib -p iroha_primitives` to apply 1 suggestion)
   Compiling iroha_crypto v2.0.0-rc.1.0 (/Users/qua/Dev/iroha/crates/iroha_crypto)
error[E0433]: failed to resolve: use of undeclared crate or module `imp`
   --> /Users/qua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/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

Expected result

Expected to succeed.

Logs

Irrelevant.

Who can help to reproduce?

No response

Notes

No response

@0x009922 0x009922 added the Bug Something isn't working label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant