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