Debian Codegraph @

vendor/wit-component/tests/components/resource-intrinsics-with-just-import/component.wat

raw
1 (component
2 (type $ty-foo (;0;)
3 (instance
4 (export (;0;) "a" (type (sub resource)))
5 )
6 )
7 (import "foo" (instance $foo (;0;) (type $ty-foo)))
8 (core module $main (;0;)
9 (type (;0;) (func (param i32)))
10 (import "foo" "[resource-drop]a" (func (;0;) (type 0)))
11 (@producers
12 (processed-by "wit-component" "$CARGO_PKG_VERSION")
13 (processed-by "my-fake-bindgen" "123.45")
14 )
15 )
16 (alias export $foo "a" (type $a (;1;)))
17 (core func $resource.drop (;0;) (canon resource.drop $a))
18 (core instance $foo (;0;)
19 (export "[resource-drop]a" (func $resource.drop))
20 )
21 (core instance $main (;1;) (instantiate $main
22 (with "foo" (instance $foo))
23 )
24 )
25 (@producers
26 (processed-by "wit-component" "$CARGO_PKG_VERSION")
27 )
28 )