wasm-tools 1.255.0

CLI tools for interoperating with WebAssembly files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
;; FAIL: parse % -o %tmpdir/strict.wasm
;; RUN[lenient]: WAST_STRICT_COMPONENT_INDICES=0 parse % -o %tmpdir/lenient.wasm

;; The legacy `(callback (func ...))` syntax is rejected in strict mode; the
;; new spec requires `(callback (core func ...))`.
(component
  (core module $m
    (func (export "cb") (param i32 i32 i32) (result i32) unreachable)
    (func (export "f") (result i32) unreachable))
  (core instance $m (instantiate $m))
  (func async
    (canon lift (core func $m "f") async (callback (func $m "cb"))))
)