The goal of this crate is to "run wasmtime on the web".
Since wasmtime cannot actually run on the web, the goal is to provide a unified API for both sys (desktop) and js (web) runtimes.
The provided API will be identital to wasmtime's API, so read wasmtime's documentation on how to use this crate.
This crate is not yet ready for public use. You can clone the repo or includide it as a git dependency at your own risk.
wasmtime
If you are using wasmtime
, using this crate should be as simple as replacing the wasmtime
dependency with wasm-bridge
dependency (well, once a usable version of wasm-bridge
is released).
component-model
Work on supporting the component model has only just begun, but it will hopefully be possible to use the component model with wasm-bridge
in the future.
i32
, i64
, f32
, f64
See the no_bindgen
folder for supported example usages.