@vscode/wasm-component-model
v1.0.1
Published
A VS Code specific component model implementation
Downloads
212
Readme
WASM Component Model
VS Code's implementation of the WASM component model. Besides the implementation of the canonical ABI the npm package also contains the wit2ts tool to generate TypeScript binding from a WIT file.
Example usages of the tool and the component model can be found here:
- wasm-component-model: simple example using the component model to integrate a Rust function into a VS Code extension.
- wasm-component-model-async: same as
wasm-component-model
but executed asynchronously in a worker. - wasm-component-model-resource: using resources to implement a calculator that supports the reverse Polish notation, similar to those used in Hewlett-Packard hand-held calculators.
There are also two blogs post covering VS Code's component model implementation: Using WebAssembly for Extension Development and Using WebAssembly for Extension Development - Part Two
History
1.0.0 - official release
0.1.0-pre.* - pre-release versions.