| 1 |
(component |
| 2 |
(type (;0;) |
| 3 |
(instance |
| 4 |
(type (;0;) (record (field "f" u32))) |
| 5 |
(export (;1;) "f" (type (eq 0))) |
| 6 |
(type (;2;) (record (field "f" 1))) |
| 7 |
(export (;3;) "r" (type (eq 2))) |
| 8 |
) |
| 9 |
) |
| 10 |
(import "foo:foo/foo" (instance (;0;) (type 0))) |
| 11 |
(core module (;0;) |
| 12 |
(@producers |
| 13 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 14 |
(processed-by "my-fake-bindgen" "123.45") |
| 15 |
) |
| 16 |
) |
| 17 |
(alias export 0 "r" (type (;1;))) |
| 18 |
(core instance (;0;) (instantiate 0)) |
| 19 |
(alias export 0 "f" (type (;2;))) |
| 20 |
(alias export 0 "r" (type (;3;))) |
| 21 |
(component (;0;) |
| 22 |
(type (;0;) (record (field "f" u32))) |
| 23 |
(import "import-type-f" (type (;1;) (eq 0))) |
| 24 |
(type (;2;) (record (field "f" 1))) |
| 25 |
(import "import-type-r" (type (;3;) (eq 2))) |
| 26 |
(export (;4;) "r" (type 3)) |
| 27 |
) |
| 28 |
(instance (;1;) (instantiate 0 |
| 29 |
(with "import-type-f" (type 2)) |
| 30 |
(with "import-type-r" (type 3)) |
| 31 |
) |
| 32 |
) |
| 33 |
(export (;2;) "x" (instance 1)) |
| 34 |
(@producers |
| 35 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 36 |
) |
| 37 |
) |