smartblock/main.go
Alex Dunmow 226a2685f0 feat(sdk): migrate block/core → block/pluginsdk v0.1.0
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>
2026-07-07 11:16:05 +08:00

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