Stream: general

Topic: VSCode support for Wasm


view this post on Zulip nikomatsakis (Dec 06 2025 at 12:21):

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?

Using WebAssembly for Extension Development.
Sample code illustrating the VS Code extension API. - microsoft/vscode-extension-samples

view this post on Zulip bjorn3 (Dec 06 2025 at 13:04):

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.

view this post on Zulip nikomatsakis (Dec 06 2025 at 14:07):

K. I think I've decided to use JCO for now anyhow.


Last updated: Jan 10 2026 at 20:04 UTC