Registry / utility / tetratelabs-wazero

tetratelabs-wazero

JSON →
library1.8.1gogounverified

A zero-dependency WebAssembly runtime for Go, enabling execution of Wasm modules with WASI support.

go get github.com/tetratelabs/wazero
INSTALL
IMPORT
SIG · TETRATELABS-WAZERO
T
tetratelabs-wazero
utilitygov1.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wazero
github.com/tetratelabs/wazero

Instantiates a WebAssembly module with WASI support.

package main import ( "context" "fmt" "github.com/tetratelabs/wazero" "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" ) func main() { ctx := context.Background() r := wazero.NewRuntime(ctx) defer r.Close(ctx) wasi_snapshot_preview1.MustInstantiate(ctx, r) mod, _ := r.InstantiateWithConfig(ctx, wasmBytes, wazero.NewModuleConfig().WithName("example")) fmt.Println(mod) }
Debug
Known issues
gotchawazero requires Go 1.18+ and uses context for lifecycle management.
fix
Ensure your project uses Go 1.18 or later and pass context properly.
affects: >=1.0.0
Upgrade
Version history
1.8.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
tetratelabs-wazero — go get tetratelabs-wazero · libregistry