Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

WebAssembly

wasmtime is an embeddable WebAssembly runtime. These recipes cover the host embedding API — loading modules, calling exports, sharing linear memory, and wiring up host-defined functions that guests can call back into.

The recipes live outside the main workspace because wasmtime is a large dependency not used elsewhere. Run them with cargo run --manifest-path crates/wasm/Cargo.toml --bin <name>.

Embedding wasmtime