Hi folks and especially @Dirk Bäumer -- I'd like to compile some Rust programs to wasip2. These communicate over byte-streams. I want to ship them as part of a VSCode extension. This blog post talks about wasip2 but it points to sample code that uses:
cargo build --target wasm32-unknown-unknown
Any idea if the wasip2 target is compatible with VSCode's WebAssembly support?
The sample code is showing plain component model usage without any wasip2 specific interfaces. For that you need to use the wasm32-unknown-unknown target and convert the resulting core wasm module to a wasm component.
K. I think I've decided to use JCO for now anyhow.
Last updated: Jan 10 2026 at 20:04 UTC