Stream: cargo-component

Topic: Upgrading to cargo-component v0.21.0 breaks build env on MBP


view this post on Zulip Mike M (Apr 26 2025 at 01:40):

We had issues in the browser calling into a WASM component, and eventually tracked it down to cargo-component v0.21.0 on (as far as we can tell) Apple Silicon. The built WASM seems to have issues in the adapter/shims, leading to call issues.
Issue logged here: https://github.com/bytecodealliance/cargo-component/issues/398
We've narrowed this down a lot, but if you need any more info or anything in the issue is unclear, we're happy to help further.

Impact It seems this error means that anyone running Apple silicon (M1+ laptops) is currently unable to build/transpile a wasm component and run it in the browser. Brief v0.21.0 introduces issues b...

view this post on Zulip Victor Adossi (Apr 26 2025 at 01:46):

This was originally submitted to jco (and discussed here in zulip), so some context (you can see some error messages in there, though you'll have to ignore the JS-related bits of the stack trace):

https://github.com/bytecodealliance/jco/issues/634

#jco > Sudden transpiled wasm component error in browser

My team is seeing errors calling into transpiled wasm components in the browser (suddenly after months of no problems). Here's a minimal env that reproduces the problem (for some of us): https://gi...

view this post on Zulip Victor Adossi (Apr 26 2025 at 01:48):

And for those who are going to look into the diff:

https://github.com/bytecodealliance/cargo-component/compare/v0.20.0...v0.21.0

A Cargo subcommand for creating WebAssembly components based on the component model proposal. - Comparing v0.20.0...v0.21.0 · bytecodealliance/cargo-component

view this post on Zulip Mike M (Apr 26 2025 at 02:34):

Tracing this further, adapters are updated from v24 -> 29.0.1 here https://github.com/bytecodealliance/cargo-component/commit/241996c1d22c3c563048ec1b382cf72b1650860b

* Update the adapter binaries cargo-component uses This pulls in a fix for bytecodealliance/wasmtime#10058 * Update wasmtime used in CI

Last updated: Dec 06 2025 at 06:05 UTC