Expand description
mimobox-wasm: Wasm sandbox backend.
Implements a Wasm sandbox on top of the Wasmtime runtime with WASI Preview 1 support. Core design:
- Globally shared Engine, owned by
WasmSandboxand reused across multipleexecutecalls. - Module compilation cache based on SHA256 hashes of file content to avoid repeated compilation.
- Independent Store per
execute, with a fresh WASI context and resource limits. - stdout/stderr captured into in-memory buffers through
MemoryOutputPipewith a built-in capacity limit. - Dual execution-time limits with fuel and epoch interruption.
Structs§
- Wasm
Sandbox - Wasm sandbox backend.
Functions§
- run_
wasm_ benchmark - Runs the Wasm sandbox cold-start benchmark.