| 1 |
(component |
| 2 |
(type (;0;) |
| 3 |
(instance |
| 4 |
(export (;0;) "r" (type (sub resource))) |
| 5 |
) |
| 6 |
) |
| 7 |
(import "foo:bar/a" (instance (;0;) (type 0))) |
| 8 |
(core module (;0;) |
| 9 |
(type (;0;) (func (param i32))) |
| 10 |
(type (;1;) (func (result i32))) |
| 11 |
(import "foo:bar/a" "[resource-drop]r" (func (;0;) (type 0))) |
| 12 |
(export "b#foo" (func 1)) |
| 13 |
(func (;1;) (type 1) (result i32) |
| 14 |
i32.const 0 |
| 15 |
) |
| 16 |
(@producers |
| 17 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 18 |
(processed-by "my-fake-bindgen" "123.45") |
| 19 |
) |
| 20 |
) |
| 21 |
(alias export 0 "r" (type (;1;))) |
| 22 |
(alias export 0 "r" (type (;2;))) |
| 23 |
(core func (;0;) (canon resource.drop 2)) |
| 24 |
(core instance (;0;) |
| 25 |
(export "[resource-drop]r" (func 0)) |
| 26 |
) |
| 27 |
(core instance (;1;) (instantiate 0 |
| 28 |
(with "foo:bar/a" (instance 0)) |
| 29 |
) |
| 30 |
) |
| 31 |
(type (;3;) (own 1)) |
| 32 |
(type (;4;) (func (result 3))) |
| 33 |
(alias core export 1 "b#foo" (core func (;1;))) |
| 34 |
(func (;0;) (type 4) (canon lift (core func 1))) |
| 35 |
(alias export 0 "r" (type (;5;))) |
| 36 |
(component (;0;) |
| 37 |
(import "import-type-r" (type (;0;) (sub resource))) |
| 38 |
(import "import-type-r0" (type (;1;) (eq 0))) |
| 39 |
(type (;2;) (own 1)) |
| 40 |
(type (;3;) (func (result 2))) |
| 41 |
(import "import-func-foo" (func (;0;) (type 3))) |
| 42 |
(export (;4;) "r" (type 0)) |
| 43 |
(type (;5;) (own 4)) |
| 44 |
(type (;6;) (func (result 5))) |
| 45 |
(export (;1;) "foo" (func 0) (func (type 6))) |
| 46 |
) |
| 47 |
(instance (;1;) (instantiate 0 |
| 48 |
(with "import-func-foo" (func 0)) |
| 49 |
(with "import-type-r" (type 5)) |
| 50 |
(with "import-type-r0" (type 1)) |
| 51 |
) |
| 52 |
) |
| 53 |
(export (;2;) "b" (instance 1)) |
| 54 |
(@producers |
| 55 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 56 |
) |
| 57 |
) |