Add wasmguest.Serve(Registration) boilerplate and bump block/core to v0.15.2 for the .so->wasm migration. Built + published as .bnp to the dev registry. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
18 lines
646 B
Go
18 lines
646 B
Go
//go:build wasip1
|
|
|
|
// Package main compiles the magazine-bold theme to a wasip1 reactor-mode wasm guest
|
|
// (WO-WZ-015). The .so build path is retired; `ninja plugin build` produces the
|
|
// .bnp artifact the registry serves.
|
|
//
|
|
// Reactor mode: the host runs `_initialize` once per pooled instance, which
|
|
// runs this init func (hence wasmguest.Serve) before any bn_invoke. Serve is
|
|
// non-blocking; all theme work then arrives over the ABI hook calls. main is
|
|
// never called.
|
|
package main
|
|
|
|
import "git.dev.alexdunmow.com/block/core/plugin/wasmguest"
|
|
|
|
func init() { wasmguest.Serve(Registration) }
|
|
|
|
func main() {} // never called — reactor mode
|