wasmtime 15.0.1 → 16.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1212) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +83 -103
  3. data/ext/Cargo.toml +6 -6
  4. data/ext/cargo-vendor/cranelift-bforest-0.103.0/.cargo-checksum.json +1 -0
  5. data/ext/cargo-vendor/cranelift-bforest-0.103.0/Cargo.toml +40 -0
  6. data/ext/cargo-vendor/cranelift-bforest-0.103.0/src/lib.rs +183 -0
  7. data/ext/cargo-vendor/cranelift-codegen-0.103.0/.cargo-checksum.json +1 -0
  8. data/ext/cargo-vendor/cranelift-codegen-0.103.0/Cargo.toml +175 -0
  9. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/binemit/mod.rs +171 -0
  10. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph/cost.rs +171 -0
  11. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph/elaborate.rs +750 -0
  12. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph.rs +703 -0
  13. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/ir/dfg.rs +1735 -0
  14. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/ir/pcc.rs +1682 -0
  15. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/aarch64/lower/isle.rs +874 -0
  16. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/inst/mod.rs +2041 -0
  17. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/inst.isle +2928 -0
  18. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/lower.isle +2864 -0
  19. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/s390x/lower/isle.rs +1029 -0
  20. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/x64/lower/isle.rs +1064 -0
  21. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/x64/pcc.rs +916 -0
  22. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isle_prelude.rs +977 -0
  23. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/lib.rs +106 -0
  24. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/machinst/isle.rs +896 -0
  25. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/arithmetic.isle +152 -0
  26. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/cprop.isle +237 -0
  27. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/icmp.isle +199 -0
  28. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/selects.isle +76 -0
  29. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts.rs +172 -0
  30. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/prelude.isle +649 -0
  31. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/timing.rs +297 -0
  32. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/unionfind.rs +75 -0
  33. data/ext/cargo-vendor/cranelift-codegen-meta-0.103.0/.cargo-checksum.json +1 -0
  34. data/ext/cargo-vendor/cranelift-codegen-meta-0.103.0/Cargo.toml +35 -0
  35. data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/.cargo-checksum.json +1 -0
  36. data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/Cargo.toml +22 -0
  37. data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/src/lib.rs +10 -0
  38. data/ext/cargo-vendor/cranelift-control-0.103.0/.cargo-checksum.json +1 -0
  39. data/ext/cargo-vendor/cranelift-control-0.103.0/Cargo.toml +30 -0
  40. data/ext/cargo-vendor/cranelift-entity-0.103.0/.cargo-checksum.json +1 -0
  41. data/ext/cargo-vendor/cranelift-entity-0.103.0/Cargo.toml +50 -0
  42. data/ext/cargo-vendor/cranelift-entity-0.103.0/src/lib.rs +317 -0
  43. data/ext/cargo-vendor/cranelift-entity-0.103.0/src/primary.rs +516 -0
  44. data/ext/cargo-vendor/cranelift-entity-0.103.0/src/unsigned.rs +71 -0
  45. data/ext/cargo-vendor/cranelift-frontend-0.103.0/.cargo-checksum.json +1 -0
  46. data/ext/cargo-vendor/cranelift-frontend-0.103.0/Cargo.toml +68 -0
  47. data/ext/cargo-vendor/cranelift-frontend-0.103.0/src/lib.rs +189 -0
  48. data/ext/cargo-vendor/cranelift-isle-0.103.0/.cargo-checksum.json +1 -0
  49. data/ext/cargo-vendor/cranelift-isle-0.103.0/Cargo.toml +46 -0
  50. data/ext/cargo-vendor/cranelift-isle-0.103.0/isle_examples/link/multi_constructor_main.rs +88 -0
  51. data/ext/cargo-vendor/cranelift-isle-0.103.0/isle_examples/link/multi_extractor_main.rs +63 -0
  52. data/ext/cargo-vendor/cranelift-isle-0.103.0/src/codegen.rs +886 -0
  53. data/ext/cargo-vendor/cranelift-native-0.103.0/.cargo-checksum.json +1 -0
  54. data/ext/cargo-vendor/cranelift-native-0.103.0/Cargo.toml +43 -0
  55. data/ext/cargo-vendor/cranelift-native-0.103.0/src/lib.rs +184 -0
  56. data/ext/cargo-vendor/cranelift-wasm-0.103.0/.cargo-checksum.json +1 -0
  57. data/ext/cargo-vendor/cranelift-wasm-0.103.0/Cargo.toml +106 -0
  58. data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/environ/dummy.rs +953 -0
  59. data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/lib.rs +62 -0
  60. data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/translation_utils.rs +89 -0
  61. data/ext/cargo-vendor/wasi-cap-std-sync-16.0.0/.cargo-checksum.json +1 -0
  62. data/ext/cargo-vendor/wasi-cap-std-sync-16.0.0/Cargo.toml +102 -0
  63. data/ext/cargo-vendor/wasi-common-16.0.0/.cargo-checksum.json +1 -0
  64. data/ext/cargo-vendor/wasi-common-16.0.0/Cargo.toml +131 -0
  65. data/ext/cargo-vendor/wasi-common-16.0.0/src/lib.rs +76 -0
  66. data/ext/cargo-vendor/wasi-common-16.0.0/src/snapshots/preview_1.rs +1492 -0
  67. data/ext/cargo-vendor/wasmtime-16.0.0/.cargo-checksum.json +1 -0
  68. data/ext/cargo-vendor/wasmtime-16.0.0/Cargo.toml +211 -0
  69. data/ext/cargo-vendor/wasmtime-16.0.0/src/compiler.rs +682 -0
  70. data/ext/cargo-vendor/wasmtime-16.0.0/src/component/component.rs +505 -0
  71. data/ext/cargo-vendor/wasmtime-16.0.0/src/component/func/typed.rs +2400 -0
  72. data/ext/cargo-vendor/wasmtime-16.0.0/src/config.rs +2422 -0
  73. data/ext/cargo-vendor/wasmtime-16.0.0/src/func.rs +2391 -0
  74. data/ext/cargo-vendor/wasmtime-16.0.0/src/lib.rs +520 -0
  75. data/ext/cargo-vendor/wasmtime-16.0.0/src/memory.rs +998 -0
  76. data/ext/cargo-vendor/wasmtime-16.0.0/src/module.rs +1370 -0
  77. data/ext/cargo-vendor/wasmtime-16.0.0/src/stack.rs +73 -0
  78. data/ext/cargo-vendor/wasmtime-16.0.0/src/v128.rs +122 -0
  79. data/ext/cargo-vendor/wasmtime-asm-macros-16.0.0/.cargo-checksum.json +1 -0
  80. data/ext/cargo-vendor/wasmtime-asm-macros-16.0.0/Cargo.toml +22 -0
  81. data/ext/cargo-vendor/wasmtime-cache-16.0.0/.cargo-checksum.json +1 -0
  82. data/ext/cargo-vendor/wasmtime-cache-16.0.0/Cargo.toml +81 -0
  83. data/ext/cargo-vendor/wasmtime-cache-16.0.0/src/lib.rs +235 -0
  84. data/ext/cargo-vendor/wasmtime-cache-16.0.0/src/worker.rs +890 -0
  85. data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/.cargo-checksum.json +1 -0
  86. data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/Cargo.toml +67 -0
  87. data/ext/cargo-vendor/wasmtime-component-util-16.0.0/.cargo-checksum.json +1 -0
  88. data/ext/cargo-vendor/wasmtime-component-util-16.0.0/Cargo.toml +25 -0
  89. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/.cargo-checksum.json +1 -0
  90. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/Cargo.toml +112 -0
  91. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/compiler/component.rs +959 -0
  92. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/compiler.rs +1317 -0
  93. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug/transform/expression.rs +1252 -0
  94. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug/transform/simulate.rs +410 -0
  95. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug.rs +18 -0
  96. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/func_environ.rs +2750 -0
  97. data/ext/cargo-vendor/wasmtime-cranelift-shared-16.0.0/.cargo-checksum.json +1 -0
  98. data/ext/cargo-vendor/wasmtime-cranelift-shared-16.0.0/Cargo.toml +71 -0
  99. data/ext/cargo-vendor/wasmtime-environ-16.0.0/.cargo-checksum.json +1 -0
  100. data/ext/cargo-vendor/wasmtime-environ-16.0.0/Cargo.lock +660 -0
  101. data/ext/cargo-vendor/wasmtime-environ-16.0.0/Cargo.toml +125 -0
  102. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/compilation.rs +402 -0
  103. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/compiler.rs +47 -0
  104. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/translate.rs +951 -0
  105. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/types.rs +1876 -0
  106. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/lib.rs +59 -0
  107. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module.rs +1075 -0
  108. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module_environ.rs +892 -0
  109. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module_types.rs +120 -0
  110. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/scopevec.rs +78 -0
  111. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/.cargo-checksum.json +1 -0
  112. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/Cargo.toml +63 -0
  113. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/lib.rs +328 -0
  114. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/unix.rs +265 -0
  115. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/windows.c +9 -0
  116. data/ext/cargo-vendor/wasmtime-jit-16.0.0/.cargo-checksum.json +1 -0
  117. data/ext/cargo-vendor/wasmtime-jit-16.0.0/Cargo.toml +125 -0
  118. data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/code_memory.rs +319 -0
  119. data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/instantiate.rs +772 -0
  120. data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/lib.rs +21 -0
  121. data/ext/cargo-vendor/wasmtime-jit-debug-16.0.0/.cargo-checksum.json +1 -0
  122. data/ext/cargo-vendor/wasmtime-jit-debug-16.0.0/Cargo.toml +67 -0
  123. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-16.0.0/.cargo-checksum.json +1 -0
  124. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-16.0.0/Cargo.toml +46 -0
  125. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/.cargo-checksum.json +1 -0
  126. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/Cargo.toml +139 -0
  127. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/build.rs +28 -0
  128. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/proptest-regressions/instance/allocator/pooling/memory_pool.txt +9 -0
  129. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/aarch64.rs +120 -0
  130. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/mod.rs +32 -0
  131. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/riscv64.rs +88 -0
  132. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/s390x.rs +61 -0
  133. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/x86_64.rs +106 -0
  134. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/cow.rs +888 -0
  135. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/helpers.c +113 -0
  136. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/memory_pool.rs +1005 -0
  137. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/stack_pool.rs +242 -0
  138. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/table_pool.rs +227 -0
  139. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling.rs +698 -0
  140. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/lib.rs +264 -0
  141. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/libcalls.rs +776 -0
  142. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mmap.rs +214 -0
  143. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mpk/enabled.rs +204 -0
  144. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mpk/pkru.rs +102 -0
  145. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/mod.rs +10 -0
  146. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/traphandlers.rs +42 -0
  147. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/unwind.rs +17 -0
  148. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/vm.rs +63 -0
  149. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/mod.rs +30 -0
  150. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/machports.rs +487 -0
  151. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/macos_traphandlers.rs +28 -0
  152. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/mod.rs +21 -0
  153. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/signals.rs +402 -0
  154. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/unwind.rs +91 -0
  155. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/vm.rs +208 -0
  156. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/mod.rs +6 -0
  157. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/traphandlers.rs +105 -0
  158. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/unwind.rs +46 -0
  159. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/vm.rs +79 -0
  160. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/traphandlers/backtrace.rs +265 -0
  161. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/traphandlers.rs +733 -0
  162. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/vmcontext.rs +1197 -0
  163. data/ext/cargo-vendor/wasmtime-types-16.0.0/.cargo-checksum.json +1 -0
  164. data/ext/cargo-vendor/wasmtime-types-16.0.0/Cargo.toml +36 -0
  165. data/ext/cargo-vendor/wasmtime-types-16.0.0/src/lib.rs +504 -0
  166. data/ext/cargo-vendor/wasmtime-versioned-export-macros-16.0.0/.cargo-checksum.json +1 -0
  167. data/ext/cargo-vendor/wasmtime-versioned-export-macros-16.0.0/Cargo.toml +32 -0
  168. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/.cargo-checksum.json +1 -0
  169. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/Cargo.toml +261 -0
  170. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/lib.rs +137 -0
  171. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/io.rs +368 -0
  172. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/network.rs +570 -0
  173. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/tcp.rs +632 -0
  174. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/udp.rs +550 -0
  175. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/mod.rs +328 -0
  176. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/preview0.rs +870 -0
  177. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/preview1.rs +2348 -0
  178. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/stdio.rs +259 -0
  179. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/stream.rs +182 -0
  180. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/table.rs +337 -0
  181. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/api.rs +218 -0
  182. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/async_.rs +360 -0
  183. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/main.rs +113 -0
  184. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/preview1.rs +239 -0
  185. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/sync.rs +299 -0
  186. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/process_stdin.rs +165 -0
  187. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/command-extended.wit +6 -0
  188. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/command.wit +7 -0
  189. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/imports.wit +20 -0
  190. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/http/proxy.wit +32 -0
  191. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/http/types.wit +570 -0
  192. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/test.wit +22 -0
  193. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/witx/preview0/typenames.witx +746 -0
  194. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/witx/preview0/wasi_unstable.witx +513 -0
  195. data/ext/cargo-vendor/wasmtime-winch-16.0.0/.cargo-checksum.json +1 -0
  196. data/ext/cargo-vendor/wasmtime-winch-16.0.0/Cargo.toml +77 -0
  197. data/ext/cargo-vendor/wasmtime-winch-16.0.0/src/compiler.rs +243 -0
  198. data/ext/cargo-vendor/wasmtime-wit-bindgen-16.0.0/.cargo-checksum.json +1 -0
  199. data/ext/cargo-vendor/wasmtime-wit-bindgen-16.0.0/Cargo.toml +41 -0
  200. data/ext/cargo-vendor/wasmtime-wmemcheck-16.0.0/.cargo-checksum.json +1 -0
  201. data/ext/cargo-vendor/wasmtime-wmemcheck-16.0.0/Cargo.toml +29 -0
  202. data/ext/cargo-vendor/wiggle-16.0.0/.cargo-checksum.json +1 -0
  203. data/ext/cargo-vendor/wiggle-16.0.0/Cargo.toml +115 -0
  204. data/ext/cargo-vendor/wiggle-16.0.0/src/lib.rs +1198 -0
  205. data/ext/cargo-vendor/wiggle-generate-16.0.0/.cargo-checksum.json +1 -0
  206. data/ext/cargo-vendor/wiggle-generate-16.0.0/Cargo.toml +65 -0
  207. data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/handle.rs +84 -0
  208. data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/record.rs +132 -0
  209. data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/variant.rs +191 -0
  210. data/ext/cargo-vendor/wiggle-macro-16.0.0/.cargo-checksum.json +1 -0
  211. data/ext/cargo-vendor/wiggle-macro-16.0.0/Cargo.toml +55 -0
  212. data/ext/cargo-vendor/winch-codegen-0.14.0/.cargo-checksum.json +1 -0
  213. data/ext/cargo-vendor/winch-codegen-0.14.0/Cargo.toml +76 -0
  214. data/ext/cargo-vendor/winch-codegen-0.14.0/src/abi/local.rs +81 -0
  215. data/ext/cargo-vendor/winch-codegen-0.14.0/src/abi/mod.rs +614 -0
  216. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/call.rs +345 -0
  217. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/context.rs +545 -0
  218. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/control.rs +497 -0
  219. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/env.rs +251 -0
  220. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/mod.rs +428 -0
  221. data/ext/cargo-vendor/winch-codegen-0.14.0/src/frame/mod.rs +221 -0
  222. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/abi.rs +313 -0
  223. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/masm.rs +444 -0
  224. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/mod.rs +137 -0
  225. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/mod.rs +225 -0
  226. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/abi.rs +524 -0
  227. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/asm.rs +1117 -0
  228. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/masm.rs +994 -0
  229. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/mod.rs +172 -0
  230. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/regs.rs +247 -0
  231. data/ext/cargo-vendor/winch-codegen-0.14.0/src/masm.rs +679 -0
  232. data/ext/cargo-vendor/winch-codegen-0.14.0/src/stack.rs +436 -0
  233. data/ext/cargo-vendor/winch-codegen-0.14.0/src/trampoline.rs +734 -0
  234. data/ext/cargo-vendor/winch-codegen-0.14.0/src/visitor.rs +1383 -0
  235. data/lib/wasmtime/version.rb +1 -1
  236. metadata +903 -977
  237. data/ext/cargo-vendor/cranelift-bforest-0.102.1/.cargo-checksum.json +0 -1
  238. data/ext/cargo-vendor/cranelift-bforest-0.102.1/Cargo.toml +0 -31
  239. data/ext/cargo-vendor/cranelift-bforest-0.102.1/src/lib.rs +0 -184
  240. data/ext/cargo-vendor/cranelift-codegen-0.102.1/.cargo-checksum.json +0 -1
  241. data/ext/cargo-vendor/cranelift-codegen-0.102.1/Cargo.toml +0 -164
  242. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/binemit/mod.rs +0 -171
  243. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph/cost.rs +0 -91
  244. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph/elaborate.rs +0 -731
  245. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph.rs +0 -678
  246. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/ir/dfg.rs +0 -1730
  247. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/ir/pcc.rs +0 -1682
  248. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/aarch64/lower/isle.rs +0 -875
  249. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/inst/mod.rs +0 -2041
  250. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/inst.isle +0 -2909
  251. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/lower.isle +0 -2860
  252. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/s390x/lower/isle.rs +0 -1029
  253. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/x64/lower/isle.rs +0 -1070
  254. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/x64/pcc.rs +0 -884
  255. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isle_prelude.rs +0 -972
  256. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/lib.rs +0 -108
  257. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/machinst/isle.rs +0 -897
  258. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/arithmetic.isle +0 -128
  259. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/cprop.isle +0 -210
  260. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/icmp.isle +0 -177
  261. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/selects.isle +0 -59
  262. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts.rs +0 -138
  263. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/prelude.isle +0 -646
  264. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/timing.rs +0 -271
  265. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/unionfind.rs +0 -74
  266. data/ext/cargo-vendor/cranelift-codegen-meta-0.102.1/.cargo-checksum.json +0 -1
  267. data/ext/cargo-vendor/cranelift-codegen-meta-0.102.1/Cargo.toml +0 -26
  268. data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/.cargo-checksum.json +0 -1
  269. data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/Cargo.toml +0 -22
  270. data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/src/lib.rs +0 -12
  271. data/ext/cargo-vendor/cranelift-control-0.102.1/.cargo-checksum.json +0 -1
  272. data/ext/cargo-vendor/cranelift-control-0.102.1/Cargo.toml +0 -30
  273. data/ext/cargo-vendor/cranelift-entity-0.102.1/.cargo-checksum.json +0 -1
  274. data/ext/cargo-vendor/cranelift-entity-0.102.1/Cargo.toml +0 -41
  275. data/ext/cargo-vendor/cranelift-entity-0.102.1/src/lib.rs +0 -316
  276. data/ext/cargo-vendor/cranelift-entity-0.102.1/src/primary.rs +0 -456
  277. data/ext/cargo-vendor/cranelift-frontend-0.102.1/.cargo-checksum.json +0 -1
  278. data/ext/cargo-vendor/cranelift-frontend-0.102.1/Cargo.toml +0 -59
  279. data/ext/cargo-vendor/cranelift-frontend-0.102.1/src/lib.rs +0 -191
  280. data/ext/cargo-vendor/cranelift-isle-0.102.1/.cargo-checksum.json +0 -1
  281. data/ext/cargo-vendor/cranelift-isle-0.102.1/Cargo.toml +0 -37
  282. data/ext/cargo-vendor/cranelift-isle-0.102.1/isle_examples/link/multi_constructor_main.rs +0 -71
  283. data/ext/cargo-vendor/cranelift-isle-0.102.1/isle_examples/link/multi_extractor_main.rs +0 -50
  284. data/ext/cargo-vendor/cranelift-isle-0.102.1/src/codegen.rs +0 -763
  285. data/ext/cargo-vendor/cranelift-native-0.102.1/.cargo-checksum.json +0 -1
  286. data/ext/cargo-vendor/cranelift-native-0.102.1/Cargo.toml +0 -43
  287. data/ext/cargo-vendor/cranelift-native-0.102.1/src/lib.rs +0 -190
  288. data/ext/cargo-vendor/cranelift-wasm-0.102.1/.cargo-checksum.json +0 -1
  289. data/ext/cargo-vendor/cranelift-wasm-0.102.1/Cargo.toml +0 -97
  290. data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/environ/dummy.rs +0 -953
  291. data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/lib.rs +0 -64
  292. data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/translation_utils.rs +0 -97
  293. data/ext/cargo-vendor/wasi-cap-std-sync-15.0.1/.cargo-checksum.json +0 -1
  294. data/ext/cargo-vendor/wasi-cap-std-sync-15.0.1/Cargo.toml +0 -93
  295. data/ext/cargo-vendor/wasi-common-15.0.1/.cargo-checksum.json +0 -1
  296. data/ext/cargo-vendor/wasi-common-15.0.1/Cargo.toml +0 -122
  297. data/ext/cargo-vendor/wasi-common-15.0.1/src/lib.rs +0 -73
  298. data/ext/cargo-vendor/wasi-common-15.0.1/src/snapshots/preview_1.rs +0 -1490
  299. data/ext/cargo-vendor/wasm-encoder-0.36.2/.cargo-checksum.json +0 -1
  300. data/ext/cargo-vendor/wasm-encoder-0.36.2/Cargo.toml +0 -37
  301. data/ext/cargo-vendor/wasm-encoder-0.36.2/README.md +0 -80
  302. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/aliases.rs +0 -160
  303. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/builder.rs +0 -455
  304. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/canonicals.rs +0 -159
  305. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/components.rs +0 -29
  306. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/exports.rs +0 -124
  307. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/imports.rs +0 -175
  308. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/instances.rs +0 -200
  309. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/modules.rs +0 -29
  310. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/names.rs +0 -149
  311. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/start.rs +0 -52
  312. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/types.rs +0 -771
  313. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component.rs +0 -168
  314. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/code.rs +0 -2989
  315. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/custom.rs +0 -73
  316. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/data.rs +0 -185
  317. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/dump.rs +0 -627
  318. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/elements.rs +0 -220
  319. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/exports.rs +0 -98
  320. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/functions.rs +0 -63
  321. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/globals.rs +0 -100
  322. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/imports.rs +0 -155
  323. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/linking.rs +0 -263
  324. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/memories.rs +0 -111
  325. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/names.rs +0 -265
  326. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/producers.rs +0 -180
  327. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/start.rs +0 -39
  328. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/tables.rs +0 -115
  329. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/tags.rs +0 -104
  330. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/types.rs +0 -584
  331. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core.rs +0 -168
  332. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/lib.rs +0 -215
  333. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/raw.rs +0 -30
  334. data/ext/cargo-vendor/wasmparser-0.116.1/.cargo-checksum.json +0 -1
  335. data/ext/cargo-vendor/wasmparser-0.116.1/Cargo.lock +0 -674
  336. data/ext/cargo-vendor/wasmparser-0.116.1/Cargo.toml +0 -60
  337. data/ext/cargo-vendor/wasmparser-0.116.1/README.md +0 -36
  338. data/ext/cargo-vendor/wasmparser-0.116.1/benches/benchmark.rs +0 -370
  339. data/ext/cargo-vendor/wasmparser-0.116.1/examples/simple.rs +0 -37
  340. data/ext/cargo-vendor/wasmparser-0.116.1/src/binary_reader.rs +0 -1706
  341. data/ext/cargo-vendor/wasmparser-0.116.1/src/define_types.rs +0 -782
  342. data/ext/cargo-vendor/wasmparser-0.116.1/src/lib.rs +0 -729
  343. data/ext/cargo-vendor/wasmparser-0.116.1/src/limits.rs +0 -58
  344. data/ext/cargo-vendor/wasmparser-0.116.1/src/parser.rs +0 -1612
  345. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/aliases.rs +0 -119
  346. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/canonicals.rs +0 -120
  347. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/exports.rs +0 -135
  348. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/imports.rs +0 -129
  349. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/instances.rs +0 -163
  350. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/names.rs +0 -102
  351. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/start.rs +0 -30
  352. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/types.rs +0 -549
  353. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component.rs +0 -17
  354. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/code.rs +0 -146
  355. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/coredumps.rs +0 -243
  356. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/custom.rs +0 -63
  357. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/data.rs +0 -96
  358. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/dylink0.rs +0 -132
  359. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/elements.rs +0 -152
  360. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/exports.rs +0 -65
  361. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/functions.rs +0 -17
  362. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/globals.rs +0 -49
  363. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/imports.rs +0 -76
  364. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/init.rs +0 -51
  365. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/memories.rs +0 -56
  366. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/names.rs +0 -153
  367. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/operators.rs +0 -354
  368. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/producers.rs +0 -83
  369. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/tables.rs +0 -87
  370. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/tags.rs +0 -32
  371. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/types.rs +0 -544
  372. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core.rs +0 -37
  373. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers.rs +0 -316
  374. data/ext/cargo-vendor/wasmparser-0.116.1/src/resources.rs +0 -398
  375. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/component.rs +0 -3203
  376. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/core.rs +0 -1341
  377. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/func.rs +0 -348
  378. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/names.rs +0 -859
  379. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/operators.rs +0 -3466
  380. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/types.rs +0 -4011
  381. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator.rs +0 -1603
  382. data/ext/cargo-vendor/wasmparser-0.116.1/tests/big-module.rs +0 -33
  383. data/ext/cargo-vendor/wasmtime-15.0.1/.cargo-checksum.json +0 -1
  384. data/ext/cargo-vendor/wasmtime-15.0.1/Cargo.toml +0 -202
  385. data/ext/cargo-vendor/wasmtime-15.0.1/src/compiler.rs +0 -682
  386. data/ext/cargo-vendor/wasmtime-15.0.1/src/component/component.rs +0 -505
  387. data/ext/cargo-vendor/wasmtime-15.0.1/src/component/func/typed.rs +0 -2398
  388. data/ext/cargo-vendor/wasmtime-15.0.1/src/config.rs +0 -2422
  389. data/ext/cargo-vendor/wasmtime-15.0.1/src/func.rs +0 -2428
  390. data/ext/cargo-vendor/wasmtime-15.0.1/src/lib.rs +0 -518
  391. data/ext/cargo-vendor/wasmtime-15.0.1/src/memory.rs +0 -996
  392. data/ext/cargo-vendor/wasmtime-15.0.1/src/module.rs +0 -1370
  393. data/ext/cargo-vendor/wasmtime-15.0.1/src/stack.rs +0 -73
  394. data/ext/cargo-vendor/wasmtime-15.0.1/src/v128.rs +0 -151
  395. data/ext/cargo-vendor/wasmtime-asm-macros-15.0.1/.cargo-checksum.json +0 -1
  396. data/ext/cargo-vendor/wasmtime-asm-macros-15.0.1/Cargo.toml +0 -22
  397. data/ext/cargo-vendor/wasmtime-cache-15.0.1/.cargo-checksum.json +0 -1
  398. data/ext/cargo-vendor/wasmtime-cache-15.0.1/Cargo.toml +0 -72
  399. data/ext/cargo-vendor/wasmtime-cache-15.0.1/src/lib.rs +0 -238
  400. data/ext/cargo-vendor/wasmtime-cache-15.0.1/src/worker.rs +0 -894
  401. data/ext/cargo-vendor/wasmtime-component-macro-15.0.1/.cargo-checksum.json +0 -1
  402. data/ext/cargo-vendor/wasmtime-component-macro-15.0.1/Cargo.toml +0 -58
  403. data/ext/cargo-vendor/wasmtime-component-util-15.0.1/.cargo-checksum.json +0 -1
  404. data/ext/cargo-vendor/wasmtime-component-util-15.0.1/Cargo.toml +0 -25
  405. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/.cargo-checksum.json +0 -1
  406. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/Cargo.toml +0 -103
  407. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/compiler/component.rs +0 -959
  408. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/compiler.rs +0 -1317
  409. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug/transform/expression.rs +0 -1250
  410. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug/transform/simulate.rs +0 -410
  411. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug.rs +0 -18
  412. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/func_environ.rs +0 -2746
  413. data/ext/cargo-vendor/wasmtime-cranelift-shared-15.0.1/.cargo-checksum.json +0 -1
  414. data/ext/cargo-vendor/wasmtime-cranelift-shared-15.0.1/Cargo.toml +0 -62
  415. data/ext/cargo-vendor/wasmtime-environ-15.0.1/.cargo-checksum.json +0 -1
  416. data/ext/cargo-vendor/wasmtime-environ-15.0.1/Cargo.lock +0 -677
  417. data/ext/cargo-vendor/wasmtime-environ-15.0.1/Cargo.toml +0 -116
  418. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/compilation.rs +0 -402
  419. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/compiler.rs +0 -47
  420. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/translate.rs +0 -951
  421. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/types.rs +0 -1870
  422. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/lib.rs +0 -59
  423. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module.rs +0 -1083
  424. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module_environ.rs +0 -876
  425. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module_types.rs +0 -78
  426. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/scopevec.rs +0 -57
  427. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/.cargo-checksum.json +0 -1
  428. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/Cargo.toml +0 -54
  429. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/lib.rs +0 -327
  430. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/unix.rs +0 -265
  431. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/windows.c +0 -9
  432. data/ext/cargo-vendor/wasmtime-jit-15.0.1/.cargo-checksum.json +0 -1
  433. data/ext/cargo-vendor/wasmtime-jit-15.0.1/Cargo.toml +0 -115
  434. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/code_memory.rs +0 -321
  435. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/instantiate.rs +0 -766
  436. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/lib.rs +0 -22
  437. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/miri.rs +0 -15
  438. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/systemv.rs +0 -90
  439. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/winx64.rs +0 -44
  440. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind.rs +0 -14
  441. data/ext/cargo-vendor/wasmtime-jit-debug-15.0.1/.cargo-checksum.json +0 -1
  442. data/ext/cargo-vendor/wasmtime-jit-debug-15.0.1/Cargo.toml +0 -58
  443. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-15.0.1/.cargo-checksum.json +0 -1
  444. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-15.0.1/Cargo.toml +0 -37
  445. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/.cargo-checksum.json +0 -1
  446. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/Cargo.toml +0 -126
  447. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/build.rs +0 -19
  448. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/proptest-regressions/instance/allocator/pooling/memory_pool.txt +0 -8
  449. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/cow.rs +0 -1060
  450. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/helpers.c +0 -108
  451. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/memory_pool.rs +0 -999
  452. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/stack_pool.rs +0 -242
  453. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/table_pool.rs +0 -225
  454. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/unix.rs +0 -56
  455. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/windows.rs +0 -38
  456. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling.rs +0 -708
  457. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/lib.rs +0 -279
  458. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/libcalls.rs +0 -775
  459. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mmap.rs +0 -226
  460. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mpk/enabled.rs +0 -201
  461. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mpk/pkru.rs +0 -93
  462. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/aarch64.rs +0 -42
  463. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/riscv64.rs +0 -45
  464. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/s390x.rs +0 -25
  465. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/x86_64.rs +0 -64
  466. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines.rs +0 -19
  467. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/aarch64.rs +0 -55
  468. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/riscv64.rs +0 -18
  469. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/s390x.rs +0 -22
  470. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/x86_64.rs +0 -20
  471. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace.rs +0 -291
  472. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/macos.rs +0 -492
  473. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/unix.rs +0 -402
  474. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/windows.rs +0 -89
  475. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers.rs +0 -815
  476. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/vmcontext.rs +0 -1197
  477. data/ext/cargo-vendor/wasmtime-types-15.0.1/.cargo-checksum.json +0 -1
  478. data/ext/cargo-vendor/wasmtime-types-15.0.1/Cargo.toml +0 -36
  479. data/ext/cargo-vendor/wasmtime-types-15.0.1/src/lib.rs +0 -504
  480. data/ext/cargo-vendor/wasmtime-versioned-export-macros-15.0.1/.cargo-checksum.json +0 -1
  481. data/ext/cargo-vendor/wasmtime-versioned-export-macros-15.0.1/Cargo.toml +0 -32
  482. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/.cargo-checksum.json +0 -1
  483. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/Cargo.toml +0 -248
  484. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/lib.rs +0 -135
  485. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/io.rs +0 -368
  486. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/network.rs +0 -515
  487. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/tcp.rs +0 -630
  488. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/udp.rs +0 -543
  489. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/mod.rs +0 -326
  490. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/preview1.rs +0 -2342
  491. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/stdio.rs +0 -450
  492. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/stream.rs +0 -182
  493. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/table.rs +0 -258
  494. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/command-extended.wit +0 -6
  495. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/cli/command.wit +0 -7
  496. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/cli/reactor.wit +0 -31
  497. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/http/proxy.wit +0 -33
  498. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/http/types.wit +0 -559
  499. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/test.wit +0 -22
  500. data/ext/cargo-vendor/wasmtime-winch-15.0.1/.cargo-checksum.json +0 -1
  501. data/ext/cargo-vendor/wasmtime-winch-15.0.1/Cargo.toml +0 -68
  502. data/ext/cargo-vendor/wasmtime-winch-15.0.1/src/compiler.rs +0 -242
  503. data/ext/cargo-vendor/wasmtime-wit-bindgen-15.0.1/.cargo-checksum.json +0 -1
  504. data/ext/cargo-vendor/wasmtime-wit-bindgen-15.0.1/Cargo.toml +0 -32
  505. data/ext/cargo-vendor/wasmtime-wmemcheck-15.0.1/.cargo-checksum.json +0 -1
  506. data/ext/cargo-vendor/wasmtime-wmemcheck-15.0.1/Cargo.toml +0 -22
  507. data/ext/cargo-vendor/wiggle-15.0.1/.cargo-checksum.json +0 -1
  508. data/ext/cargo-vendor/wiggle-15.0.1/Cargo.toml +0 -106
  509. data/ext/cargo-vendor/wiggle-15.0.1/src/lib.rs +0 -1198
  510. data/ext/cargo-vendor/wiggle-generate-15.0.1/.cargo-checksum.json +0 -1
  511. data/ext/cargo-vendor/wiggle-generate-15.0.1/Cargo.toml +0 -58
  512. data/ext/cargo-vendor/wiggle-generate-15.0.1/LICENSE +0 -220
  513. data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/handle.rs +0 -84
  514. data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/record.rs +0 -132
  515. data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/variant.rs +0 -191
  516. data/ext/cargo-vendor/wiggle-macro-15.0.1/.cargo-checksum.json +0 -1
  517. data/ext/cargo-vendor/wiggle-macro-15.0.1/Cargo.toml +0 -55
  518. data/ext/cargo-vendor/wiggle-macro-15.0.1/LICENSE +0 -220
  519. data/ext/cargo-vendor/winch-codegen-0.13.1/.cargo-checksum.json +0 -1
  520. data/ext/cargo-vendor/winch-codegen-0.13.1/Cargo.toml +0 -67
  521. data/ext/cargo-vendor/winch-codegen-0.13.1/src/abi/local.rs +0 -70
  522. data/ext/cargo-vendor/winch-codegen-0.13.1/src/abi/mod.rs +0 -304
  523. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/call.rs +0 -353
  524. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/context.rs +0 -465
  525. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/control.rs +0 -456
  526. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/env.rs +0 -181
  527. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/mod.rs +0 -436
  528. data/ext/cargo-vendor/winch-codegen-0.13.1/src/frame/mod.rs +0 -189
  529. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/abi.rs +0 -267
  530. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/masm.rs +0 -436
  531. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/mod.rs +0 -136
  532. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/mod.rs +0 -218
  533. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/abi.rs +0 -410
  534. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/asm.rs +0 -1106
  535. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/masm.rs +0 -953
  536. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/mod.rs +0 -172
  537. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/regs.rs +0 -247
  538. data/ext/cargo-vendor/winch-codegen-0.13.1/src/masm.rs +0 -592
  539. data/ext/cargo-vendor/winch-codegen-0.13.1/src/stack.rs +0 -366
  540. data/ext/cargo-vendor/winch-codegen-0.13.1/src/trampoline.rs +0 -489
  541. data/ext/cargo-vendor/winch-codegen-0.13.1/src/visitor.rs +0 -1339
  542. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/LICENSE +0 -0
  543. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/README.md +0 -0
  544. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/map.rs +0 -0
  545. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/node.rs +0 -0
  546. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/path.rs +0 -0
  547. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/pool.rs +0 -0
  548. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/set.rs +0 -0
  549. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/LICENSE +0 -0
  550. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/README.md +0 -0
  551. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/benches/x64-evex-encoding.rs +0 -0
  552. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/build.rs +0 -0
  553. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/alias_analysis.rs +0 -0
  554. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/binemit/stack_map.rs +0 -0
  555. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/bitset.rs +0 -0
  556. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/cfg_printer.rs +0 -0
  557. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/constant_hash.rs +0 -0
  558. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/context.rs +0 -0
  559. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ctxhash.rs +0 -0
  560. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/cursor.rs +0 -0
  561. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/data_value.rs +0 -0
  562. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dbg.rs +0 -0
  563. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dce.rs +0 -0
  564. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dominator_tree.rs +0 -0
  565. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/egraph/domtree.rs +0 -0
  566. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/flowgraph.rs +0 -0
  567. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/fx.rs +0 -0
  568. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/incremental_cache.rs +0 -0
  569. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/inst_predicates.rs +0 -0
  570. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/atomic_rmw_op.rs +0 -0
  571. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/builder.rs +0 -0
  572. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/condcodes.rs +0 -0
  573. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/constant.rs +0 -0
  574. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/dynamic_type.rs +0 -0
  575. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/entities.rs +0 -0
  576. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/extfunc.rs +0 -0
  577. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/extname.rs +0 -0
  578. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/function.rs +0 -0
  579. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/globalvalue.rs +0 -0
  580. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/immediates.rs +0 -0
  581. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/instructions.rs +0 -0
  582. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/jumptable.rs +0 -0
  583. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/known_symbol.rs +0 -0
  584. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/layout.rs +0 -0
  585. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/libcall.rs +0 -0
  586. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/memflags.rs +0 -0
  587. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/memtype.rs +0 -0
  588. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/mod.rs +0 -0
  589. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/progpoint.rs +0 -0
  590. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/sourceloc.rs +0 -0
  591. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/stackslot.rs +0 -0
  592. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/table.rs +0 -0
  593. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/trapcode.rs +0 -0
  594. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/types.rs +0 -0
  595. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/abi.rs +0 -0
  596. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/args.rs +0 -0
  597. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/emit.rs +0 -0
  598. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/emit_tests.rs +0 -0
  599. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/imms.rs +0 -0
  600. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/mod.rs +0 -0
  601. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/regs.rs +0 -0
  602. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/unwind/systemv.rs +0 -0
  603. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/unwind.rs +0 -0
  604. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst.isle +0 -0
  605. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst_neon.isle +0 -0
  606. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
  607. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower.isle +0 -0
  608. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower.rs +0 -0
  609. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower_dynamic_neon.isle +0 -0
  610. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/mod.rs +0 -0
  611. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/pcc.rs +0 -0
  612. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/settings.rs +0 -0
  613. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/call_conv.rs +0 -0
  614. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/mod.rs +0 -0
  615. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/abi.rs +0 -0
  616. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/args.rs +0 -0
  617. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/emit.rs +0 -0
  618. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/emit_tests.rs +0 -0
  619. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/encode.rs +0 -0
  620. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/imms.rs +0 -0
  621. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/regs.rs +0 -0
  622. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/unwind/systemv.rs +0 -0
  623. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/unwind.rs +0 -0
  624. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/vector.rs +0 -0
  625. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst_vector.isle +0 -0
  626. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
  627. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower/isle.rs +0 -0
  628. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower.rs +0 -0
  629. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/mod.rs +0 -0
  630. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/settings.rs +0 -0
  631. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/abi.rs +0 -0
  632. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/args.rs +0 -0
  633. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/emit.rs +0 -0
  634. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/emit_tests.rs +0 -0
  635. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/imms.rs +0 -0
  636. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/mod.rs +0 -0
  637. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/regs.rs +0 -0
  638. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/unwind/systemv.rs +0 -0
  639. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/unwind.rs +0 -0
  640. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst.isle +0 -0
  641. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
  642. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower.isle +0 -0
  643. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower.rs +0 -0
  644. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/mod.rs +0 -0
  645. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/settings.rs +0 -0
  646. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind/systemv.rs +0 -0
  647. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind/winx64.rs +0 -0
  648. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind.rs +0 -0
  649. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/abi.rs +0 -0
  650. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/evex.rs +0 -0
  651. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/mod.rs +0 -0
  652. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/rex.rs +0 -0
  653. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/vex.rs +0 -0
  654. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/args.rs +0 -0
  655. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit.rs +0 -0
  656. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit_state.rs +0 -0
  657. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit_tests.rs +0 -0
  658. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/mod.rs +0 -0
  659. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/regs.rs +0 -0
  660. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind/systemv.rs +0 -0
  661. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind/winx64.rs +0 -0
  662. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind.rs +0 -0
  663. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst.isle +0 -0
  664. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower/isle/generated_code.rs +0 -0
  665. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower.isle +0 -0
  666. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower.rs +0 -0
  667. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/mod.rs +0 -0
  668. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/settings.rs +0 -0
  669. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/iterators.rs +0 -0
  670. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/globalvalue.rs +0 -0
  671. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/mod.rs +0 -0
  672. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/table.rs +0 -0
  673. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/loop_analysis.rs +0 -0
  674. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/abi.rs +0 -0
  675. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/blockorder.rs +0 -0
  676. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/buffer.rs +0 -0
  677. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/compile.rs +0 -0
  678. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/helpers.rs +0 -0
  679. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/inst_common.rs +0 -0
  680. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/lower.rs +0 -0
  681. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/mod.rs +0 -0
  682. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/pcc.rs +0 -0
  683. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/reg.rs +0 -0
  684. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/valueregs.rs +0 -0
  685. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/vcode.rs +0 -0
  686. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/nan_canonicalization.rs +0 -0
  687. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/README.md +0 -0
  688. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/bitops.isle +0 -0
  689. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/extends.isle +0 -0
  690. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/generated_code.rs +0 -0
  691. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/remat.isle +0 -0
  692. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/shifts.isle +0 -0
  693. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/vector.isle +0 -0
  694. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/prelude_lower.isle +0 -0
  695. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/prelude_opt.isle +0 -0
  696. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/print_errors.rs +0 -0
  697. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/remove_constant_phis.rs +0 -0
  698. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/result.rs +0 -0
  699. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/scoped_hash_map.rs +0 -0
  700. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/settings.rs +0 -0
  701. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/souper_harvest.rs +0 -0
  702. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/unreachable_code.rs +0 -0
  703. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/value_label.rs +0 -0
  704. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/verifier/mod.rs +0 -0
  705. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/write.rs +0 -0
  706. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/LICENSE +0 -0
  707. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/README.md +0 -0
  708. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/formats.rs +0 -0
  709. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/instructions.rs +0 -0
  710. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/isa.rs +0 -0
  711. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/mod.rs +0 -0
  712. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/operands.rs +0 -0
  713. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/settings.rs +0 -0
  714. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/types.rs +0 -0
  715. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/typevar.rs +0 -0
  716. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/constant_hash.rs +0 -0
  717. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/error.rs +0 -0
  718. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_inst.rs +0 -0
  719. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_settings.rs +0 -0
  720. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_types.rs +0 -0
  721. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/arm64.rs +0 -0
  722. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/mod.rs +0 -0
  723. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/riscv64.rs +0 -0
  724. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/s390x.rs +0 -0
  725. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/x86.rs +0 -0
  726. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/lib.rs +0 -0
  727. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/entities.rs +0 -0
  728. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/formats.rs +0 -0
  729. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/immediates.rs +0 -0
  730. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/instructions.rs +0 -0
  731. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/mod.rs +0 -0
  732. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/settings.rs +0 -0
  733. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/types.rs +0 -0
  734. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/srcgen.rs +0 -0
  735. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/unique_table.rs +0 -0
  736. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/LICENSE +0 -0
  737. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/README.md +0 -0
  738. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/src/constant_hash.rs +0 -0
  739. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/src/constants.rs +0 -0
  740. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/LICENSE +0 -0
  741. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/README.md +0 -0
  742. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/chaos.rs +0 -0
  743. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/lib.rs +0 -0
  744. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/zero_sized.rs +0 -0
  745. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/LICENSE +0 -0
  746. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/README.md +0 -0
  747. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/boxed_slice.rs +0 -0
  748. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/iter.rs +0 -0
  749. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/keys.rs +0 -0
  750. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/list.rs +0 -0
  751. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/map.rs +0 -0
  752. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/packed_option.rs +0 -0
  753. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/set.rs +0 -0
  754. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/sparse.rs +0 -0
  755. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/LICENSE +0 -0
  756. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/README.md +0 -0
  757. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/frontend.rs +0 -0
  758. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/ssa.rs +0 -0
  759. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/switch.rs +0 -0
  760. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/variable.rs +0 -0
  761. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/README.md +0 -0
  762. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/build.rs +0 -0
  763. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/bad_converters.isle +0 -0
  764. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
  765. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
  766. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/error1.isle +0 -0
  767. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/extra_parens.isle +0 -0
  768. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/impure_expression.isle +0 -0
  769. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/impure_rhs.isle +0 -0
  770. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/multi_internal_etor.isle +0 -0
  771. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/multi_prio.isle +0 -0
  772. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/borrows.isle +0 -0
  773. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/borrows_main.rs +0 -0
  774. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/iflets.isle +0 -0
  775. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/iflets_main.rs +0 -0
  776. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/multi_constructor.isle +0 -0
  777. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/multi_extractor.isle +0 -0
  778. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/test.isle +0 -0
  779. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/test_main.rs +0 -0
  780. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/bound_var.isle +0 -0
  781. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/construct_and_extract.isle +0 -0
  782. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/conversions.isle +0 -0
  783. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/conversions_extern.isle +0 -0
  784. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/let.isle +0 -0
  785. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/nodebug.isle +0 -0
  786. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/prio_trie_bug.isle +0 -0
  787. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test2.isle +0 -0
  788. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test3.isle +0 -0
  789. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test4.isle +0 -0
  790. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/tutorial.isle +0 -0
  791. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/iconst.isle +0 -0
  792. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/iconst_main.rs +0 -0
  793. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/let_shadowing.isle +0 -0
  794. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/let_shadowing_main.rs +0 -0
  795. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/ast.rs +0 -0
  796. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/compile.rs +0 -0
  797. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/error.rs +0 -0
  798. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/lexer.rs +0 -0
  799. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/lib.rs +0 -0
  800. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/log.rs +0 -0
  801. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/overlap.rs +0 -0
  802. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/parser.rs +0 -0
  803. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/sema.rs +0 -0
  804. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/serialize.rs +0 -0
  805. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/trie_again.rs +0 -0
  806. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/tests/run_tests.rs +0 -0
  807. /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/LICENSE +0 -0
  808. /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/README.md +0 -0
  809. /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/src/riscv.rs +0 -0
  810. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/LICENSE +0 -0
  811. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/README.md +0 -0
  812. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/code_translator/bounds_checks.rs +0 -0
  813. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/code_translator.rs +0 -0
  814. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/environ/mod.rs +0 -0
  815. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/environ/spec.rs +0 -0
  816. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/func_translator.rs +0 -0
  817. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/heap.rs +0 -0
  818. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/module_translator.rs +0 -0
  819. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/sections_translator.rs +0 -0
  820. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/state.rs +0 -0
  821. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/tests/wasm_testsuite.rs +0 -0
  822. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/arith.wat +0 -0
  823. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/br_table.wat +0 -0
  824. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/call-simd.wat +0 -0
  825. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/call.wat +0 -0
  826. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_fannkuch.wat +0 -0
  827. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_fasta.wat +0 -0
  828. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_ifs.wat +0 -0
  829. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_primes.wat +0 -0
  830. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/fac-multi-value.wat +0 -0
  831. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/fibonacci.wat +0 -0
  832. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/globals.wat +0 -0
  833. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/icall-simd.wat +0 -0
  834. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/icall.wat +0 -0
  835. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-0.wat +0 -0
  836. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-1.wat +0 -0
  837. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-2.wat +0 -0
  838. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-3.wat +0 -0
  839. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-4.wat +0 -0
  840. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-5.wat +0 -0
  841. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-6.wat +0 -0
  842. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-unreachable-else-params-2.wat +0 -0
  843. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-unreachable-else-params.wat +0 -0
  844. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/issue-1306-name-section-with-u32-max-function-index.wasm +0 -0
  845. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/memory.wat +0 -0
  846. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-0.wat +0 -0
  847. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-1.wat +0 -0
  848. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-10.wat +0 -0
  849. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-11.wat +0 -0
  850. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-12.wat +0 -0
  851. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-13.wat +0 -0
  852. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-14.wat +0 -0
  853. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-15.wat +0 -0
  854. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-16.wat +0 -0
  855. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-17.wat +0 -0
  856. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-2.wat +0 -0
  857. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-3.wat +0 -0
  858. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-4.wat +0 -0
  859. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-5.wat +0 -0
  860. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-6.wat +0 -0
  861. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-7.wat +0 -0
  862. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-8.wat +0 -0
  863. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-9.wat +0 -0
  864. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/nullref.wat +0 -0
  865. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/passive-data.wat +0 -0
  866. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/pr2303.wat +0 -0
  867. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/pr2559.wat +0 -0
  868. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/ref-func-0.wat +0 -0
  869. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/rust_fannkuch.wat +0 -0
  870. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/select.wat +0 -0
  871. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/simd-store.wat +0 -0
  872. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/simd.wat +0 -0
  873. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/table-copy.wat +0 -0
  874. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/unreachable_code.wat +0 -0
  875. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/LICENSE +0 -0
  876. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/README.md +0 -0
  877. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/clocks.rs +0 -0
  878. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/dir.rs +0 -0
  879. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/file.rs +0 -0
  880. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/lib.rs +0 -0
  881. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/net.rs +0 -0
  882. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched/unix.rs +0 -0
  883. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched/windows.rs +0 -0
  884. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched.rs +0 -0
  885. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/stdio.rs +0 -0
  886. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/LICENSE +0 -0
  887. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/README.md +0 -0
  888. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/README.md +0 -0
  889. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/docs/README.md +0 -0
  890. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/README.md +0 -0
  891. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/docs.md +0 -0
  892. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/typenames.witx +0 -0
  893. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx +0 -0
  894. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_clock.witx +0 -0
  895. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_environ.witx +0 -0
  896. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_fd.witx +0 -0
  897. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_path.witx +0 -0
  898. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_poll.witx +0 -0
  899. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_proc.witx +0 -0
  900. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx +0 -0
  901. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sched.witx +0 -0
  902. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx +0 -0
  903. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/docs.md +0 -0
  904. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/witx/typenames.witx +0 -0
  905. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/witx/wasi_unstable.witx +0 -0
  906. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/docs.html +0 -0
  907. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/docs.md +0 -0
  908. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/witx/typenames.witx +0 -0
  909. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx +0 -0
  910. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/proposal-template/README.md +0 -0
  911. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/proposals/README.md +0 -0
  912. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/snapshots/README.md +0 -0
  913. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/standard/README.md +0 -0
  914. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/build.rs +0 -0
  915. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/clocks.rs +0 -0
  916. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/ctx.rs +0 -0
  917. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/dir.rs +0 -0
  918. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/error.rs +0 -0
  919. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/file.rs +0 -0
  920. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/pipe.rs +0 -0
  921. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/random.rs +0 -0
  922. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/sched/subscription.rs +0 -0
  923. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/sched.rs +0 -0
  924. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/mod.rs +0 -0
  925. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/preview_0.rs +0 -0
  926. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/preview_1/error.rs +0 -0
  927. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/string_array.rs +0 -0
  928. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/table.rs +0 -0
  929. /data/ext/cargo-vendor/{wasm-encoder-0.36.2 → wasmtime-16.0.0}/LICENSE +0 -0
  930. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/README.md +0 -0
  931. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/code.rs +0 -0
  932. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func/host.rs +0 -0
  933. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func/options.rs +0 -0
  934. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func.rs +0 -0
  935. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/instance.rs +0 -0
  936. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/linker.rs +0 -0
  937. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/matching.rs +0 -0
  938. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/mod.rs +0 -0
  939. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/resources.rs +0 -0
  940. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/storage.rs +0 -0
  941. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/store.rs +0 -0
  942. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/types.rs +0 -0
  943. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/values.rs +0 -0
  944. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/coredump.rs +0 -0
  945. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/engine/serialization.rs +0 -0
  946. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/engine.rs +0 -0
  947. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals/global.rs +0 -0
  948. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals/table.rs +0 -0
  949. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals.rs +0 -0
  950. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/func/typed.rs +0 -0
  951. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/instance.rs +0 -0
  952. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/limits.rs +0 -0
  953. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/linker.rs +0 -0
  954. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/module/registry.rs +0 -0
  955. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/profiling.rs +0 -0
  956. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/ref.rs +0 -0
  957. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/resources.rs +0 -0
  958. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/signatures.rs +0 -0
  959. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/context.rs +0 -0
  960. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/data.rs +0 -0
  961. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/func_refs.rs +0 -0
  962. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store.rs +0 -0
  963. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/func.rs +0 -0
  964. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/global.rs +0 -0
  965. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/memory.rs +0 -0
  966. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/table.rs +0 -0
  967. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline.rs +0 -0
  968. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trap.rs +0 -0
  969. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/types/matching.rs +0 -0
  970. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/types.rs +0 -0
  971. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/unix.rs +0 -0
  972. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/values.rs +0 -0
  973. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/windows.rs +0 -0
  974. /data/ext/cargo-vendor/{wasmtime-asm-macros-15.0.1 → wasmtime-asm-macros-16.0.0}/src/lib.rs +0 -0
  975. /data/ext/cargo-vendor/{wasmparser-0.116.1 → wasmtime-cache-16.0.0}/LICENSE +0 -0
  976. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/build.rs +0 -0
  977. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/config/tests.rs +0 -0
  978. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/config.rs +0 -0
  979. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/tests.rs +0 -0
  980. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/worker/tests/system_time_stub.rs +0 -0
  981. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/worker/tests.rs +0 -0
  982. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/tests/cache_write_default_config.rs +0 -0
  983. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/bindgen.rs +0 -0
  984. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/component.rs +0 -0
  985. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/lib.rs +0 -0
  986. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/char.wit +0 -0
  987. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/conventions.wit +0 -0
  988. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/direct-import.wit +0 -0
  989. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/empty.wit +0 -0
  990. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/flags.wit +0 -0
  991. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/floats.wit +0 -0
  992. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/function-new.wit +0 -0
  993. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/integers.wit +0 -0
  994. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/lists.wit +0 -0
  995. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/many-arguments.wit +0 -0
  996. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multi-return.wit +0 -0
  997. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/deps/v1/root.wit +0 -0
  998. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/deps/v2/root.wit +0 -0
  999. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/root.wit +0 -0
  1000. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/records.wit +0 -0
  1001. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/rename.wit +0 -0
  1002. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/resources-export.wit +0 -0
  1003. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/resources-import.wit +0 -0
  1004. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/share-types.wit +0 -0
  1005. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-functions.wit +0 -0
  1006. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-lists.wit +0 -0
  1007. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-wasi.wit +0 -0
  1008. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/small-anonymous.wit +0 -0
  1009. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke-default.wit +0 -0
  1010. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke-export.wit +0 -0
  1011. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke.wit +0 -0
  1012. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/strings.wit +0 -0
  1013. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/use-paths.wit +0 -0
  1014. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/variants.wit +0 -0
  1015. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/worlds-with-types.wit +0 -0
  1016. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen.rs +0 -0
  1017. /data/ext/cargo-vendor/{wasmtime-component-util-15.0.1 → wasmtime-component-util-16.0.0}/src/lib.rs +0 -0
  1018. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-cranelift-16.0.0}/LICENSE +0 -0
  1019. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/SECURITY.md +0 -0
  1020. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/builder.rs +0 -0
  1021. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/gc.rs +0 -0
  1022. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/address_transform.rs +0 -0
  1023. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/attr.rs +0 -0
  1024. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/line_program.rs +0 -0
  1025. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/mod.rs +0 -0
  1026. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/range_info_builder.rs +0 -0
  1027. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/refs.rs +0 -0
  1028. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/unit.rs +0 -0
  1029. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/utils.rs +0 -0
  1030. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/write_debuginfo.rs +0 -0
  1031. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/lib.rs +0 -0
  1032. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/compiled_function.rs +0 -0
  1033. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/isa_builder.rs +0 -0
  1034. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/lib.rs +0 -0
  1035. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/obj.rs +0 -0
  1036. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-environ-16.0.0}/LICENSE +0 -0
  1037. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/examples/factc.rs +0 -0
  1038. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/address_map.rs +0 -0
  1039. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/builtin.rs +0 -0
  1040. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/dfg.rs +0 -0
  1041. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/info.rs +0 -0
  1042. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/translate/adapt.rs +0 -0
  1043. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/translate/inline.rs +0 -0
  1044. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/types/resources.rs +0 -0
  1045. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/vmcomponent_offsets.rs +0 -0
  1046. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component.rs +0 -0
  1047. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/core_types.rs +0 -0
  1048. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/signature.rs +0 -0
  1049. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/trampoline.rs +0 -0
  1050. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/transcode.rs +0 -0
  1051. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/traps.rs +0 -0
  1052. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact.rs +0 -0
  1053. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/obj.rs +0 -0
  1054. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/ref_bits.rs +0 -0
  1055. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/stack_map.rs +0 -0
  1056. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/trap_encoding.rs +0 -0
  1057. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/tunables.rs +0 -0
  1058. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/vmoffsets.rs +0 -0
  1059. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-fiber-16.0.0}/LICENSE +0 -0
  1060. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/build.rs +0 -0
  1061. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/aarch64.rs +0 -0
  1062. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/arm.rs +0 -0
  1063. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/riscv64.rs +0 -0
  1064. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/s390x.S +0 -0
  1065. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/x86.rs +0 -0
  1066. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/x86_64.rs +0 -0
  1067. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/windows.rs +0 -0
  1068. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-jit-16.0.0}/LICENSE +0 -0
  1069. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/debug.rs +0 -0
  1070. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/demangling.rs +0 -0
  1071. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/jitdump.rs +0 -0
  1072. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/perfmap.rs +0 -0
  1073. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/vtune.rs +0 -0
  1074. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling.rs +0 -0
  1075. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/README.md +0 -0
  1076. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/gdb_jit_int.rs +0 -0
  1077. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/lib.rs +0 -0
  1078. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/perf_jitdump.rs +0 -0
  1079. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/lib.rs +0 -0
  1080. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/libc.rs +0 -0
  1081. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/miri.rs +0 -0
  1082. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/win.rs +0 -0
  1083. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-runtime-16.0.0}/LICENSE +0 -0
  1084. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/trampolines → wasmtime-runtime-16.0.0/src/arch}/s390x.S +0 -0
  1085. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component/libcalls.rs +0 -0
  1086. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component/resources.rs +0 -0
  1087. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component.rs +0 -0
  1088. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/debug_builtins.rs +0 -0
  1089. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/export.rs +0 -0
  1090. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/externref.rs +0 -0
  1091. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/imports.rs +0 -0
  1092. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator/on_demand.rs +0 -0
  1093. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator/pooling/index_allocator.rs +0 -0
  1094. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator.rs +0 -0
  1095. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance.rs +0 -0
  1096. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/memory.rs +0 -0
  1097. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mmap_vec.rs +0 -0
  1098. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/module_id.rs +0 -0
  1099. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/disabled.rs +0 -0
  1100. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/mod.rs +0 -0
  1101. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/sys.rs +0 -0
  1102. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/parking_spot.rs +0 -0
  1103. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/send_sync_ptr.rs +0 -0
  1104. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/store_box.rs +0 -0
  1105. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/miri.rs → wasmtime-runtime-16.0.0/src/sys/miri/mmap.rs} +0 -0
  1106. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/unix.rs → wasmtime-runtime-16.0.0/src/sys/unix/mmap.rs} +0 -0
  1107. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/windows.rs → wasmtime-runtime-16.0.0/src/sys/windows/mmap.rs} +0 -0
  1108. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/table.rs +0 -0
  1109. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/traphandlers/coredump.rs +0 -0
  1110. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/vmcontext/vm_host_func_context.rs +0 -0
  1111. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-types-16.0.0}/LICENSE +0 -0
  1112. /data/ext/cargo-vendor/{wasmtime-types-15.0.1 → wasmtime-types-16.0.0}/src/error.rs +0 -0
  1113. /data/ext/cargo-vendor/{wasmtime-versioned-export-macros-15.0.1 → wasmtime-versioned-export-macros-16.0.0}/src/lib.rs +0 -0
  1114. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-wasi-16.0.0}/LICENSE +0 -0
  1115. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/README.md +0 -0
  1116. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/build.rs +0 -0
  1117. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/clocks/host.rs +0 -0
  1118. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/clocks.rs +0 -0
  1119. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/command.rs +0 -0
  1120. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/ctx.rs +0 -0
  1121. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/error.rs +0 -0
  1122. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/filesystem.rs +0 -0
  1123. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/clocks.rs +0 -0
  1124. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/env.rs +0 -0
  1125. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/exit.rs +0 -0
  1126. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/filesystem/sync.rs +0 -0
  1127. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/filesystem.rs +0 -0
  1128. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/instance_network.rs +0 -0
  1129. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/mod.rs +0 -0
  1130. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/random.rs +0 -0
  1131. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/tcp_create_socket.rs +0 -0
  1132. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/udp_create_socket.rs +0 -0
  1133. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/ip_name_lookup.rs +0 -0
  1134. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/network.rs +0 -0
  1135. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/pipe.rs +0 -0
  1136. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/poll.rs +0 -0
  1137. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/random.rs +0 -0
  1138. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/stdio/worker_thread_stdin.rs +0 -0
  1139. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/tcp.rs +0 -0
  1140. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/udp.rs +0 -0
  1141. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/write_stream.rs +0 -0
  1142. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/environment.wit +0 -0
  1143. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/exit.wit +0 -0
  1144. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/run.wit +0 -0
  1145. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/stdio.wit +0 -0
  1146. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/terminal.wit +0 -0
  1147. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/monotonic-clock.wit +0 -0
  1148. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/wall-clock.wit +0 -0
  1149. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/world.wit +0 -0
  1150. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/preopens.wit +0 -0
  1151. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/types.wit +0 -0
  1152. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/world.wit +0 -0
  1153. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/http/handler.wit +0 -0
  1154. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/error.wit +0 -0
  1155. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/poll.wit +0 -0
  1156. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/streams.wit +0 -0
  1157. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/world.wit +0 -0
  1158. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/insecure-seed.wit +0 -0
  1159. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/insecure.wit +0 -0
  1160. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/random.wit +0 -0
  1161. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/world.wit +0 -0
  1162. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/instance-network.wit +0 -0
  1163. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/ip-name-lookup.wit +0 -0
  1164. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/network.wit +0 -0
  1165. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/tcp-create-socket.wit +0 -0
  1166. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/tcp.wit +0 -0
  1167. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/udp-create-socket.wit +0 -0
  1168. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/udp.wit +0 -0
  1169. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/world.wit +0 -0
  1170. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1/witx → wasmtime-wasi-16.0.0/witx/preview1}/typenames.witx +0 -0
  1171. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1/witx → wasmtime-wasi-16.0.0/witx/preview1}/wasi_snapshot_preview1.witx +0 -0
  1172. /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/LICENSE +0 -0
  1173. /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/src/builder.rs +0 -0
  1174. /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/src/lib.rs +0 -0
  1175. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/lib.rs +0 -0
  1176. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/rust.rs +0 -0
  1177. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/source.rs +0 -0
  1178. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/types.rs +0 -0
  1179. /data/ext/cargo-vendor/{wasmtime-wmemcheck-15.0.1 → wasmtime-wmemcheck-16.0.0}/src/lib.rs +0 -0
  1180. /data/ext/cargo-vendor/{wasmtime-types-15.0.1 → wiggle-16.0.0}/LICENSE +0 -0
  1181. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/README.md +0 -0
  1182. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/borrow.rs +0 -0
  1183. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/error.rs +0 -0
  1184. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/guest_type.rs +0 -0
  1185. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/region.rs +0 -0
  1186. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/wasmtime.rs +0 -0
  1187. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wiggle-generate-16.0.0}/LICENSE +0 -0
  1188. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/README.md +0 -0
  1189. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/codegen_settings.rs +0 -0
  1190. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/config.rs +0 -0
  1191. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/funcs.rs +0 -0
  1192. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/lib.rs +0 -0
  1193. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/lifetimes.rs +0 -0
  1194. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/module_trait.rs +0 -0
  1195. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/names.rs +0 -0
  1196. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/error.rs +0 -0
  1197. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/flags.rs +0 -0
  1198. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/mod.rs +0 -0
  1199. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/wasmtime.rs +0 -0
  1200. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-macro-16.0.0}/LICENSE +0 -0
  1201. /data/ext/cargo-vendor/{wiggle-macro-15.0.1 → wiggle-macro-16.0.0}/src/lib.rs +0 -0
  1202. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/LICENSE +0 -0
  1203. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/build.rs +0 -0
  1204. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/codegen/builtin.rs +0 -0
  1205. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/address.rs +0 -0
  1206. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/asm.rs +0 -0
  1207. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/regs.rs +0 -0
  1208. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/reg.rs +0 -0
  1209. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/x64/address.rs +0 -0
  1210. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/lib.rs +0 -0
  1211. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/regalloc.rs +0 -0
  1212. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/regset.rs +0 -0
