wasm-tools 1.248.0

CLI tools for interoperating with WebAssembly files
Documentation
  0x0 | 00 61 73 6d | version 1 (Module)
      | 01 00 00 00
  0x8 | 01 17       | type section
  0xa | 05          | 5 count
--- rec group 0 (implicit) ---
  0xb | 60 00 00    | [type 0] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [], results: [] }), shared: false, descriptor_idx: None, describes_idx: None } }
--- rec group 1 (implicit) ---
  0xe | 60 00 01 7f | [type 1] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [], results: [I32] }), shared: false, descriptor_idx: None, describes_idx: None } }
--- rec group 2 (implicit) ---
 0x12 | 60 01 7f 00 | [type 2] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32], results: [] }), shared: false, descriptor_idx: None, describes_idx: None } }
--- rec group 3 (implicit) ---
 0x16 | 60 01 7f 01 | [type 3] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32], results: [I32] }), shared: false, descriptor_idx: None, describes_idx: None } }
      | 7f         
--- rec group 4 (implicit) ---
 0x1b | 60 01 7f 02 | [type 4] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32], results: [I32, I32] }), shared: false, descriptor_idx: None, describes_idx: None } }
      | 7f 7f      
 0x21 | 03 02       | func section
 0x23 | 01          | 1 count
 0x24 | 00          | [func 0] type 0
 0x25 | 0a 1c       | code section
 0x27 | 01          | 1 count
============== func 0 ====================
 0x28 | 1a          | size of function
 0x29 | 00          | 0 local blocks
 0x2a | 02 40       | block blockty:Empty
 0x2c | 0b          | end
 0x2d | 02 7f       | block blockty:Type(I32)
 0x2f | 0b          | end
 0x30 | 02 02       | block blockty:FuncType(2)
 0x32 | 0b          | end
 0x33 | 02 03       | block blockty:FuncType(3)
 0x35 | 0b          | end
 0x36 | 02 04       | block blockty:FuncType(4)
 0x38 | 0b          | end
 0x39 | 02 01       | block blockty:FuncType(1)
 0x3b | 0b          | end
 0x3c | 02 01       | block blockty:FuncType(1)
 0x3e | 0b          | end
 0x3f | 02 00       | block blockty:FuncType(0)
 0x41 | 0b          | end
 0x42 | 0b          | end
 0x43 | 00 12       | custom section
 0x45 | 04 6e 61 6d | name: "name"
      | 65         
 0x4a | 04 0b       | type name section
 0x4c | 02          | 2 count
 0x4d | 00 05 65 6d | Naming { index: 0, name: "empty" }
      | 70 74 79   
 0x54 | 01 01 74    | Naming { index: 1, name: "t" }