witgen

command
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Command witgen writes the core imports of a WIT interface for Go guests (GOOS=wasip1): one //go:wasmimport per function and resource drop, with its Canonical ABI core signature (package wit), and a table from import name to a call taking and returning core values as uint64. The guest package lowers and lifts with package wit around it, so guest and host share one implementation of the ABI.

go run ./internal/cmd/witgen --wit webgpu/wit/webgpu.wit --wit webgpu/wit/surface.wit \
  --interface webgpu --interface surface --interface surface-webgpu --package wasigpu --out wasigpu/imports_wasip1.go

Jump to

Keyboard shortcuts

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