Add plain WAT WASI 0.2 curl clone (curl-wasm)

Implement a curl clone directly in plain WebAssembly Text format (curl.wat) targeting WASI 0.2 (wasi:cli, wasi:io, wasi:clocks, wasi:filesystem, wasi:http). Includes the executable curl-wasm wrapper script, Makefile, integration test suite (tests/test_curl.py), README.md, and .gitignore.
This commit is contained in:
Sprite committed 2026-11-19 22:50:14 +00:00
1 parent 21c7dbe0a4
commit c265fd1adf
6 files changed
+4464

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
.PHONY: all build test clean
all: build
build: curl.wasm
curl.wasm: curl.wat
wasm-tools parse curl.wat -o curl.wasm
wasm-tools validate curl.wasm --features component-model
test: build
python3 tests/test_curl.py
clean:
rm -f curl.wasm