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)
Crate Overview
Section titled “Crate Overview”vox-plugin-runtime-wasm
Section titled “vox-plugin-runtime-wasm”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.
Why WASM?
Section titled “Why WASM?”- 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)
Status: SCAFFOLD
Section titled “Status: SCAFFOLD”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
Workspace Dependencies
Section titled “Workspace Dependencies”| Dependency | Kind |
|---|---|
vox-plugin-api | Normal |
vox-skill-runtime | Normal |
vox-wasm-engine | Normal |
Public API Surface
Section titled “Public API Surface”Modules
Section titled “Modules”| Module | Description |
|---|---|
runtime | — |
Dependency Topology
Section titled “Dependency Topology”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}Deep Public Symbols (Source-Anchored)
Section titled “Deep Public Symbols (Source-Anchored)”| Kind | Symbol | Signature | Source | Description |
|---|---|---|---|---|
struct | runtime::WasmRuntime | pub struct WasmRuntime | crates/vox-plugin-runtime-wasm/src/runtime.rs#L33-L35 | Wasmtime-based WASI sandbox runtime. Delegates all Wasmtime engine construction, WASI context wiring, and module execution to [vox_wasm_engine::WasmHost]. |
fn | runtime::new | pub fn new() -> Result<Self> | crates/vox-plugin-runtime-wasm/src/runtime.rs#L39-L43 | Create a new WasmRuntime with a fuel-enabled engine. |
fn | runtime::with_fuel | pub fn with_fuel(fuel: u64) -> Result<Self> | crates/vox-plugin-runtime-wasm/src/runtime.rs#L46-L49 | Create a WasmRuntime with a custom fuel limit. |