| 1 |
(component |
| 2 |
(type (;0;) (func)) |
| 3 |
(import "foo" (func (;0;) (type 0))) |
| 4 |
(type (;1;) (func (result string))) |
| 5 |
(import "bar" (func (;1;) (type 1))) |
| 6 |
(core module (;0;) |
| 7 |
(type (;0;) (func)) |
| 8 |
(type (;1;) (func (param i32))) |
| 9 |
(type (;2;) (func (param i32 i32) (result i32))) |
| 10 |
(type (;3;) (func (param i32 i32 i32 i32) (result i32))) |
| 11 |
(import "$root" "foo" (func (;0;) (type 0))) |
| 12 |
(import "$root" "bar" (func (;1;) (type 1))) |
| 13 |
(memory (;0;) 1) |
| 14 |
(export "baz" (func 2)) |
| 15 |
(export "foo2" (func 3)) |
| 16 |
(export "cabi_post_foo2" (func 4)) |
| 17 |
(export "cabi_realloc" (func 5)) |
| 18 |
(export "memory" (memory 0)) |
| 19 |
(func (;2;) (type 0)) |
| 20 |
(func (;3;) (type 2) (param i32 i32) (result i32) |
| 21 |
unreachable |
| 22 |
) |
| 23 |
(func (;4;) (type 1) (param i32) |
| 24 |
unreachable |
| 25 |
) |
| 26 |
(func (;5;) (type 3) (param i32 i32 i32 i32) (result i32) |
| 27 |
unreachable |
| 28 |
) |
| 29 |
(@producers |
| 30 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 31 |
(processed-by "my-fake-bindgen" "123.45") |
| 32 |
) |
| 33 |
) |
| 34 |
(core module (;1;) |
| 35 |
(type (;0;) (func (param i32))) |
| 36 |
(table (;0;) 1 1 funcref) |
| 37 |
(export "0" (func $indirect-$root-bar)) |
| 38 |
(export "$imports" (table 0)) |
| 39 |
(func $indirect-$root-bar (;0;) (type 0) (param i32) |
| 40 |
local.get 0 |
| 41 |
i32.const 0 |
| 42 |
call_indirect (type 0) |
| 43 |
) |
| 44 |
(@producers |
| 45 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 46 |
) |
| 47 |
) |
| 48 |
(core module (;2;) |
| 49 |
(type (;0;) (func (param i32))) |
| 50 |
(import "" "0" (func (;0;) (type 0))) |
| 51 |
(import "" "$imports" (table (;0;) 1 1 funcref)) |
| 52 |
(elem (;0;) (i32.const 0) func 0) |
| 53 |
(@producers |
| 54 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 55 |
) |
| 56 |
) |
| 57 |
(core instance (;0;) (instantiate 1)) |
| 58 |
(core func (;0;) (canon lower (func 0))) |
| 59 |
(alias core export 0 "0" (core func (;1;))) |
| 60 |
(core instance (;1;) |
| 61 |
(export "foo" (func 0)) |
| 62 |
(export "bar" (func 1)) |
| 63 |
) |
| 64 |
(core instance (;2;) (instantiate 0 |
| 65 |
(with "$root" (instance 1)) |
| 66 |
) |
| 67 |
) |
| 68 |
(alias core export 2 "memory" (core memory (;0;))) |
| 69 |
(alias core export 0 "$imports" (core table (;0;))) |
| 70 |
(alias core export 2 "cabi_realloc" (core func (;2;))) |
| 71 |
(core func (;3;) (canon lower (func 1) (memory 0) (realloc 2) string-encoding=utf8)) |
| 72 |
(core instance (;3;) |
| 73 |
(export "$imports" (table 0)) |
| 74 |
(export "0" (func 3)) |
| 75 |
) |
| 76 |
(core instance (;4;) (instantiate 2 |
| 77 |
(with "" (instance 3)) |
| 78 |
) |
| 79 |
) |
| 80 |
(alias core export 2 "baz" (core func (;4;))) |
| 81 |
(func (;2;) (type 0) (canon lift (core func 4))) |
| 82 |
(export (;3;) "baz" (func 2)) |
| 83 |
(type (;2;) (list u8)) |
| 84 |
(type (;3;) (option 2)) |
| 85 |
(type (;4;) (func (param "x" string) (result 3))) |
| 86 |
(alias core export 2 "foo2" (core func (;5;))) |
| 87 |
(alias core export 2 "cabi_post_foo2" (core func (;6;))) |
| 88 |
(func (;4;) (type 4) (canon lift (core func 5) (memory 0) (realloc 2) string-encoding=utf8 (post-return 6))) |
| 89 |
(export (;5;) "foo2" (func 4)) |
| 90 |
(@producers |
| 91 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 92 |
) |
| 93 |
) |