testdata/fixture is the acceptance fixture: one block, one template, one admin page, plus the two-line reactor boilerplate main. wasmhost_test.go compiles it with GOOS=wasip1 GOARCH=wasm -buildmode=c-shared (15.7 MiB, the WO-WZ-012 memory-budget baseline) and drives it through wazero exactly per wasm-abi.md: _initialize as the start function, request bytes through bn_alloc, DESCRIBE returning a decodable manifest, same-instance block+template renders, a panicking BlockFunc surfacing as ABI_ERROR_CODE_INTERNAL with the instance still callable, and a non-bn_alloc request pointer rejected as DECODE. wazero v1.12.0 joins go.mod as a test-only dependency (approved). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
35 lines
1.2 KiB
Modula-2
35 lines
1.2 KiB
Modula-2
module git.dev.alexdunmow.com/block/core
|
|
|
|
go 1.26.4
|
|
|
|
require (
|
|
connectrpc.com/connect v1.20.0
|
|
github.com/BurntSushi/toml v1.6.0
|
|
github.com/a-h/templ v0.3.1020
|
|
github.com/chromedp/chromedp v0.15.1
|
|
github.com/flosch/pongo2/v6 v6.1.0
|
|
github.com/google/uuid v1.6.0
|
|
github.com/jackc/pgx/v5 v5.9.2
|
|
github.com/klauspost/compress v1.18.6
|
|
github.com/spf13/cobra v1.10.2
|
|
github.com/tetratelabs/wazero v1.12.0
|
|
golang.org/x/mod v0.34.0
|
|
google.golang.org/protobuf v1.36.11
|
|
)
|
|
|
|
require (
|
|
github.com/chromedp/cdproto v0.0.0-20260321001828-e3e3800016bc // indirect
|
|
github.com/chromedp/sysutil v1.1.0 // indirect
|
|
github.com/go-json-experiment/json v0.0.0-20260214004413-d219187c3433 // indirect
|
|
github.com/gobwas/httphead v0.1.0 // indirect
|
|
github.com/gobwas/pool v0.2.1 // indirect
|
|
github.com/gobwas/ws v1.4.0 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
|
github.com/rogpeppe/go-internal v1.15.0 // indirect
|
|
github.com/spf13/pflag v1.0.9 // indirect
|
|
golang.org/x/sys v0.44.0 // indirect
|
|
golang.org/x/text v0.36.0 // indirect
|
|
)
|