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
cargo component itself uses the Rust wasm32-wasip1 target to produce core Wasm modules, and applies the component adapter to produce Wasm components. It doesn't currently work with the wasm32-wasip2 target.
Thanks @sunfishcode I also just ran into this issue.
Interestingly cargo component will actually create a .wasm file in the wasm32-**wasip2** path though:
And interestingly the wasip2 path has a newly generated .wasm file:
ls -lah target/wasm32-wasip2/debug/compress.wasm
Produces:
-rw-r--r-- 1 tpmccallum tpmccallum 8.4M 26 Feb 11:24 target/wasm32-wasip2/debug/compress.wasm
To prevent confusion, could the command warn/mention that "cargo component doesn't currently work with the wasm32-wasip2 target" and then only write to the target/wasm32-wasip1 path?
I use
.cargo/config.toml
to control the compilation of workspace.But
cargo component build
still generateswasm32-wasip1
cargo-component-component 0.19.0
The text was updated successfully, but these errors were encountered: