Debian Codegraph @

crates/wit-component/tests/components/async-export/component.wat

raw
1 (component
2 (core module (;0;)
3 (type (;0;) (func (param i32 i32)))
4 (type (;1;) (func (param i32 i32 i32 i32) (result i32)))
5 (memory (;0;) 1)
6 (export "[async-lift-stackful]foo" (func 0))
7 (export "[async-lift-stackful]foo:foo/bar#foo" (func 1))
8 (export "memory" (memory 0))
9 (export "cabi_realloc" (func 2))
10 (func (;0;) (type 0) (param i32 i32)
11 unreachable
12 )
13 (func (;1;) (type 0) (param i32 i32)
14 unreachable
15 )
16 (func (;2;) (type 1) (param i32 i32 i32 i32) (result i32)
17 unreachable
18 )
19 (@producers
20 (processed-by "wit-component" "$CARGO_PKG_VERSION")
21 (processed-by "my-fake-bindgen" "123.45")
22 )
23 )
24 (core instance (;0;) (instantiate 0))
25 (alias core export 0 "memory" (core memory (;0;)))
26 (type (;0;) (func (param "s" string) (result string)))
27 (alias core export 0 "[async-lift-stackful]foo" (core func (;0;)))
28 (alias core export 0 "cabi_realloc" (core func (;1;)))
29 (func (;0;) (type 0) (canon lift (core func 0) (memory 0) (realloc 1) string-encoding=utf8 async))
30 (export (;1;) "foo" (func 0))
31 (type (;1;) (func (param "s" string) (result string)))
32 (alias core export 0 "[async-lift-stackful]foo:foo/bar#foo" (core func (;2;)))
33 (func (;2;) (type 1) (canon lift (core func 2) (memory 0) (realloc 1) string-encoding=utf8 async))
34 (component (;0;)
35 (type (;0;) (func (param "s" string) (result string)))
36 (import "import-func-foo" (func (;0;) (type 0)))
37 (type (;1;) (func (param "s" string) (result string)))
38 (export (;1;) "foo" (func 0) (func (type 1)))
39 )
40 (instance (;0;) (instantiate 0
41 (with "import-func-foo" (func 2))
42 )
43 )
44 (export (;1;) "foo:foo/bar" (instance 0))
45 (@producers
46 (processed-by "wit-component" "$CARGO_PKG_VERSION")
47 )
48 )