File: component.wat

package info (click to toggle)
rustc 1.85.0%2Bdfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 893,176 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; lisp: 29; perl: 29; ruby: 19; sql: 11
file content (64 lines) | stat: -rw-r--r-- 2,007 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
(component
  (core module (;0;)
    (type (;0;) (func (param i32) (result i32)))
    (type (;1;) (func (result i32)))
    (import "[export]foo:bar/name" "[resource-new]name" (func $new (;0;) (type 0)))
    (export "foo:bar/name#foo" (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 (;0;) (resource (rep i32)))
  (core func (;0;) (canon resource.new 0))
  (core instance (;0;)
    (export "[resource-new]name" (func 0))
  )
  (core instance (;1;) (instantiate 0
      (with "[export]foo:bar/name" (instance 0))
    )
  )
  (type (;1;) (own 0))
  (type (;2;) (func (result 1)))
  (alias core export 1 "foo:bar/name#foo" (core func (;1;)))
  (func (;0;) (type 2) (canon lift (core func 1)))
  (component (;0;)
    (import "import-type-name" (type (;0;) (sub resource)))
    (import "import-type-handle" (type (;1;) (eq 0)))
    (type (;2;) (own 1))
    (type (;3;) (func (result 2)))
    (import "import-func-foo" (func (;0;) (type 3)))
    (export (;4;) "name" (type 0))
    (export (;5;) "handle" (type 4))
    (type (;6;) (own 5))
    (type (;7;) (func (result 6)))
    (export (;1;) "foo" (func 0) (func (type 7)))
  )
  (instance (;0;) (instantiate 0
      (with "import-func-foo" (func 0))
      (with "import-type-name" (type 0))
      (with "import-type-handle" (type 0))
    )
  )
  (export (;1;) "foo:bar/name" (instance 0))
  (alias export 1 "name" (type (;3;)))
  (alias export 1 "handle" (type (;4;)))
  (component (;1;)
    (import "import-type-name" (type (;0;) (sub resource)))
    (import "import-type-handle" (type (;1;) (eq 0)))
    (export (;2;) "handle" (type 1))
  )
  (instance (;2;) (instantiate 1
      (with "import-type-name" (type 3))
      (with "import-type-handle" (type 4))
    )
  )
  (export (;3;) "name" (instance 2))
  (@producers
    (processed-by "wit-component" "$CARGO_PKG_VERSION")
  )
)