This directory previously held generated .wasm files. Now, all test WASM binaries are generated directly in build.rs and written to OUT_DIR.
The following test cases are defined as inline WAT sources in build.rs:
- add.wasm - Simple addition:
(a + b) - sub.wasm - Subtraction:
(a - b) - mul.wasm - Multiplication:
(a * b) - const_return.wasm - Return constant:
42 - nop.wasm - No-op function
- Milestone 2: Memory operations (load, store)
- Milestone 3: Control flow (if, loop, block)
- Milestone 4: Multi-function modules, imports/exports
build.rscontains inline WAT (WebAssembly Text) sources for each test case- The
watcrate compiles WAT → WASM in memory - Generated
.wasmfiles are written toOUT_DIR - The
herkosCLI transpiles each.wasmto Rust - Transpiled
.rsmodules are written toOUT_DIR - Tests include the generated modules via
include!(concat!(env!("OUT_DIR"), "/mod.rs"))
All generation happens at build time. No files are committed to the repo.