| 1 |
(component |
| 2 |
(core module (;0;) |
| 3 |
(type (;0;) (func (param i32))) |
| 4 |
(type (;1;) (func)) |
| 5 |
(type (;2;) (func (param i32 i32))) |
| 6 |
(type (;3;) (func (result i32))) |
| 7 |
(type (;4;) (func (param i32 i32) (result i32))) |
| 8 |
(type (;5;) (func (param i32) (result i32))) |
| 9 |
(type (;6;) (func (param i32 i32 i32 i32) (result i32))) |
| 10 |
(import "$root" "[backpressure-set]" (func (;0;) (type 0))) |
| 11 |
(import "$root" "[backpressure-inc]" (func (;1;) (type 1))) |
| 12 |
(import "$root" "[backpressure-dec]" (func (;2;) (type 1))) |
| 13 |
(import "[export]$root" "[task-cancel]" (func (;3;) (type 1))) |
| 14 |
(import "[export]$root" "[task-return]foo" (func (;4;) (type 2))) |
| 15 |
(import "[export]foo:foo/bar" "[task-return]foo" (func (;5;) (type 2))) |
| 16 |
(import "$root" "[waitable-set-new]" (func (;6;) (type 3))) |
| 17 |
(import "$root" "[waitable-set-wait]" (func (;7;) (type 4))) |
| 18 |
(import "$root" "[waitable-set-poll]" (func (;8;) (type 4))) |
| 19 |
(import "$root" "[waitable-set-drop]" (func (;9;) (type 0))) |
| 20 |
(import "$root" "[waitable-join]" (func (;10;) (type 2))) |
| 21 |
(import "$root" "[thread-yield]" (func (;11;) (type 3))) |
| 22 |
(import "$root" "[subtask-drop]" (func (;12;) (type 0))) |
| 23 |
(import "$root" "[subtask-cancel]" (func (;13;) (type 5))) |
| 24 |
(import "$root" "[error-context-new-utf8]" (func (;14;) (type 4))) |
| 25 |
(import "$root" "[error-context-new-utf16]" (func (;15;) (type 4))) |
| 26 |
(import "$root" "[error-context-new-latin1+utf16]" (func (;16;) (type 4))) |
| 27 |
(import "$root" "[error-context-debug-message-utf8]" (func (;17;) (type 2))) |
| 28 |
(import "$root" "[error-context-debug-message-utf16]" (func (;18;) (type 2))) |
| 29 |
(import "$root" "[error-context-debug-message-latin1+utf16]" (func (;19;) (type 2))) |
| 30 |
(import "$root" "[error-context-drop]" (func (;20;) (type 0))) |
| 31 |
(import "$root" "[context-get-0]" (func (;21;) (type 3))) |
| 32 |
(import "$root" "[context-set-0]" (func (;22;) (type 0))) |
| 33 |
(memory (;0;) 1) |
| 34 |
(export "[async-lift-stackful]foo" (func 23)) |
| 35 |
(export "[async-lift-stackful]foo:foo/bar#foo" (func 24)) |
| 36 |
(export "memory" (memory 0)) |
| 37 |
(export "cabi_realloc" (func 25)) |
| 38 |
(func (;23;) (type 2) (param i32 i32) |
| 39 |
unreachable |
| 40 |
) |
| 41 |
(func (;24;) (type 2) (param i32 i32) |
| 42 |
unreachable |
| 43 |
) |
| 44 |
(func (;25;) (type 6) (param i32 i32 i32 i32) (result i32) |
| 45 |
unreachable |
| 46 |
) |
| 47 |
(@producers |
| 48 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 49 |
(processed-by "my-fake-bindgen" "123.45") |
| 50 |
) |
| 51 |
) |
| 52 |
(core module (;1;) |
| 53 |
(type (;0;) (func (param i32 i32) (result i32))) |
| 54 |
(type (;1;) (func (param i32 i32))) |
| 55 |
(type (;2;) (func (param i32 i32))) |
| 56 |
(table (;0;) 10 10 funcref) |
| 57 |
(export "0" (func $waitable-set.wait)) |
| 58 |
(export "1" (func $waitable-set.poll)) |
| 59 |
(export "2" (func $error-new)) |
| 60 |
(export "3" (func $"#func3 error-new")) |
| 61 |
(export "4" (func $"#func4 error-new")) |
| 62 |
(export "5" (func $error-debug-message)) |
| 63 |
(export "6" (func $"#func6 error-debug-message")) |
| 64 |
(export "7" (func $"#func7 error-debug-message")) |
| 65 |
(export "8" (func $task-return-foo)) |
| 66 |
(export "9" (func $"#func9 task-return-foo")) |
| 67 |
(export "$imports" (table 0)) |
| 68 |
(func $waitable-set.wait (;0;) (type 0) (param i32 i32) (result i32) |
| 69 |
local.get 0 |
| 70 |
local.get 1 |
| 71 |
i32.const 0 |
| 72 |
call_indirect (type 0) |
| 73 |
) |
| 74 |
(func $waitable-set.poll (;1;) (type 0) (param i32 i32) (result i32) |
| 75 |
local.get 0 |
| 76 |
local.get 1 |
| 77 |
i32.const 1 |
| 78 |
call_indirect (type 0) |
| 79 |
) |
| 80 |
(func $error-new (;2;) (type 0) (param i32 i32) (result i32) |
| 81 |
local.get 0 |
| 82 |
local.get 1 |
| 83 |
i32.const 2 |
| 84 |
call_indirect (type 0) |
| 85 |
) |
| 86 |
(func $"#func3 error-new" (@name "error-new") (;3;) (type 0) (param i32 i32) (result i32) |
| 87 |
local.get 0 |
| 88 |
local.get 1 |
| 89 |
i32.const 3 |
| 90 |
call_indirect (type 0) |
| 91 |
) |
| 92 |
(func $"#func4 error-new" (@name "error-new") (;4;) (type 0) (param i32 i32) (result i32) |
| 93 |
local.get 0 |
| 94 |
local.get 1 |
| 95 |
i32.const 4 |
| 96 |
call_indirect (type 0) |
| 97 |
) |
| 98 |
(func $error-debug-message (;5;) (type 1) (param i32 i32) |
| 99 |
local.get 0 |
| 100 |
local.get 1 |
| 101 |
i32.const 5 |
| 102 |
call_indirect (type 1) |
| 103 |
) |
| 104 |
(func $"#func6 error-debug-message" (@name "error-debug-message") (;6;) (type 1) (param i32 i32) |
| 105 |
local.get 0 |
| 106 |
local.get 1 |
| 107 |
i32.const 6 |
| 108 |
call_indirect (type 1) |
| 109 |
) |
| 110 |
(func $"#func7 error-debug-message" (@name "error-debug-message") (;7;) (type 1) (param i32 i32) |
| 111 |
local.get 0 |
| 112 |
local.get 1 |
| 113 |
i32.const 7 |
| 114 |
call_indirect (type 1) |
| 115 |
) |
| 116 |
(func $task-return-foo (;8;) (type 2) (param i32 i32) |
| 117 |
local.get 0 |
| 118 |
local.get 1 |
| 119 |
i32.const 8 |
| 120 |
call_indirect (type 2) |
| 121 |
) |
| 122 |
(func $"#func9 task-return-foo" (@name "task-return-foo") (;9;) (type 2) (param i32 i32) |
| 123 |
local.get 0 |
| 124 |
local.get 1 |
| 125 |
i32.const 9 |
| 126 |
call_indirect (type 2) |
| 127 |
) |
| 128 |
(@producers |
| 129 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 130 |
) |
| 131 |
) |
| 132 |
(core module (;2;) |
| 133 |
(type (;0;) (func (param i32 i32) (result i32))) |
| 134 |
(type (;1;) (func (param i32 i32))) |
| 135 |
(type (;2;) (func (param i32 i32))) |
| 136 |
(import "" "0" (func (;0;) (type 0))) |
| 137 |
(import "" "1" (func (;1;) (type 0))) |
| 138 |
(import "" "2" (func (;2;) (type 0))) |
| 139 |
(import "" "3" (func (;3;) (type 0))) |
| 140 |
(import "" "4" (func (;4;) (type 0))) |
| 141 |
(import "" "5" (func (;5;) (type 1))) |
| 142 |
(import "" "6" (func (;6;) (type 1))) |
| 143 |
(import "" "7" (func (;7;) (type 1))) |
| 144 |
(import "" "8" (func (;8;) (type 2))) |
| 145 |
(import "" "9" (func (;9;) (type 2))) |
| 146 |
(import "" "$imports" (table (;0;) 10 10 funcref)) |
| 147 |
(elem (;0;) (i32.const 0) func 0 1 2 3 4 5 6 7 8 9) |
| 148 |
(@producers |
| 149 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 150 |
) |
| 151 |
) |
| 152 |
(core instance (;0;) (instantiate 1)) |
| 153 |
(core func (;0;) (canon backpressure.set)) |
| 154 |
(core func (;1;) (canon backpressure.inc)) |
| 155 |
(core func (;2;) (canon backpressure.dec)) |
| 156 |
(core func (;3;) (canon waitable-set.new)) |
| 157 |
(alias core export 0 "0" (core func (;4;))) |
| 158 |
(alias core export 0 "1" (core func (;5;))) |
| 159 |
(core func (;6;) (canon waitable-set.drop)) |
| 160 |
(core func (;7;) (canon waitable.join)) |
| 161 |
(core func (;8;) (canon thread.yield)) |
| 162 |
(core func (;9;) (canon subtask.drop)) |
| 163 |
(core func (;10;) (canon subtask.cancel)) |
| 164 |
(alias core export 0 "2" (core func (;11;))) |
| 165 |
(alias core export 0 "3" (core func (;12;))) |
| 166 |
(alias core export 0 "4" (core func (;13;))) |
| 167 |
(alias core export 0 "5" (core func (;14;))) |
| 168 |
(alias core export 0 "6" (core func (;15;))) |
| 169 |
(alias core export 0 "7" (core func (;16;))) |
| 170 |
(core func (;17;) (canon error-context.drop)) |
| 171 |
(core func (;18;) (canon context.get i32 0)) |
| 172 |
(core func (;19;) (canon context.set i32 0)) |
| 173 |
(core instance (;1;) |
| 174 |
(export "[backpressure-set]" (func 0)) |
| 175 |
(export "[backpressure-inc]" (func 1)) |
| 176 |
(export "[backpressure-dec]" (func 2)) |
| 177 |
(export "[waitable-set-new]" (func 3)) |
| 178 |
(export "[waitable-set-wait]" (func 4)) |
| 179 |
(export "[waitable-set-poll]" (func 5)) |
| 180 |
(export "[waitable-set-drop]" (func 6)) |
| 181 |
(export "[waitable-join]" (func 7)) |
| 182 |
(export "[thread-yield]" (func 8)) |
| 183 |
(export "[subtask-drop]" (func 9)) |
| 184 |
(export "[subtask-cancel]" (func 10)) |
| 185 |
(export "[error-context-new-utf8]" (func 11)) |
| 186 |
(export "[error-context-new-utf16]" (func 12)) |
| 187 |
(export "[error-context-new-latin1+utf16]" (func 13)) |
| 188 |
(export "[error-context-debug-message-utf8]" (func 14)) |
| 189 |
(export "[error-context-debug-message-utf16]" (func 15)) |
| 190 |
(export "[error-context-debug-message-latin1+utf16]" (func 16)) |
| 191 |
(export "[error-context-drop]" (func 17)) |
| 192 |
(export "[context-get-0]" (func 18)) |
| 193 |
(export "[context-set-0]" (func 19)) |
| 194 |
) |
| 195 |
(core func (;20;) (canon task.cancel)) |
| 196 |
(alias core export 0 "8" (core func (;21;))) |
| 197 |
(core instance (;2;) |
| 198 |
(export "[task-cancel]" (func 20)) |
| 199 |
(export "[task-return]foo" (func 21)) |
| 200 |
) |
| 201 |
(alias core export 0 "9" (core func (;22;))) |
| 202 |
(core instance (;3;) |
| 203 |
(export "[task-return]foo" (func 22)) |
| 204 |
) |
| 205 |
(core instance (;4;) (instantiate 0 |
| 206 |
(with "$root" (instance 1)) |
| 207 |
(with "[export]$root" (instance 2)) |
| 208 |
(with "[export]foo:foo/bar" (instance 3)) |
| 209 |
) |
| 210 |
) |
| 211 |
(alias core export 4 "memory" (core memory (;0;))) |
| 212 |
(alias core export 0 "$imports" (core table (;0;))) |
| 213 |
(core func (;23;) (canon waitable-set.wait (memory 0))) |
| 214 |
(core func (;24;) (canon waitable-set.poll (memory 0))) |
| 215 |
(core func (;25;) (canon error-context.new (memory 0) string-encoding=utf8)) |
| 216 |
(core func (;26;) (canon error-context.new (memory 0) string-encoding=utf16)) |
| 217 |
(core func (;27;) (canon error-context.new (memory 0) string-encoding=latin1+utf16)) |
| 218 |
(alias core export 4 "cabi_realloc" (core func (;28;))) |
| 219 |
(core func (;29;) (canon error-context.debug-message (memory 0) (realloc 28) string-encoding=utf8)) |
| 220 |
(core func (;30;) (canon error-context.debug-message (memory 0) (realloc 28) string-encoding=utf16)) |
| 221 |
(core func (;31;) (canon error-context.debug-message (memory 0) (realloc 28) string-encoding=latin1+utf16)) |
| 222 |
(core func (;32;) (canon task.return (result string) (memory 0) string-encoding=utf8)) |
| 223 |
(core func (;33;) (canon task.return (result string) (memory 0) string-encoding=utf8)) |
| 224 |
(core instance (;5;) |
| 225 |
(export "$imports" (table 0)) |
| 226 |
(export "0" (func 23)) |
| 227 |
(export "1" (func 24)) |
| 228 |
(export "2" (func 25)) |
| 229 |
(export "3" (func 26)) |
| 230 |
(export "4" (func 27)) |
| 231 |
(export "5" (func 29)) |
| 232 |
(export "6" (func 30)) |
| 233 |
(export "7" (func 31)) |
| 234 |
(export "8" (func 32)) |
| 235 |
(export "9" (func 33)) |
| 236 |
) |
| 237 |
(core instance (;6;) (instantiate 2 |
| 238 |
(with "" (instance 5)) |
| 239 |
) |
| 240 |
) |
| 241 |
(type (;0;) (func (param "s" string) (result string))) |
| 242 |
(alias core export 4 "[async-lift-stackful]foo" (core func (;34;))) |
| 243 |
(func (;0;) (type 0) (canon lift (core func 34) (memory 0) (realloc 28) string-encoding=utf8 async)) |
| 244 |
(export (;1;) "foo" (func 0)) |
| 245 |
(type (;1;) (func (param "s" string) (result string))) |
| 246 |
(alias core export 4 "[async-lift-stackful]foo:foo/bar#foo" (core func (;35;))) |
| 247 |
(func (;2;) (type 1) (canon lift (core func 35) (memory 0) (realloc 28) string-encoding=utf8 async)) |
| 248 |
(component (;0;) |
| 249 |
(type (;0;) (func (param "s" string) (result string))) |
| 250 |
(import "import-func-foo" (func (;0;) (type 0))) |
| 251 |
(type (;1;) (func (param "s" string) (result string))) |
| 252 |
(export (;1;) "foo" (func 0) (func (type 1))) |
| 253 |
) |
| 254 |
(instance (;0;) (instantiate 0 |
| 255 |
(with "import-func-foo" (func 2)) |
| 256 |
) |
| 257 |
) |
| 258 |
(export (;1;) "foo:foo/bar" (instance 0)) |
| 259 |
(@producers |
| 260 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 261 |
) |
| 262 |
) |