(component (core module $main (;0;) (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (result i32))) (import "[export]foo:bar/foo" "[resource-new]r" (func $new (;0;) (type 0))) (export "anon#f" (func 1)) (func (;1;) (type 1) (result i32) i32.const 100 call $new ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") ) ) (type $r (;0;) (resource (rep i32))) (type (;1;) (own $r)) (core func $resource.new (;0;) (canon resource.new $r)) (core instance $"[export]foo:bar/foo" (;0;) (export "[resource-new]r" (func $resource.new)) ) (core instance $main (;1;) (instantiate $main (with "[export]foo:bar/foo" (instance $"[export]foo:bar/foo")) ) ) (component $foo:bar/foo-shim-component (;0;) (import "import-type-r" (type (;0;) (sub resource))) (export (;1;) "r" (type 0)) (type (;2;) (own 1)) (export (;3;) "handle" (type 2)) ) (instance $foo:bar/foo-shim-instance (;0;) (instantiate $foo:bar/foo-shim-component (with "import-type-r" (type $r)) ) ) (export $foo:bar/foo (;1;) "foo:bar/foo" (instance $foo:bar/foo-shim-instance)) (type (;2;) (func (result 1))) (alias core export $main "anon#f" (core func $anon#f (;1;))) (func $f (;0;) (type 2) (canon lift (core func $anon#f))) (alias export $foo:bar/foo "r" (type $"#type3 r" (@name "r") (;3;))) (alias export $foo:bar/foo "handle" (type $handle (;4;))) (component $anon-shim-component (;1;) (import "import-type-r" (type (;0;) (sub resource))) (type (;1;) (own 0)) (import "import-type-handle" (type (;2;) (eq 1))) (import "import-type-handle0" (type (;3;) (eq 2))) (type (;4;) (func (result 3))) (import "import-func-f" (func (;0;) (type 4))) (export (;5;) "handle" (type 2)) (type (;6;) (func (result 5))) (export (;1;) "f" (func 0) (func (type 6))) ) (instance $anon-shim-instance (;2;) (instantiate $anon-shim-component (with "import-func-f" (func $f)) (with "import-type-r" (type $"#type3 r")) (with "import-type-handle" (type $handle)) (with "import-type-handle0" (type 1)) ) ) (export $anon (;3;) "anon" (instance $anon-shim-instance)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) )