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