mirror of
https://github.com/hanzoai/zip-rs.git
synced 2026-11-02 12:06:42 +00:00
Rust crate for writing zip-mounted wasm handlers per HIP-0105. - zip-rs lib: #[handler] proc macro, __base_alloc/__base_free allocator exports, JSON envelope helpers, Error/Result types. - zip-rs-macros: proc macro implementation (syn 2 + quote). - Three end-to-end examples: hello, validate-email (port of canonical AssemblyScript fixture), policy-eval. - CI workflow builds wasm32-wasip1 artifacts and verifies them against the production wasmvm host in hanzoai/base. 12 unit tests pass. Wasm sizes: hello 87 KB, validate-email 91 KB, policy-eval 100 KB. validate-email emits byte-equivalent JSON output to the AS reference fixture.
870 B
870 B
HANZO_CHANGES
Tracks Hanzo-internal deltas not visible in CHANGELOG.md (audit
traceability, version pin justifications, brand-policy decisions, etc.).
v0.1.0 (initial release)
- First public release of zip-rs.
- Workspace layout:
zip-rs(lib) +zip-rs-macros(proc macros) + three end-to-end examples (hello,validate-email,policy-eval). - Target ABI: HIP-0105 (in-process extension runtime, wazero backend).
- Cross-language compatibility verified against the AssemblyScript
reference (
base/plugins/extbench/fixtures/wazero-as/) — thevalidate-emailexample emits byte-equivalent responses. - Wasm sizes: hello 87 KB, validate-email 91 KB, policy-eval 100 KB (release build, debug stripped via Cargo profile).
- Deps: serde 1.0.219, serde_json 1.0.140, syn 2.0.106, quote 1.0.40, proc-macro2 1.0.95. No major-version bumps planned.