Skip to main content

Crate tensor_wasm_exec

Crate tensor_wasm_exec 

Source
Expand description

Wasmtime + Tokio async execution engine for TensorWasm instances.

tensor-wasm-exec wraps wasmtime with a TensorWasm-specific engine::TensorWasmEngine that wires in async execution, epoch-based interruption, and a custom linear-memory creator backed by tensor_wasm_mem. The instance module manages per-tenant instance lifecycles, and executor drives async invocation of guest exports against a shared engine and store pool.

Re-exports§

pub use instance_pool::InstancePool;
pub use instance_pool::InstancePoolConfig;
pub use instance_pool::PooledInstance;

Modules§

auto_offload
Pre-instantiation auto-offload analysis.
engine
TensorWasmEngine — a wasmtime::Engine wrapper preconfigured for TensorWasm.
executor
TensorWasmExecutor — async executor for TensorWasm Wasm instances.
instance
Per-instance state used by TensorWasmExecutor.
instance_pool
Pre-instantiated instance pool (roadmap feature #5, T37 implementation).
jit_dispatch
Host-side implementations of tensor-wasm:jit/host::{dispatch, alloc, free}.