Expand description
Opt-in sandbox for untrusted Wasm32 plugins (requires Rust 1.86 and alloc).
No imports, WASI, native pointers, shared memory, or start function are exposed. Every guest invocation is fuel-metered. Linear memory, tables, execution stack, module bytes and transfer buffers are bounded. These are not a process-RSS or compilation-time limit; use OS process isolation where that threat model matters. The sandbox depends on Wasmi’s correctness and does not isolate native plugins.
Structs§
- Interface
- Application-owned identifier and exact interface version; neither is an authorization token.
- Limits
- Per-instance policy. Defaults are finite; the engine and store are not exposed.
- Plugin
- One isolated, stateful Wasm instance. All execution is serialized through
&mut self.
Enums§
- Error
- Distinguishes policy, compatibility, application, and execution failures.