Stream: wasmtime

Topic: failed to run "cargo test --all"


view this post on Zulip Tuong Le (Jul 31 2023 at 08:57):

I am able to build with cargo build but when running unit tests, I've got the following error:

   Compiling command-tests v0.0.0 (/Users/tuongaz/dev/opensource/wasmtime/crates/test-programs/command-tests)
error[E0433]: failed to resolve: could not find `wasm32` in `arch`
  --> crates/test-programs/command-tests/src/bin/export_cabi_realloc.rs:27:21
   |
27 |         core::arch::wasm32::unreachable();
   |                     ^^^^^^ could not find `wasm32` in `arch`

view this post on Zulip fitzgen (he/him) (Jul 31 2023 at 15:24):

do you have the wasm32-wasi rust target installed? it is required to run the wasmtime tests. you can install it via

rustup target add wasm32-wasi

Last updated: Oct 23 2024 at 20:03 UTC