Imports rewritten to the extracted plugin SDK module (P2 of the proto-first plugin SDK program); block/core require dropped. Wasm build + check-safety verified. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
14 lines
502 B
Go
14 lines
502 B
Go
//go:build wasip1
|
|
|
|
// Package main compiles the Smart Block plugin to a wasip1 reactor-mode wasm
|
|
// guest. `ninja plugin build` produces the .bnp artifact the registry serves;
|
|
// the host runs `_initialize` once per pooled instance, invoking this init
|
|
// (hence wasmguest.Serve) before any ABI hook call. main is never called.
|
|
package main
|
|
|
|
import "git.dev.alexdunmow.com/block/pluginsdk/plugin/wasmguest"
|
|
|
|
func init() { wasmguest.Serve(Registration) }
|
|
|
|
func main() {} // never called — reactor mode
|