Skip to main content

Module runtime

Module runtime 

Source
Expand description

PluginRuntime trait + InProcessRuntime (P1).

Abstracts over Wasmtime (P2, --features wasmtime) and native in-process Rust plugins (P1, always-on). Constrained builds use the compiled-in native registry rather than an unaudited interpreter backend.

§Architecture

PluginRegistry
      │
      ▼
PluginRuntime  ◄─── InProcessRuntime  (P1, native Rust, <1 µs call)
               ◄─── WasmtimeRuntime   (P2, Cranelift JIT, ~5 ms cold start)

Structs§

InProcessRuntime
Native in-process runtime — loads first-party Rust plugins directly.
LoadedPlugin
A loaded plugin handle — returned by PluginRuntime::load.

Traits§

PluginRuntime
Abstraction over the WASM (and native) plugin execution environment.