Documentation
¶
Overview ¶
Package wasmvm implements the wazero-backed extension runtime for Base.
One process-wide wazero.Runtime is created with a compilation cache so every Module loaded from disk reuses the same JIT/AOT artifacts. WASI snapshot preview1 is instantiated once on that runtime so guest modules targeting wasi (Rust, AssemblyScript with wasi shim, TinyGo) can do stdio + clock + random without per-module host wiring.
The host-guest ABI is intentionally minimal — see module.go for the exact calling convention. Anything more ambitious (component model, witx bindings, capability passing) lives at a higher layer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRuntime ¶
func NewRuntime() extruntime.Runtime
NewRuntime returns a Runtime backed by a shared wazero.Runtime. The compilation cache is in-memory; persisting it across process restarts is a deployment concern, not a runtime concern.
Types ¶
This section is empty.