Skip to main content

rpc/
wasm.rs

1//! Re-export shim for the wasmtime primitives. Every consumer (Session,
2//! natives, future sshd integration) imports through this module so swapping
3//! the underlying implementation never touches more than one path.
4//!
5//! The implementation lives in `scripting::runtime` so the entity-script
6//! `ScriptExecutor` and the rpc eval channel share one engine builder, one
7//! `ModuleCache`, and one trap-classification helper. See ADR 0011 in the
8//! plan for the dedup rationale.
9
10pub use scripting::runtime::{
11    EngineError, EngineOpts, ModuleCache, build_engine, call_i64_export, classify_runtime_error,
12    compile_module, compile_wat,
13};