Commit Graph
5 Commits
Author SHA1 Message Date
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