Skip to main content

tensor_wasm_exec/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026 Craton Software Company
3
4//! Wasmtime + Tokio async execution engine for TensorWasm instances.
5//!
6//! `tensor-wasm-exec` wraps [`wasmtime`] with a TensorWasm-specific [`engine::TensorWasmEngine`]
7//! that wires in async execution, epoch-based interruption, and a custom
8//! linear-memory creator backed by [`tensor_wasm_mem`]. The [`instance`] module
9//! manages per-tenant instance lifecycles, and [`executor`] drives async
10//! invocation of guest exports against a shared engine and store pool.
11#![deny(missing_docs)]
12
13pub mod auto_offload;
14pub mod engine;
15pub mod executor;
16pub mod instance;
17pub mod instance_pool;
18pub mod jit_dispatch;
19
20pub use instance_pool::{InstancePool, InstancePoolConfig, PooledInstance};