3 Commits
Author SHA1 Message Date
nandiandClaude Sonnet 5.5 27ce306c7c Spike: build a static ELF via wasm2elf with WAT syscall shims
Add elf/ (flatten.py, shim.wat, wasm2elf.patch pinned to wasm2elf-mb rev) and
just elf / test-elf recipes. The ELF handles plain HTTP, DNS, files and stdin;
26/27 repo tests pass, https:// is unsupported (no TLS).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 18:01:13 -08:00
Sprite 2ff249ff89 Add wasm2c native compilation target and host runtime
Add native/extract_core.py to extract embedded core Wasm modules from curl.wasm and native/wasi_host.c providing a POSIX/OpenSSL WASI 0.2 host shim for wasm2c. Add native, test-native, and run-native recipes to justfile (with positional-arguments enabled), support CURL_WASM_NATIVE in tests/test_curl.py, ignore build artifacts in .gitignore, and document native compilation in README.md.
2026-11-20 00:07:33 +00:00
Sprite c265fd1adf 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.
2026-11-19 22:50:14 +00:00