Skip to main content

Module wasm

Module wasm 

Source
Expand description

WasmSandbox — the wasmtime-backed implementation of Sandbox.

Compiles WASM modules with a shared [wasmtime::Engine] (so the JIT cache is reused across loads), wires the host imports from crate::imports into the linker, and gates every import invocation against the instance’s [CapabilitySet].

See TODO.roadmap/15-wasm-sandboxing.md § Architecture.

Structs§

WasmInstance
A loaded WASM module + its store, exposed through SandboxInstance.
WasmSandbox
The wasmtime-backed sandbox.