(component (core module $main (;0;) (type (;0;) (func (result i32))) (export "foo:foo/a#[constructor]r" (func 0)) (func (;0;) (type 0) (result i32) unreachable ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") ) ) (type $r (;0;) (resource (rep i32))) (core instance $main (;0;) (instantiate $main)) (type (;1;) (own $r)) (type (;2;) (func (result 1))) (alias core export $main "foo:foo/a#[constructor]r" (core func $"foo:foo/a#[constructor]r" (;0;))) (func $"[constructor]r" (;0;) (type 2) (canon lift (core func $"foo:foo/a#[constructor]r"))) (component $foo:foo/a-shim-component (;0;) (import "import-type-r" (type (;0;) (sub resource))) (type (;1;) (own 0)) (type (;2;) (func (result 1))) (import "import-constructor-r" (func (;0;) (type 2))) (export (;3;) "r" (type 0)) (type (;4;) (own 3)) (type (;5;) (func (result 4))) (export (;1;) "[constructor]r" (func 0) (func (type 5))) ) (instance $foo:foo/a-shim-instance (;0;) (instantiate $foo:foo/a-shim-component (with "import-constructor-r" (func $"[constructor]r")) (with "import-type-r" (type $r)) ) ) (export $foo:foo/a (;1;) "foo:foo/a" (instance $foo:foo/a-shim-instance)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) )