Skip to content

vox-plugin-runtime-wasm API Reference (generated)

Crate: vox-plugin-runtime-wasm · Version: 0.6.0 · Target: Library (lib.rs)

Skill-runtime plugin: wasmtime-based WASI sandbox (default for pure-compute skills)

Skill-runtime plugin: wasmtime-based WASI sandbox.

This is the default sandbox for pure-compute skills (no subprocess, no GPU). Implements [vox_skill_runtime::SkillRuntime] via a wasmtime engine.

  • Cold start: ~µs (vs seconds for Docker)
  • Footprint: ~5MB embedded (vs 200MB+ Docker daemon)
  • No external daemon required
  • Pure-Rust (wasmtime, Bytecode Alliance)
  • Capability-bound by default (WASI preopens, no ambient authority)

The engine and module loading work. Full WASI preopen plumbing, fuel-based timeout enforcement, and wasi-http are TODO. See runtime.rs for details.

Install: vox plugin install runtime-wasm

DependencyKind
vox-plugin-apiNormal
vox-skill-runtimeNormal
vox-wasm-engineNormal
ModuleDescription
runtime—
Dependency Topology, diagram 14 nodes, 3 edges: vox-plugin-runtime-wasm → vox-plugin-api; vox-plugin-runtime-wasm → vox-skill-runtime; vox-plugin-runtime-wasm → vox-wasm-enginevox-plugin-runtime-wasmvox-plugin-apivox-skill-runtimevox-wasm-engine
Diagram source
graph {
direction: right
node vox_plugin_runtime_wasm: "vox-plugin-runtime-wasm"
node vox_plugin_api: "vox-plugin-api"
vox_plugin_runtime_wasm -> vox_plugin_api
node vox_skill_runtime: "vox-skill-runtime"
vox_plugin_runtime_wasm -> vox_skill_runtime
node vox_wasm_engine: "vox-wasm-engine"
vox_plugin_runtime_wasm -> vox_wasm_engine
}
KindSymbolSignatureSourceDescription
structruntime::WasmRuntimepub struct WasmRuntimecrates/vox-plugin-runtime-wasm/src/runtime.rs#L33-L35Wasmtime-based WASI sandbox runtime. Delegates all Wasmtime engine construction, WASI context wiring, and module execution to [vox_wasm_engine::WasmHost].
fnruntime::newpub fn new() -> Result<Self>crates/vox-plugin-runtime-wasm/src/runtime.rs#L39-L43Create a new WasmRuntime with a fuel-enabled engine.
fnruntime::with_fuelpub fn with_fuel(fuel: u64) -> Result<Self>crates/vox-plugin-runtime-wasm/src/runtime.rs#L46-L49Create a WasmRuntime with a custom fuel limit.