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.
16 lines
244 B
Makefile
16 lines
244 B
Makefile
.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
|