wasm-tools 1.253.0

CLI tools for interoperating with WebAssembly files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
;; RUN: wast --assert default --snapshot tests/snapshots -f cm64 %

(component
  (core module $m
    (func (export "f") (param i64 i64) (result i64) unreachable)
    (func (export "realloc") (param i64 i64 i64 i64) (result i64) i64.const 0)
    (memory (export "memory") i64 1)
  )
  (core instance $m (instantiate $m))
  (func (export "a") (param "a" (list u8)) (result (list u8))
    (canon lift (core func $m "f") (realloc (func $m "realloc")) (memory $m "memory"))
  )
)