@vscode/wasm-component-model

1.0.1 • Public • Published

WASM Component Model

Build Status

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.

/@vscode/wasm-component-model/

    Package Sidebar

    Install

    npm i @vscode/wasm-component-model

    Weekly Downloads

    150

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    488 kB

    Total Files

    42

    Last publish

    Collaborators

    • microsoft1es
    • vscode-bot