Debian Codegraph @

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

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