Commit Graph
10 Commits
Author SHA1 Message Date
nandi eeedf282de Add sweet release config (#2) 2026-11-22 21:23:37 +00:00
nandiandClaude Sonnet 5.5 d11a66b4c0 Fix stale patch reference in flatten.py
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 18:12:34 -08:00
nandiandClaude Sonnet 5.5 549a6f8b67 Pin upstream wasm2elf with the sys intrinsics instead of carrying a patch
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 18:12:30 -08:00
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 ed06fa994a Support Pixi/Conda wasm2c trampolines and runtime fetch fallback
Resolve Pixi trampoline_configuration/wasm2c.json and Conda/Pixi env prefixes in native/build_native.py, add automatic version-matched runtime download from WebAssembly/wabt into build/wasm2c-rt-<ver>/ when binary-only packages (such as conda-forge wabt) omit wasm-rt.h/wasm-rt-impl.c, search Conda/Pixi prefixes for OpenSSL with rpath, and update README.md.
2026-11-20 00:28:24 +00:00
Sprite dba2cbcdca Make wasm2c native build portably discover runtime and OpenSSL
Add native/build_native.py to auto-discover WABT's wasm2c runtime headers and sources (wasm-rt.h, wasm-rt-*.c, and .inc files, with WASM2C_RUNTIME_DIR override) and OpenSSL flags across Linux distros and macOS, instead of assuming /usr/include/wasm-rt.h and -lwasm-rt-impl. Guard _DARWIN_C_SOURCE vs _POSIX_C_SOURCE in native/wasi_host.c, delegate just native to native/build_native.py, and document WASM2C_RUNTIME_DIR in README.md.
2026-11-20 00:22:20 +00: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 e04081daa0 Add justfile for build, run, test, and clean workflows 2026-11-19 22:50:18 +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
Geordi 21c7dbe0a4 Initial commit 2026-11-19 21:46:38 +00:00