magus-utils

command
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: GPL-3.0 Imports: 38 Imported by: 0

Documentation

Overview

Subcommand `moduleset` emits internal/interp/bindings/gen's module registry: the table mapping each host module's bind name to its generated Register trampoline.

It emits TWO files because the registry is build-tagged. modules.go is the native set and references every trampoline including the IO ones; modules_wasm.go is the browser playground's subset and must not, so the wasm build sees a parallel table.

Both were hand-maintained, and the wasm half carried the instruction "Keep this in sync with the WASM-capable entries of modules.go" - a mirror with a rule no test could check, because the WASM classification lived nowhere but in those two tables. std.Module.WASM now declares it, which is what makes both files projections.

Jump to

Keyboard shortcuts

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