The goal of this crate is to "run wasmtime on the web", that means providing a unified API for desktop and web runtimes.
With wasm-bridge
, you can write a single source code in Rust that you would normally write when using wasmtime,
but it works on desktop as well as on the web.
The main focus is to support wasmtime's component model. See the Component model page on how to get started.
The provided API is identical to wasmtime's API, so read wasmtime's documentation on how to use this crate.
See this page for an example usage.
The source code of wasm-bride
is licensed under MIT, but there are portions that are copied from other projects,
and may come with a different license.
Here is a full list of these exceptions:
- The
wasmtime-component-macro
crate "fork". - The
preview2-shim
original and transformed resource folders.