1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/// WASM backend for the Aver compiler.
///
/// Transforms Aver AST → WASM binary module (.wasm).
/// Uses native WASM types: Int → i64, Float → f64, Bool → i32, heap types → i32 ptr.
///
/// Default output uses `aver/*` import ABI — host provides effect implementations.
/// `--adapter wasi` mode emits WASI imports for standalone wasmtime execution.
pub
pub
use crateCodegenContext;
/// Which import ABI to emit in the WASM module.
/// Emit a WASM binary module from the Aver codegen context.
/// Emit a WASM binary module with the specified import ABI adapter.