Skip to content

Provides a single unified API to run WASM modules on the desktop using wasmtime, or on the web using js-sys.

License

Notifications You must be signed in to change notification settings

AmbientRun/wasm-bridge

 
 

Repository files navigation

wasm-bridge

Goals

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.

Component model

The main focus is to support wasmtime's component model. See the Component model page on how to get started.

Non-component model use

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.

License

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:

About

Provides a single unified API to run WASM modules on the desktop using wasmtime, or on the web using js-sys.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 72.5%
  • JavaScript 24.5%
  • Shell 3.0%