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.
4 lines
142 B
Bash
Executable File
4 lines
142 B
Bash
Executable File
#!/usr/bin/env sh
|
|
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
|
exec wasmtime run -S http --dir=. -- "$SCRIPT_DIR/curl.wasm" "$@"
|