Skip to content

vox-wasm-engine API Reference (generated)

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

Single-source-of-truth Wasmtime engine + WASI execution for Vox programs and skill plugins.

Single-source-of-truth Wasmtime engine construction, WASI context wiring, and WASM module execution for the Vox toolchain.

Used by:

  • vox-cli (vox run --backend wasi) for testing arbitrary Vox programs
  • vox-plugin-runtime-wasm for sandboxed skill execution

One engine builder, one preopen mapper, one exit-code handler — no duplication of Wasmtime boilerplate across call sites.

StructDescription
WasmRunOutcomeOutcome of a completed WASM module execution.
FunctionDescription
successReturns true if the module exited successfully (exit code 0).
stdout_strDecode stdout as UTF-8, lossy.
stderr_strDecode stderr as UTF-8, lossy.
Dependency Topology, diagram 12 nodes, 1 edge: vox-plugin-runtime-wasm → vox-wasm-enginevox-wasm-enginevox-plugin-runtime-wasm
Diagram source
graph {
direction: right
node vox_wasm_engine: "vox-wasm-engine"
node vox_plugin_runtime_wasm: "vox-plugin-runtime-wasm"
vox_plugin_runtime_wasm -> vox_wasm_engine
}
Consumer CrateRole
vox-plugin-runtime-wasmDirect workspace dependent
KindSymbolSignatureSourceDescription
structWasmRunOutcomepub struct WasmRunOutcomecrates/vox-wasm-engine/src/lib.rs#L25-L34Outcome of a completed WASM module execution.
fnsuccesspub fn success(&self) -> boolcrates/vox-wasm-engine/src/lib.rs#L38-L40Returns true if the module exited successfully (exit code 0).
fnstdout_strpub fn stdout_str(&self) -> std::borrow::Cow<'_, str>crates/vox-wasm-engine/src/lib.rs#L43-L45Decode stdout as UTF-8, lossy.
fnstderr_strpub fn stderr_str(&self) -> std::borrow::Cow<'_, str>crates/vox-wasm-engine/src/lib.rs#L48-L50Decode stderr as UTF-8, lossy.