Add wasi:cli component support, linear memory and globals

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-21 01:03:32 -08:00
1 parent cb1cec8b13
commit 05488c9783
11 files changed
+518 -52

No files matched your search

+12
View File
@@ -23,6 +23,18 @@ compile name: build
run name: (compile name)
-./out/{{name}}; echo "exit code: $?"
# compile a wasi:cli component example (examples/<name>.wat + examples/wit, world <name>) to out/<name>
component name: build
mkdir -p out
wasm-tools component embed examples/wit examples/{{name}}.wat --world {{name}} -o out/{{name}}.embed.wasm
wasm-tools component new out/{{name}}.embed.wasm -o out/{{name}}.wasm
wasm-tools validate out/{{name}}.wasm
{{exe}} out/{{name}}.wasm out/{{name}}
# compile and run a wasi:cli component example
run-component name: (component name)
-./out/{{name}}; echo "exit code: $?"
# build and run every example
examples: build
./run_examples.sh