@@ -1,2428 +0,0 @@
1
- use crate::store::{StoreData, StoreOpaque, Stored};
2
- use crate::{
3
- AsContext, AsContextMut, CallHook, Engine, Extern, FuncType, Instance, Module, StoreContext,
4
- StoreContextMut, Val, ValRaw, ValType,
5
- };
6
- use anyhow::{bail, Context as _, Error, Result};
7
- use std::ffi::c_void;
8
- use std::future::Future;
9
- use std::mem;
10
- use std::panic::{self, AssertUnwindSafe};
11
- use std::pin::Pin;
12
- use std::ptr::{self, NonNull};
13
- use std::sync::Arc;
14
- use wasmtime_runtime::{
15
- ExportFunction, SendSyncPtr, StoreBox, VMArrayCallHostFuncContext, VMContext, VMFuncRef,
16
- VMFunctionImport, VMNativeCallHostFuncContext, VMOpaqueContext, VMSharedSignatureIndex,
17
- };
18
-
19
- /// A WebAssembly function which can be called.
20
- ///
21
- /// This type can represent either an exported function from a WebAssembly
22
- /// module or a host-defined function which can be used to satisfy an import of
23
- /// a module. [`Func`] and can be used to both instantiate an [`Instance`] as
24
- /// well as be extracted from an [`Instance`].
25
- ///
26
- /// [`Instance`]: crate::Instance
27
- ///
28
- /// A [`Func`] "belongs" to the store that it was originally created within.
29
- /// Operations on a [`Func`] only work with the store it belongs to, and if
30
- /// another store is passed in by accident then methods will panic.
31
- ///
32
- /// # `Func` and `async`
33
- ///
34
- /// Functions from the perspective of WebAssembly are always synchronous. You
35
- /// might have an `async` function in Rust, however, which you'd like to make
36
- /// available from WebAssembly. Wasmtime supports asynchronously calling
37
- /// WebAssembly through native stack switching. You can get some more
38
- /// information about [asynchronous configs](crate::Config::async_support), but
39
- /// from the perspective of `Func` it's important to know that whether or not
40
- /// your [`Store`](crate::Store) is asynchronous will dictate whether you call
41
- /// functions through [`Func::call`] or [`Func::call_async`] (or the typed
42
- /// wrappers such as [`TypedFunc::call`] vs [`TypedFunc::call_async`]).
43
- ///
44
- /// # To `Func::call` or to `Func::typed().call()`
45
- ///
46
- /// There's a 2x2 matrix of methods to call [`Func`]. Invocations can either be
47
- /// asynchronous or synchronous. They can also be statically typed or not.
48
- /// Whether or not an invocation is asynchronous is indicated via the method
49
- /// being `async` and [`call_async`](Func::call_async) being the entry point.
50
- /// Otherwise for statically typed or not your options are:
51
- ///
52
- /// * Dynamically typed - if you don't statically know the signature of the
53
- /// function that you're calling you'll be using [`Func::call`] or
54
- /// [`Func::call_async`]. These functions take a variable-length slice of
55
- /// "boxed" arguments in their [`Val`] representation. Additionally the
56
- /// results are returned as an owned slice of [`Val`]. These methods are not
57
- /// optimized due to the dynamic type checks that must occur, in addition to
58
- /// some dynamic allocations for where to put all the arguments. While this
59
- /// allows you to call all possible wasm function signatures, if you're
60
- /// looking for a speedier alternative you can also use...
61
- ///
62
- /// * Statically typed - if you statically know the type signature of the wasm
63
- /// function you're calling, then you'll want to use the [`Func::typed`]
64
- /// method to acquire an instance of [`TypedFunc`]. This structure is static proof
65
- /// that the underlying wasm function has the ascripted type, and type
66
- /// validation is only done once up-front. The [`TypedFunc::call`] and
67
- /// [`TypedFunc::call_async`] methods are much more efficient than [`Func::call`]
68
- /// and [`Func::call_async`] because the type signature is statically known.
69
- /// This eschews runtime checks as much as possible to get into wasm as fast
70
- /// as possible.
71
- ///
72
- /// # Examples
73
- ///
74
- /// One way to get a `Func` is from an [`Instance`] after you've instantiated
75
- /// it:
76
- ///
77
- /// ```
78
- /// # use wasmtime::*;
79
- /// # fn main() -> anyhow::Result<()> {
80
- /// let engine = Engine::default();
81
- /// let module = Module::new(&engine, r#"(module (func (export "foo")))"#)?;
82
- /// let mut store = Store::new(&engine, ());
83
- /// let instance = Instance::new(&mut store, &module, &[])?;
84
- /// let foo = instance.get_func(&mut store, "foo").expect("export wasn't a function");
85
- ///
86
- /// // Work with `foo` as a `Func` at this point, such as calling it
87
- /// // dynamically...
88
- /// match foo.call(&mut store, &[], &mut []) {
89
- /// Ok(()) => { /* ... */ }
90
- /// Err(trap) => {
91
- /// panic!("execution of `foo` resulted in a wasm trap: {}", trap);
92
- /// }
93
- /// }
94
- /// foo.call(&mut store, &[], &mut [])?;
95
- ///
96
- /// // ... or we can make a static assertion about its signature and call it.
97
- /// // Our first call here can fail if the signatures don't match, and then the
98
- /// // second call can fail if the function traps (like the `match` above).
99
- /// let foo = foo.typed::<(), ()>(&store)?;
100
- /// foo.call(&mut store, ())?;
101
- /// # Ok(())
102
- /// # }
103
- /// ```
104
- ///
105
- /// You can also use the [`wrap` function](Func::wrap) to create a
106
- /// `Func`
107
- ///
108
- /// ```
109
- /// # use wasmtime::*;
110
- /// # fn main() -> anyhow::Result<()> {
111
- /// let mut store = Store::<()>::default();
112
- ///
113
- /// // Create a custom `Func` which can execute arbitrary code inside of the
114
- /// // closure.
115
- /// let add = Func::wrap(&mut store, |a: i32, b: i32| -> i32 { a + b });
116
- ///
117
- /// // Next we can hook that up to a wasm module which uses it.
118
- /// let module = Module::new(
119
- /// store.engine(),
120
- /// r#"
121
- /// (module
122
- /// (import "" "" (func $add (param i32 i32) (result i32)))
123
- /// (func (export "call_add_twice") (result i32)
124
- /// i32.const 1
125
- /// i32.const 2
126
- /// call $add
127
- /// i32.const 3
128
- /// i32.const 4
129
- /// call $add
130
- /// i32.add))
131
- /// "#,
132
- /// )?;
133
- /// let instance = Instance::new(&mut store, &module, &[add.into()])?;
134
- /// let call_add_twice = instance.get_typed_func::<(), i32>(&mut store, "call_add_twice")?;
135
- ///
136
- /// assert_eq!(call_add_twice.call(&mut store, ())?, 10);
137
- /// # Ok(())
138
- /// # }
139
- /// ```
140
- ///
141
- /// Or you could also create an entirely dynamic `Func`!
142
- ///
143
- /// ```
144
- /// # use wasmtime::*;
145
- /// # fn main() -> anyhow::Result<()> {
146
- /// let mut store = Store::<()>::default();
147
- ///
148
- /// // Here we need to define the type signature of our `Double` function and
149
- /// // then wrap it up in a `Func`
150
- /// let double_type = wasmtime::FuncType::new(
151
- /// [wasmtime::ValType::I32].iter().cloned(),
152
- /// [wasmtime::ValType::I32].iter().cloned(),
153
- /// );
154
- /// let double = Func::new(&mut store, double_type, |_, params, results| {
155
- /// let mut value = params[0].unwrap_i32();
156
- /// value *= 2;
157
- /// results[0] = value.into();
158
- /// Ok(())
159
- /// });
160
- ///
161
- /// let module = Module::new(
162
- /// store.engine(),
163
- /// r#"
164
- /// (module
165
- /// (import "" "" (func $double (param i32) (result i32)))
166
- /// (func $start
167
- /// i32.const 1
168
- /// call $double
169
- /// drop)
170
- /// (start $start))
171
- /// "#,
172
- /// )?;
173
- /// let instance = Instance::new(&mut store, &module, &[double.into()])?;
174
- /// // .. work with `instance` if necessary
175
- /// # Ok(())
176
- /// # }
177
- /// ```
178
- #[derive(Copy, Clone, Debug)]
179
- #[repr(transparent)] // here for the C API
180
- pub struct Func(Stored<FuncData>);
181
-
182
- pub(crate) struct FuncData {
183
- kind: FuncKind,
184
-
185
- // A pointer to the in-store `VMFuncRef` for this function, if
186
- // any.
187
- //
188
- // When a function is passed to Wasm but doesn't have a Wasm-to-native
189
- // trampoline, we have to patch it in. But that requires mutating the
190
- // `VMFuncRef`, and this function could be shared across
191
- // threads. So we instead copy and pin the `VMFuncRef` into
192
- // `StoreOpaque::func_refs`, where we can safely patch the field without
193
- // worrying about synchronization and we hold a pointer to it here so we can
194
- // reuse it rather than re-copy if it is passed to Wasm again.
195
- in_store_func_ref: Option<SendSyncPtr<VMFuncRef>>,
196
-
197
- // This is somewhat expensive to load from the `Engine` and in most
198
- // optimized use cases (e.g. `TypedFunc`) it's not actually needed or it's
199
- // only needed rarely. To handle that this is an optionally-contained field
200
- // which is lazily loaded into as part of `Func::call`.
201
- //
202
- // Also note that this is intentionally placed behind a pointer to keep it
203
- // small as `FuncData` instances are often inserted into a `Store`.
204
- ty: Option<Box<FuncType>>,
205
- }
206
-
207
- /// The three ways that a function can be created and referenced from within a
208
- /// store.
209
- enum FuncKind {
210
- /// A function already owned by the store via some other means. This is
211
- /// used, for example, when creating a `Func` from an instance's exported
212
- /// function. The instance's `InstanceHandle` is already owned by the store
213
- /// and we just have some pointers into that which represent how to call the
214
- /// function.
215
- StoreOwned { export: ExportFunction },
216
-
217
- /// A function is shared across possibly other stores, hence the `Arc`. This
218
- /// variant happens when a `Linker`-defined function is instantiated within
219
- /// a `Store` (e.g. via `Linker::get` or similar APIs). The `Arc` here
220
- /// indicates that there's some number of other stores holding this function
221
- /// too, so dropping this may not deallocate the underlying
222
- /// `InstanceHandle`.
223
- SharedHost(Arc<HostFunc>),
224
-
225
- /// A uniquely-owned host function within a `Store`. This comes about with
226
- /// `Func::new` or similar APIs. The `HostFunc` internally owns the
227
- /// `InstanceHandle` and that will get dropped when this `HostFunc` itself
228
- /// is dropped.
229
- ///
230
- /// Note that this is intentionally placed behind a `Box` to minimize the
231
- /// size of this enum since the most common variant for high-peformance
232
- /// situations is `SharedHost` and `StoreOwned`, so this ideally isn't
233
- /// larger than those two.
234
- Host(Box<HostFunc>),
235
-
236
- /// A reference to a `HostFunc`, but one that's "rooted" in the `Store`
237
- /// itself.
238
- ///
239
- /// This variant is created when an `InstancePre<T>` is instantiated in to a
240
- /// `Store<T>`. In that situation the `InstancePre<T>` already has a list of
241
- /// host functions that are packaged up in an `Arc`, so the `Arc<[T]>` is
242
- /// cloned once into the `Store` to avoid each individual function requiring
243
- /// an `Arc::clone`.
244
- ///
245
- /// The lifetime management of this type is `unsafe` because
246
- /// `RootedHostFunc` is a small wrapper around `NonNull<HostFunc>`. To be
247
- /// safe this is required that the memory of the host function is pinned
248
- /// elsewhere (e.g. the `Arc` in the `Store`).
249
- RootedHost(RootedHostFunc),
250
- }
251
-
252
- macro_rules! for_each_function_signature {
253
- ($mac:ident) => {
254
- $mac!(0);
255
- $mac!(1 A1);
256
- $mac!(2 A1 A2);
257
- $mac!(3 A1 A2 A3);
258
- $mac!(4 A1 A2 A3 A4);
259
- $mac!(5 A1 A2 A3 A4 A5);
260
- $mac!(6 A1 A2 A3 A4 A5 A6);
261
- $mac!(7 A1 A2 A3 A4 A5 A6 A7);
262
- $mac!(8 A1 A2 A3 A4 A5 A6 A7 A8);
263
- $mac!(9 A1 A2 A3 A4 A5 A6 A7 A8 A9);
264
- $mac!(10 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10);
265
- $mac!(11 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11);
266
- $mac!(12 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12);
267
- $mac!(13 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13);
268
- $mac!(14 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14);
269
- $mac!(15 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15);
270
- $mac!(16 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16);
271
- };
272
- }
273
-
274
- mod typed;
275
- pub use typed::*;
276
-
277
- macro_rules! generate_wrap_async_func {
278
- ($num:tt $($args:ident)*) => (paste::paste!{
279
- /// Same as [`Func::wrap`], except the closure asynchronously produces
280
- /// its result. For more information see the [`Func`] documentation.
281
- ///
282
- /// # Panics
283
- ///
284
- /// This function will panic if called with a non-asynchronous store.
285
- #[allow(non_snake_case)]
286
- #[cfg(feature = "async")]
287
- #[cfg_attr(nightlydoc, doc(cfg(feature = "async")))]
288
- pub fn [<wrap $num _async>]<T, $($args,)* R>(
289
- store: impl AsContextMut<Data = T>,
290
- func: impl for<'a> Fn(Caller<'a, T>, $($args),*) -> Box<dyn Future<Output = R> + Send + 'a> + Send + Sync + 'static,
291
- ) -> Func
292
- where
293
- $($args: WasmTy,)*
294
- R: WasmRet,
295
- {
296
- assert!(store.as_context().async_support(), concat!("cannot use `wrap", $num, "_async` without enabling async support on the config"));
297
- Func::wrap(store, move |mut caller: Caller<'_, T>, $($args: $args),*| {
298
- let async_cx = caller.store.as_context_mut().0.async_cx().expect("Attempt to start async function on dying fiber");
299
- let mut future = Pin::from(func(caller, $($args),*));
300
-
301
- match unsafe { async_cx.block_on(future.as_mut()) } {
302
- Ok(ret) => ret.into_fallible(),
303
- Err(e) => R::fallible_from_error(e),
304
- }
305
- })
306
- }
307
- })
308
- }
309
-
310
- impl Func {
311
- /// Creates a new `Func` with the given arguments, typically to create a
312
- /// host-defined function to pass as an import to a module.
313
- ///
314
- /// * `store` - the store in which to create this [`Func`], which will own
315
- /// the return value.
316
- ///
317
- /// * `ty` - the signature of this function, used to indicate what the
318
- /// inputs and outputs are.
319
- ///
320
- /// * `func` - the native code invoked whenever this `Func` will be called.
321
- /// This closure is provided a [`Caller`] as its first argument to learn
322
- /// information about the caller, and then it's passed a list of
323
- /// parameters as a slice along with a mutable slice of where to write
324
- /// results.
325
- ///
326
- /// Note that the implementation of `func` must adhere to the `ty` signature
327
- /// given, error or traps may occur if it does not respect the `ty`
328
- /// signature. For example if the function type declares that it returns one
329
- /// i32 but the `func` closures does not write anything into the results
330
- /// slice then a trap may be generated.
331
- ///
332
- /// Additionally note that this is quite a dynamic function since signatures
333
- /// are not statically known. For a more performant and ergonomic `Func`
334
- /// it's recommended to use [`Func::wrap`] if you can because with
335
- /// statically known signatures Wasmtime can optimize the implementation
336
- /// much more.
337
- ///
338
- /// For more information about `Send + Sync + 'static` requirements on the
339
- /// `func`, see [`Func::wrap`](#why-send--sync--static).
340
- ///
341
- /// # Errors
342
- ///
343
- /// The host-provided function here returns a
344
- /// [`Result<()>`](anyhow::Result). If the function returns `Ok(())` then
345
- /// that indicates that the host function completed successfully and wrote
346
- /// the result into the `&mut [Val]` argument.
347
- ///
348
- /// If the function returns `Err(e)`, however, then this is equivalent to
349
- /// the host function triggering a trap for wasm. WebAssembly execution is
350
- /// immediately halted and the original caller of [`Func::call`], for
351
- /// example, will receive the error returned here (possibly with
352
- /// [`WasmBacktrace`](crate::WasmBacktrace) context information attached).
353
- ///
354
- /// For more information about errors in Wasmtime see the [`Trap`]
355
- /// documentation.
356
- ///
357
- /// [`Trap`]: crate::Trap
358
- #[cfg(any(feature = "cranelift", feature = "winch"))]
359
- #[cfg_attr(nightlydoc, doc(cfg(any(feature = "cranelift", feature = "winch"))))]
360
- pub fn new<T>(
361
- store: impl AsContextMut<Data = T>,
362
- ty: FuncType,
363
- func: impl Fn(Caller<'_, T>, &[Val], &mut [Val]) -> Result<()> + Send + Sync + 'static,
364
- ) -> Self {
365
- let ty_clone = ty.clone();
366
- unsafe {
367
- Func::new_unchecked(store, ty, move |caller, values| {
368
- Func::invoke(caller, &ty_clone, values, &func)
369
- })
370
- }
371
- }
372
-
373
- /// Creates a new [`Func`] with the given arguments, although has fewer
374
- /// runtime checks than [`Func::new`].
375
- ///
376
- /// This function takes a callback of a different signature than
377
- /// [`Func::new`], instead receiving a raw pointer with a list of [`ValRaw`]
378
- /// structures. These values have no type information associated with them
379
- /// so it's up to the caller to provide a function that will correctly
380
- /// interpret the list of values as those coming from the `ty` specified.
381
- ///
382
- /// If you're calling this from Rust it's recommended to either instead use
383
- /// [`Func::new`] or [`Func::wrap`]. The [`Func::wrap`] API, in particular,
384
- /// is both safer and faster than this API.
385
- ///
386
- /// # Errors
387
- ///
388
- /// See [`Func::new`] for the behavior of returning an error from the host
389
- /// function provided here.
390
- ///
391
- /// # Unsafety
392
- ///
393
- /// This function is not safe because it's not known at compile time that
394
- /// the `func` provided correctly interprets the argument types provided to
395
- /// it, or that the results it produces will be of the correct type.
396
- #[cfg(any(feature = "cranelift", feature = "winch"))]
397
- #[cfg_attr(nightlydoc, doc(cfg(any(feature = "cranelift", feature = "winch"))))]
398
- pub unsafe fn new_unchecked<T>(
399
- mut store: impl AsContextMut<Data = T>,
400
- ty: FuncType,
401
- func: impl Fn(Caller<'_, T>, &mut [ValRaw]) -> Result<()> + Send + Sync + 'static,
402
- ) -> Self {
403
- let store = store.as_context_mut().0;
404
- let host = HostFunc::new_unchecked(store.engine(), ty, func);
405
- host.into_func(store)
406
- }
407
-
408
- /// Creates a new host-defined WebAssembly function which, when called,
409
- /// will run the asynchronous computation defined by `func` to completion
410
- /// and then return the result to WebAssembly.
411
- ///
412
- /// This function is the asynchronous analogue of [`Func::new`] and much of
413
- /// that documentation applies to this as well. The key difference is that
414
- /// `func` returns a future instead of simply a `Result`. Note that the
415
- /// returned future can close over any of the arguments, but it cannot close
416
- /// over the state of the closure itself. It's recommended to store any
417
- /// necessary async state in the `T` of the [`Store<T>`](crate::Store) which
418
- /// can be accessed through [`Caller::data`] or [`Caller::data_mut`].
419
- ///
420
- /// For more information on `Send + Sync + 'static`, see
421
- /// [`Func::wrap`](#why-send--sync--static).
422
- ///
423
- /// # Panics
424
- ///
425
- /// This function will panic if `store` is not associated with an [async
426
- /// config](crate::Config::async_support).
427
- ///
428
- /// # Errors
429
- ///
430
- /// See [`Func::new`] for the behavior of returning an error from the host
431
- /// function provided here.
432
- ///
433
- /// # Examples
434
- ///
435
- /// ```
436
- /// # use wasmtime::*;
437
- /// # fn main() -> anyhow::Result<()> {
438
- /// // Simulate some application-specific state as well as asynchronous
439
- /// // functions to query that state.
440
- /// struct MyDatabase {
441
- /// // ...
442
- /// }
443
- ///
444
- /// impl MyDatabase {
445
- /// async fn get_row_count(&self) -> u32 {
446
- /// // ...
447
- /// # 100
448
- /// }
449
- /// }
450
- ///
451
- /// let my_database = MyDatabase {
452
- /// // ...
453
- /// };
454
- ///
455
- /// // Using `new_async` we can hook up into calling our async
456
- /// // `get_row_count` function.
457
- /// let engine = Engine::new(Config::new().async_support(true))?;
458
- /// let mut store = Store::new(&engine, MyDatabase {
459
- /// // ...
460
- /// });
461
- /// let get_row_count_type = wasmtime::FuncType::new(
462
- /// None,
463
- /// Some(wasmtime::ValType::I32),
464
- /// );
465
- /// let get = Func::new_async(&mut store, get_row_count_type, |caller, _params, results| {
466
- /// Box::new(async move {
467
- /// let count = caller.data().get_row_count().await;
468
- /// results[0] = Val::I32(count as i32);
469
- /// Ok(())
470
- /// })
471
- /// });
472
- /// // ...
473
- /// # Ok(())
474
- /// # }
475
- /// ```
476
- #[cfg(all(feature = "async", feature = "cranelift"))]
477
- #[cfg_attr(nightlydoc, doc(cfg(all(feature = "async", feature = "cranelift"))))]
478
- pub fn new_async<T, F>(store: impl AsContextMut<Data = T>, ty: FuncType, func: F) -> Func
479
- where
480
- F: for<'a> Fn(
481
- Caller<'a, T>,
482
- &'a [Val],
483
- &'a mut [Val],
484
- ) -> Box<dyn Future<Output = Result<()>> + Send + 'a>
485
- + Send
486
- + Sync
487
- + 'static,
488
- {
489
- assert!(
490
- store.as_context().async_support(),
491
- "cannot use `new_async` without enabling async support in the config"
492
- );
493
- Func::new(store, ty, move |mut caller, params, results| {
494
- let async_cx = caller
495
- .store
496
- .as_context_mut()
497
- .0
498
- .async_cx()
499
- .expect("Attempt to spawn new action on dying fiber");
500
- let mut future = Pin::from(func(caller, params, results));
501
- match unsafe { async_cx.block_on(future.as_mut()) } {
502
- Ok(Ok(())) => Ok(()),
503
- Ok(Err(trap)) | Err(trap) => Err(trap),
504
- }
505
- })
506
- }
507
-
508
- pub(crate) unsafe fn from_caller_checked_func_ref(
509
- store: &mut StoreOpaque,
510
- raw: *mut VMFuncRef,
511
- ) -> Option<Func> {
512
- let func_ref = NonNull::new(raw)?;
513
- debug_assert!(func_ref.as_ref().type_index != VMSharedSignatureIndex::default());
514
- let export = ExportFunction { func_ref };
515
- Some(Func::from_wasmtime_function(export, store))
516
- }
517
-
518
- /// Creates a new `Func` from the given Rust closure.
519
- ///
520
- /// This function will create a new `Func` which, when called, will
521
- /// execute the given Rust closure. Unlike [`Func::new`] the target
522
- /// function being called is known statically so the type signature can
523
- /// be inferred. Rust types will map to WebAssembly types as follows:
524
- ///
525
- /// | Rust Argument Type | WebAssembly Type |
526
- /// |---------------------|------------------|
527
- /// | `i32` | `i32` |
528
- /// | `u32` | `i32` |
529
- /// | `i64` | `i64` |
530
- /// | `u64` | `i64` |
531
- /// | `f32` | `f32` |
532
- /// | `f64` | `f64` |
533
- /// | (not supported) | `v128` |
534
- /// | `Option<Func>` | `funcref` |
535
- /// | `Option<ExternRef>` | `externref` |
536
- ///
537
- /// Any of the Rust types can be returned from the closure as well, in
538
- /// addition to some extra types
539
- ///
540
- /// | Rust Return Type | WebAssembly Return Type | Meaning |
541
- /// |-------------------|-------------------------|-----------------------|
542
- /// | `()` | nothing | no return value |
543
- /// | `T` | `T` | a single return value |
544
- /// | `(T1, T2, ...)` | `T1 T2 ...` | multiple returns |
545
- ///
546
- /// Note that all return types can also be wrapped in `Result<_>` to
547
- /// indicate that the host function can generate a trap as well as possibly
548
- /// returning a value.
549
- ///
550
- /// Finally you can also optionally take [`Caller`] as the first argument of
551
- /// your closure. If inserted then you're able to inspect the caller's
552
- /// state, for example the [`Memory`](crate::Memory) it has exported so you
553
- /// can read what pointers point to.
554
- ///
555
- /// Note that when using this API, the intention is to create as thin of a
556
- /// layer as possible for when WebAssembly calls the function provided. With
557
- /// sufficient inlining and optimization the WebAssembly will call straight
558
- /// into `func` provided, with no extra fluff entailed.
559
- ///
560
- /// # Why `Send + Sync + 'static`?
561
- ///
562
- /// All host functions defined in a [`Store`](crate::Store) (including
563
- /// those from [`Func::new`] and other constructors) require that the
564
- /// `func` provided is `Send + Sync + 'static`. Additionally host functions
565
- /// always are `Fn` as opposed to `FnMut` or `FnOnce`. This can at-a-glance
566
- /// feel restrictive since the closure cannot close over as many types as
567
- /// before. The reason for this, though, is to ensure that
568
- /// [`Store<T>`](crate::Store) can implement both the `Send` and `Sync`
569
- /// traits.
570
- ///
571
- /// Fear not, however, because this isn't as restrictive as it seems! Host
572
- /// functions are provided a [`Caller<'_, T>`](crate::Caller) argument which
573
- /// allows access to the host-defined data within the
574
- /// [`Store`](crate::Store). The `T` type is not required to be any of
575
- /// `Send`, `Sync`, or `'static`! This means that you can store whatever
576
- /// you'd like in `T` and have it accessible by all host functions.
577
- /// Additionally mutable access to `T` is allowed through
578
- /// [`Caller::data_mut`].
579
- ///
580
- /// Most host-defined [`Func`] values provide closures that end up not
581
- /// actually closing over any values. These zero-sized types will use the
582
- /// context from [`Caller`] for host-defined information.
583
- ///
584
- /// # Errors
585
- ///
586
- /// The closure provided here to `wrap` can optionally return a
587
- /// [`Result<T>`](anyhow::Result). Returning `Ok(t)` represents the host
588
- /// function successfully completing with the `t` result. Returning
589
- /// `Err(e)`, however, is equivalent to raising a custom wasm trap.
590
- /// Execution of WebAssembly does not resume and the stack is unwound to the
591
- /// original caller of the function where the error is returned.
592
- ///
593
- /// For more information about errors in Wasmtime see the [`Trap`]
594
- /// documentation.
595
- ///
596
- /// [`Trap`]: crate::Trap
597
- ///
598
- /// # Examples
599
- ///
600
- /// First up we can see how simple wasm imports can be implemented, such
601
- /// as a function that adds its two arguments and returns the result.
602
- ///
603
- /// ```
604
- /// # use wasmtime::*;
605
- /// # fn main() -> anyhow::Result<()> {
606
- /// # let mut store = Store::<()>::default();
607
- /// let add = Func::wrap(&mut store, |a: i32, b: i32| a + b);
608
- /// let module = Module::new(
609
- /// store.engine(),
610
- /// r#"
611
- /// (module
612
- /// (import "" "" (func $add (param i32 i32) (result i32)))
613
- /// (func (export "foo") (param i32 i32) (result i32)
614
- /// local.get 0
615
- /// local.get 1
616
- /// call $add))
617
- /// "#,
618
- /// )?;
619
- /// let instance = Instance::new(&mut store, &module, &[add.into()])?;
620
- /// let foo = instance.get_typed_func::<(i32, i32), i32>(&mut store, "foo")?;
621
- /// assert_eq!(foo.call(&mut store, (1, 2))?, 3);
622
- /// # Ok(())
623
- /// # }
624
- /// ```
625
- ///
626
- /// We can also do the same thing, but generate a trap if the addition
627
- /// overflows:
628
- ///
629
- /// ```
630
- /// # use wasmtime::*;
631
- /// # fn main() -> anyhow::Result<()> {
632
- /// # let mut store = Store::<()>::default();
633
- /// let add = Func::wrap(&mut store, |a: i32, b: i32| {
634
- /// match a.checked_add(b) {
635
- /// Some(i) => Ok(i),
636
- /// None => anyhow::bail!("overflow"),
637
- /// }
638
- /// });
639
- /// let module = Module::new(
640
- /// store.engine(),
641
- /// r#"
642
- /// (module
643
- /// (import "" "" (func $add (param i32 i32) (result i32)))
644
- /// (func (export "foo") (param i32 i32) (result i32)
645
- /// local.get 0
646
- /// local.get 1
647
- /// call $add))
648
- /// "#,
649
- /// )?;
650
- /// let instance = Instance::new(&mut store, &module, &[add.into()])?;
651
- /// let foo = instance.get_typed_func::<(i32, i32), i32>(&mut store, "foo")?;
652
- /// assert_eq!(foo.call(&mut store, (1, 2))?, 3);
653
- /// assert!(foo.call(&mut store, (i32::max_value(), 1)).is_err());
654
- /// # Ok(())
655
- /// # }
656
- /// ```
657
- ///
658
- /// And don't forget all the wasm types are supported!
659
- ///
660
- /// ```
661
- /// # use wasmtime::*;
662
- /// # fn main() -> anyhow::Result<()> {
663
- /// # let mut store = Store::<()>::default();
664
- /// let debug = Func::wrap(&mut store, |a: i32, b: u32, c: f32, d: i64, e: u64, f: f64| {
665
- ///
666
- /// println!("a={}", a);
667
- /// println!("b={}", b);
668
- /// println!("c={}", c);
669
- /// println!("d={}", d);
670
- /// println!("e={}", e);
671
- /// println!("f={}", f);
672
- /// });
673
- /// let module = Module::new(
674
- /// store.engine(),
675
- /// r#"
676
- /// (module
677
- /// (import "" "" (func $debug (param i32 i32 f32 i64 i64 f64)))
678
- /// (func (export "foo")
679
- /// i32.const -1
680
- /// i32.const 1
681
- /// f32.const 2
682
- /// i64.const -3
683
- /// i64.const 3
684
- /// f64.const 4
685
- /// call $debug))
686
- /// "#,
687
- /// )?;
688
- /// let instance = Instance::new(&mut store, &module, &[debug.into()])?;
689
- /// let foo = instance.get_typed_func::<(), ()>(&mut store, "foo")?;
690
- /// foo.call(&mut store, ())?;
691
- /// # Ok(())
692
- /// # }
693
- /// ```
694
- ///
695
- /// Finally if you want to get really fancy you can also implement
696
- /// imports that read/write wasm module's memory
697
- ///
698
- /// ```
699
- /// use std::str;
700
- ///
701
- /// # use wasmtime::*;
702
- /// # fn main() -> anyhow::Result<()> {
703
- /// # let mut store = Store::default();
704
- /// let log_str = Func::wrap(&mut store, |mut caller: Caller<'_, ()>, ptr: i32, len: i32| {
705
- /// let mem = match caller.get_export("memory") {
706
- /// Some(Extern::Memory(mem)) => mem,
707
- /// _ => anyhow::bail!("failed to find host memory"),
708
- /// };
709
- /// let data = mem.data(&caller)
710
- /// .get(ptr as u32 as usize..)
711
- /// .and_then(|arr| arr.get(..len as u32 as usize));
712
- /// let string = match data {
713
- /// Some(data) => match str::from_utf8(data) {
714
- /// Ok(s) => s,
715
- /// Err(_) => anyhow::bail!("invalid utf-8"),
716
- /// },
717
- /// None => anyhow::bail!("pointer/length out of bounds"),
718
- /// };
719
- /// assert_eq!(string, "Hello, world!");
720
- /// println!("{}", string);
721
- /// Ok(())
722
- /// });
723
- /// let module = Module::new(
724
- /// store.engine(),
725
- /// r#"
726
- /// (module
727
- /// (import "" "" (func $log_str (param i32 i32)))
728
- /// (func (export "foo")
729
- /// i32.const 4 ;; ptr
730
- /// i32.const 13 ;; len
731
- /// call $log_str)
732
- /// (memory (export "memory") 1)
733
- /// (data (i32.const 4) "Hello, world!"))
734
- /// "#,
735
- /// )?;
736
- /// let instance = Instance::new(&mut store, &module, &[log_str.into()])?;
737
- /// let foo = instance.get_typed_func::<(), ()>(&mut store, "foo")?;
738
- /// foo.call(&mut store, ())?;
739
- /// # Ok(())
740
- /// # }
741
- /// ```
742
- pub fn wrap<T, Params, Results>(
743
- mut store: impl AsContextMut<Data = T>,
744
- func: impl IntoFunc<T, Params, Results>,
745
- ) -> Func {
746
- let store = store.as_context_mut().0;
747
- // part of this unsafety is about matching the `T` to a `Store<T>`,
748
- // which is done through the `AsContextMut` bound above.
749
- unsafe {
750
- let host = HostFunc::wrap(store.engine(), func);
751
- host.into_func(store)
752
- }
753
- }
754
-
755
- for_each_function_signature!(generate_wrap_async_func);
756
-
757
- /// Returns the underlying wasm type that this `Func` has.
758
- ///
759
- /// # Panics
760
- ///
761
- /// Panics if `store` does not own this function.
762
- pub fn ty(&self, store: impl AsContext) -> FuncType {
763
- self.load_ty(&store.as_context().0)
764
- }
765
-
766
- /// Forcibly loads the type of this function from the `Engine`.
767
- ///
768
- /// Note that this is a somewhat expensive method since it requires taking a
769
- /// lock as well as cloning a type.
770
- fn load_ty(&self, store: &StoreOpaque) -> FuncType {
771
- FuncType::from_wasm_func_type(
772
- store
773
- .engine()
774
- .signatures()
775
- .lookup_type(self.sig_index(store.store_data()))
776
- .expect("signature should be registered"),
777
- )
778
- }
779
-
780
- /// Gets a reference to the `FuncType` for this function.
781
- ///
782
- /// Note that this returns both a reference to the type of this function as
783
- /// well as a reference back to the store itself. This enables using the
784
- /// `StoreOpaque` while the `FuncType` is also being used (from the
785
- /// perspective of the borrow-checker) because otherwise the signature would
786
- /// consider `StoreOpaque` borrowed mutable while `FuncType` is in use.
787
- fn ty_ref<'a>(&self, store: &'a mut StoreOpaque) -> (&'a FuncType, &'a StoreOpaque) {
788
- // If we haven't loaded our type into the store yet then do so lazily at
789
- // this time.
790
- if store.store_data()[self.0].ty.is_none() {
791
- let ty = self.load_ty(store);
792
- store.store_data_mut()[self.0].ty = Some(Box::new(ty));
793
- }
794
-
795
- (store.store_data()[self.0].ty.as_ref().unwrap(), store)
796
- }
797
-
798
- pub(crate) fn sig_index(&self, data: &StoreData) -> VMSharedSignatureIndex {
799
- data[self.0].sig_index()
800
- }
801
-
802
- /// Invokes this function with the `params` given and writes returned values
803
- /// to `results`.
804
- ///
805
- /// The `params` here must match the type signature of this `Func`, or an
806
- /// error will occur. Additionally `results` must have the same
807
- /// length as the number of results for this function. Calling this function
808
- /// will synchronously execute the WebAssembly function referenced to get
809
- /// the results.
810
- ///
811
- /// This function will return `Ok(())` if execution completed without a trap
812
- /// or error of any kind. In this situation the results will be written to
813
- /// the provided `results` array.
814
- ///
815
- /// # Errors
816
- ///
817
- /// Any error which occurs throughout the execution of the function will be
818
- /// returned as `Err(e)`. The [`Error`](anyhow::Error) type can be inspected
819
- /// for the precise error cause such as:
820
- ///
821
- /// * [`Trap`] - indicates that a wasm trap happened and execution was
822
- /// halted.
823
- /// * [`WasmBacktrace`] - optionally included on errors for backtrace
824
- /// information of the trap/error.
825
- /// * Other string-based errors to indicate issues such as type errors with
826
- /// `params`.
827
- /// * Any host-originating error originally returned from a function defined
828
- /// via [`Func::new`], for example.
829
- ///
830
- /// Errors typically indicate that execution of WebAssembly was halted
831
- /// mid-way and did not complete after the error condition happened.
832
- ///
833
- /// [`Trap`]: crate::Trap
834
- ///
835
- /// # Panics
836
- ///
837
- /// This function will panic if called on a function belonging to an async
838
- /// store. Asynchronous stores must always use `call_async`.
839
- /// initiates a panic. Also panics if `store` does not own this function.
840
- ///
841
- /// [`WasmBacktrace`]: crate::WasmBacktrace
842
- pub fn call(
843
- &self,
844
- mut store: impl AsContextMut,
845
- params: &[Val],
846
- results: &mut [Val],
847
- ) -> Result<()> {
848
- assert!(
849
- !store.as_context().async_support(),
850
- "must use `call_async` when async support is enabled on the config",
851
- );
852
- self.call_impl(&mut store.as_context_mut(), params, results)
853
- }
854
-
855
- /// Invokes this function in an "unchecked" fashion, reading parameters and
856
- /// writing results to `params_and_returns`.
857
- ///
858
- /// This function is the same as [`Func::call`] except that the arguments
859
- /// and results both use a different representation. If possible it's
860
- /// recommended to use [`Func::call`] if safety isn't necessary or to use
861
- /// [`Func::typed`] in conjunction with [`TypedFunc::call`] since that's
862
- /// both safer and faster than this method of invoking a function.
863
- ///
864
- /// Note that if this function takes `externref` arguments then it will
865
- /// **not** automatically GC unlike the [`Func::call`] and
866
- /// [`TypedFunc::call`] functions. This means that if this function is
867
- /// invoked many times with new `ExternRef` values and no other GC happens
868
- /// via any other means then no values will get collected.
869
- ///
870
- /// # Errors
871
- ///
872
- /// For more information about errors see the [`Func::call`] documentation.
873
- ///
874
- /// # Unsafety
875
- ///
876
- /// This function is unsafe because the `params_and_returns` argument is not
877
- /// validated at all. It must uphold invariants such as:
878
- ///
879
- /// * It's a valid pointer to an array
880
- /// * It has enough space to store all parameters
881
- /// * It has enough space to store all results (not at the same time as
882
- /// parameters)
883
- /// * Parameters are initially written to the array and have the correct
884
- /// types and such.
885
- /// * Reference types like `externref` and `funcref` are valid at the
886
- /// time of this call and for the `store` specified.
887
- ///
888
- /// These invariants are all upheld for you with [`Func::call`] and
889
- /// [`TypedFunc::call`].
890
- pub unsafe fn call_unchecked(
891
- &self,
892
- mut store: impl AsContextMut,
893
- params_and_returns: *mut ValRaw,
894
- params_and_returns_capacity: usize,
895
- ) -> Result<()> {
896
- let mut store = store.as_context_mut();
897
- let data = &store.0.store_data()[self.0];
898
- let func_ref = data.export().func_ref;
899
- Self::call_unchecked_raw(
900
- &mut store,
901
- func_ref,
902
- params_and_returns,
903
- params_and_returns_capacity,
904
- )
905
- }
906
-
907
- pub(crate) unsafe fn call_unchecked_raw<T>(
908
- store: &mut StoreContextMut<'_, T>,
909
- func_ref: NonNull<VMFuncRef>,
910
- params_and_returns: *mut ValRaw,
911
- params_and_returns_capacity: usize,
912
- ) -> Result<()> {
913
- invoke_wasm_and_catch_traps(store, |caller| {
914
- let func_ref = func_ref.as_ref();
915
- (func_ref.array_call)(
916
- func_ref.vmctx,
917
- caller.cast::<VMOpaqueContext>(),
918
- params_and_returns,
919
- params_and_returns_capacity,
920
- )
921
- })
922
- }
923
-
924
- /// Converts the raw representation of a `funcref` into an `Option<Func>`
925
- ///
926
- /// This is intended to be used in conjunction with [`Func::new_unchecked`],
927
- /// [`Func::call_unchecked`], and [`ValRaw`] with its `funcref` field.
928
- ///
929
- /// # Unsafety
930
- ///
931
- /// This function is not safe because `raw` is not validated at all. The
932
- /// caller must guarantee that `raw` is owned by the `store` provided and is
933
- /// valid within the `store`.
934
- pub unsafe fn from_raw(mut store: impl AsContextMut, raw: *mut c_void) -> Option<Func> {
935
- Func::from_caller_checked_func_ref(store.as_context_mut().0, raw.cast())
936
- }
937
-
938
- /// Extracts the raw value of this `Func`, which is owned by `store`.
939
- ///
940
- /// This function returns a value that's suitable for writing into the
941
- /// `funcref` field of the [`ValRaw`] structure.
942
- ///
943
- /// # Unsafety
944
- ///
945
- /// The returned value is only valid for as long as the store is alive and
946
- /// this function is properly rooted within it. Additionally this function
947
- /// should not be liberally used since it's a very low-level knob.
948
- pub unsafe fn to_raw(&self, mut store: impl AsContextMut) -> *mut c_void {
949
- self.vm_func_ref(store.as_context_mut().0).as_ptr().cast()
950
- }
951
-
952
- /// Invokes this function with the `params` given, returning the results
953
- /// asynchronously.
954
- ///
955
- /// This function is the same as [`Func::call`] except that it is
956
- /// asynchronous. This is only compatible with stores associated with an
957
- /// [asynchronous config](crate::Config::async_support).
958
- ///
959
- /// It's important to note that the execution of WebAssembly will happen
960
- /// synchronously in the `poll` method of the future returned from this
961
- /// function. Wasmtime does not manage its own thread pool or similar to
962
- /// execute WebAssembly in. Future `poll` methods are generally expected to
963
- /// resolve quickly, so it's recommended that you run or poll this future
964
- /// in a "blocking context".
965
- ///
966
- /// For more information see the documentation on [asynchronous
967
- /// configs](crate::Config::async_support).
968
- ///
969
- /// # Errors
970
- ///
971
- /// For more information on errors see the [`Func::call`] documentation.
972
- ///
973
- /// # Panics
974
- ///
975
- /// Panics if this is called on a function in a synchronous store. This
976
- /// only works with functions defined within an asynchronous store. Also
977
- /// panics if `store` does not own this function.
978
- #[cfg(feature = "async")]
979
- #[cfg_attr(nightlydoc, doc(cfg(feature = "async")))]
980
- pub async fn call_async<T>(
981
- &self,
982
- mut store: impl AsContextMut<Data = T>,
983
- params: &[Val],
984
- results: &mut [Val],
985
- ) -> Result<()>
986
- where
987
- T: Send,
988
- {
989
- let mut store = store.as_context_mut();
990
- assert!(
991
- store.0.async_support(),
992
- "cannot use `call_async` without enabling async support in the config",
993
- );
994
- let result = store
995
- .on_fiber(|store| self.call_impl(store, params, results))
996
- .await??;
997
- Ok(result)
998
- }
999
-
1000
- fn call_impl<T>(
1001
- &self,
1002
- store: &mut StoreContextMut<'_, T>,
1003
- params: &[Val],
1004
- results: &mut [Val],
1005
- ) -> Result<()> {
1006
- // We need to perform a dynamic check that the arguments given to us
1007
- // match the signature of this function and are appropriate to pass to
1008
- // this function. This involves checking to make sure we have the right
1009
- // number and types of arguments as well as making sure everything is
1010
- // from the same `Store`.
1011
- let (ty, opaque) = self.ty_ref(store.0);
1012
- if ty.params().len() != params.len() {
1013
- bail!(
1014
- "expected {} arguments, got {}",
1015
- ty.params().len(),
1016
- params.len()
1017
- );
1018
- }
1019
- if ty.results().len() != results.len() {
1020
- bail!(
1021
- "expected {} results, got {}",
1022
- ty.results().len(),
1023
- results.len()
1024
- );
1025
- }
1026
- for (ty, arg) in ty.params().zip(params) {
1027
- if arg.ty() != ty {
1028
- bail!(
1029
- "argument type mismatch: found {} but expected {}",
1030
- arg.ty(),
1031
- ty
1032
- );
1033
- }
1034
- if !arg.comes_from_same_store(opaque) {
1035
- bail!("cross-`Store` values are not currently supported");
1036
- }
1037
- }
1038
-
1039
- let values_vec_size = params.len().max(ty.results().len());
1040
-
1041
- // Whenever we pass `externref`s from host code to Wasm code, they
1042
- // go into the `VMExternRefActivationsTable`. But the table might be
1043
- // at capacity already, so check for that. If it is at capacity
1044
- // (unlikely) then do a GC to free up space. This is necessary
1045
- // because otherwise we would either keep filling up the bump chunk
1046
- // and making it larger and larger or we would always take the slow
1047
- // path when inserting references into the table.
1048
- if ty.as_wasm_func_type().externref_params_count()
1049
- > store
1050
- .0
1051
- .externref_activations_table()
1052
- .bump_capacity_remaining()
1053
- {
1054
- store.gc();
1055
- }
1056
-
1057
- // Store the argument values into `values_vec`.
1058
- let mut values_vec = store.0.take_wasm_val_raw_storage();
1059
- debug_assert!(values_vec.is_empty());
1060
- values_vec.resize_with(values_vec_size, || ValRaw::i32(0));
1061
- for (arg, slot) in params.iter().cloned().zip(&mut values_vec) {
1062
- unsafe {
1063
- *slot = arg.to_raw(&mut *store);
1064
- }
1065
- }
1066
-
1067
- unsafe {
1068
- self.call_unchecked(&mut *store, values_vec.as_mut_ptr(), values_vec_size)?;
1069
- }
1070
-
1071
- for ((i, slot), val) in results.iter_mut().enumerate().zip(&values_vec) {
1072
- let ty = self.ty_ref(store.0).0.results().nth(i).unwrap();
1073
- *slot = unsafe { Val::from_raw(&mut *store, *val, ty) };
1074
- }
1075
- values_vec.truncate(0);
1076
- store.0.save_wasm_val_raw_storage(values_vec);
1077
- Ok(())
1078
- }
1079
-
1080
- #[inline]
1081
- pub(crate) fn vm_func_ref(&self, store: &mut StoreOpaque) -> NonNull<VMFuncRef> {
1082
- let func_data = &mut store.store_data_mut()[self.0];
1083
- if let Some(in_store) = func_data.in_store_func_ref {
1084
- in_store.as_non_null()
1085
- } else {
1086
- let func_ref = func_data.export().func_ref;
1087
- unsafe {
1088
- if func_ref.as_ref().wasm_call.is_none() {
1089
- let func_ref = store.func_refs().push(func_ref.as_ref().clone());
1090
- store.store_data_mut()[self.0].in_store_func_ref =
1091
- Some(SendSyncPtr::new(func_ref));
1092
- store.fill_func_refs();
1093
- func_ref
1094
- } else {
1095
- func_ref
1096
- }
1097
- }
1098
- }
1099
- }
1100
-
1101
- pub(crate) unsafe fn from_wasmtime_function(
1102
- export: ExportFunction,
1103
- store: &mut StoreOpaque,
1104
- ) -> Self {
1105
- Func::from_func_kind(FuncKind::StoreOwned { export }, store)
1106
- }
1107
-
1108
- fn from_func_kind(kind: FuncKind, store: &mut StoreOpaque) -> Self {
1109
- Func(store.store_data_mut().insert(FuncData {
1110
- kind,
1111
- in_store_func_ref: None,
1112
- ty: None,
1113
- }))
1114
- }
1115
-
1116
- pub(crate) fn vmimport(&self, store: &mut StoreOpaque, module: &Module) -> VMFunctionImport {
1117
- unsafe {
1118
- let f = {
1119
- let func_data = &mut store.store_data_mut()[self.0];
1120
- // If we already patched this `funcref.wasm_call` and saved a
1121
- // copy in the store, use the patched version. Otherwise, use
1122
- // the potentially un-patched version.
1123
- if let Some(func_ref) = func_data.in_store_func_ref {
1124
- func_ref.as_non_null()
1125
- } else {
1126
- func_data.export().func_ref
1127
- }
1128
- };
1129
- VMFunctionImport {
1130
- wasm_call: if let Some(wasm_call) = f.as_ref().wasm_call {
1131
- wasm_call
1132
- } else {
1133
- // Assert that this is a native-call function, since those
1134
- // are the only ones that could be missing a `wasm_call`
1135
- // trampoline.
1136
- let _ = VMNativeCallHostFuncContext::from_opaque(f.as_ref().vmctx);
1137
-
1138
- let sig = self.sig_index(store.store_data());
1139
- module.runtime_info().wasm_to_native_trampoline(sig).expect(
1140
- "must have a wasm-to-native trampoline for this signature if the Wasm \
1141
- module is importing a function of this signature",
1142
- )
1143
- },
1144
- native_call: f.as_ref().native_call,
1145
- array_call: f.as_ref().array_call,
1146
- vmctx: f.as_ref().vmctx,
1147
- }
1148
- }
1149
- }
1150
-
1151
- pub(crate) fn comes_from_same_store(&self, store: &StoreOpaque) -> bool {
1152
- store.store_data().contains(self.0)
1153
- }
1154
-
1155
- fn invoke<T>(
1156
- mut caller: Caller<'_, T>,
1157
- ty: &FuncType,
1158
- values_vec: &mut [ValRaw],
1159
- func: &dyn Fn(Caller<'_, T>, &[Val], &mut [Val]) -> Result<()>,
1160
- ) -> Result<()> {
1161
- // Translate the raw JIT arguments in `values_vec` into a `Val` which
1162
- // we'll be passing as a slice. The storage for our slice-of-`Val` we'll
1163
- // be taking from the `Store`. We preserve our slice back into the
1164
- // `Store` after the hostcall, ideally amortizing the cost of allocating
1165
- // the storage across wasm->host calls.
1166
- //
1167
- // Note that we have a dynamic guarantee that `values_vec` is the
1168
- // appropriate length to both read all arguments from as well as store
1169
- // all results into.
1170
- let mut val_vec = caller.store.0.take_hostcall_val_storage();
1171
- debug_assert!(val_vec.is_empty());
1172
- let nparams = ty.params().len();
1173
- val_vec.reserve(nparams + ty.results().len());
1174
- for (i, ty) in ty.params().enumerate() {
1175
- val_vec.push(unsafe { Val::from_raw(&mut caller.store, values_vec[i], ty) })
1176
- }
1177
-
1178
- val_vec.extend((0..ty.results().len()).map(|_| Val::null()));
1179
- let (params, results) = val_vec.split_at_mut(nparams);
1180
- func(caller.sub_caller(), params, results)?;
1181
-
1182
- // See the comment in `Func::call_impl`'s `write_params` function.
1183
- if ty.as_wasm_func_type().externref_returns_count()
1184
- > caller
1185
- .store
1186
- .0
1187
- .externref_activations_table()
1188
- .bump_capacity_remaining()
1189
- {
1190
- caller.store.gc();
1191
- }
1192
-
1193
- // Unlike our arguments we need to dynamically check that the return
1194
- // values produced are correct. There could be a bug in `func` that
1195
- // produces the wrong number, wrong types, or wrong stores of
1196
- // values, and we need to catch that here.
1197
- for (i, (ret, ty)) in results.iter().zip(ty.results()).enumerate() {
1198
- if ret.ty() != ty {
1199
- bail!("function attempted to return an incompatible value");
1200
- }
1201
- if !ret.comes_from_same_store(caller.store.0) {
1202
- bail!("cross-`Store` values are not currently supported");
1203
- }
1204
- unsafe {
1205
- values_vec[i] = ret.to_raw(&mut caller.store);
1206
- }
1207
- }
1208
-
1209
- // Restore our `val_vec` back into the store so it's usable for the next
1210
- // hostcall to reuse our own storage.
1211
- val_vec.truncate(0);
1212
- caller.store.0.save_hostcall_val_storage(val_vec);
1213
- Ok(())
1214
- }
1215
-
1216
- /// Attempts to extract a typed object from this `Func` through which the
1217
- /// function can be called.
1218
- ///
1219
- /// This function serves as an alternative to [`Func::call`] and
1220
- /// [`Func::call_async`]. This method performs a static type check (using
1221
- /// the `Params` and `Results` type parameters on the underlying wasm
1222
- /// function. If the type check passes then a `TypedFunc` object is returned,
1223
- /// otherwise an error is returned describing the typecheck failure.
1224
- ///
1225
- /// The purpose of this relative to [`Func::call`] is that it's much more
1226
- /// efficient when used to invoke WebAssembly functions. With the types
1227
- /// statically known far less setup/teardown is required when invoking
1228
- /// WebAssembly. If speed is desired then this function is recommended to be
1229
- /// used instead of [`Func::call`] (which is more general, hence its
1230
- /// slowdown).
1231
- ///
1232
- /// The `Params` type parameter is used to describe the parameters of the
1233
- /// WebAssembly function. This can either be a single type (like `i32`), or
1234
- /// a tuple of types representing the list of parameters (like `(i32, f32,
1235
- /// f64)`). Additionally you can use `()` to represent that the function has
1236
- /// no parameters.
1237
- ///
1238
- /// The `Results` type parameter is used to describe the results of the
1239
- /// function. This behaves the same way as `Params`, but just for the
1240
- /// results of the function.
1241
- ///
1242
- /// Translation between Rust types and WebAssembly types looks like:
1243
- ///
1244
- /// | WebAssembly | Rust |
1245
- /// |-------------|---------------------|
1246
- /// | `i32` | `i32` or `u32` |
1247
- /// | `i64` | `i64` or `u64` |
1248
- /// | `f32` | `f32` |
1249
- /// | `f64` | `f64` |
1250
- /// | `externref` | `Option<ExternRef>` |
1251
- /// | `funcref` | `Option<Func>` |
1252
- /// | `v128` | not supported |
1253
- ///
1254
- /// (note that this mapping is the same as that of [`Func::wrap`]).
1255
- ///
1256
- /// Note that once the [`TypedFunc`] return value is acquired you'll use either
1257
- /// [`TypedFunc::call`] or [`TypedFunc::call_async`] as necessary to actually invoke
1258
- /// the function. This method does not invoke any WebAssembly code, it
1259
- /// simply performs a typecheck before returning the [`TypedFunc`] value.
1260
- ///
1261
- /// This method also has a convenience wrapper as
1262
- /// [`Instance::get_typed_func`](crate::Instance::get_typed_func) to
1263
- /// directly get a typed function value from an
1264
- /// [`Instance`](crate::Instance).
1265
- ///
1266
- /// # Errors
1267
- ///
1268
- /// This function will return an error if `Params` or `Results` does not
1269
- /// match the native type of this WebAssembly function.
1270
- ///
1271
- /// # Panics
1272
- ///
1273
- /// This method will panic if `store` does not own this function.
1274
- ///
1275
- /// # Examples
1276
- ///
1277
- /// An end-to-end example of calling a function which takes no parameters
1278
- /// and has no results:
1279
- ///
1280
- /// ```
1281
- /// # use wasmtime::*;
1282
- /// # fn main() -> anyhow::Result<()> {
1283
- /// let engine = Engine::default();
1284
- /// let mut store = Store::new(&engine, ());
1285
- /// let module = Module::new(&engine, r#"(module (func (export "foo")))"#)?;
1286
- /// let instance = Instance::new(&mut store, &module, &[])?;
1287
- /// let foo = instance.get_func(&mut store, "foo").expect("export wasn't a function");
1288
- ///
1289
- /// // Note that this call can fail due to the typecheck not passing, but
1290
- /// // in our case we statically know the module so we know this should
1291
- /// // pass.
1292
- /// let typed = foo.typed::<(), ()>(&store)?;
1293
- ///
1294
- /// // Note that this can fail if the wasm traps at runtime.
1295
- /// typed.call(&mut store, ())?;
1296
- /// # Ok(())
1297
- /// # }
1298
- /// ```
1299
- ///
1300
- /// You can also pass in multiple parameters and get a result back
1301
- ///
1302
- /// ```
1303
- /// # use wasmtime::*;
1304
- /// # fn foo(add: &Func, mut store: Store<()>) -> anyhow::Result<()> {
1305
- /// let typed = add.typed::<(i32, i64), f32>(&store)?;
1306
- /// assert_eq!(typed.call(&mut store, (1, 2))?, 3.0);
1307
- /// # Ok(())
1308
- /// # }
1309
- /// ```
1310
- ///
1311
- /// and similarly if a function has multiple results you can bind that too
1312
- ///
1313
- /// ```
1314
- /// # use wasmtime::*;
1315
- /// # fn foo(add_with_overflow: &Func, mut store: Store<()>) -> anyhow::Result<()> {
1316
- /// let typed = add_with_overflow.typed::<(u32, u32), (u32, i32)>(&store)?;
1317
- /// let (result, overflow) = typed.call(&mut store, (u32::max_value(), 2))?;
1318
- /// assert_eq!(result, 1);
1319
- /// assert_eq!(overflow, 1);
1320
- /// # Ok(())
1321
- /// # }
1322
- /// ```
1323
- pub fn typed<Params, Results>(
1324
- &self,
1325
- store: impl AsContext,
1326
- ) -> Result<TypedFunc<Params, Results>>
1327
- where
1328
- Params: WasmParams,
1329
- Results: WasmResults,
1330
- {
1331
- // Type-check that the params/results are all valid
1332
- let ty = self.ty(store);
1333
- Params::typecheck(ty.params()).context("type mismatch with parameters")?;
1334
- Results::typecheck(ty.results()).context("type mismatch with results")?;
1335
-
1336
- // and then we can construct the typed version of this function
1337
- // (unsafely), which should be safe since we just did the type check above.
1338
- unsafe { Ok(TypedFunc::new_unchecked(*self)) }
1339
- }
1340
-
1341
- /// Get a stable hash key for this function.
1342
- ///
1343
- /// Even if the same underlying function is added to the `StoreData`
1344
- /// multiple times and becomes multiple `wasmtime::Func`s, this hash key
1345
- /// will be consistent across all of these functions.
1346
- #[allow(dead_code)] // Not used yet, but added for consistency.
1347
- pub(crate) fn hash_key(&self, store: &mut StoreOpaque) -> impl std::hash::Hash + Eq {
1348
- self.vm_func_ref(store).as_ptr() as usize
1349
- }
1350
- }
1351
-
1352
- /// Prepares for entrance into WebAssembly.
1353
- ///
1354
- /// This function will set up context such that `closure` is allowed to call a
1355
- /// raw trampoline or a raw WebAssembly function. This *must* be called to do
1356
- /// things like catch traps and set up GC properly.
1357
- ///
1358
- /// The `closure` provided receives a default "caller" `VMContext` parameter it
1359
- /// can pass to the called wasm function, if desired.
1360
- pub(crate) fn invoke_wasm_and_catch_traps<T>(
1361
- store: &mut StoreContextMut<'_, T>,
1362
- closure: impl FnMut(*mut VMContext),
1363
- ) -> Result<()> {
1364
- unsafe {
1365
- let exit = enter_wasm(store);
1366
-
1367
- if let Err(trap) = store.0.call_hook(CallHook::CallingWasm) {
1368
- exit_wasm(store, exit);
1369
- return Err(trap);
1370
- }
1371
- let result = wasmtime_runtime::catch_traps(
1372
- store.0.signal_handler(),
1373
- store.0.engine().config().wasm_backtrace,
1374
- store.0.engine().config().coredump_on_trap,
1375
- store.0.default_caller(),
1376
- closure,
1377
- );
1378
- exit_wasm(store, exit);
1379
- store.0.call_hook(CallHook::ReturningFromWasm)?;
1380
- result.map_err(|t| crate::trap::from_runtime_box(store.0, t))
1381
- }
1382
- }
1383
-
1384
- /// This function is called to register state within `Store` whenever
1385
- /// WebAssembly is entered within the `Store`.
1386
- ///
1387
- /// This function sets up various limits such as:
1388
- ///
1389
- /// * The stack limit. This is what ensures that we limit the stack space
1390
- /// allocated by WebAssembly code and it's relative to the initial stack
1391
- /// pointer that called into wasm.
1392
- ///
1393
- /// This function may fail if the the stack limit can't be set because an
1394
- /// interrupt already happened.
1395
- fn enter_wasm<T>(store: &mut StoreContextMut<'_, T>) -> Option<usize> {
1396
- // If this is a recursive call, e.g. our stack limit is already set, then
1397
- // we may be able to skip this function.
1398
- //
1399
- // For synchronous stores there's nothing else to do because all wasm calls
1400
- // happen synchronously and on the same stack. This means that the previous
1401
- // stack limit will suffice for the next recursive call.
1402
- //
1403
- // For asynchronous stores then each call happens on a separate native
1404
- // stack. This means that the previous stack limit is no longer relevant
1405
- // because we're on a separate stack.
1406
- if unsafe { *store.0.runtime_limits().stack_limit.get() } != usize::MAX
1407
- && !store.0.async_support()
1408
- {
1409
- return None;
1410
- }
1411
-
1412
- // Ignore this stack pointer business on miri since we can't execute wasm
1413
- // anyway and the concept of a stack pointer on miri is a bit nebulous
1414
- // regardless.
1415
- if cfg!(miri) {
1416
- return None;
1417
- }
1418
-
1419
- let stack_pointer = stack_pointer();
1420
-
1421
- // Determine the stack pointer where, after which, any wasm code will
1422
- // immediately trap. This is checked on the entry to all wasm functions.
1423
- //
1424
- // Note that this isn't 100% precise. We are requested to give wasm
1425
- // `max_wasm_stack` bytes, but what we're actually doing is giving wasm
1426
- // probably a little less than `max_wasm_stack` because we're
1427
- // calculating the limit relative to this function's approximate stack
1428
- // pointer. Wasm will be executed on a frame beneath this one (or next
1429
- // to it). In any case it's expected to be at most a few hundred bytes
1430
- // of slop one way or another. When wasm is typically given a MB or so
1431
- // (a million bytes) the slop shouldn't matter too much.
1432
- //
1433
- // After we've got the stack limit then we store it into the `stack_limit`
1434
- // variable.
1435
- let wasm_stack_limit = stack_pointer - store.engine().config().max_wasm_stack;
1436
- let prev_stack = unsafe {
1437
- mem::replace(
1438
- &mut *store.0.runtime_limits().stack_limit.get(),
1439
- wasm_stack_limit,
1440
- )
1441
- };
1442
-
1443
- Some(prev_stack)
1444
- }
1445
-
1446
- #[inline]
1447
- fn stack_pointer() -> usize {
1448
- let stack_pointer: usize;
1449
- cfg_if::cfg_if! {
1450
- if #[cfg(target_arch = "x86_64")] {
1451
- unsafe {
1452
- std::arch::asm!(
1453
- "mov {}, rsp",
1454
- out(reg) stack_pointer,
1455
- options(nostack,nomem),
1456
- );
1457
- }
1458
- } else if #[cfg(target_arch = "aarch64")] {
1459
- unsafe {
1460
- std::arch::asm!(
1461
- "mov {}, sp",
1462
- out(reg) stack_pointer,
1463
- options(nostack,nomem),
1464
- );
1465
- }
1466
- } else if #[cfg(target_arch = "riscv64")] {
1467
- unsafe {
1468
- std::arch::asm!(
1469
- "mv {}, sp",
1470
- out(reg) stack_pointer,
1471
- options(nostack,nomem),
1472
- );
1473
- }
1474
- } else if #[cfg(target_arch = "s390x")] {
1475
- stack_pointer = psm::stack_pointer() as usize;
1476
- } else {
1477
- compile_error!("unsupported platform");
1478
- }
1479
- }
1480
- stack_pointer
1481
- }
1482
-
1483
- fn exit_wasm<T>(store: &mut StoreContextMut<'_, T>, prev_stack: Option<usize>) {
1484
- // If we don't have a previous stack pointer to restore, then there's no
1485
- // cleanup we need to perform here.
1486
- let prev_stack = match prev_stack {
1487
- Some(stack) => stack,
1488
- None => return,
1489
- };
1490
-
1491
- unsafe {
1492
- *store.0.runtime_limits().stack_limit.get() = prev_stack;
1493
- }
1494
- }
1495
-
1496
- /// A trait implemented for types which can be returned from closures passed to
1497
- /// [`Func::wrap`] and friends.
1498
- ///
1499
- /// This trait should not be implemented by user types. This trait may change at
1500
- /// any time internally. The types which implement this trait, however, are
1501
- /// stable over time.
1502
- ///
1503
- /// For more information see [`Func::wrap`]
1504
- pub unsafe trait WasmRet {
1505
- // Same as `WasmTy::Abi`.
1506
- #[doc(hidden)]
1507
- type Abi: Copy;
1508
- #[doc(hidden)]
1509
- type Retptr: Copy;
1510
-
1511
- // Same as `WasmTy::compatible_with_store`.
1512
- #[doc(hidden)]
1513
- fn compatible_with_store(&self, store: &StoreOpaque) -> bool;
1514
-
1515
- // Similar to `WasmTy::into_abi_for_arg` but used when host code is
1516
- // returning a value into Wasm, rather than host code passing an argument to
1517
- // a Wasm call. Unlike `into_abi_for_arg`, implementors of this method can
1518
- // raise traps, which means that callers must ensure that
1519
- // `invoke_wasm_and_catch_traps` is on the stack, and therefore this method
1520
- // is unsafe.
1521
- #[doc(hidden)]
1522
- unsafe fn into_abi_for_ret(
1523
- self,
1524
- store: &mut StoreOpaque,
1525
- ptr: Self::Retptr,
1526
- ) -> Result<Self::Abi>;
1527
-
1528
- #[doc(hidden)]
1529
- fn func_type(params: impl Iterator<Item = ValType>) -> FuncType;
1530
-
1531
- #[doc(hidden)]
1532
- unsafe fn wrap_trampoline(ptr: *mut ValRaw, f: impl FnOnce(Self::Retptr) -> Self::Abi);
1533
-
1534
- // Utilities used to convert an instance of this type to a `Result`
1535
- // explicitly, used when wrapping async functions which always bottom-out
1536
- // in a function that returns a trap because futures can be cancelled.
1537
- #[doc(hidden)]
1538
- type Fallible: WasmRet<Abi = Self::Abi, Retptr = Self::Retptr>;
1539
- #[doc(hidden)]
1540
- fn into_fallible(self) -> Self::Fallible;
1541
- #[doc(hidden)]
1542
- fn fallible_from_error(error: Error) -> Self::Fallible;
1543
- }
1544
-
1545
- unsafe impl<T> WasmRet for T
1546
- where
1547
- T: WasmTy,
1548
- {
1549
- type Abi = <T as WasmTy>::Abi;
1550
- type Retptr = ();
1551
- type Fallible = Result<T>;
1552
-
1553
- fn compatible_with_store(&self, store: &StoreOpaque) -> bool {
1554
- <Self as WasmTy>::compatible_with_store(self, store)
1555
- }
1556
-
1557
- unsafe fn into_abi_for_ret(self, store: &mut StoreOpaque, _retptr: ()) -> Result<Self::Abi> {
1558
- Ok(<Self as WasmTy>::into_abi(self, store))
1559
- }
1560
-
1561
- fn func_type(params: impl Iterator<Item = ValType>) -> FuncType {
1562
- FuncType::new(params, Some(<Self as WasmTy>::valtype()))
1563
- }
1564
-
1565
- unsafe fn wrap_trampoline(ptr: *mut ValRaw, f: impl FnOnce(Self::Retptr) -> Self::Abi) {
1566
- T::abi_into_raw(f(()), ptr);
1567
- }
1568
-
1569
- fn into_fallible(self) -> Result<T> {
1570
- Ok(self)
1571
- }
1572
-
1573
- fn fallible_from_error(error: Error) -> Result<T> {
1574
- Err(error)
1575
- }
1576
- }
1577
-
1578
- unsafe impl<T> WasmRet for Result<T>
1579
- where
1580
- T: WasmRet,
1581
- {
1582
- type Abi = <T as WasmRet>::Abi;
1583
- type Retptr = <T as WasmRet>::Retptr;
1584
- type Fallible = Self;
1585
-
1586
- fn compatible_with_store(&self, store: &StoreOpaque) -> bool {
1587
- match self {
1588
- Ok(x) => <T as WasmRet>::compatible_with_store(x, store),
1589
- Err(_) => true,
1590
- }
1591
- }
1592
-
1593
- unsafe fn into_abi_for_ret(
1594
- self,
1595
- store: &mut StoreOpaque,
1596
- retptr: Self::Retptr,
1597
- ) -> Result<Self::Abi> {
1598
- self.and_then(|val| val.into_abi_for_ret(store, retptr))
1599
- }
1600
-
1601
- fn func_type(params: impl Iterator<Item = ValType>) -> FuncType {
1602
- T::func_type(params)
1603
- }
1604
-
1605
- unsafe fn wrap_trampoline(ptr: *mut ValRaw, f: impl FnOnce(Self::Retptr) -> Self::Abi) {
1606
- T::wrap_trampoline(ptr, f)
1607
- }
1608
-
1609
- fn into_fallible(self) -> Result<T> {
1610
- self
1611
- }
1612
-
1613
- fn fallible_from_error(error: Error) -> Result<T> {
1614
- Err(error)
1615
- }
1616
- }
1617
-
1618
- macro_rules! impl_wasm_host_results {
1619
- ($n:tt $($t:ident)*) => (
1620
- #[allow(non_snake_case)]
1621
- unsafe impl<$($t),*> WasmRet for ($($t,)*)
1622
- where
1623
- $($t: WasmTy,)*
1624
- ($($t::Abi,)*): HostAbi,
1625
- {
1626
- type Abi = <($($t::Abi,)*) as HostAbi>::Abi;
1627
- type Retptr = <($($t::Abi,)*) as HostAbi>::Retptr;
1628
- type Fallible = Result<Self>;
1629
-
1630
- #[inline]
1631
- fn compatible_with_store(&self, _store: &StoreOpaque) -> bool {
1632
- let ($($t,)*) = self;
1633
- $( $t.compatible_with_store(_store) && )* true
1634
- }
1635
-
1636
- #[inline]
1637
- unsafe fn into_abi_for_ret(self, _store: &mut StoreOpaque, ptr: Self::Retptr) -> Result<Self::Abi> {
1638
- let ($($t,)*) = self;
1639
- let abi = ($($t.into_abi(_store),)*);
1640
- Ok(<($($t::Abi,)*) as HostAbi>::into_abi(abi, ptr))
1641
- }
1642
-
1643
- fn func_type(params: impl Iterator<Item = ValType>) -> FuncType {
1644
- FuncType::new(
1645
- params,
1646
- IntoIterator::into_iter([$($t::valtype(),)*]),
1647
- )
1648
- }
1649
-
1650
- #[allow(unused_assignments)]
1651
- unsafe fn wrap_trampoline(mut _ptr: *mut ValRaw, f: impl FnOnce(Self::Retptr) -> Self::Abi) {
1652
- let ($($t,)*) = <($($t::Abi,)*) as HostAbi>::call(f);
1653
- $(
1654
- $t::abi_into_raw($t, _ptr);
1655
- _ptr = _ptr.add(1);
1656
- )*
1657
- }
1658
-
1659
- #[inline]
1660
- fn into_fallible(self) -> Result<Self> {
1661
- Ok(self)
1662
- }
1663
-
1664
- #[inline]
1665
- fn fallible_from_error(error: Error) -> Result<Self> {
1666
- Err(error)
1667
- }
1668
- }
1669
- )
1670
- }
1671
-
1672
- for_each_function_signature!(impl_wasm_host_results);
1673
-
1674
- // Internal trait representing how to communicate tuples of return values across
1675
- // an ABI boundary. This internally corresponds to the "wasmtime" ABI inside of
1676
- // cranelift itself. Notably the first element of each tuple is returned via the
1677
- // typical system ABI (e.g. systemv or fastcall depending on platform) and all
1678
- // other values are returned packed via the stack.
1679
- //
1680
- // This trait helps to encapsulate all the details of that.
1681
- #[doc(hidden)]
1682
- pub trait HostAbi {
1683
- // A value returned from native functions which return `Self`
1684
- type Abi: Copy;
1685
- // A return pointer, added to the end of the argument list, for native
1686
- // functions that return `Self`. Note that a 0-sized type here should get
1687
- // elided at the ABI level.
1688
- type Retptr: Copy;
1689
-
1690
- // Converts a value of `self` into its components. Stores necessary values
1691
- // into `ptr` and then returns whatever needs to be returned from the
1692
- // function.
1693
- unsafe fn into_abi(self, ptr: Self::Retptr) -> Self::Abi;
1694
-
1695
- // Calls `f` with a suitably sized return area and requires `f` to return
1696
- // the raw abi value of the first element of our tuple. This will then
1697
- // unpack the `Retptr` and assemble it with `Self::Abi` to return an
1698
- // instance of the whole tuple.
1699
- unsafe fn call(f: impl FnOnce(Self::Retptr) -> Self::Abi) -> Self;
1700
- }
1701
-
1702
- macro_rules! impl_host_abi {
1703
- // Base case, everything is `()`
1704
- (0) => {
1705
- impl HostAbi for () {
1706
- type Abi = ();
1707
- type Retptr = ();
1708
-
1709
- #[inline]
1710
- unsafe fn into_abi(self, _ptr: Self::Retptr) -> Self::Abi {}
1711
-
1712
- #[inline]
1713
- unsafe fn call(f: impl FnOnce(Self::Retptr) -> Self::Abi) -> Self {
1714
- f(())
1715
- }
1716
- }
1717
- };
1718
-
1719
- // In the 1-case the retptr is not present, so it's a 0-sized value.
1720
- (1 $a:ident) => {
1721
- impl<$a: Copy> HostAbi for ($a,) {
1722
- type Abi = $a;
1723
- type Retptr = ();
1724
-
1725
- unsafe fn into_abi(self, _ptr: Self::Retptr) -> Self::Abi {
1726
- self.0
1727
- }
1728
-
1729
- unsafe fn call(f: impl FnOnce(Self::Retptr) -> Self::Abi) -> Self {
1730
- (f(()),)
1731
- }
1732
- }
1733
- };
1734
-
1735
- // This is where the more interesting case happens. The first element of the
1736
- // tuple is returned via `Abi` and all other elements are returned via
1737
- // `Retptr`. We create a `TupleRetNN` structure to represent all of the
1738
- // return values here.
1739
- //
1740
- // Also note that this isn't implemented for the old backend right now due
1741
- // to the original author not really being sure how to implement this in the
1742
- // old backend.
1743
- ($n:tt $t:ident $($u:ident)*) => {paste::paste!{
1744
- #[doc(hidden)]
1745
- #[allow(non_snake_case)]
1746
- #[repr(C)]
1747
- pub struct [<TupleRet $n>]<$($u,)*> {
1748
- $($u: $u,)*
1749
- }
1750
-
1751
- #[allow(non_snake_case, unused_assignments)]
1752
- impl<$t: Copy, $($u: Copy,)*> HostAbi for ($t, $($u,)*) {
1753
- type Abi = $t;
1754
- type Retptr = *mut [<TupleRet $n>]<$($u,)*>;
1755
-
1756
- unsafe fn into_abi(self, ptr: Self::Retptr) -> Self::Abi {
1757
- let ($t, $($u,)*) = self;
1758
- // Store the tail of our tuple into the return pointer...
1759
- $((*ptr).$u = $u;)*
1760
- // ... and return the head raw.
1761
- $t
1762
- }
1763
-
1764
- unsafe fn call(f: impl FnOnce(Self::Retptr) -> Self::Abi) -> Self {
1765
- // Create space to store all the return values and then invoke
1766
- // the function.
1767
- let mut space = std::mem::MaybeUninit::uninit();
1768
- let t = f(space.as_mut_ptr());
1769
- let space = space.assume_init();
1770
-
1771
- // Use the return value as the head of the tuple and unpack our
1772
- // return area to get the rest of the tuple.
1773
- (t, $(space.$u,)*)
1774
- }
1775
- }
1776
- }};
1777
- }
1778
-
1779
- for_each_function_signature!(impl_host_abi);
1780
-
1781
- /// Internal trait implemented for all arguments that can be passed to
1782
- /// [`Func::wrap`] and [`Linker::func_wrap`](crate::Linker::func_wrap).
1783
- ///
1784
- /// This trait should not be implemented by external users, it's only intended
1785
- /// as an implementation detail of this crate.
1786
- pub trait IntoFunc<T, Params, Results>: Send + Sync + 'static {
1787
- /// Convert this function into a `VM{Array,Native}CallHostFuncContext` and
1788
- /// internal `VMFuncRef`.
1789
- #[doc(hidden)]
1790
- fn into_func(self, engine: &Engine) -> HostContext;
1791
- }
1792
-
1793
- /// A structure representing the caller's context when creating a function
1794
- /// via [`Func::wrap`].
1795
- ///
1796
- /// This structure can be taken as the first parameter of a closure passed to
1797
- /// [`Func::wrap`] or other constructors, and serves two purposes:
1798
- ///
1799
- /// * First consumers can use [`Caller<'_, T>`](crate::Caller) to get access to
1800
- /// [`StoreContextMut<'_, T>`](crate::StoreContextMut) and/or get access to
1801
- /// `T` itself. This means that the [`Caller`] type can serve as a proxy to
1802
- /// the original [`Store`](crate::Store) itself and is used to satisfy
1803
- /// [`AsContext`] and [`AsContextMut`] bounds.
1804
- ///
1805
- /// * Second a [`Caller`] can be used as the name implies, learning about the
1806
- /// caller's context, namely it's exported memory and exported functions. This
1807
- /// allows functions which take pointers as arguments to easily read the
1808
- /// memory the pointers point into, or if a function is expected to call
1809
- /// malloc in the wasm module to reserve space for the output you can do that.
1810
- ///
1811
- /// Host functions which want access to [`Store`](crate::Store)-level state are
1812
- /// recommended to use this type.
1813
- pub struct Caller<'a, T> {
1814
- pub(crate) store: StoreContextMut<'a, T>,
1815
- caller: &'a wasmtime_runtime::Instance,
1816
- }
1817
-
1818
- impl<T> Caller<'_, T> {
1819
- unsafe fn with<R>(caller: *mut VMContext, f: impl FnOnce(Caller<'_, T>) -> R) -> R {
1820
- assert!(!caller.is_null());
1821
- wasmtime_runtime::Instance::from_vmctx(caller, |instance| {
1822
- let store = StoreContextMut::from_raw(instance.store());
1823
- f(Caller {
1824
- store,
1825
- caller: &instance,
1826
- })
1827
- })
1828
- }
1829
-
1830
- fn sub_caller(&mut self) -> Caller<'_, T> {
1831
- Caller {
1832
- store: self.store.as_context_mut(),
1833
- caller: self.caller,
1834
- }
1835
- }
1836
-
1837
- /// Looks up an export from the caller's module by the `name` given.
1838
- ///
1839
- /// This is a low-level function that's typically used to implement passing
1840
- /// of pointers or indices between core Wasm instances, where the callee
1841
- /// needs to consult the caller's exports to perform memory management and
1842
- /// resolve the references.
1843
- ///
1844
- /// For comparison, in components, the component model handles translating
1845
- /// arguments from one component instance to another and managing memory, so
1846
- /// that callees don't need to be aware of their callers, which promotes
1847
- /// virtualizability of APIs.
1848
- ///
1849
- /// # Return
1850
- ///
1851
- /// If an export with the `name` provided was found, then it is returned as an
1852
- /// `Extern`. There are a number of situations, however, where the export may not
1853
- /// be available:
1854
- ///
1855
- /// * The caller instance may not have an export named `name`
1856
- /// * There may not be a caller available, for example if `Func` was called
1857
- /// directly from host code.
1858
- ///
1859
- /// It's recommended to take care when calling this API and gracefully
1860
- /// handling a `None` return value.
1861
- pub fn get_export(&mut self, name: &str) -> Option<Extern> {
1862
- // All instances created have a `host_state` with a pointer pointing
1863
- // back to themselves. If this caller doesn't have that `host_state`
1864
- // then it probably means it was a host-created object like `Func::new`
1865
- // which doesn't have any exports we want to return anyway.
1866
- self.caller
1867
- .host_state()
1868
- .downcast_ref::<Instance>()?
1869
- .get_export(&mut self.store, name)
1870
- }
1871
-
1872
- /// Access the underlying data owned by this `Store`.
1873
- ///
1874
- /// Same as [`Store::data`](crate::Store::data)
1875
- pub fn data(&self) -> &T {
1876
- self.store.data()
1877
- }
1878
-
1879
- /// Access the underlying data owned by this `Store`.
1880
- ///
1881
- /// Same as [`Store::data_mut`](crate::Store::data_mut)
1882
- pub fn data_mut(&mut self) -> &mut T {
1883
- self.store.data_mut()
1884
- }
1885
-
1886
- /// Returns the underlying [`Engine`] this store is connected to.
1887
- pub fn engine(&self) -> &Engine {
1888
- self.store.engine()
1889
- }
1890
-
1891
- /// Perform garbage collection of `ExternRef`s.
1892
- ///
1893
- /// Same as [`Store::gc`](crate::Store::gc).
1894
- pub fn gc(&mut self) {
1895
- self.store.gc()
1896
- }
1897
-
1898
- /// Returns the remaining fuel in the store.
1899
- ///
1900
- /// For more information see [`Store::get_fuel`](crate::Store::get_fuel)
1901
- pub fn get_fuel(&self) -> Result<u64> {
1902
- self.store.get_fuel()
1903
- }
1904
-
1905
- /// Set the amount of fuel in this store to be consumed when executing wasm code.
1906
- ///
1907
- /// For more information see [`Store::set_fuel`](crate::Store::set_fuel)
1908
- pub fn set_fuel(&mut self, fuel: u64) -> Result<()> {
1909
- self.store.set_fuel(fuel)
1910
- }
1911
-
1912
- /// Configures this `Store` to yield while executing futures every N units of fuel.
1913
- ///
1914
- /// For more information see
1915
- /// [`Store::fuel_async_yield_interval`](crate::Store::fuel_async_yield_interval)
1916
- pub fn fuel_async_yield_interval(&mut self, interval: Option<u64>) -> Result<()> {
1917
- self.store.fuel_async_yield_interval(interval)
1918
- }
1919
- }
1920
-
1921
- impl<T> AsContext for Caller<'_, T> {
1922
- type Data = T;
1923
- fn as_context(&self) -> StoreContext<'_, T> {
1924
- self.store.as_context()
1925
- }
1926
- }
1927
-
1928
- impl<T> AsContextMut for Caller<'_, T> {
1929
- fn as_context_mut(&mut self) -> StoreContextMut<'_, T> {
1930
- self.store.as_context_mut()
1931
- }
1932
- }
1933
-
1934
- macro_rules! impl_into_func {
1935
- ($num:tt $($args:ident)*) => {
1936
- // Implement for functions without a leading `&Caller` parameter,
1937
- // delegating to the implementation below which does have the leading
1938
- // `Caller` parameter.
1939
- #[allow(non_snake_case)]
1940
- impl<T, F, $($args,)* R> IntoFunc<T, ($($args,)*), R> for F
1941
- where
1942
- F: Fn($($args),*) -> R + Send + Sync + 'static,
1943
- $($args: WasmTy,)*
1944
- R: WasmRet,
1945
- {
1946
- fn into_func(self, engine: &Engine) -> HostContext {
1947
- let f = move |_: Caller<'_, T>, $($args:$args),*| {
1948
- self($($args),*)
1949
- };
1950
-
1951
- f.into_func(engine)
1952
- }
1953
- }
1954
-
1955
- #[allow(non_snake_case)]
1956
- impl<T, F, $($args,)* R> IntoFunc<T, (Caller<'_, T>, $($args,)*), R> for F
1957
- where
1958
- F: Fn(Caller<'_, T>, $($args),*) -> R + Send + Sync + 'static,
1959
- $($args: WasmTy,)*
1960
- R: WasmRet,
1961
- {
1962
- fn into_func(self, engine: &Engine) -> HostContext {
1963
- /// This shim is a regular, non-closure function we can stuff
1964
- /// inside `VMFuncRef::native_call`.
1965
- ///
1966
- /// It reads the actual callee closure out of
1967
- /// `VMNativeCallHostFuncContext::host_state`, forwards
1968
- /// arguments to that function, and finally forwards the results
1969
- /// back out to the caller. It also handles traps and panics
1970
- /// along the way.
1971
- unsafe extern "C" fn native_call_shim<T, F, $($args,)* R>(
1972
- vmctx: *mut VMOpaqueContext,
1973
- caller_vmctx: *mut VMOpaqueContext,
1974
- $( $args: $args::Abi, )*
1975
- retptr: R::Retptr,
1976
- ) -> R::Abi
1977
- where
1978
- F: Fn(Caller<'_, T>, $( $args ),*) -> R + 'static,
1979
- $( $args: WasmTy, )*
1980
- R: WasmRet,
1981
- {
1982
- enum CallResult<U> {
1983
- Ok(U),
1984
- Trap(anyhow::Error),
1985
- Panic(Box<dyn std::any::Any + Send>),
1986
- }
1987
-
1988
- // Note that this `result` is intentionally scoped into a
1989
- // separate block. Handling traps and panics will involve
1990
- // longjmp-ing from this function which means we won't run
1991
- // destructors. As a result anything requiring a destructor
1992
- // should be part of this block, and the long-jmp-ing
1993
- // happens after the block in handling `CallResult`.
1994
- let caller_vmctx = VMContext::from_opaque(caller_vmctx);
1995
- let result = Caller::with(caller_vmctx, |mut caller| {
1996
- let vmctx = VMNativeCallHostFuncContext::from_opaque(vmctx);
1997
- let state = (*vmctx).host_state();
1998
-
1999
- // Double-check ourselves in debug mode, but we control
2000
- // the `Any` here so an unsafe downcast should also
2001
- // work.
2002
- debug_assert!(state.is::<F>());
2003
- let func = &*(state as *const _ as *const F);
2004
-
2005
- let ret = {
2006
- panic::catch_unwind(AssertUnwindSafe(|| {
2007
- if let Err(trap) = caller.store.0.call_hook(CallHook::CallingHost) {
2008
- return R::fallible_from_error(trap);
2009
- }
2010
- $(let $args = $args::from_abi($args, caller.store.0);)*
2011
- let r = func(
2012
- caller.sub_caller(),
2013
- $( $args, )*
2014
- );
2015
- if let Err(trap) = caller.store.0.call_hook(CallHook::ReturningFromHost) {
2016
- return R::fallible_from_error(trap);
2017
- }
2018
- r.into_fallible()
2019
- }))
2020
- };
2021
-
2022
- // Note that we need to be careful when dealing with traps
2023
- // here. Traps are implemented with longjmp/setjmp meaning
2024
- // that it's not unwinding and consequently no Rust
2025
- // destructors are run. We need to be careful to ensure that
2026
- // nothing on the stack needs a destructor when we exit
2027
- // abnormally from this `match`, e.g. on `Err`, on
2028
- // cross-store-issues, or if `Ok(Err)` is raised.
2029
- match ret {
2030
- Err(panic) => CallResult::Panic(panic),
2031
- Ok(ret) => {
2032
- // Because the wrapped function is not `unsafe`, we
2033
- // can't assume it returned a value that is
2034
- // compatible with this store.
2035
- if !ret.compatible_with_store(caller.store.0) {
2036
- CallResult::Trap(anyhow::anyhow!("host function attempted to return cross-`Store` value to Wasm"))
2037
- } else {
2038
- match ret.into_abi_for_ret(caller.store.0, retptr) {
2039
- Ok(val) => CallResult::Ok(val),
2040
- Err(trap) => CallResult::Trap(trap.into()),
2041
- }
2042
- }
2043
-
2044
- }
2045
- }
2046
- });
2047
-
2048
- match result {
2049
- CallResult::Ok(val) => val,
2050
- CallResult::Trap(err) => crate::trap::raise(err),
2051
- CallResult::Panic(panic) => wasmtime_runtime::resume_panic(panic),
2052
- }
2053
- }
2054
-
2055
- /// This trampoline allows host code to indirectly call the
2056
- /// wrapped function (e.g. via `Func::call` on a `funcref` that
2057
- /// happens to reference our wrapped function).
2058
- ///
2059
- /// It reads the arguments out of the incoming `args` array,
2060
- /// calls the given function pointer, and then stores the result
2061
- /// back into the `args` array.
2062
- unsafe extern "C" fn array_call_trampoline<T, F, $($args,)* R>(
2063
- callee_vmctx: *mut VMOpaqueContext,
2064
- caller_vmctx: *mut VMOpaqueContext,
2065
- args: *mut ValRaw,
2066
- _args_len: usize
2067
- )
2068
- where
2069
- F: Fn(Caller<'_, T>, $( $args ),*) -> R + 'static,
2070
- $($args: WasmTy,)*
2071
- R: WasmRet,
2072
- {
2073
- let mut _n = 0;
2074
- $(
2075
- debug_assert!(_n < _args_len);
2076
- let $args = $args::abi_from_raw(args.add(_n));
2077
- _n += 1;
2078
- )*
2079
-
2080
- R::wrap_trampoline(args, |retptr| {
2081
- native_call_shim::<T, F, $( $args, )* R>(callee_vmctx, caller_vmctx, $( $args, )* retptr)
2082
- });
2083
- }
2084
-
2085
- let ty = R::func_type(
2086
- None::<ValType>.into_iter()
2087
- $(.chain(Some($args::valtype())))*
2088
- );
2089
-
2090
- let shared_signature_id = engine.signatures().register(ty.as_wasm_func_type());
2091
-
2092
- let array_call = array_call_trampoline::<T, F, $($args,)* R>;
2093
- let native_call = NonNull::new(native_call_shim::<T, F, $($args,)* R> as *mut _).unwrap();
2094
-
2095
- let ctx = unsafe {
2096
- VMNativeCallHostFuncContext::new(
2097
- VMFuncRef {
2098
- native_call,
2099
- array_call,
2100
- wasm_call: None,
2101
- type_index: shared_signature_id,
2102
- vmctx: ptr::null_mut(),
2103
- },
2104
- Box::new(self),
2105
- )
2106
- };
2107
-
2108
- ctx.into()
2109
- }
2110
- }
2111
- }
2112
- }
2113
-
2114
- for_each_function_signature!(impl_into_func);
2115
-
2116
- #[doc(hidden)]
2117
- pub enum HostContext {
2118
- Native(StoreBox<VMNativeCallHostFuncContext>),
2119
- Array(StoreBox<VMArrayCallHostFuncContext>),
2120
- }
2121
-
2122
- impl From<StoreBox<VMNativeCallHostFuncContext>> for HostContext {
2123
- fn from(ctx: StoreBox<VMNativeCallHostFuncContext>) -> Self {
2124
- HostContext::Native(ctx)
2125
- }
2126
- }
2127
-
2128
- impl From<StoreBox<VMArrayCallHostFuncContext>> for HostContext {
2129
- fn from(ctx: StoreBox<VMArrayCallHostFuncContext>) -> Self {
2130
- HostContext::Array(ctx)
2131
- }
2132
- }
2133
-
2134
- /// Representation of a host-defined function.
2135
- ///
2136
- /// This is used for `Func::new` but also for `Linker`-defined functions. For
2137
- /// `Func::new` this is stored within a `Store`, and for `Linker`-defined
2138
- /// functions they wrap this up in `Arc` to enable shared ownership of this
2139
- /// across many stores.
2140
- ///
2141
- /// Technically this structure needs a `<T>` type parameter to connect to the
2142
- /// `Store<T>` itself, but that's an unsafe contract of using this for now
2143
- /// rather than part of the struct type (to avoid `Func<T>` in the API).
2144
- pub(crate) struct HostFunc {
2145
- ctx: HostContext,
2146
-
2147
- // Stored to unregister this function's signature with the engine when this
2148
- // is dropped.
2149
- engine: Engine,
2150
- }
2151
-
2152
- impl HostFunc {
2153
- /// Analog of [`Func::new`]
2154
- #[cfg(any(feature = "cranelift", feature = "winch"))]
2155
- pub fn new<T>(
2156
- engine: &Engine,
2157
- ty: FuncType,
2158
- func: impl Fn(Caller<'_, T>, &[Val], &mut [Val]) -> Result<()> + Send + Sync + 'static,
2159
- ) -> Self {
2160
- let ty_clone = ty.clone();
2161
- unsafe {
2162
- HostFunc::new_unchecked(engine, ty, move |caller, values| {
2163
- Func::invoke(caller, &ty_clone, values, &func)
2164
- })
2165
- }
2166
- }
2167
-
2168
- /// Analog of [`Func::new_unchecked`]
2169
- #[cfg(any(feature = "cranelift", feature = "winch"))]
2170
- pub unsafe fn new_unchecked<T>(
2171
- engine: &Engine,
2172
- ty: FuncType,
2173
- func: impl Fn(Caller<'_, T>, &mut [ValRaw]) -> Result<()> + Send + Sync + 'static,
2174
- ) -> Self {
2175
- let func = move |caller_vmctx, values: &mut [ValRaw]| {
2176
- Caller::<T>::with(caller_vmctx, |mut caller| {
2177
- caller.store.0.call_hook(CallHook::CallingHost)?;
2178
- let result = func(caller.sub_caller(), values)?;
2179
- caller.store.0.call_hook(CallHook::ReturningFromHost)?;
2180
- Ok(result)
2181
- })
2182
- };
2183
- let ctx = crate::trampoline::create_array_call_function(&ty, func, engine)
2184
- .expect("failed to create function");
2185
- HostFunc::_new(engine, ctx.into())
2186
- }
2187
-
2188
- /// Analog of [`Func::wrap`]
2189
- pub fn wrap<T, Params, Results>(
2190
- engine: &Engine,
2191
- func: impl IntoFunc<T, Params, Results>,
2192
- ) -> Self {
2193
- let ctx = func.into_func(engine);
2194
- HostFunc::_new(engine, ctx)
2195
- }
2196
-
2197
- /// Requires that this function's signature is already registered within
2198
- /// `Engine`. This happens automatically during the above two constructors.
2199
- fn _new(engine: &Engine, ctx: HostContext) -> Self {
2200
- HostFunc {
2201
- ctx,
2202
- engine: engine.clone(),
2203
- }
2204
- }
2205
-
2206
- /// Inserts this `HostFunc` into a `Store`, returning the `Func` pointing to
2207
- /// it.
2208
- ///
2209
- /// # Unsafety
2210
- ///
2211
- /// Can only be inserted into stores with a matching `T` relative to when
2212
- /// this `HostFunc` was first created.
2213
- pub unsafe fn to_func(self: &Arc<Self>, store: &mut StoreOpaque) -> Func {
2214
- self.validate_store(store);
2215
- let me = self.clone();
2216
- Func::from_func_kind(FuncKind::SharedHost(me), store)
2217
- }
2218
-
2219
- /// Inserts this `HostFunc` into a `Store`, returning the `Func` pointing to
2220
- /// it.
2221
- ///
2222
- /// This function is similar to, but not equivalent, to `HostFunc::to_func`.
2223
- /// Notably this function requires that the `Arc<Self>` pointer is otherwise
2224
- /// rooted within the `StoreOpaque` via another means. When in doubt use
2225
- /// `to_func` above as it's safer.
2226
- ///
2227
- /// # Unsafety
2228
- ///
2229
- /// Can only be inserted into stores with a matching `T` relative to when
2230
- /// this `HostFunc` was first created.
2231
- ///
2232
- /// Additionally the `&Arc<Self>` is not cloned in this function. Instead a
2233
- /// raw pointer to `Self` is stored within the `Store` for this function.
2234
- /// The caller must arrange for the `Arc<Self>` to be "rooted" in the store
2235
- /// provided via another means, probably by pushing to
2236
- /// `StoreOpaque::rooted_host_funcs`.
2237
- ///
2238
- /// Similarly, the caller must arrange for `rooted_func_ref` to be rooted in
2239
- /// the same store.
2240
- pub unsafe fn to_func_store_rooted(
2241
- self: &Arc<Self>,
2242
- store: &mut StoreOpaque,
2243
- rooted_func_ref: Option<NonNull<VMFuncRef>>,
2244
- ) -> Func {
2245
- self.validate_store(store);
2246
-
2247
- if rooted_func_ref.is_some() {
2248
- debug_assert!(self.func_ref().wasm_call.is_none());
2249
- debug_assert!(matches!(self.ctx, HostContext::Native(_)));
2250
- }
2251
-
2252
- Func::from_func_kind(
2253
- FuncKind::RootedHost(RootedHostFunc::new(self, rooted_func_ref)),
2254
- store,
2255
- )
2256
- }
2257
-
2258
- /// Same as [`HostFunc::to_func`], different ownership.
2259
- unsafe fn into_func(self, store: &mut StoreOpaque) -> Func {
2260
- self.validate_store(store);
2261
- Func::from_func_kind(FuncKind::Host(Box::new(self)), store)
2262
- }
2263
-
2264
- fn validate_store(&self, store: &mut StoreOpaque) {
2265
- // This assert is required to ensure that we can indeed safely insert
2266
- // `self` into the `store` provided, otherwise the type information we
2267
- // have listed won't be correct. This is possible to hit with the public
2268
- // API of Wasmtime, and should be documented in relevant functions.
2269
- assert!(
2270
- Engine::same(&self.engine, store.engine()),
2271
- "cannot use a store with a different engine than a linker was created with",
2272
- );
2273
- }
2274
-
2275
- pub(crate) fn sig_index(&self) -> VMSharedSignatureIndex {
2276
- self.func_ref().type_index
2277
- }
2278
-
2279
- pub(crate) fn func_ref(&self) -> &VMFuncRef {
2280
- match &self.ctx {
2281
- HostContext::Native(ctx) => unsafe { (*ctx.get()).func_ref() },
2282
- HostContext::Array(ctx) => unsafe { (*ctx.get()).func_ref() },
2283
- }
2284
- }
2285
-
2286
- pub(crate) fn host_ctx(&self) -> &HostContext {
2287
- &self.ctx
2288
- }
2289
-
2290
- fn export_func(&self) -> ExportFunction {
2291
- ExportFunction {
2292
- func_ref: NonNull::from(self.func_ref()),
2293
- }
2294
- }
2295
- }
2296
-
2297
- impl Drop for HostFunc {
2298
- fn drop(&mut self) {
2299
- unsafe {
2300
- self.engine.signatures().unregister(self.sig_index());
2301
- }
2302
- }
2303
- }
2304
-
2305
- impl FuncData {
2306
- #[inline]
2307
- fn export(&self) -> ExportFunction {
2308
- self.kind.export()
2309
- }
2310
-
2311
- pub(crate) fn sig_index(&self) -> VMSharedSignatureIndex {
2312
- unsafe { self.export().func_ref.as_ref().type_index }
2313
- }
2314
- }
2315
-
2316
- impl FuncKind {
2317
- #[inline]
2318
- fn export(&self) -> ExportFunction {
2319
- match self {
2320
- FuncKind::StoreOwned { export, .. } => *export,
2321
- FuncKind::SharedHost(host) => host.export_func(),
2322
- FuncKind::RootedHost(rooted) => ExportFunction {
2323
- func_ref: NonNull::from(rooted.func_ref()),
2324
- },
2325
- FuncKind::Host(host) => host.export_func(),
2326
- }
2327
- }
2328
- }
2329
-
2330
- use self::rooted::*;
2331
-
2332
- /// An inner module is used here to force unsafe construction of
2333
- /// `RootedHostFunc` instead of accidentally safely allowing access to its
2334
- /// constructor.
2335
- mod rooted {
2336
- use wasmtime_runtime::{SendSyncPtr, VMFuncRef};
2337
-
2338
- use super::HostFunc;
2339
- use std::ptr::NonNull;
2340
- use std::sync::Arc;
2341
-
2342
- /// A variant of a pointer-to-a-host-function used in `FuncKind::RootedHost`
2343
- /// above.
2344
- ///
2345
- /// For more documentation see `FuncKind::RootedHost`, `InstancePre`, and
2346
- /// `HostFunc::to_func_store_rooted`.
2347
- pub(crate) struct RootedHostFunc {
2348
- func: SendSyncPtr<HostFunc>,
2349
- func_ref: Option<SendSyncPtr<VMFuncRef>>,
2350
- }
2351
-
2352
- impl RootedHostFunc {
2353
- /// Note that this is `unsafe` because this wrapper type allows safe
2354
- /// access to the pointer given at any time, including outside the
2355
- /// window of validity of `func`, so callers must not use the return
2356
- /// value past the lifetime of the provided `func`.
2357
- ///
2358
- /// Similarly, callers must ensure that the given `func_ref` is valid
2359
- /// for the liftime of the return value.
2360
- pub(crate) unsafe fn new(
2361
- func: &Arc<HostFunc>,
2362
- func_ref: Option<NonNull<VMFuncRef>>,
2363
- ) -> RootedHostFunc {
2364
- RootedHostFunc {
2365
- func: NonNull::from(&**func).into(),
2366
- func_ref: func_ref.map(|p| p.into()),
2367
- }
2368
- }
2369
-
2370
- pub(crate) fn func(&self) -> &HostFunc {
2371
- // Safety invariants are upheld by the `RootedHostFunc::new` caller.
2372
- unsafe { self.func.as_ref() }
2373
- }
2374
-
2375
- pub(crate) fn func_ref(&self) -> &VMFuncRef {
2376
- if let Some(f) = self.func_ref {
2377
- // Safety invariants are upheld by the `RootedHostFunc::new` caller.
2378
- unsafe { f.as_ref() }
2379
- } else {
2380
- self.func().func_ref()
2381
- }
2382
- }
2383
- }
2384
- }
2385
-
2386
- #[cfg(test)]
2387
- mod tests {
2388
- use super::*;
2389
- use crate::{Instance, Module, Store};
2390
-
2391
- #[test]
2392
- fn hash_key_is_stable_across_duplicate_store_data_entries() -> Result<()> {
2393
- let mut store = Store::<()>::default();
2394
- let module = Module::new(
2395
- store.engine(),
2396
- r#"
2397
- (module
2398
- (func (export "f")
2399
- nop
2400
- )
2401
- )
2402
- "#,
2403
- )?;
2404
- let instance = Instance::new(&mut store, &module, &[])?;
2405
-
2406
- // Each time we `get_func`, we call `Func::from_wasmtime` which adds a
2407
- // new entry to `StoreData`, so `f1` and `f2` will have different
2408
- // indices into `StoreData`.
2409
- let f1 = instance.get_func(&mut store, "f").unwrap();
2410
- let f2 = instance.get_func(&mut store, "f").unwrap();
2411
-
2412
- // But their hash keys are the same.
2413
- assert!(
2414
- f1.hash_key(&mut store.as_context_mut().0)
2415
- == f2.hash_key(&mut store.as_context_mut().0)
2416
- );
2417
-
2418
- // But the hash keys are different from different funcs.
2419
- let instance2 = Instance::new(&mut store, &module, &[])?;
2420
- let f3 = instance2.get_func(&mut store, "f").unwrap();
2421
- assert!(
2422
- f1.hash_key(&mut store.as_context_mut().0)
2423
- != f3.hash_key(&mut store.as_context_mut().0)
2424
- );
2425
-
2426
- Ok(())
2427
- }
2428
- }