wasmvm

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL