Debian Codegraph @

crates/wit-component/tests/components/import-resource-simple/component.wat

raw
1 (component
2 (import "a" (type (;0;) (sub resource)))
3 (type (;1;) (own 0))
4 (type (;2;) (func (result 1)))
5 (import "[constructor]a" (func (;0;) (type 2)))
6 (import "[static]a.other-new" (func (;1;) (type 2)))
7 (core module (;0;)
8 (type (;0;) (func (result i32)))
9 (type (;1;) (func (param i32)))
10 (import "$root" "[constructor]a" (func (;0;) (type 0)))
11 (import "$root" "[static]a.other-new" (func (;1;) (type 0)))
12 (import "$root" "[resource-drop]a" (func (;2;) (type 1)))
13 (@producers
14 (processed-by "wit-component" "$CARGO_PKG_VERSION")
15 (processed-by "my-fake-bindgen" "123.45")
16 )
17 )
18 (core func (;0;) (canon lower (func 0)))
19 (core func (;1;) (canon lower (func 1)))
20 (core func (;2;) (canon resource.drop 0))
21 (core instance (;0;)
22 (export "[constructor]a" (func 0))
23 (export "[static]a.other-new" (func 1))
24 (export "[resource-drop]a" (func 2))
25 )
26 (core instance (;1;) (instantiate 0
27 (with "$root" (instance 0))
28 )
29 )
30 (@producers
31 (processed-by "wit-component" "$CARGO_PKG_VERSION")
32 )
33 )