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.
Crate Overview
Section titled “Crate Overview”vox-wasm-engine
Section titled “vox-wasm-engine”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 programsvox-plugin-runtime-wasmfor sandboxed skill execution
Architecture
Section titled “Architecture”One engine builder, one preopen mapper, one exit-code handler — no duplication of Wasmtime boilerplate across call sites.
Public API Surface
Section titled “Public API Surface”Structs
Section titled “Structs”| Struct | Description |
|---|---|
WasmRunOutcome | Outcome of a completed WASM module execution. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
success | Returns true if the module exited successfully (exit code 0). |
stdout_str | Decode stdout as UTF-8, lossy. |
stderr_str | Decode stderr as UTF-8, lossy. |
Dependency Topology
Section titled “Dependency Topology”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}Reverse Dependents (Used By)
Section titled “Reverse Dependents (Used By)”| Consumer Crate | Role |
|---|---|
vox-plugin-runtime-wasm | Direct workspace dependent |
Deep Public Symbols (Source-Anchored)
Section titled “Deep Public Symbols (Source-Anchored)”| Kind | Symbol | Signature | Source | Description |
|---|---|---|---|---|
struct | WasmRunOutcome | pub struct WasmRunOutcome | crates/vox-wasm-engine/src/lib.rs#L25-L34 | Outcome of a completed WASM module execution. |
fn | success | pub fn success(&self) -> bool | crates/vox-wasm-engine/src/lib.rs#L38-L40 | Returns true if the module exited successfully (exit code 0). |
fn | stdout_str | pub fn stdout_str(&self) -> std::borrow::Cow<'_, str> | crates/vox-wasm-engine/src/lib.rs#L43-L45 | Decode stdout as UTF-8, lossy. |
fn | stderr_str | pub fn stderr_str(&self) -> std::borrow::Cow<'_, str> | crates/vox-wasm-engine/src/lib.rs#L48-L50 | Decode stderr as UTF-8, lossy. |