WASI Preview2/Preview3 contract definitions for host integration boundaries.
# usage: moon -C tools/codegen run src/codegen/main -- <output-dir> <wit-path> [wit-path ...]
moon -C tools/codegen run src/codegen/main -- src/p1 wit/p1/wasi_snapshot_preview1.wit
moon -C tools/codegen run src/codegen/main -- src/p2 /path/to/p2/a.wit /path/to/p2/b.wit
moon -C tools/codegen run src/codegen/main -- src/p3 /path/to/p3/a.wit /path/to/p3/b.wit
# project presets
just gen-p1
just gen-p2
just gen-p3
just gen-alljust # check + test (wasm-gc)
just check # moon check --deny-warn --target wasm-gc
just test # moon test --target wasm-gcWASI Preview2/Preview3 contract definitions for host integration boundaries.