wasmtime 20.0.2 → 21.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2089) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +129 -124
  3. data/ext/Cargo.toml +8 -6
  4. data/ext/cargo-vendor/cobs-0.2.3/.cargo-checksum.json +1 -0
  5. data/ext/cargo-vendor/cobs-0.2.3/Cargo.toml +39 -0
  6. data/ext/cargo-vendor/cobs-0.2.3/LICENSE-APACHE +202 -0
  7. data/ext/cargo-vendor/cobs-0.2.3/LICENSE-MIT +19 -0
  8. data/ext/cargo-vendor/cobs-0.2.3/README.md +23 -0
  9. data/ext/cargo-vendor/cobs-0.2.3/src/dec.rs +360 -0
  10. data/ext/cargo-vendor/cobs-0.2.3/src/enc.rs +216 -0
  11. data/ext/cargo-vendor/cobs-0.2.3/src/lib.rs +14 -0
  12. data/ext/cargo-vendor/cobs-0.2.3/tests/test.rs +265 -0
  13. data/ext/cargo-vendor/cranelift-bforest-0.108.1/.cargo-checksum.json +1 -0
  14. data/ext/cargo-vendor/cranelift-bforest-0.108.1/Cargo.toml +40 -0
  15. data/ext/cargo-vendor/cranelift-codegen-0.108.1/.cargo-checksum.json +1 -0
  16. data/ext/cargo-vendor/cranelift-codegen-0.108.1/Cargo.toml +189 -0
  17. data/ext/cargo-vendor/cranelift-codegen-0.108.1/build.rs +266 -0
  18. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/alias_analysis.rs +403 -0
  19. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/context.rs +395 -0
  20. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/ctxhash.rs +167 -0
  21. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/egraph/elaborate.rs +835 -0
  22. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/egraph.rs +839 -0
  23. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/incremental_cache.rs +256 -0
  24. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/ir/instructions.rs +1020 -0
  25. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/abi.rs +1580 -0
  26. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/args.rs +721 -0
  27. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/emit.rs +3846 -0
  28. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/emit_tests.rs +7902 -0
  29. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/imms.rs +1213 -0
  30. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/mod.rs +3094 -0
  31. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/regs.rs +288 -0
  32. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst.isle +4225 -0
  33. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/lower/isle.rs +810 -0
  34. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/pcc.rs +568 -0
  35. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/mod.rs +449 -0
  36. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/abi.rs +1051 -0
  37. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/args.rs +1938 -0
  38. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/emit.rs +2681 -0
  39. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/emit_tests.rs +2197 -0
  40. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/mod.rs +1975 -0
  41. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/regs.rs +168 -0
  42. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/vector.rs +1144 -0
  43. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst.isle +2969 -0
  44. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/lower/isle.rs +625 -0
  45. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/lower.isle +2883 -0
  46. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/abi.rs +1037 -0
  47. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/args.rs +314 -0
  48. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/emit.rs +3646 -0
  49. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/imms.rs +202 -0
  50. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/mod.rs +3421 -0
  51. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/regs.rs +180 -0
  52. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/abi.rs +1410 -0
  53. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/args.rs +2256 -0
  54. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/emit.rs +4311 -0
  55. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/emit_tests.rs +5171 -0
  56. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/mod.rs +2838 -0
  57. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/regs.rs +276 -0
  58. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst.isle +5294 -0
  59. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/lower/isle.rs +1064 -0
  60. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/lower.isle +4808 -0
  61. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/lower.rs +337 -0
  62. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/pcc.rs +1014 -0
  63. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/lib.rs +106 -0
  64. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/abi.rs +2506 -0
  65. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/blockorder.rs +465 -0
  66. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/isle.rs +903 -0
  67. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/lower.rs +1432 -0
  68. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/mod.rs +555 -0
  69. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/reg.rs +522 -0
  70. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/valueregs.rs +138 -0
  71. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/vcode.rs +1741 -0
  72. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/nan_canonicalization.rs +130 -0
  73. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/opts/arithmetic.isle +240 -0
  74. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/opts/icmp.isle +215 -0
  75. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/ranges.rs +131 -0
  76. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/remove_constant_phis.rs +419 -0
  77. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/scoped_hash_map.rs +310 -0
  78. data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/settings.rs +590 -0
  79. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/.cargo-checksum.json +1 -0
  80. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/Cargo.toml +35 -0
  81. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/gen_inst.rs +1278 -0
  82. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/gen_isle.rs +519 -0
  83. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/gen_settings.rs +508 -0
  84. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/gen_types.rs +75 -0
  85. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/isa/riscv64.rs +168 -0
  86. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/isa/x86.rs +414 -0
  87. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/isle.rs +126 -0
  88. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/lib.rs +98 -0
  89. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/shared/settings.rs +348 -0
  90. data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/srcgen.rs +464 -0
  91. data/ext/cargo-vendor/cranelift-codegen-shared-0.108.1/.cargo-checksum.json +1 -0
  92. data/ext/cargo-vendor/cranelift-codegen-shared-0.108.1/Cargo.toml +22 -0
  93. data/ext/cargo-vendor/cranelift-control-0.108.1/.cargo-checksum.json +1 -0
  94. data/ext/cargo-vendor/cranelift-control-0.108.1/Cargo.toml +30 -0
  95. data/ext/cargo-vendor/cranelift-entity-0.108.1/.cargo-checksum.json +1 -0
  96. data/ext/cargo-vendor/cranelift-entity-0.108.1/Cargo.toml +52 -0
  97. data/ext/cargo-vendor/cranelift-entity-0.108.1/src/lib.rs +381 -0
  98. data/ext/cargo-vendor/cranelift-frontend-0.108.1/.cargo-checksum.json +1 -0
  99. data/ext/cargo-vendor/cranelift-frontend-0.108.1/Cargo.toml +67 -0
  100. data/ext/cargo-vendor/cranelift-frontend-0.108.1/src/switch.rs +696 -0
  101. data/ext/cargo-vendor/cranelift-isle-0.108.1/.cargo-checksum.json +1 -0
  102. data/ext/cargo-vendor/cranelift-isle-0.108.1/Cargo.toml +46 -0
  103. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/codegen.rs +886 -0
  104. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/disjointsets.rs +169 -0
  105. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/lib.rs +33 -0
  106. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/sema.rs +2492 -0
  107. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/serialize.rs +846 -0
  108. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/stablemapset.rs +79 -0
  109. data/ext/cargo-vendor/cranelift-isle-0.108.1/src/trie_again.rs +684 -0
  110. data/ext/cargo-vendor/cranelift-native-0.108.1/.cargo-checksum.json +1 -0
  111. data/ext/cargo-vendor/cranelift-native-0.108.1/Cargo.toml +43 -0
  112. data/ext/cargo-vendor/cranelift-wasm-0.108.1/.cargo-checksum.json +1 -0
  113. data/ext/cargo-vendor/cranelift-wasm-0.108.1/Cargo.toml +109 -0
  114. data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/code_translator.rs +3687 -0
  115. data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/environ/dummy.rs +906 -0
  116. data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/environ/spec.rs +945 -0
  117. data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/sections_translator.rs +389 -0
  118. data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.22/.cargo-checksum.json +1 -0
  119. data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.22/Cargo.toml +48 -0
  120. data/ext/cargo-vendor/embedded-io-0.4.0/.cargo-checksum.json +1 -0
  121. data/ext/cargo-vendor/embedded-io-0.4.0/CHANGELOG.md +28 -0
  122. data/ext/cargo-vendor/embedded-io-0.4.0/Cargo.toml +73 -0
  123. data/ext/cargo-vendor/embedded-io-0.4.0/LICENSE-APACHE +201 -0
  124. data/ext/cargo-vendor/embedded-io-0.4.0/LICENSE-MIT +25 -0
  125. data/ext/cargo-vendor/embedded-io-0.4.0/README.md +33 -0
  126. data/ext/cargo-vendor/embedded-io-0.4.0/ci.sh +21 -0
  127. data/ext/cargo-vendor/embedded-io-0.4.0/rust-toolchain.toml +3 -0
  128. data/ext/cargo-vendor/embedded-io-0.4.0/src/adapters/futures_io.rs +65 -0
  129. data/ext/cargo-vendor/embedded-io-0.4.0/src/adapters/mod.rs +40 -0
  130. data/ext/cargo-vendor/embedded-io-0.4.0/src/adapters/std_io.rs +107 -0
  131. data/ext/cargo-vendor/embedded-io-0.4.0/src/adapters/tokio.rs +108 -0
  132. data/ext/cargo-vendor/embedded-io-0.4.0/src/asynch.rs +230 -0
  133. data/ext/cargo-vendor/embedded-io-0.4.0/src/blocking.rs +309 -0
  134. data/ext/cargo-vendor/embedded-io-0.4.0/src/fmt.rs +228 -0
  135. data/ext/cargo-vendor/embedded-io-0.4.0/src/lib.rs +125 -0
  136. data/ext/cargo-vendor/libm-0.2.8/.cargo-checksum.json +1 -0
  137. data/ext/cargo-vendor/libm-0.2.8/CHANGELOG.md +123 -0
  138. data/ext/cargo-vendor/libm-0.2.8/CONTRIBUTING.md +95 -0
  139. data/ext/cargo-vendor/libm-0.2.8/Cargo.toml +45 -0
  140. data/ext/cargo-vendor/libm-0.2.8/LICENSE-APACHE +201 -0
  141. data/ext/cargo-vendor/libm-0.2.8/LICENSE-MIT +25 -0
  142. data/ext/cargo-vendor/libm-0.2.8/README.md +51 -0
  143. data/ext/cargo-vendor/libm-0.2.8/build.rs +463 -0
  144. data/ext/cargo-vendor/libm-0.2.8/src/lib.rs +59 -0
  145. data/ext/cargo-vendor/libm-0.2.8/src/libm_helper.rs +171 -0
  146. data/ext/cargo-vendor/libm-0.2.8/src/math/acos.rs +112 -0
  147. data/ext/cargo-vendor/libm-0.2.8/src/math/acosf.rs +79 -0
  148. data/ext/cargo-vendor/libm-0.2.8/src/math/acosh.rs +27 -0
  149. data/ext/cargo-vendor/libm-0.2.8/src/math/acoshf.rs +26 -0
  150. data/ext/cargo-vendor/libm-0.2.8/src/math/asin.rs +119 -0
  151. data/ext/cargo-vendor/libm-0.2.8/src/math/asinf.rs +72 -0
  152. data/ext/cargo-vendor/libm-0.2.8/src/math/asinh.rs +40 -0
  153. data/ext/cargo-vendor/libm-0.2.8/src/math/asinhf.rs +39 -0
  154. data/ext/cargo-vendor/libm-0.2.8/src/math/atan.rs +184 -0
  155. data/ext/cargo-vendor/libm-0.2.8/src/math/atan2.rs +126 -0
  156. data/ext/cargo-vendor/libm-0.2.8/src/math/atan2f.rs +91 -0
  157. data/ext/cargo-vendor/libm-0.2.8/src/math/atanf.rs +112 -0
  158. data/ext/cargo-vendor/libm-0.2.8/src/math/atanh.rs +37 -0
  159. data/ext/cargo-vendor/libm-0.2.8/src/math/atanhf.rs +37 -0
  160. data/ext/cargo-vendor/libm-0.2.8/src/math/cbrt.rs +113 -0
  161. data/ext/cargo-vendor/libm-0.2.8/src/math/cbrtf.rs +75 -0
  162. data/ext/cargo-vendor/libm-0.2.8/src/math/ceil.rs +82 -0
  163. data/ext/cargo-vendor/libm-0.2.8/src/math/ceilf.rs +65 -0
  164. data/ext/cargo-vendor/libm-0.2.8/src/math/copysign.rs +12 -0
  165. data/ext/cargo-vendor/libm-0.2.8/src/math/copysignf.rs +12 -0
  166. data/ext/cargo-vendor/libm-0.2.8/src/math/cos.rs +73 -0
  167. data/ext/cargo-vendor/libm-0.2.8/src/math/cosf.rs +83 -0
  168. data/ext/cargo-vendor/libm-0.2.8/src/math/cosh.rs +38 -0
  169. data/ext/cargo-vendor/libm-0.2.8/src/math/coshf.rs +38 -0
  170. data/ext/cargo-vendor/libm-0.2.8/src/math/erf.rs +318 -0
  171. data/ext/cargo-vendor/libm-0.2.8/src/math/erff.rs +230 -0
  172. data/ext/cargo-vendor/libm-0.2.8/src/math/exp.rs +154 -0
  173. data/ext/cargo-vendor/libm-0.2.8/src/math/exp10.rs +22 -0
  174. data/ext/cargo-vendor/libm-0.2.8/src/math/exp10f.rs +22 -0
  175. data/ext/cargo-vendor/libm-0.2.8/src/math/exp2.rs +394 -0
  176. data/ext/cargo-vendor/libm-0.2.8/src/math/exp2f.rs +135 -0
  177. data/ext/cargo-vendor/libm-0.2.8/src/math/expf.rs +101 -0
  178. data/ext/cargo-vendor/libm-0.2.8/src/math/expm1.rs +144 -0
  179. data/ext/cargo-vendor/libm-0.2.8/src/math/expm1f.rs +134 -0
  180. data/ext/cargo-vendor/libm-0.2.8/src/math/expo2.rs +14 -0
  181. data/ext/cargo-vendor/libm-0.2.8/src/math/fabs.rs +41 -0
  182. data/ext/cargo-vendor/libm-0.2.8/src/math/fabsf.rs +41 -0
  183. data/ext/cargo-vendor/libm-0.2.8/src/math/fdim.rs +22 -0
  184. data/ext/cargo-vendor/libm-0.2.8/src/math/fdimf.rs +22 -0
  185. data/ext/cargo-vendor/libm-0.2.8/src/math/fenv.rs +27 -0
  186. data/ext/cargo-vendor/libm-0.2.8/src/math/floor.rs +81 -0
  187. data/ext/cargo-vendor/libm-0.2.8/src/math/floorf.rs +66 -0
  188. data/ext/cargo-vendor/libm-0.2.8/src/math/fma.rs +232 -0
  189. data/ext/cargo-vendor/libm-0.2.8/src/math/fmaf.rs +117 -0
  190. data/ext/cargo-vendor/libm-0.2.8/src/math/fmax.rs +12 -0
  191. data/ext/cargo-vendor/libm-0.2.8/src/math/fmaxf.rs +12 -0
  192. data/ext/cargo-vendor/libm-0.2.8/src/math/fmin.rs +12 -0
  193. data/ext/cargo-vendor/libm-0.2.8/src/math/fminf.rs +12 -0
  194. data/ext/cargo-vendor/libm-0.2.8/src/math/fmod.rs +80 -0
  195. data/ext/cargo-vendor/libm-0.2.8/src/math/fmodf.rs +89 -0
  196. data/ext/cargo-vendor/libm-0.2.8/src/math/frexp.rs +20 -0
  197. data/ext/cargo-vendor/libm-0.2.8/src/math/frexpf.rs +21 -0
  198. data/ext/cargo-vendor/libm-0.2.8/src/math/hypot.rs +74 -0
  199. data/ext/cargo-vendor/libm-0.2.8/src/math/hypotf.rs +43 -0
  200. data/ext/cargo-vendor/libm-0.2.8/src/math/ilogb.rs +32 -0
  201. data/ext/cargo-vendor/libm-0.2.8/src/math/ilogbf.rs +32 -0
  202. data/ext/cargo-vendor/libm-0.2.8/src/math/j0.rs +422 -0
  203. data/ext/cargo-vendor/libm-0.2.8/src/math/j0f.rs +359 -0
  204. data/ext/cargo-vendor/libm-0.2.8/src/math/j1.rs +414 -0
  205. data/ext/cargo-vendor/libm-0.2.8/src/math/j1f.rs +380 -0
  206. data/ext/cargo-vendor/libm-0.2.8/src/math/jn.rs +343 -0
  207. data/ext/cargo-vendor/libm-0.2.8/src/math/jnf.rs +259 -0
  208. data/ext/cargo-vendor/libm-0.2.8/src/math/k_cos.rs +62 -0
  209. data/ext/cargo-vendor/libm-0.2.8/src/math/k_cosf.rs +29 -0
  210. data/ext/cargo-vendor/libm-0.2.8/src/math/k_expo2.rs +14 -0
  211. data/ext/cargo-vendor/libm-0.2.8/src/math/k_expo2f.rs +14 -0
  212. data/ext/cargo-vendor/libm-0.2.8/src/math/k_sin.rs +57 -0
  213. data/ext/cargo-vendor/libm-0.2.8/src/math/k_sinf.rs +30 -0
  214. data/ext/cargo-vendor/libm-0.2.8/src/math/k_tan.rs +105 -0
  215. data/ext/cargo-vendor/libm-0.2.8/src/math/k_tanf.rs +46 -0
  216. data/ext/cargo-vendor/libm-0.2.8/src/math/ldexp.rs +4 -0
  217. data/ext/cargo-vendor/libm-0.2.8/src/math/ldexpf.rs +4 -0
  218. data/ext/cargo-vendor/libm-0.2.8/src/math/lgamma.rs +6 -0
  219. data/ext/cargo-vendor/libm-0.2.8/src/math/lgamma_r.rs +320 -0
  220. data/ext/cargo-vendor/libm-0.2.8/src/math/lgammaf.rs +6 -0
  221. data/ext/cargo-vendor/libm-0.2.8/src/math/lgammaf_r.rs +255 -0
  222. data/ext/cargo-vendor/libm-0.2.8/src/math/log.rs +117 -0
  223. data/ext/cargo-vendor/libm-0.2.8/src/math/log10.rs +117 -0
  224. data/ext/cargo-vendor/libm-0.2.8/src/math/log10f.rs +91 -0
  225. data/ext/cargo-vendor/libm-0.2.8/src/math/log1p.rs +143 -0
  226. data/ext/cargo-vendor/libm-0.2.8/src/math/log1pf.rs +98 -0
  227. data/ext/cargo-vendor/libm-0.2.8/src/math/log2.rs +106 -0
  228. data/ext/cargo-vendor/libm-0.2.8/src/math/log2f.rs +87 -0
  229. data/ext/cargo-vendor/libm-0.2.8/src/math/logf.rs +65 -0
  230. data/ext/cargo-vendor/libm-0.2.8/src/math/mod.rs +370 -0
  231. data/ext/cargo-vendor/libm-0.2.8/src/math/modf.rs +34 -0
  232. data/ext/cargo-vendor/libm-0.2.8/src/math/modff.rs +33 -0
  233. data/ext/cargo-vendor/libm-0.2.8/src/math/nextafter.rs +37 -0
  234. data/ext/cargo-vendor/libm-0.2.8/src/math/nextafterf.rs +37 -0
  235. data/ext/cargo-vendor/libm-0.2.8/src/math/pow.rs +637 -0
  236. data/ext/cargo-vendor/libm-0.2.8/src/math/powf.rs +342 -0
  237. data/ext/cargo-vendor/libm-0.2.8/src/math/rem_pio2.rs +233 -0
  238. data/ext/cargo-vendor/libm-0.2.8/src/math/rem_pio2_large.rs +470 -0
  239. data/ext/cargo-vendor/libm-0.2.8/src/math/rem_pio2f.rs +67 -0
  240. data/ext/cargo-vendor/libm-0.2.8/src/math/remainder.rs +5 -0
  241. data/ext/cargo-vendor/libm-0.2.8/src/math/remainderf.rs +5 -0
  242. data/ext/cargo-vendor/libm-0.2.8/src/math/remquo.rs +110 -0
  243. data/ext/cargo-vendor/libm-0.2.8/src/math/remquof.rs +97 -0
  244. data/ext/cargo-vendor/libm-0.2.8/src/math/rint.rs +58 -0
  245. data/ext/cargo-vendor/libm-0.2.8/src/math/rintf.rs +58 -0
  246. data/ext/cargo-vendor/libm-0.2.8/src/math/round.rs +28 -0
  247. data/ext/cargo-vendor/libm-0.2.8/src/math/roundf.rs +30 -0
  248. data/ext/cargo-vendor/libm-0.2.8/src/math/scalbn.rs +33 -0
  249. data/ext/cargo-vendor/libm-0.2.8/src/math/scalbnf.rs +29 -0
  250. data/ext/cargo-vendor/libm-0.2.8/src/math/sin.rs +88 -0
  251. data/ext/cargo-vendor/libm-0.2.8/src/math/sincos.rs +134 -0
  252. data/ext/cargo-vendor/libm-0.2.8/src/math/sincosf.rs +185 -0
  253. data/ext/cargo-vendor/libm-0.2.8/src/math/sinf.rs +93 -0
  254. data/ext/cargo-vendor/libm-0.2.8/src/math/sinh.rs +49 -0
  255. data/ext/cargo-vendor/libm-0.2.8/src/math/sinhf.rs +30 -0
  256. data/ext/cargo-vendor/libm-0.2.8/src/math/sqrt.rs +280 -0
  257. data/ext/cargo-vendor/libm-0.2.8/src/math/sqrtf.rs +170 -0
  258. data/ext/cargo-vendor/libm-0.2.8/src/math/tan.rs +70 -0
  259. data/ext/cargo-vendor/libm-0.2.8/src/math/tanf.rs +78 -0
  260. data/ext/cargo-vendor/libm-0.2.8/src/math/tanh.rs +53 -0
  261. data/ext/cargo-vendor/libm-0.2.8/src/math/tanhf.rs +39 -0
  262. data/ext/cargo-vendor/libm-0.2.8/src/math/tgamma.rs +208 -0
  263. data/ext/cargo-vendor/libm-0.2.8/src/math/tgammaf.rs +6 -0
  264. data/ext/cargo-vendor/libm-0.2.8/src/math/trunc.rs +40 -0
  265. data/ext/cargo-vendor/libm-0.2.8/src/math/truncf.rs +42 -0
  266. data/ext/cargo-vendor/postcard-1.0.8/.cargo-checksum.json +1 -0
  267. data/ext/cargo-vendor/postcard-1.0.8/CHANGELOG.md +141 -0
  268. data/ext/cargo-vendor/postcard-1.0.8/Cargo.toml +100 -0
  269. data/ext/cargo-vendor/postcard-1.0.8/LICENSE-APACHE +201 -0
  270. data/ext/cargo-vendor/postcard-1.0.8/LICENSE-MIT +25 -0
  271. data/ext/cargo-vendor/postcard-1.0.8/README.md +146 -0
  272. data/ext/cargo-vendor/postcard-1.0.8/spec/LICENSE-CC-BY-SA +427 -0
  273. data/ext/cargo-vendor/postcard-1.0.8/spec/book.toml +6 -0
  274. data/ext/cargo-vendor/postcard-1.0.8/spec/src/SUMMARY.md +6 -0
  275. data/ext/cargo-vendor/postcard-1.0.8/spec/src/glossary.md +17 -0
  276. data/ext/cargo-vendor/postcard-1.0.8/spec/src/intro.md +12 -0
  277. data/ext/cargo-vendor/postcard-1.0.8/spec/src/serde-data-model.md +190 -0
  278. data/ext/cargo-vendor/postcard-1.0.8/spec/src/wire-format.md +327 -0
  279. data/ext/cargo-vendor/postcard-1.0.8/src/accumulator.rs +367 -0
  280. data/ext/cargo-vendor/postcard-1.0.8/src/de/deserializer.rs +599 -0
  281. data/ext/cargo-vendor/postcard-1.0.8/src/de/flavors.rs +468 -0
  282. data/ext/cargo-vendor/postcard-1.0.8/src/de/mod.rs +568 -0
  283. data/ext/cargo-vendor/postcard-1.0.8/src/error.rs +95 -0
  284. data/ext/cargo-vendor/postcard-1.0.8/src/fixint.rs +189 -0
  285. data/ext/cargo-vendor/postcard-1.0.8/src/lib.rs +143 -0
  286. data/ext/cargo-vendor/postcard-1.0.8/src/max_size.rs +233 -0
  287. data/ext/cargo-vendor/postcard-1.0.8/src/schema.rs +282 -0
  288. data/ext/cargo-vendor/postcard-1.0.8/src/ser/flavors.rs +722 -0
  289. data/ext/cargo-vendor/postcard-1.0.8/src/ser/mod.rs +866 -0
  290. data/ext/cargo-vendor/postcard-1.0.8/src/ser/serializer.rs +564 -0
  291. data/ext/cargo-vendor/postcard-1.0.8/src/varint.rs +103 -0
  292. data/ext/cargo-vendor/postcard-1.0.8/tests/accumulator.rs +57 -0
  293. data/ext/cargo-vendor/postcard-1.0.8/tests/crc.rs +60 -0
  294. data/ext/cargo-vendor/postcard-1.0.8/tests/loopback.rs +248 -0
  295. data/ext/cargo-vendor/postcard-1.0.8/tests/max_size.rs +101 -0
  296. data/ext/cargo-vendor/postcard-1.0.8/tests/schema.rs +107 -0
  297. data/ext/cargo-vendor/rb-sys-0.9.100/.cargo-checksum.json +1 -0
  298. data/ext/cargo-vendor/rb-sys-0.9.100/Cargo.toml +58 -0
  299. data/ext/cargo-vendor/rb-sys-0.9.100/build/main.rs +267 -0
  300. data/ext/cargo-vendor/rb-sys-0.9.100/build/stable_api_config.rs +139 -0
  301. data/ext/cargo-vendor/rb-sys-0.9.100/src/bindings.rs +21 -0
  302. data/ext/cargo-vendor/rb-sys-0.9.100/src/tracking_allocator.rs +266 -0
  303. data/ext/cargo-vendor/rb-sys-build-0.9.100/.cargo-checksum.json +1 -0
  304. data/ext/cargo-vendor/rb-sys-build-0.9.100/Cargo.toml +62 -0
  305. data/ext/cargo-vendor/rb-sys-build-0.9.100/src/bindings/stable_api.rs +203 -0
  306. data/ext/cargo-vendor/rb-sys-build-0.9.100/src/bindings.rs +254 -0
  307. data/ext/cargo-vendor/rb-sys-build-0.9.100/src/cc.rs +374 -0
  308. data/ext/cargo-vendor/rb-sys-build-0.9.100/src/utils.rs +52 -0
  309. data/ext/cargo-vendor/wasi-common-21.0.1/.cargo-checksum.json +1 -0
  310. data/ext/cargo-vendor/wasi-common-21.0.1/Cargo.toml +223 -0
  311. data/ext/cargo-vendor/wasi-common-21.0.1/tests/all/async_.rs +293 -0
  312. data/ext/cargo-vendor/wasi-common-21.0.1/tests/all/main.rs +21 -0
  313. data/ext/cargo-vendor/wasi-common-21.0.1/tests/all/sync.rs +279 -0
  314. data/ext/cargo-vendor/wasm-encoder-0.207.0/.cargo-checksum.json +1 -0
  315. data/ext/cargo-vendor/wasm-encoder-0.207.0/Cargo.toml +45 -0
  316. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/code.rs +3502 -0
  317. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/data.rs +186 -0
  318. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/elements.rs +221 -0
  319. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/globals.rs +112 -0
  320. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/imports.rs +157 -0
  321. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/memories.rs +128 -0
  322. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/tables.rs +134 -0
  323. data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/types.rs +678 -0
  324. data/ext/cargo-vendor/wasmparser-0.207.0/.cargo-checksum.json +1 -0
  325. data/ext/cargo-vendor/wasmparser-0.207.0/Cargo.lock +659 -0
  326. data/ext/cargo-vendor/wasmparser-0.207.0/Cargo.toml +95 -0
  327. data/ext/cargo-vendor/wasmparser-0.207.0/src/binary_reader.rs +1867 -0
  328. data/ext/cargo-vendor/wasmparser-0.207.0/src/lib.rs +805 -0
  329. data/ext/cargo-vendor/wasmparser-0.207.0/src/limits.rs +78 -0
  330. data/ext/cargo-vendor/wasmparser-0.207.0/src/map.rs +137 -0
  331. data/ext/cargo-vendor/wasmparser-0.207.0/src/parser.rs +1636 -0
  332. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/canonicals.rs +121 -0
  333. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/instances.rs +164 -0
  334. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/names.rs +102 -0
  335. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/start.rs +31 -0
  336. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/types.rs +551 -0
  337. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/code.rs +146 -0
  338. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/coredumps.rs +244 -0
  339. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/custom.rs +64 -0
  340. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/data.rs +96 -0
  341. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/dylink0.rs +110 -0
  342. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/elements.rs +152 -0
  343. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/globals.rs +51 -0
  344. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/linking.rs +450 -0
  345. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/memories.rs +57 -0
  346. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/names.rs +159 -0
  347. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/operators.rs +430 -0
  348. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/reloc.rs +301 -0
  349. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/tables.rs +93 -0
  350. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/types/matches.rs +277 -0
  351. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/types.rs +1773 -0
  352. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core.rs +43 -0
  353. data/ext/cargo-vendor/wasmparser-0.207.0/src/readers.rs +316 -0
  354. data/ext/cargo-vendor/wasmparser-0.207.0/src/resources.rs +235 -0
  355. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/component.rs +3242 -0
  356. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/core/canonical.rs +233 -0
  357. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/core.rs +1450 -0
  358. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/func.rs +331 -0
  359. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/names.rs +947 -0
  360. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/operators.rs +4117 -0
  361. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/types.rs +4492 -0
  362. data/ext/cargo-vendor/wasmparser-0.207.0/src/validator.rs +1786 -0
  363. data/ext/cargo-vendor/wasmprinter-0.207.0/.cargo-checksum.json +1 -0
  364. data/ext/cargo-vendor/wasmprinter-0.207.0/Cargo.toml +50 -0
  365. data/ext/cargo-vendor/wasmprinter-0.207.0/src/lib.rs +3226 -0
  366. data/ext/cargo-vendor/wasmprinter-0.207.0/src/operator.rs +1164 -0
  367. data/ext/cargo-vendor/wasmprinter-0.207.0/tests/all.rs +293 -0
  368. data/ext/cargo-vendor/wasmtime-21.0.1/.cargo-checksum.json +1 -0
  369. data/ext/cargo-vendor/wasmtime-21.0.1/Cargo.toml +386 -0
  370. data/ext/cargo-vendor/wasmtime-21.0.1/build.rs +37 -0
  371. data/ext/cargo-vendor/wasmtime-21.0.1/src/compile/code_builder.rs +275 -0
  372. data/ext/cargo-vendor/wasmtime-21.0.1/src/compile/runtime.rs +176 -0
  373. data/ext/cargo-vendor/wasmtime-21.0.1/src/compile.rs +910 -0
  374. data/ext/cargo-vendor/wasmtime-21.0.1/src/config.rs +2904 -0
  375. data/ext/cargo-vendor/wasmtime-21.0.1/src/engine/serialization.rs +887 -0
  376. data/ext/cargo-vendor/wasmtime-21.0.1/src/engine.rs +728 -0
  377. data/ext/cargo-vendor/wasmtime-21.0.1/src/lib.rs +328 -0
  378. data/ext/cargo-vendor/wasmtime-21.0.1/src/profiling_agent/jitdump.rs +67 -0
  379. data/ext/cargo-vendor/wasmtime-21.0.1/src/profiling_agent/perfmap.rs +48 -0
  380. data/ext/cargo-vendor/wasmtime-21.0.1/src/profiling_agent/vtune.rs +81 -0
  381. data/ext/cargo-vendor/wasmtime-21.0.1/src/profiling_agent.rs +106 -0
  382. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/code.rs +102 -0
  383. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/code_memory.rs +337 -0
  384. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/component.rs +661 -0
  385. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/func/host.rs +440 -0
  386. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/func/options.rs +555 -0
  387. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/func/typed.rs +2498 -0
  388. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/func.rs +746 -0
  389. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/instance.rs +814 -0
  390. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/linker.rs +783 -0
  391. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/matching.rs +217 -0
  392. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/mod.rs +783 -0
  393. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/resource_table.rs +355 -0
  394. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/resources.rs +1133 -0
  395. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/storage.rs +43 -0
  396. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/store.rs +29 -0
  397. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/types.rs +892 -0
  398. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/values.rs +980 -0
  399. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/coredump.rs +342 -0
  400. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/debug.rs +166 -0
  401. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/externals/global.rs +310 -0
  402. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/externals/table.rs +477 -0
  403. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/externals.rs +236 -0
  404. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/func/typed.rs +899 -0
  405. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/func.rs +2627 -0
  406. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/disabled/anyref.rs +46 -0
  407. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/disabled/externref.rs +50 -0
  408. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/disabled/rooting.rs +224 -0
  409. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/enabled/anyref.rs +473 -0
  410. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/enabled/externref.rs +650 -0
  411. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/enabled/i31.rs +346 -0
  412. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/enabled/rooting.rs +1588 -0
  413. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc.rs +89 -0
  414. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/instance.rs +992 -0
  415. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/instantiate.rs +346 -0
  416. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/limits.rs +399 -0
  417. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/linker.rs +1506 -0
  418. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/memory.rs +998 -0
  419. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/module/registry.rs +353 -0
  420. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/module.rs +1295 -0
  421. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/profiling.rs +221 -0
  422. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/resources.rs +33 -0
  423. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/signatures.rs +216 -0
  424. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/stack.rs +73 -0
  425. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/store/context.rs +243 -0
  426. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/store/data.rs +301 -0
  427. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/store/func_refs.rs +90 -0
  428. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/store.rs +2820 -0
  429. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline/func.rs +139 -0
  430. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline/global.rs +68 -0
  431. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline/memory.rs +287 -0
  432. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline/table.rs +29 -0
  433. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline.rs +78 -0
  434. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trap.rs +642 -0
  435. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/type_registry.rs +807 -0
  436. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/types/matching.rs +421 -0
  437. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/types.rs +2239 -0
  438. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/unix.rs +40 -0
  439. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/v128.rs +131 -0
  440. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/values.rs +966 -0
  441. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/arch/aarch64.rs +76 -0
  442. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/arch/x86_64.rs +41 -0
  443. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/async_yield.rs +35 -0
  444. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/component/libcalls.rs +571 -0
  445. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/component/resources.rs +352 -0
  446. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/component.rs +860 -0
  447. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/const_expr.rs +102 -0
  448. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/cow.rs +893 -0
  449. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/debug_builtins.rs +59 -0
  450. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/export.rs +108 -0
  451. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/disabled.rs +24 -0
  452. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/enabled/drc.rs +968 -0
  453. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/enabled/externref.rs +116 -0
  454. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/enabled/free_list.rs +771 -0
  455. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/enabled.rs +18 -0
  456. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/gc_ref.rs +491 -0
  457. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/gc_runtime.rs +506 -0
  458. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/host_data.rs +82 -0
  459. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/i31.rs +87 -0
  460. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc.rs +245 -0
  461. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/imports.rs +29 -0
  462. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/on_demand.rs +218 -0
  463. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/gc_heap_pool.rs +93 -0
  464. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/generic_stack_pool.rs +66 -0
  465. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/index_allocator.rs +705 -0
  466. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/memory_pool.rs +1000 -0
  467. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/table_pool.rs +233 -0
  468. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/unix_stack_pool.rs +245 -0
  469. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling.rs +656 -0
  470. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator.rs +798 -0
  471. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance.rs +1519 -0
  472. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/libcalls.rs +834 -0
  473. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/memory.rs +744 -0
  474. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mmap.rs +220 -0
  475. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mmap_vec.rs +162 -0
  476. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/module_id.rs +43 -0
  477. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mpk/enabled.rs +214 -0
  478. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mpk/mod.rs +54 -0
  479. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mpk/pkru.rs +104 -0
  480. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/mpk/sys.rs +114 -0
  481. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/send_sync_ptr.rs +106 -0
  482. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/store_box.rs +37 -0
  483. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/capi.rs +200 -0
  484. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/mmap.rs +112 -0
  485. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/mod.rs +34 -0
  486. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/traphandlers.rs +55 -0
  487. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/vm.rs +109 -0
  488. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/miri/mmap.rs +95 -0
  489. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/miri/mod.rs +24 -0
  490. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/miri/traphandlers.rs +47 -0
  491. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/mod.rs +25 -0
  492. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/machports.rs +416 -0
  493. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/mmap.rs +162 -0
  494. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/mod.rs +35 -0
  495. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/signals.rs +401 -0
  496. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/unwind.rs +150 -0
  497. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/vm.rs +215 -0
  498. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/windows/mmap.rs +221 -0
  499. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/windows/mod.rs +20 -0
  500. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/windows/traphandlers.rs +104 -0
  501. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/table.rs +847 -0
  502. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/threads/parking_spot.rs +623 -0
  503. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/threads/shared_memory.rs +233 -0
  504. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/threads/shared_memory_disabled.rs +101 -0
  505. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/traphandlers/backtrace.rs +267 -0
  506. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/traphandlers/coredump_disabled.rs +16 -0
  507. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/traphandlers/coredump_enabled.rs +42 -0
  508. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs +768 -0
  509. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/vmcontext/vm_host_func_context.rs +138 -0
  510. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/vmcontext.rs +1337 -0
  511. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm.rs +287 -0
  512. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/windows.rs +35 -0
  513. data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime.rs +110 -0
  514. data/ext/cargo-vendor/wasmtime-21.0.1/src/sync_nostd.rs +255 -0
  515. data/ext/cargo-vendor/wasmtime-21.0.1/src/sync_std.rs +52 -0
  516. data/ext/cargo-vendor/wasmtime-asm-macros-21.0.1/.cargo-checksum.json +1 -0
  517. data/ext/cargo-vendor/wasmtime-asm-macros-21.0.1/Cargo.toml +22 -0
  518. data/ext/cargo-vendor/wasmtime-asm-macros-21.0.1/src/lib.rs +83 -0
  519. data/ext/cargo-vendor/wasmtime-cache-21.0.1/.cargo-checksum.json +1 -0
  520. data/ext/cargo-vendor/wasmtime-cache-21.0.1/Cargo.toml +88 -0
  521. data/ext/cargo-vendor/wasmtime-cache-21.0.1/src/lib.rs +235 -0
  522. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/.cargo-checksum.json +1 -0
  523. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/Cargo.toml +79 -0
  524. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/src/bindgen.rs +436 -0
  525. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/src/component.rs +1295 -0
  526. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/tests/codegen.rs +576 -0
  527. data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/tests/codegen_no_std.rs +16 -0
  528. data/ext/cargo-vendor/wasmtime-component-util-21.0.1/.cargo-checksum.json +1 -0
  529. data/ext/cargo-vendor/wasmtime-component-util-21.0.1/Cargo.toml +25 -0
  530. data/ext/cargo-vendor/wasmtime-component-util-21.0.1/src/lib.rs +182 -0
  531. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/.cargo-checksum.json +1 -0
  532. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/Cargo.toml +114 -0
  533. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/compiler/component.rs +968 -0
  534. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/compiler.rs +1383 -0
  535. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/gc.rs +252 -0
  536. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/attr.rs +320 -0
  537. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/expression.rs +1248 -0
  538. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/line_program.rs +287 -0
  539. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/mod.rs +256 -0
  540. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/unit.rs +529 -0
  541. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/utils.rs +186 -0
  542. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/write_debuginfo.rs +196 -0
  543. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug.rs +18 -0
  544. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/func_environ.rs +2888 -0
  545. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/gc/enabled.rs +648 -0
  546. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/gc.rs +198 -0
  547. data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/lib.rs +511 -0
  548. data/ext/cargo-vendor/wasmtime-environ-21.0.1/.cargo-checksum.json +1 -0
  549. data/ext/cargo-vendor/wasmtime-environ-21.0.1/Cargo.lock +772 -0
  550. data/ext/cargo-vendor/wasmtime-environ-21.0.1/Cargo.toml +154 -0
  551. data/ext/cargo-vendor/wasmtime-environ-21.0.1/examples/factc.rs +198 -0
  552. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/address_map.rs +73 -0
  553. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/mod.rs +419 -0
  554. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/module_artifacts.rs +315 -0
  555. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/module_environ.rs +1337 -0
  556. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/module_types.rs +362 -0
  557. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/trap_encoding.rs +70 -0
  558. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/compiler.rs +20 -0
  559. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/dfg.rs +691 -0
  560. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/info.rs +672 -0
  561. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/translate/adapt.rs +455 -0
  562. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/translate.rs +978 -0
  563. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/types.rs +1029 -0
  564. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/types_builder/resources.rs +233 -0
  565. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/types_builder.rs +997 -0
  566. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component.rs +107 -0
  567. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/demangling.rs +28 -0
  568. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/core_types.rs +25 -0
  569. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/signature.rs +119 -0
  570. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/trampoline.rs +3234 -0
  571. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/transcode.rs +90 -0
  572. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/traps.rs +116 -0
  573. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact.rs +714 -0
  574. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/lib.rs +161 -0
  575. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/module.rs +697 -0
  576. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/module_artifacts.rs +146 -0
  577. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/module_types.rs +91 -0
  578. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/scopevec.rs +80 -0
  579. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/stack_map.rs +37 -0
  580. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/trap_encoding.rs +189 -0
  581. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/tunables.rs +168 -0
  582. data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/vmoffsets.rs +1015 -0
  583. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/.cargo-checksum.json +1 -0
  584. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/Cargo.toml +64 -0
  585. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/build.rs +38 -0
  586. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/src/lib.rs +328 -0
  587. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/src/unix.rs +490 -0
  588. data/ext/cargo-vendor/wasmtime-fiber-21.0.1/src/windows.rs +166 -0
  589. data/ext/cargo-vendor/wasmtime-jit-debug-21.0.1/.cargo-checksum.json +1 -0
  590. data/ext/cargo-vendor/wasmtime-jit-debug-21.0.1/Cargo.toml +67 -0
  591. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/.cargo-checksum.json +1 -0
  592. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/Cargo.toml +51 -0
  593. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/src/lib.rs +109 -0
  594. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/src/libc.rs +163 -0
  595. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/src/miri.rs +10 -0
  596. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/src/win.rs +49 -0
  597. data/ext/cargo-vendor/wasmtime-slab-21.0.1/.cargo-checksum.json +1 -0
  598. data/ext/cargo-vendor/wasmtime-slab-21.0.1/Cargo.toml +21 -0
  599. data/ext/cargo-vendor/wasmtime-slab-21.0.1/src/lib.rs +498 -0
  600. data/ext/cargo-vendor/wasmtime-types-21.0.1/.cargo-checksum.json +1 -0
  601. data/ext/cargo-vendor/wasmtime-types-21.0.1/Cargo.toml +55 -0
  602. data/ext/cargo-vendor/wasmtime-types-21.0.1/src/error.rs +81 -0
  603. data/ext/cargo-vendor/wasmtime-types-21.0.1/src/lib.rs +1572 -0
  604. data/ext/cargo-vendor/wasmtime-versioned-export-macros-21.0.1/.cargo-checksum.json +1 -0
  605. data/ext/cargo-vendor/wasmtime-versioned-export-macros-21.0.1/Cargo.toml +32 -0
  606. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/.cargo-checksum.json +1 -0
  607. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/Cargo.toml +200 -0
  608. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/bindings.rs +280 -0
  609. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/ctx.rs +667 -0
  610. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/filesystem.rs +446 -0
  611. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/lib.rs +426 -0
  612. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/preview0.rs +877 -0
  613. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/preview1.rs +2660 -0
  614. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/tests/all/api.rs +198 -0
  615. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/tests/all/async_.rs +397 -0
  616. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/tests/all/main.rs +91 -0
  617. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/tests/all/preview1.rs +251 -0
  618. data/ext/cargo-vendor/wasmtime-wasi-21.0.1/tests/all/sync.rs +331 -0
  619. data/ext/cargo-vendor/wasmtime-winch-21.0.1/.cargo-checksum.json +1 -0
  620. data/ext/cargo-vendor/wasmtime-winch-21.0.1/Cargo.toml +81 -0
  621. data/ext/cargo-vendor/wasmtime-winch-21.0.1/src/compiler.rs +261 -0
  622. data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/.cargo-checksum.json +1 -0
  623. data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/Cargo.toml +46 -0
  624. data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/src/lib.rs +2541 -0
  625. data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/src/rust.rs +421 -0
  626. data/ext/cargo-vendor/wiggle-21.0.1/.cargo-checksum.json +1 -0
  627. data/ext/cargo-vendor/wiggle-21.0.1/Cargo.toml +123 -0
  628. data/ext/cargo-vendor/wiggle-generate-21.0.1/.cargo-checksum.json +1 -0
  629. data/ext/cargo-vendor/wiggle-generate-21.0.1/Cargo.toml +66 -0
  630. data/ext/cargo-vendor/wiggle-macro-21.0.1/.cargo-checksum.json +1 -0
  631. data/ext/cargo-vendor/wiggle-macro-21.0.1/Cargo.toml +55 -0
  632. data/ext/cargo-vendor/winch-codegen-0.19.1/.cargo-checksum.json +1 -0
  633. data/ext/cargo-vendor/winch-codegen-0.19.1/Cargo.toml +76 -0
  634. data/ext/cargo-vendor/winch-codegen-0.19.1/src/codegen/context.rs +534 -0
  635. data/ext/cargo-vendor/winch-codegen-0.19.1/src/codegen/env.rs +440 -0
  636. data/ext/cargo-vendor/winch-codegen-0.19.1/src/codegen/mod.rs +882 -0
  637. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/abi.rs +291 -0
  638. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/address.rs +143 -0
  639. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/asm.rs +380 -0
  640. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/masm.rs +566 -0
  641. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/mod.rs +158 -0
  642. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/regs.rs +161 -0
  643. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/reg.rs +73 -0
  644. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/x64/asm.rs +1423 -0
  645. data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/x64/masm.rs +1120 -0
  646. data/ext/cargo-vendor/winch-codegen-0.19.1/src/masm.rs +941 -0
  647. data/ext/cargo-vendor/winch-codegen-0.19.1/src/regalloc.rs +65 -0
  648. data/ext/cargo-vendor/winch-codegen-0.19.1/src/regset.rs +194 -0
  649. data/ext/cargo-vendor/winch-codegen-0.19.1/src/visitor.rs +2144 -0
  650. data/ext/cargo-vendor/wit-parser-0.207.0/.cargo-checksum.json +1 -0
  651. data/ext/cargo-vendor/wit-parser-0.207.0/Cargo.toml +109 -0
  652. data/ext/cargo-vendor/wit-parser-0.207.0/src/ast/resolve.rs +1442 -0
  653. data/ext/cargo-vendor/wit-parser-0.207.0/src/decoding.rs +1764 -0
  654. data/ext/cargo-vendor/wit-parser-0.207.0/src/lib.rs +777 -0
  655. data/ext/cargo-vendor/wit-parser-0.207.0/src/live.rs +126 -0
  656. data/ext/cargo-vendor/wit-parser-0.207.0/src/resolve.rs +2337 -0
  657. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/resources-multiple-returns-borrow.wit.result +5 -0
  658. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/resources-return-borrow.wit.result +5 -0
  659. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow1.wit +7 -0
  660. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow1.wit.result +5 -0
  661. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow2.wit +8 -0
  662. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow2.wit.result +5 -0
  663. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow3.wit +7 -0
  664. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow3.wit.result +5 -0
  665. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow4.wit +7 -0
  666. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow4.wit.result +5 -0
  667. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow5.wit +7 -0
  668. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow5.wit.result +5 -0
  669. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow6.wit +7 -0
  670. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow6.wit.result +5 -0
  671. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow7.wit +11 -0
  672. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow7.wit.result +5 -0
  673. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow8/deps/baz.wit +9 -0
  674. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow8/foo.wit +7 -0
  675. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow8.wit.result +8 -0
  676. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/world-top-level-resources.wit +24 -0
  677. data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/world-top-level-resources.wit.json +231 -0
  678. data/ext/src/lib.rs +1 -0
  679. data/ext/src/ruby_api/config.rs +1 -12
  680. data/ext/src/ruby_api/engine.rs +3 -6
  681. data/ext/src/ruby_api/store.rs +68 -5
  682. data/lib/wasmtime/version.rb +1 -1
  683. metadata +1601 -1408
  684. data/ext/cargo-vendor/bincode-1.3.3/.cargo-checksum.json +0 -1
  685. data/ext/cargo-vendor/bincode-1.3.3/Cargo.toml +0 -37
  686. data/ext/cargo-vendor/bincode-1.3.3/LICENSE.md +0 -21
  687. data/ext/cargo-vendor/bincode-1.3.3/readme.md +0 -112
  688. data/ext/cargo-vendor/bincode-1.3.3/src/byteorder.rs +0 -385
  689. data/ext/cargo-vendor/bincode-1.3.3/src/config/endian.rs +0 -27
  690. data/ext/cargo-vendor/bincode-1.3.3/src/config/int.rs +0 -682
  691. data/ext/cargo-vendor/bincode-1.3.3/src/config/legacy.rs +0 -253
  692. data/ext/cargo-vendor/bincode-1.3.3/src/config/limit.rs +0 -49
  693. data/ext/cargo-vendor/bincode-1.3.3/src/config/mod.rs +0 -408
  694. data/ext/cargo-vendor/bincode-1.3.3/src/config/trailing.rs +0 -37
  695. data/ext/cargo-vendor/bincode-1.3.3/src/de/mod.rs +0 -515
  696. data/ext/cargo-vendor/bincode-1.3.3/src/de/read.rs +0 -202
  697. data/ext/cargo-vendor/bincode-1.3.3/src/error.rs +0 -115
  698. data/ext/cargo-vendor/bincode-1.3.3/src/internal.rs +0 -124
  699. data/ext/cargo-vendor/bincode-1.3.3/src/lib.rs +0 -201
  700. data/ext/cargo-vendor/bincode-1.3.3/src/ser/mod.rs +0 -772
  701. data/ext/cargo-vendor/bincode-1.3.3/tests/test.rs +0 -899
  702. data/ext/cargo-vendor/cranelift-bforest-0.107.2/.cargo-checksum.json +0 -1
  703. data/ext/cargo-vendor/cranelift-bforest-0.107.2/Cargo.toml +0 -40
  704. data/ext/cargo-vendor/cranelift-codegen-0.107.2/.cargo-checksum.json +0 -1
  705. data/ext/cargo-vendor/cranelift-codegen-0.107.2/Cargo.toml +0 -178
  706. data/ext/cargo-vendor/cranelift-codegen-0.107.2/build.rs +0 -396
  707. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/alias_analysis.rs +0 -403
  708. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/context.rs +0 -386
  709. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ctxhash.rs +0 -167
  710. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/egraph/elaborate.rs +0 -835
  711. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/egraph.rs +0 -838
  712. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/fx.rs +0 -105
  713. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/incremental_cache.rs +0 -256
  714. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ir/instructions.rs +0 -1019
  715. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/abi.rs +0 -1707
  716. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/args.rs +0 -779
  717. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/emit.rs +0 -3932
  718. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/emit_tests.rs +0 -7919
  719. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/imms.rs +0 -1218
  720. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/mod.rs +0 -3083
  721. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/regs.rs +0 -292
  722. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst.isle +0 -4218
  723. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/lower/isle.rs +0 -884
  724. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/pcc.rs +0 -565
  725. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/mod.rs +0 -432
  726. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/abi.rs +0 -1109
  727. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/args.rs +0 -1968
  728. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/emit.rs +0 -3466
  729. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/emit_tests.rs +0 -2146
  730. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/mod.rs +0 -2041
  731. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/regs.rs +0 -175
  732. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/vector.rs +0 -1162
  733. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst.isle +0 -2944
  734. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/lower/isle.rs +0 -625
  735. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/lower.isle +0 -2872
  736. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/abi.rs +0 -1047
  737. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/args.rs +0 -347
  738. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/emit.rs +0 -3646
  739. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/imms.rs +0 -202
  740. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/mod.rs +0 -3423
  741. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/regs.rs +0 -187
  742. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/abi.rs +0 -1369
  743. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/args.rs +0 -2289
  744. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/emit.rs +0 -4383
  745. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/emit_tests.rs +0 -5131
  746. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/mod.rs +0 -2798
  747. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/regs.rs +0 -276
  748. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst.isle +0 -5304
  749. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/lower/isle.rs +0 -1066
  750. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/lower.isle +0 -4809
  751. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/lower.rs +0 -339
  752. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/pcc.rs +0 -1003
  753. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/lib.rs +0 -106
  754. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/abi.rs +0 -2594
  755. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/blockorder.rs +0 -465
  756. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/isle.rs +0 -914
  757. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/lower.rs +0 -1452
  758. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/mod.rs +0 -555
  759. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/reg.rs +0 -562
  760. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/valueregs.rs +0 -132
  761. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/vcode.rs +0 -1807
  762. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/nan_canonicalization.rs +0 -110
  763. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/opts/arithmetic.isle +0 -179
  764. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/opts/icmp.isle +0 -197
  765. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/remove_constant_phis.rs +0 -420
  766. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/scoped_hash_map.rs +0 -310
  767. data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/settings.rs +0 -591
  768. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/.cargo-checksum.json +0 -1
  769. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/Cargo.toml +0 -35
  770. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/gen_inst.rs +0 -1784
  771. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/gen_settings.rs +0 -508
  772. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/gen_types.rs +0 -75
  773. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/isa/riscv64.rs +0 -160
  774. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/isa/x86.rs +0 -402
  775. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/lib.rs +0 -59
  776. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/shared/settings.rs +0 -355
  777. data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/srcgen.rs +0 -470
  778. data/ext/cargo-vendor/cranelift-codegen-shared-0.107.2/.cargo-checksum.json +0 -1
  779. data/ext/cargo-vendor/cranelift-codegen-shared-0.107.2/Cargo.toml +0 -22
  780. data/ext/cargo-vendor/cranelift-control-0.107.2/.cargo-checksum.json +0 -1
  781. data/ext/cargo-vendor/cranelift-control-0.107.2/Cargo.toml +0 -30
  782. data/ext/cargo-vendor/cranelift-entity-0.107.2/.cargo-checksum.json +0 -1
  783. data/ext/cargo-vendor/cranelift-entity-0.107.2/Cargo.toml +0 -50
  784. data/ext/cargo-vendor/cranelift-entity-0.107.2/src/lib.rs +0 -317
  785. data/ext/cargo-vendor/cranelift-frontend-0.107.2/.cargo-checksum.json +0 -1
  786. data/ext/cargo-vendor/cranelift-frontend-0.107.2/Cargo.toml +0 -69
  787. data/ext/cargo-vendor/cranelift-frontend-0.107.2/src/switch.rs +0 -654
  788. data/ext/cargo-vendor/cranelift-isle-0.107.2/.cargo-checksum.json +0 -1
  789. data/ext/cargo-vendor/cranelift-isle-0.107.2/Cargo.toml +0 -46
  790. data/ext/cargo-vendor/cranelift-isle-0.107.2/src/codegen.rs +0 -886
  791. data/ext/cargo-vendor/cranelift-isle-0.107.2/src/lib.rs +0 -271
  792. data/ext/cargo-vendor/cranelift-isle-0.107.2/src/sema.rs +0 -2492
  793. data/ext/cargo-vendor/cranelift-isle-0.107.2/src/serialize.rs +0 -846
  794. data/ext/cargo-vendor/cranelift-isle-0.107.2/src/trie_again.rs +0 -683
  795. data/ext/cargo-vendor/cranelift-native-0.107.2/.cargo-checksum.json +0 -1
  796. data/ext/cargo-vendor/cranelift-native-0.107.2/Cargo.toml +0 -45
  797. data/ext/cargo-vendor/cranelift-wasm-0.107.2/.cargo-checksum.json +0 -1
  798. data/ext/cargo-vendor/cranelift-wasm-0.107.2/Cargo.toml +0 -107
  799. data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/code_translator.rs +0 -3683
  800. data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/environ/dummy.rs +0 -912
  801. data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/environ/spec.rs +0 -945
  802. data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/sections_translator.rs +0 -409
  803. data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.21/.cargo-checksum.json +0 -1
  804. data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.21/Cargo.toml +0 -48
  805. data/ext/cargo-vendor/rb-sys-0.9.97/.cargo-checksum.json +0 -1
  806. data/ext/cargo-vendor/rb-sys-0.9.97/Cargo.toml +0 -54
  807. data/ext/cargo-vendor/rb-sys-0.9.97/build/main.rs +0 -238
  808. data/ext/cargo-vendor/rb-sys-0.9.97/build/stable_api_config.rs +0 -133
  809. data/ext/cargo-vendor/rb-sys-0.9.97/src/bindings.rs +0 -20
  810. data/ext/cargo-vendor/rb-sys-0.9.97/src/tracking_allocator.rs +0 -265
  811. data/ext/cargo-vendor/rb-sys-build-0.9.97/.cargo-checksum.json +0 -1
  812. data/ext/cargo-vendor/rb-sys-build-0.9.97/Cargo.toml +0 -62
  813. data/ext/cargo-vendor/rb-sys-build-0.9.97/src/bindings/stable_api.rs +0 -202
  814. data/ext/cargo-vendor/rb-sys-build-0.9.97/src/bindings.rs +0 -250
  815. data/ext/cargo-vendor/rb-sys-build-0.9.97/src/cc.rs +0 -365
  816. data/ext/cargo-vendor/rb-sys-build-0.9.97/src/utils.rs +0 -52
  817. data/ext/cargo-vendor/wasi-common-20.0.2/.cargo-checksum.json +0 -1
  818. data/ext/cargo-vendor/wasi-common-20.0.2/Cargo.toml +0 -220
  819. data/ext/cargo-vendor/wasi-common-20.0.2/tests/all/async_.rs +0 -293
  820. data/ext/cargo-vendor/wasi-common-20.0.2/tests/all/main.rs +0 -21
  821. data/ext/cargo-vendor/wasi-common-20.0.2/tests/all/sync.rs +0 -279
  822. data/ext/cargo-vendor/wasm-encoder-0.202.0/.cargo-checksum.json +0 -1
  823. data/ext/cargo-vendor/wasm-encoder-0.202.0/Cargo.toml +0 -43
  824. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/code.rs +0 -3444
  825. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/data.rs +0 -185
  826. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/elements.rs +0 -220
  827. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/globals.rs +0 -101
  828. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/imports.rs +0 -156
  829. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/memories.rs +0 -111
  830. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/tables.rs +0 -116
  831. data/ext/cargo-vendor/wasm-encoder-0.202.0/src/core/types.rs +0 -673
  832. data/ext/cargo-vendor/wasmparser-0.202.0/.cargo-checksum.json +0 -1
  833. data/ext/cargo-vendor/wasmparser-0.202.0/Cargo.lock +0 -744
  834. data/ext/cargo-vendor/wasmparser-0.202.0/Cargo.toml +0 -66
  835. data/ext/cargo-vendor/wasmparser-0.202.0/src/binary_reader.rs +0 -1849
  836. data/ext/cargo-vendor/wasmparser-0.202.0/src/lib.rs +0 -766
  837. data/ext/cargo-vendor/wasmparser-0.202.0/src/limits.rs +0 -64
  838. data/ext/cargo-vendor/wasmparser-0.202.0/src/parser.rs +0 -1611
  839. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/component/canonicals.rs +0 -120
  840. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/component/instances.rs +0 -163
  841. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/component/names.rs +0 -102
  842. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/component/start.rs +0 -30
  843. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/component/types.rs +0 -549
  844. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/code.rs +0 -146
  845. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/coredumps.rs +0 -243
  846. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/custom.rs +0 -63
  847. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/data.rs +0 -96
  848. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/dylink0.rs +0 -109
  849. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/elements.rs +0 -152
  850. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/globals.rs +0 -49
  851. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/linking.rs +0 -449
  852. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/memories.rs +0 -56
  853. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/names.rs +0 -156
  854. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/operators.rs +0 -411
  855. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/tables.rs +0 -87
  856. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/types/matches.rs +0 -277
  857. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core/types.rs +0 -1680
  858. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/core.rs +0 -41
  859. data/ext/cargo-vendor/wasmparser-0.202.0/src/readers.rs +0 -316
  860. data/ext/cargo-vendor/wasmparser-0.202.0/src/resources.rs +0 -235
  861. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/component.rs +0 -3238
  862. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/core/canonical.rs +0 -233
  863. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/core.rs +0 -1400
  864. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/func.rs +0 -338
  865. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/names.rs +0 -929
  866. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/operators.rs +0 -4076
  867. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/types.rs +0 -4449
  868. data/ext/cargo-vendor/wasmparser-0.202.0/src/validator.rs +0 -1619
  869. data/ext/cargo-vendor/wasmprinter-0.202.0/.cargo-checksum.json +0 -1
  870. data/ext/cargo-vendor/wasmprinter-0.202.0/Cargo.toml +0 -45
  871. data/ext/cargo-vendor/wasmprinter-0.202.0/src/lib.rs +0 -3202
  872. data/ext/cargo-vendor/wasmprinter-0.202.0/src/operator.rs +0 -1131
  873. data/ext/cargo-vendor/wasmprinter-0.202.0/tests/all.rs +0 -279
  874. data/ext/cargo-vendor/wasmtime-20.0.2/.cargo-checksum.json +0 -1
  875. data/ext/cargo-vendor/wasmtime-20.0.2/Cargo.toml +0 -268
  876. data/ext/cargo-vendor/wasmtime-20.0.2/src/compile/code_builder.rs +0 -201
  877. data/ext/cargo-vendor/wasmtime-20.0.2/src/compile/runtime.rs +0 -175
  878. data/ext/cargo-vendor/wasmtime-20.0.2/src/compile.rs +0 -897
  879. data/ext/cargo-vendor/wasmtime-20.0.2/src/config.rs +0 -2695
  880. data/ext/cargo-vendor/wasmtime-20.0.2/src/engine/serialization.rs +0 -849
  881. data/ext/cargo-vendor/wasmtime-20.0.2/src/engine.rs +0 -741
  882. data/ext/cargo-vendor/wasmtime-20.0.2/src/lib.rs +0 -303
  883. data/ext/cargo-vendor/wasmtime-20.0.2/src/profiling_agent/jitdump.rs +0 -66
  884. data/ext/cargo-vendor/wasmtime-20.0.2/src/profiling_agent/perfmap.rs +0 -47
  885. data/ext/cargo-vendor/wasmtime-20.0.2/src/profiling_agent/vtune.rs +0 -80
  886. data/ext/cargo-vendor/wasmtime-20.0.2/src/profiling_agent.rs +0 -105
  887. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/code.rs +0 -102
  888. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/code_memory.rs +0 -335
  889. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/component.rs +0 -661
  890. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/func/host.rs +0 -439
  891. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/func/options.rs +0 -554
  892. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/func/typed.rs +0 -2484
  893. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/func.rs +0 -747
  894. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/instance.rs +0 -804
  895. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/linker.rs +0 -786
  896. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/matching.rs +0 -217
  897. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/mod.rs +0 -756
  898. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/resource_table.rs +0 -350
  899. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/resources.rs +0 -1133
  900. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/storage.rs +0 -43
  901. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/store.rs +0 -28
  902. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/types.rs +0 -892
  903. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/component/values.rs +0 -978
  904. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/coredump.rs +0 -336
  905. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/debug.rs +0 -165
  906. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/externals/global.rs +0 -300
  907. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/externals/table.rs +0 -480
  908. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/externals.rs +0 -236
  909. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/func/typed.rs +0 -898
  910. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/func.rs +0 -2633
  911. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/disabled/anyref.rs +0 -46
  912. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/disabled/externref.rs +0 -50
  913. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/disabled/rooting.rs +0 -222
  914. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/enabled/anyref.rs +0 -472
  915. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/enabled/externref.rs +0 -644
  916. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/enabled/i31.rs +0 -345
  917. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc/enabled/rooting.rs +0 -1543
  918. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/gc.rs +0 -87
  919. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/instance.rs +0 -992
  920. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/instantiate.rs +0 -345
  921. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/limits.rs +0 -398
  922. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/linker.rs +0 -1521
  923. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/memory.rs +0 -999
  924. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/module/registry.rs +0 -354
  925. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/module.rs +0 -1295
  926. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/profiling.rs +0 -224
  927. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/resources.rs +0 -33
  928. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/signatures.rs +0 -216
  929. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/stack.rs +0 -73
  930. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/store/context.rs +0 -243
  931. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/store/data.rs +0 -289
  932. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/store/func_refs.rs +0 -85
  933. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/store.rs +0 -2796
  934. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trampoline/func.rs +0 -138
  935. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trampoline/global.rs +0 -68
  936. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trampoline/memory.rs +0 -286
  937. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trampoline/table.rs +0 -34
  938. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trampoline.rs +0 -77
  939. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/trap.rs +0 -641
  940. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/type_registry.rs +0 -632
  941. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/types/matching.rs +0 -367
  942. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/types.rs +0 -1378
  943. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/unix.rs +0 -39
  944. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/v128.rs +0 -131
  945. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/values.rs +0 -945
  946. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime/windows.rs +0 -34
  947. data/ext/cargo-vendor/wasmtime-20.0.2/src/runtime.rs +0 -112
  948. data/ext/cargo-vendor/wasmtime-asm-macros-20.0.2/.cargo-checksum.json +0 -1
  949. data/ext/cargo-vendor/wasmtime-asm-macros-20.0.2/Cargo.toml +0 -22
  950. data/ext/cargo-vendor/wasmtime-asm-macros-20.0.2/src/lib.rs +0 -81
  951. data/ext/cargo-vendor/wasmtime-cache-20.0.2/.cargo-checksum.json +0 -1
  952. data/ext/cargo-vendor/wasmtime-cache-20.0.2/Cargo.toml +0 -81
  953. data/ext/cargo-vendor/wasmtime-cache-20.0.2/src/lib.rs +0 -235
  954. data/ext/cargo-vendor/wasmtime-component-macro-20.0.2/.cargo-checksum.json +0 -1
  955. data/ext/cargo-vendor/wasmtime-component-macro-20.0.2/Cargo.toml +0 -67
  956. data/ext/cargo-vendor/wasmtime-component-macro-20.0.2/src/bindgen.rs +0 -390
  957. data/ext/cargo-vendor/wasmtime-component-macro-20.0.2/src/component.rs +0 -1295
  958. data/ext/cargo-vendor/wasmtime-component-macro-20.0.2/tests/codegen.rs +0 -342
  959. data/ext/cargo-vendor/wasmtime-component-util-20.0.2/.cargo-checksum.json +0 -1
  960. data/ext/cargo-vendor/wasmtime-component-util-20.0.2/Cargo.toml +0 -25
  961. data/ext/cargo-vendor/wasmtime-component-util-20.0.2/src/lib.rs +0 -180
  962. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/.cargo-checksum.json +0 -1
  963. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/Cargo.toml +0 -114
  964. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/compiler/component.rs +0 -962
  965. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/compiler.rs +0 -1369
  966. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/gc.rs +0 -239
  967. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/attr.rs +0 -345
  968. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/expression.rs +0 -1252
  969. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/line_program.rs +0 -282
  970. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/mod.rs +0 -126
  971. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/unit.rs +0 -522
  972. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/transform/utils.rs +0 -187
  973. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug/write_debuginfo.rs +0 -187
  974. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/debug.rs +0 -18
  975. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/func_environ.rs +0 -2672
  976. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/gc/enabled.rs +0 -649
  977. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/gc.rs +0 -198
  978. data/ext/cargo-vendor/wasmtime-cranelift-20.0.2/src/lib.rs +0 -505
  979. data/ext/cargo-vendor/wasmtime-environ-20.0.2/.cargo-checksum.json +0 -1
  980. data/ext/cargo-vendor/wasmtime-environ-20.0.2/Cargo.lock +0 -782
  981. data/ext/cargo-vendor/wasmtime-environ-20.0.2/Cargo.toml +0 -144
  982. data/ext/cargo-vendor/wasmtime-environ-20.0.2/examples/factc.rs +0 -205
  983. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/compile/address_map.rs +0 -72
  984. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/compile/mod.rs +0 -389
  985. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/compile/module_artifacts.rs +0 -300
  986. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/compile/trap_encoding.rs +0 -69
  987. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/compiler.rs +0 -19
  988. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/dfg.rs +0 -690
  989. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/info.rs +0 -672
  990. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/translate/adapt.rs +0 -459
  991. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/translate.rs +0 -965
  992. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/types/resources.rs +0 -234
  993. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component/types.rs +0 -1972
  994. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/component.rs +0 -103
  995. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/demangling.rs +0 -28
  996. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact/core_types.rs +0 -24
  997. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact/signature.rs +0 -135
  998. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact/trampoline.rs +0 -3233
  999. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact/transcode.rs +0 -89
  1000. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact/traps.rs +0 -115
  1001. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/fact.rs +0 -711
  1002. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/lib.rs +0 -70
  1003. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/module.rs +0 -780
  1004. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/module_artifacts.rs +0 -145
  1005. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/module_environ.rs +0 -1288
  1006. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/module_types.rs +0 -122
  1007. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/scopevec.rs +0 -78
  1008. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/stack_map.rs +0 -36
  1009. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/trap_encoding.rs +0 -188
  1010. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/tunables.rs +0 -158
  1011. data/ext/cargo-vendor/wasmtime-environ-20.0.2/src/vmoffsets.rs +0 -952
  1012. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/.cargo-checksum.json +0 -1
  1013. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/Cargo.toml +0 -63
  1014. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/build.rs +0 -26
  1015. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/src/lib.rs +0 -328
  1016. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/src/unix.rs +0 -265
  1017. data/ext/cargo-vendor/wasmtime-fiber-20.0.2/src/windows.rs +0 -166
  1018. data/ext/cargo-vendor/wasmtime-jit-debug-20.0.2/.cargo-checksum.json +0 -1
  1019. data/ext/cargo-vendor/wasmtime-jit-debug-20.0.2/Cargo.toml +0 -67
  1020. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/.cargo-checksum.json +0 -1
  1021. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/Cargo.toml +0 -47
  1022. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/src/lib.rs +0 -108
  1023. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/src/libc.rs +0 -149
  1024. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/src/miri.rs +0 -10
  1025. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.2/src/win.rs +0 -45
  1026. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/.cargo-checksum.json +0 -1
  1027. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/Cargo.toml +0 -147
  1028. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/build.rs +0 -24
  1029. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/arch/aarch64.rs +0 -76
  1030. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/arch/x86_64.rs +0 -41
  1031. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/async_yield.rs +0 -35
  1032. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/component/libcalls.rs +0 -571
  1033. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/component/resources.rs +0 -351
  1034. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/component.rs +0 -860
  1035. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/cow.rs +0 -888
  1036. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/debug_builtins.rs +0 -59
  1037. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/export.rs +0 -108
  1038. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/disabled.rs +0 -23
  1039. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/enabled/drc.rs +0 -963
  1040. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/enabled/externref.rs +0 -115
  1041. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/enabled/free_list.rs +0 -767
  1042. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/enabled.rs +0 -18
  1043. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/gc_ref.rs +0 -486
  1044. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/gc_runtime.rs +0 -503
  1045. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/host_data.rs +0 -81
  1046. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc/i31.rs +0 -86
  1047. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/gc.rs +0 -244
  1048. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/imports.rs +0 -27
  1049. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/on_demand.rs +0 -217
  1050. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling/gc_heap_pool.rs +0 -92
  1051. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling/index_allocator.rs +0 -704
  1052. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling/memory_pool.rs +0 -996
  1053. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling/stack_pool.rs +0 -242
  1054. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling/table_pool.rs +0 -231
  1055. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator/pooling.rs +0 -699
  1056. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance/allocator.rs +0 -780
  1057. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/instance.rs +0 -1566
  1058. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/lib.rs +0 -289
  1059. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/libcalls.rs +0 -777
  1060. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/memory.rs +0 -751
  1061. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mmap.rs +0 -214
  1062. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mmap_vec.rs +0 -201
  1063. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/module_id.rs +0 -43
  1064. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mpk/enabled.rs +0 -213
  1065. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mpk/mod.rs +0 -54
  1066. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mpk/pkru.rs +0 -104
  1067. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/mpk/sys.rs +0 -113
  1068. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/send_sync_ptr.rs +0 -106
  1069. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/store_box.rs +0 -35
  1070. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/custom/capi.rs +0 -189
  1071. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/custom/mmap.rs +0 -111
  1072. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/custom/mod.rs +0 -24
  1073. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/custom/traphandlers.rs +0 -55
  1074. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/custom/vm.rs +0 -108
  1075. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/miri/mmap.rs +0 -94
  1076. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/miri/mod.rs +0 -10
  1077. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/miri/traphandlers.rs +0 -47
  1078. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/mod.rs +0 -33
  1079. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/machports.rs +0 -416
  1080. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/mmap.rs +0 -151
  1081. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/mod.rs +0 -21
  1082. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/signals.rs +0 -401
  1083. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/unwind.rs +0 -149
  1084. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/unix/vm.rs +0 -208
  1085. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/windows/mmap.rs +0 -216
  1086. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/windows/mod.rs +0 -6
  1087. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/sys/windows/traphandlers.rs +0 -104
  1088. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/table.rs +0 -851
  1089. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/threads/parking_spot.rs +0 -621
  1090. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/threads/shared_memory.rs +0 -230
  1091. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/threads/shared_memory_disabled.rs +0 -100
  1092. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/traphandlers/backtrace.rs +0 -265
  1093. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/traphandlers/coredump_disabled.rs +0 -16
  1094. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/traphandlers/coredump_enabled.rs +0 -40
  1095. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/traphandlers.rs +0 -785
  1096. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/vmcontext/vm_host_func_context.rs +0 -137
  1097. data/ext/cargo-vendor/wasmtime-runtime-20.0.2/src/vmcontext.rs +0 -1293
  1098. data/ext/cargo-vendor/wasmtime-slab-20.0.2/.cargo-checksum.json +0 -1
  1099. data/ext/cargo-vendor/wasmtime-slab-20.0.2/Cargo.toml +0 -21
  1100. data/ext/cargo-vendor/wasmtime-slab-20.0.2/src/lib.rs +0 -493
  1101. data/ext/cargo-vendor/wasmtime-types-20.0.2/.cargo-checksum.json +0 -1
  1102. data/ext/cargo-vendor/wasmtime-types-20.0.2/Cargo.toml +0 -36
  1103. data/ext/cargo-vendor/wasmtime-types-20.0.2/src/error.rs +0 -59
  1104. data/ext/cargo-vendor/wasmtime-types-20.0.2/src/lib.rs +0 -832
  1105. data/ext/cargo-vendor/wasmtime-versioned-export-macros-20.0.2/.cargo-checksum.json +0 -1
  1106. data/ext/cargo-vendor/wasmtime-versioned-export-macros-20.0.2/Cargo.toml +0 -32
  1107. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/.cargo-checksum.json +0 -1
  1108. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/Cargo.toml +0 -194
  1109. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/bindings.rs +0 -283
  1110. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/ctx.rs +0 -659
  1111. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/filesystem.rs +0 -433
  1112. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/lib.rs +0 -404
  1113. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/preview0.rs +0 -879
  1114. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/src/preview1.rs +0 -2601
  1115. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/tests/all/api.rs +0 -194
  1116. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/tests/all/async_.rs +0 -397
  1117. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/tests/all/main.rs +0 -91
  1118. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/tests/all/preview1.rs +0 -251
  1119. data/ext/cargo-vendor/wasmtime-wasi-20.0.2/tests/all/sync.rs +0 -333
  1120. data/ext/cargo-vendor/wasmtime-winch-20.0.2/.cargo-checksum.json +0 -1
  1121. data/ext/cargo-vendor/wasmtime-winch-20.0.2/Cargo.toml +0 -81
  1122. data/ext/cargo-vendor/wasmtime-winch-20.0.2/src/compiler.rs +0 -257
  1123. data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.2/.cargo-checksum.json +0 -1
  1124. data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.2/Cargo.toml +0 -41
  1125. data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.2/src/lib.rs +0 -2213
  1126. data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.2/src/rust.rs +0 -421
  1127. data/ext/cargo-vendor/wiggle-20.0.2/.cargo-checksum.json +0 -1
  1128. data/ext/cargo-vendor/wiggle-20.0.2/Cargo.toml +0 -122
  1129. data/ext/cargo-vendor/wiggle-generate-20.0.2/.cargo-checksum.json +0 -1
  1130. data/ext/cargo-vendor/wiggle-generate-20.0.2/Cargo.toml +0 -65
  1131. data/ext/cargo-vendor/wiggle-generate-20.0.2/LICENSE +0 -220
  1132. data/ext/cargo-vendor/wiggle-macro-20.0.2/.cargo-checksum.json +0 -1
  1133. data/ext/cargo-vendor/wiggle-macro-20.0.2/Cargo.toml +0 -55
  1134. data/ext/cargo-vendor/wiggle-macro-20.0.2/LICENSE +0 -220
  1135. data/ext/cargo-vendor/winch-codegen-0.18.2/.cargo-checksum.json +0 -1
  1136. data/ext/cargo-vendor/winch-codegen-0.18.2/Cargo.toml +0 -81
  1137. data/ext/cargo-vendor/winch-codegen-0.18.2/src/codegen/context.rs +0 -534
  1138. data/ext/cargo-vendor/winch-codegen-0.18.2/src/codegen/env.rs +0 -435
  1139. data/ext/cargo-vendor/winch-codegen-0.18.2/src/codegen/mod.rs +0 -756
  1140. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/abi.rs +0 -291
  1141. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/address.rs +0 -144
  1142. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/asm.rs +0 -252
  1143. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/masm.rs +0 -573
  1144. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/mod.rs +0 -154
  1145. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/aarch64/regs.rs +0 -149
  1146. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/reg.rs +0 -86
  1147. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/x64/asm.rs +0 -1423
  1148. data/ext/cargo-vendor/winch-codegen-0.18.2/src/isa/x64/masm.rs +0 -1256
  1149. data/ext/cargo-vendor/winch-codegen-0.18.2/src/masm.rs +0 -947
  1150. data/ext/cargo-vendor/winch-codegen-0.18.2/src/regalloc.rs +0 -65
  1151. data/ext/cargo-vendor/winch-codegen-0.18.2/src/regset.rs +0 -194
  1152. data/ext/cargo-vendor/winch-codegen-0.18.2/src/visitor.rs +0 -2149
  1153. data/ext/cargo-vendor/wit-parser-0.202.0/.cargo-checksum.json +0 -1
  1154. data/ext/cargo-vendor/wit-parser-0.202.0/Cargo.toml +0 -101
  1155. data/ext/cargo-vendor/wit-parser-0.202.0/src/ast/resolve.rs +0 -1443
  1156. data/ext/cargo-vendor/wit-parser-0.202.0/src/decoding.rs +0 -1764
  1157. data/ext/cargo-vendor/wit-parser-0.202.0/src/lib.rs +0 -765
  1158. data/ext/cargo-vendor/wit-parser-0.202.0/src/live.rs +0 -111
  1159. data/ext/cargo-vendor/wit-parser-0.202.0/src/resolve.rs +0 -2240
  1160. data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/resources-multiple-returns-borrow.wit.json +0 -74
  1161. data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/resources-return-borrow.wit.json +0 -69
  1162. data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/world-top-level-resources.wit +0 -24
  1163. data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/world-top-level-resources.wit.json +0 -240
  1164. data/ext/src/ruby_api/config/tracked_memory_creator.rs +0 -82
  1165. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/LICENSE +0 -0
  1166. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/README.md +0 -0
  1167. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/lib.rs +0 -0
  1168. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/map.rs +0 -0
  1169. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/node.rs +0 -0
  1170. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/path.rs +0 -0
  1171. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/pool.rs +0 -0
  1172. /data/ext/cargo-vendor/{cranelift-bforest-0.107.2 → cranelift-bforest-0.108.1}/src/set.rs +0 -0
  1173. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/LICENSE +0 -0
  1174. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/README.md +0 -0
  1175. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/benches/x64-evex-encoding.rs +0 -0
  1176. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/binemit/mod.rs +0 -0
  1177. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/binemit/stack_map.rs +0 -0
  1178. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/bitset.rs +0 -0
  1179. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/cfg_printer.rs +0 -0
  1180. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/constant_hash.rs +0 -0
  1181. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/cursor.rs +0 -0
  1182. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/data_value.rs +0 -0
  1183. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/dbg.rs +0 -0
  1184. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/dce.rs +0 -0
  1185. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/dominator_tree.rs +0 -0
  1186. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/egraph/cost.rs +0 -0
  1187. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/flowgraph.rs +0 -0
  1188. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/inst_predicates.rs +0 -0
  1189. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/atomic_rmw_op.rs +0 -0
  1190. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/builder.rs +0 -0
  1191. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/condcodes.rs +0 -0
  1192. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/constant.rs +0 -0
  1193. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/dfg.rs +0 -0
  1194. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/dynamic_type.rs +0 -0
  1195. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/entities.rs +0 -0
  1196. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/extfunc.rs +0 -0
  1197. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/extname.rs +0 -0
  1198. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/function.rs +0 -0
  1199. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/globalvalue.rs +0 -0
  1200. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/immediates.rs +0 -0
  1201. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/jumptable.rs +0 -0
  1202. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/known_symbol.rs +0 -0
  1203. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/layout.rs +0 -0
  1204. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/libcall.rs +0 -0
  1205. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/memflags.rs +0 -0
  1206. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/memtype.rs +0 -0
  1207. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/mod.rs +0 -0
  1208. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/pcc.rs +0 -0
  1209. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/progpoint.rs +0 -0
  1210. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/sourceloc.rs +0 -0
  1211. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/stackslot.rs +0 -0
  1212. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/trapcode.rs +0 -0
  1213. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/ir/types.rs +0 -0
  1214. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/inst/unwind/systemv.rs +0 -0
  1215. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/inst/unwind.rs +0 -0
  1216. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/inst_neon.isle +0 -0
  1217. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
  1218. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/lower.isle +0 -0
  1219. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/lower.rs +0 -0
  1220. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/lower_dynamic_neon.isle +0 -0
  1221. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/mod.rs +0 -0
  1222. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/aarch64/settings.rs +0 -0
  1223. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/call_conv.rs +0 -0
  1224. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/inst/encode.rs +0 -0
  1225. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/inst/imms.rs +0 -0
  1226. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/inst/unwind/systemv.rs +0 -0
  1227. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/inst/unwind.rs +0 -0
  1228. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/inst_vector.isle +0 -0
  1229. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
  1230. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/lower.rs +0 -0
  1231. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/mod.rs +0 -0
  1232. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/riscv64/settings.rs +0 -0
  1233. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/inst/emit_tests.rs +0 -0
  1234. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/inst/unwind/systemv.rs +0 -0
  1235. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/inst/unwind.rs +0 -0
  1236. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/inst.isle +0 -0
  1237. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
  1238. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/lower/isle.rs +0 -0
  1239. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/lower.isle +0 -0
  1240. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/lower.rs +0 -0
  1241. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/mod.rs +0 -0
  1242. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/s390x/settings.rs +0 -0
  1243. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/unwind/systemv.rs +0 -0
  1244. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/unwind/winx64.rs +0 -0
  1245. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/unwind.rs +0 -0
  1246. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/encoding/evex.rs +0 -0
  1247. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/encoding/mod.rs +0 -0
  1248. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/encoding/rex.rs +0 -0
  1249. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/encoding/vex.rs +0 -0
  1250. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/inst/emit_state.rs +0 -0
  1251. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/inst/unwind/systemv.rs +0 -0
  1252. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/inst/unwind/winx64.rs +0 -0
  1253. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/inst/unwind.rs +0 -0
  1254. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/lower/isle/generated_code.rs +0 -0
  1255. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/mod.rs +0 -0
  1256. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isa/x64/settings.rs +0 -0
  1257. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/isle_prelude.rs +0 -0
  1258. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/iterators.rs +0 -0
  1259. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/legalizer/globalvalue.rs +0 -0
  1260. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/legalizer/mod.rs +0 -0
  1261. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/loop_analysis.rs +0 -0
  1262. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/machinst/buffer.rs +0 -0
  1263. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/machinst/compile.rs +0 -0
  1264. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/machinst/helpers.rs +0 -0
  1265. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/machinst/inst_common.rs +0 -0
  1266. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/machinst/pcc.rs +0 -0
  1267. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/README.md +0 -0
  1268. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/bitops.isle +0 -0
  1269. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/cprop.isle +0 -0
  1270. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/extends.isle +0 -0
  1271. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/generated_code.rs +0 -0
  1272. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/remat.isle +0 -0
  1273. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/selects.isle +0 -0
  1274. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/shifts.isle +0 -0
  1275. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/spaceship.isle +0 -0
  1276. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/spectre.isle +0 -0
  1277. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts/vector.isle +0 -0
  1278. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/opts.rs +0 -0
  1279. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/prelude.isle +0 -0
  1280. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/prelude_lower.isle +0 -0
  1281. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/prelude_opt.isle +0 -0
  1282. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/print_errors.rs +0 -0
  1283. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/result.rs +0 -0
  1284. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/souper_harvest.rs +0 -0
  1285. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/timing.rs +0 -0
  1286. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/unionfind.rs +0 -0
  1287. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/unreachable_code.rs +0 -0
  1288. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/value_label.rs +0 -0
  1289. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/verifier/mod.rs +0 -0
  1290. /data/ext/cargo-vendor/{cranelift-codegen-0.107.2 → cranelift-codegen-0.108.1}/src/write.rs +0 -0
  1291. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/LICENSE +0 -0
  1292. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/README.md +0 -0
  1293. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/formats.rs +0 -0
  1294. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/instructions.rs +0 -0
  1295. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/isa.rs +0 -0
  1296. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/mod.rs +0 -0
  1297. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/operands.rs +0 -0
  1298. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/settings.rs +0 -0
  1299. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/types.rs +0 -0
  1300. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/cdsl/typevar.rs +0 -0
  1301. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/constant_hash.rs +0 -0
  1302. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/error.rs +0 -0
  1303. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/isa/arm64.rs +0 -0
  1304. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/isa/mod.rs +0 -0
  1305. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/isa/s390x.rs +0 -0
  1306. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/entities.rs +0 -0
  1307. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/formats.rs +0 -0
  1308. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/immediates.rs +0 -0
  1309. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/instructions.rs +0 -0
  1310. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/mod.rs +0 -0
  1311. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/shared/types.rs +0 -0
  1312. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.107.2 → cranelift-codegen-meta-0.108.1}/src/unique_table.rs +0 -0
  1313. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.107.2 → cranelift-codegen-shared-0.108.1}/LICENSE +0 -0
  1314. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.107.2 → cranelift-codegen-shared-0.108.1}/README.md +0 -0
  1315. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.107.2 → cranelift-codegen-shared-0.108.1}/src/constant_hash.rs +0 -0
  1316. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.107.2 → cranelift-codegen-shared-0.108.1}/src/constants.rs +0 -0
  1317. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.107.2 → cranelift-codegen-shared-0.108.1}/src/lib.rs +0 -0
  1318. /data/ext/cargo-vendor/{cranelift-control-0.107.2 → cranelift-control-0.108.1}/LICENSE +0 -0
  1319. /data/ext/cargo-vendor/{cranelift-control-0.107.2 → cranelift-control-0.108.1}/README.md +0 -0
  1320. /data/ext/cargo-vendor/{cranelift-control-0.107.2 → cranelift-control-0.108.1}/src/chaos.rs +0 -0
  1321. /data/ext/cargo-vendor/{cranelift-control-0.107.2 → cranelift-control-0.108.1}/src/lib.rs +0 -0
  1322. /data/ext/cargo-vendor/{cranelift-control-0.107.2 → cranelift-control-0.108.1}/src/zero_sized.rs +0 -0
  1323. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/LICENSE +0 -0
  1324. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/README.md +0 -0
  1325. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/boxed_slice.rs +0 -0
  1326. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/iter.rs +0 -0
  1327. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/keys.rs +0 -0
  1328. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/list.rs +0 -0
  1329. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/map.rs +0 -0
  1330. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/packed_option.rs +0 -0
  1331. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/primary.rs +0 -0
  1332. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/set.rs +0 -0
  1333. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/sparse.rs +0 -0
  1334. /data/ext/cargo-vendor/{cranelift-entity-0.107.2 → cranelift-entity-0.108.1}/src/unsigned.rs +0 -0
  1335. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/LICENSE +0 -0
  1336. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/README.md +0 -0
  1337. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/src/frontend.rs +0 -0
  1338. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/src/lib.rs +0 -0
  1339. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/src/ssa.rs +0 -0
  1340. /data/ext/cargo-vendor/{cranelift-frontend-0.107.2 → cranelift-frontend-0.108.1}/src/variable.rs +0 -0
  1341. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/README.md +0 -0
  1342. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/build.rs +0 -0
  1343. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/bad_converters.isle +0 -0
  1344. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
  1345. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
  1346. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/error1.isle +0 -0
  1347. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/extra_parens.isle +0 -0
  1348. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/impure_expression.isle +0 -0
  1349. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/impure_rhs.isle +0 -0
  1350. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/multi_internal_etor.isle +0 -0
  1351. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/fail/multi_prio.isle +0 -0
  1352. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/borrows.isle +0 -0
  1353. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/borrows_main.rs +0 -0
  1354. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/iflets.isle +0 -0
  1355. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/iflets_main.rs +0 -0
  1356. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/multi_constructor.isle +0 -0
  1357. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/multi_constructor_main.rs +0 -0
  1358. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/multi_extractor.isle +0 -0
  1359. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/multi_extractor_main.rs +0 -0
  1360. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/test.isle +0 -0
  1361. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/link/test_main.rs +0 -0
  1362. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/bound_var.isle +0 -0
  1363. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/construct_and_extract.isle +0 -0
  1364. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/conversions.isle +0 -0
  1365. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/conversions_extern.isle +0 -0
  1366. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/let.isle +0 -0
  1367. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/nodebug.isle +0 -0
  1368. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/prio_trie_bug.isle +0 -0
  1369. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/test2.isle +0 -0
  1370. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/test3.isle +0 -0
  1371. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/test4.isle +0 -0
  1372. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/pass/tutorial.isle +0 -0
  1373. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/run/iconst.isle +0 -0
  1374. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/run/iconst_main.rs +0 -0
  1375. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/run/let_shadowing.isle +0 -0
  1376. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/isle_examples/run/let_shadowing_main.rs +0 -0
  1377. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/ast.rs +0 -0
  1378. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/compile.rs +0 -0
  1379. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/error.rs +0 -0
  1380. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/lexer.rs +0 -0
  1381. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/log.rs +0 -0
  1382. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/overlap.rs +0 -0
  1383. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/src/parser.rs +0 -0
  1384. /data/ext/cargo-vendor/{cranelift-isle-0.107.2 → cranelift-isle-0.108.1}/tests/run_tests.rs +0 -0
  1385. /data/ext/cargo-vendor/{cranelift-native-0.107.2 → cranelift-native-0.108.1}/LICENSE +0 -0
  1386. /data/ext/cargo-vendor/{cranelift-native-0.107.2 → cranelift-native-0.108.1}/README.md +0 -0
  1387. /data/ext/cargo-vendor/{cranelift-native-0.107.2 → cranelift-native-0.108.1}/src/lib.rs +0 -0
  1388. /data/ext/cargo-vendor/{cranelift-native-0.107.2 → cranelift-native-0.108.1}/src/riscv.rs +0 -0
  1389. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/LICENSE +0 -0
  1390. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/README.md +0 -0
  1391. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/code_translator/bounds_checks.rs +0 -0
  1392. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/environ/mod.rs +0 -0
  1393. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/func_translator.rs +0 -0
  1394. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/heap.rs +0 -0
  1395. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/lib.rs +0 -0
  1396. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/module_translator.rs +0 -0
  1397. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/state.rs +0 -0
  1398. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/table.rs +0 -0
  1399. /data/ext/cargo-vendor/{cranelift-wasm-0.107.2 → cranelift-wasm-0.108.1}/src/translation_utils.rs +0 -0
  1400. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/README.md +0 -0
  1401. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/src/clocks.rs +0 -0
  1402. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/src/lib.rs +0 -0
  1403. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/src/noop_scheduler.rs +0 -0
  1404. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/tests/clocks.rs +0 -0
  1405. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/tests/common/mod.rs +0 -0
  1406. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/tests/random.rs +0 -0
  1407. /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.21 → deterministic-wasi-ctx-0.1.22}/tests/scheduler.rs +0 -0
  1408. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/LICENSE-APACHE +0 -0
  1409. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/LICENSE-MIT +0 -0
  1410. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/bin/release.sh +0 -0
  1411. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/build/features.rs +0 -0
  1412. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/build/version.rs +0 -0
  1413. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/readme.md +0 -0
  1414. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/hidden.rs +0 -0
  1415. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/lib.rs +0 -0
  1416. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/macros.rs +0 -0
  1417. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/memory.rs +0 -0
  1418. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/ruby_abi_version.rs +0 -0
  1419. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/special_consts.rs +0 -0
  1420. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/compiled.c +0 -0
  1421. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/compiled.rs +0 -0
  1422. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_2_6.rs +0 -0
  1423. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_2_7.rs +0 -0
  1424. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_3_0.rs +0 -0
  1425. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_3_1.rs +0 -0
  1426. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_3_2.rs +0 -0
  1427. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api/ruby_3_3.rs +0 -0
  1428. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/stable_api.rs +0 -0
  1429. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/symbol.rs +0 -0
  1430. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/utils.rs +0 -0
  1431. /data/ext/cargo-vendor/{rb-sys-0.9.97 → rb-sys-0.9.100}/src/value_type.rs +0 -0
  1432. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/LICENSE-APACHE +0 -0
  1433. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/LICENSE-MIT +0 -0
  1434. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/bindings/sanitizer.rs +0 -0
  1435. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/bindings/wrapper.h +0 -0
  1436. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/lib.rs +0 -0
  1437. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/rb_config/flags.rs +0 -0
  1438. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/rb_config/library.rs +0 -0
  1439. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/rb_config/search_path.rs +0 -0
  1440. /data/ext/cargo-vendor/{rb-sys-build-0.9.97 → rb-sys-build-0.9.100}/src/rb_config.rs +0 -0
  1441. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/LICENSE +0 -0
  1442. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/README.md +0 -0
  1443. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/clocks.rs +0 -0
  1444. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/ctx.rs +0 -0
  1445. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/dir.rs +0 -0
  1446. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/error.rs +0 -0
  1447. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/file.rs +0 -0
  1448. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/lib.rs +0 -0
  1449. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/pipe.rs +0 -0
  1450. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/random.rs +0 -0
  1451. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sched/subscription.rs +0 -0
  1452. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sched.rs +0 -0
  1453. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/snapshots/mod.rs +0 -0
  1454. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/snapshots/preview_0.rs +0 -0
  1455. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/snapshots/preview_1/error.rs +0 -0
  1456. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/snapshots/preview_1.rs +0 -0
  1457. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/string_array.rs +0 -0
  1458. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/clocks.rs +0 -0
  1459. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/dir.rs +0 -0
  1460. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/file.rs +0 -0
  1461. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/mod.rs +0 -0
  1462. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/net.rs +0 -0
  1463. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/sched/unix.rs +0 -0
  1464. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/sched/windows.rs +0 -0
  1465. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/sched.rs +0 -0
  1466. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/sync/stdio.rs +0 -0
  1467. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/table.rs +0 -0
  1468. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/dir.rs +0 -0
  1469. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/file.rs +0 -0
  1470. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/mod.rs +0 -0
  1471. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/net.rs +0 -0
  1472. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/sched/unix.rs +0 -0
  1473. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/sched/windows.rs +0 -0
  1474. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/sched.rs +0 -0
  1475. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/src/tokio/stdio.rs +0 -0
  1476. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/witx/preview0/typenames.witx +0 -0
  1477. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/witx/preview0/wasi_unstable.witx +0 -0
  1478. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/witx/preview1/typenames.witx +0 -0
  1479. /data/ext/cargo-vendor/{wasi-common-20.0.2 → wasi-common-21.0.1}/witx/preview1/wasi_snapshot_preview1.witx +0 -0
  1480. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/LICENSE +0 -0
  1481. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/README.md +0 -0
  1482. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/aliases.rs +0 -0
  1483. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/builder.rs +0 -0
  1484. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/canonicals.rs +0 -0
  1485. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/components.rs +0 -0
  1486. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/exports.rs +0 -0
  1487. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/imports.rs +0 -0
  1488. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/instances.rs +0 -0
  1489. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/modules.rs +0 -0
  1490. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/names.rs +0 -0
  1491. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/start.rs +0 -0
  1492. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component/types.rs +0 -0
  1493. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/component.rs +0 -0
  1494. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/custom.rs +0 -0
  1495. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/dump.rs +0 -0
  1496. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/exports.rs +0 -0
  1497. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/functions.rs +0 -0
  1498. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/linking.rs +0 -0
  1499. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/names.rs +0 -0
  1500. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/producers.rs +0 -0
  1501. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/start.rs +0 -0
  1502. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core/tags.rs +0 -0
  1503. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/core.rs +0 -0
  1504. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/lib.rs +0 -0
  1505. /data/ext/cargo-vendor/{wasm-encoder-0.202.0 → wasm-encoder-0.207.0}/src/raw.rs +0 -0
  1506. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/README.md +0 -0
  1507. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/benches/benchmark.rs +0 -0
  1508. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/examples/simple.rs +0 -0
  1509. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/component/aliases.rs +0 -0
  1510. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/component/exports.rs +0 -0
  1511. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/component/imports.rs +0 -0
  1512. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/component.rs +0 -0
  1513. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/branch_hinting.rs +0 -0
  1514. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/exports.rs +0 -0
  1515. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/functions.rs +0 -0
  1516. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/imports.rs +0 -0
  1517. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/init.rs +0 -0
  1518. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/producers.rs +0 -0
  1519. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/src/readers/core/tags.rs +0 -0
  1520. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmparser-0.207.0}/tests/big-module.rs +0 -0
  1521. /data/ext/cargo-vendor/{wasmparser-0.202.0 → wasmprinter-0.207.0}/LICENSE +0 -0
  1522. /data/ext/cargo-vendor/{wasmprinter-0.202.0 → wasmprinter-0.207.0}/README.md +0 -0
  1523. /data/ext/cargo-vendor/{wasmprinter-0.202.0 → wasmtime-21.0.1}/LICENSE +0 -0
  1524. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-21.0.1}/README.md +0 -0
  1525. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/proptest-regressions → wasmtime-21.0.1/proptest-regressions/runtime/vm}/instance/allocator/pooling/memory_pool.txt +0 -0
  1526. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-21.0.1}/src/runtime/gc/disabled/i31.rs +0 -0
  1527. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-21.0.1}/src/runtime/gc/disabled.rs +0 -0
  1528. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-21.0.1}/src/runtime/gc/enabled.rs +0 -0
  1529. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-21.0.1}/src/runtime/uninhabited.rs +0 -0
  1530. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/arch/mod.rs +0 -0
  1531. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/arch/riscv64.rs +0 -0
  1532. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/arch/s390x.S +0 -0
  1533. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/arch/s390x.rs +0 -0
  1534. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/helpers.c +0 -0
  1535. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/mpk/disabled.rs +0 -0
  1536. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/custom/unwind.rs +0 -0
  1537. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/miri/unwind.rs +0 -0
  1538. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/miri/vm.rs +0 -0
  1539. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/unix/macos_traphandlers.rs +0 -0
  1540. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/windows/unwind.rs +0 -0
  1541. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/sys/windows/vm.rs +0 -0
  1542. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2/src → wasmtime-21.0.1/src/runtime/vm}/threads/mod.rs +0 -0
  1543. /data/ext/cargo-vendor/{wasmtime-20.0.2 → wasmtime-cache-21.0.1}/LICENSE +0 -0
  1544. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/build.rs +0 -0
  1545. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/config/tests.rs +0 -0
  1546. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/config.rs +0 -0
  1547. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/tests.rs +0 -0
  1548. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/worker/tests/system_time_stub.rs +0 -0
  1549. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/worker/tests.rs +0 -0
  1550. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/src/worker.rs +0 -0
  1551. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cache-21.0.1}/tests/cache_write_default_config.rs +0 -0
  1552. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/build.rs +0 -0
  1553. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/src/lib.rs +0 -0
  1554. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/char.wit +0 -0
  1555. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/conventions.wit +0 -0
  1556. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/dead-code.wit +0 -0
  1557. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/direct-import.wit +0 -0
  1558. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/empty.wit +0 -0
  1559. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/flags.wit +0 -0
  1560. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/floats.wit +0 -0
  1561. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/function-new.wit +0 -0
  1562. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/integers.wit +0 -0
  1563. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/lists.wit +0 -0
  1564. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/many-arguments.wit +0 -0
  1565. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/multi-return.wit +0 -0
  1566. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/multiversion/deps/v1/root.wit +0 -0
  1567. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/multiversion/deps/v2/root.wit +0 -0
  1568. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/multiversion/root.wit +0 -0
  1569. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/records.wit +0 -0
  1570. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/rename.wit +0 -0
  1571. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/resources-export.wit +0 -0
  1572. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/resources-import.wit +0 -0
  1573. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/share-types.wit +0 -0
  1574. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/simple-functions.wit +0 -0
  1575. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/simple-lists.wit +0 -0
  1576. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/simple-wasi.wit +0 -0
  1577. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/small-anonymous.wit +0 -0
  1578. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/smoke-default.wit +0 -0
  1579. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/smoke-export.wit +0 -0
  1580. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/smoke.wit +0 -0
  1581. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/strings.wit +0 -0
  1582. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/unversioned-foo.wit +0 -0
  1583. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/use-paths.wit +0 -0
  1584. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/variants.wit +0 -0
  1585. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/wat.wit +0 -0
  1586. /data/ext/cargo-vendor/{wasmtime-component-macro-20.0.2 → wasmtime-component-macro-21.0.1}/tests/codegen/worlds-with-types.wit +0 -0
  1587. /data/ext/cargo-vendor/{wasmtime-cache-20.0.2 → wasmtime-cranelift-21.0.1}/LICENSE +0 -0
  1588. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/SECURITY.md +0 -0
  1589. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/builder.rs +0 -0
  1590. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/compiled_function.rs +0 -0
  1591. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/debug/transform/address_transform.rs +0 -0
  1592. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/debug/transform/range_info_builder.rs +0 -0
  1593. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/debug/transform/refs.rs +0 -0
  1594. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/debug/transform/simulate.rs +0 -0
  1595. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/gc/disabled.rs +0 -0
  1596. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/isa_builder.rs +0 -0
  1597. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-cranelift-21.0.1}/src/obj.rs +0 -0
  1598. /data/ext/cargo-vendor/{wasmtime-cranelift-20.0.2 → wasmtime-environ-21.0.1}/LICENSE +0 -0
  1599. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/address_map.rs +0 -0
  1600. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/builtin.rs +0 -0
  1601. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/component/artifacts.rs +0 -0
  1602. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/component/translate/inline.rs +0 -0
  1603. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/component/vmcomponent_offsets.rs +0 -0
  1604. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/gc.rs +0 -0
  1605. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/obj.rs +0 -0
  1606. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-environ-21.0.1}/src/ref_bits.rs +0 -0
  1607. /data/ext/cargo-vendor/{wasmtime-environ-20.0.2 → wasmtime-fiber-21.0.1}/LICENSE +0 -0
  1608. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/aarch64.rs +0 -0
  1609. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/arm.rs +0 -0
  1610. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/riscv64.rs +0 -0
  1611. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/s390x.S +0 -0
  1612. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/x86.rs +0 -0
  1613. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/unix/x86_64.rs +0 -0
  1614. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-fiber-21.0.1}/src/windows.c +0 -0
  1615. /data/ext/cargo-vendor/{wasmtime-jit-debug-20.0.2 → wasmtime-jit-debug-21.0.1}/README.md +0 -0
  1616. /data/ext/cargo-vendor/{wasmtime-jit-debug-20.0.2 → wasmtime-jit-debug-21.0.1}/src/gdb_jit_int.rs +0 -0
  1617. /data/ext/cargo-vendor/{wasmtime-jit-debug-20.0.2 → wasmtime-jit-debug-21.0.1}/src/lib.rs +0 -0
  1618. /data/ext/cargo-vendor/{wasmtime-jit-debug-20.0.2 → wasmtime-jit-debug-21.0.1}/src/perf_jitdump.rs +0 -0
  1619. /data/ext/cargo-vendor/{wasmtime-fiber-20.0.2 → wasmtime-types-21.0.1}/LICENSE +0 -0
  1620. /data/ext/cargo-vendor/{wasmtime-versioned-export-macros-20.0.2 → wasmtime-versioned-export-macros-21.0.1}/src/lib.rs +0 -0
  1621. /data/ext/cargo-vendor/{wasmtime-runtime-20.0.2 → wasmtime-wasi-21.0.1}/LICENSE +0 -0
  1622. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/README.md +0 -0
  1623. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/clocks/host.rs +0 -0
  1624. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/clocks.rs +0 -0
  1625. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/error.rs +0 -0
  1626. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/clocks.rs +0 -0
  1627. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/env.rs +0 -0
  1628. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/exit.rs +0 -0
  1629. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/filesystem/sync.rs +0 -0
  1630. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/filesystem.rs +0 -0
  1631. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/instance_network.rs +0 -0
  1632. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/io.rs +0 -0
  1633. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/mod.rs +0 -0
  1634. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/network.rs +0 -0
  1635. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/random.rs +0 -0
  1636. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/tcp.rs +0 -0
  1637. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/tcp_create_socket.rs +0 -0
  1638. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/udp.rs +0 -0
  1639. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/host/udp_create_socket.rs +0 -0
  1640. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/ip_name_lookup.rs +0 -0
  1641. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/network.rs +0 -0
  1642. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/pipe.rs +0 -0
  1643. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/poll.rs +0 -0
  1644. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/random.rs +0 -0
  1645. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/runtime.rs +0 -0
  1646. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/stdio/worker_thread_stdin.rs +0 -0
  1647. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/stdio.rs +0 -0
  1648. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/stream.rs +0 -0
  1649. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/tcp.rs +0 -0
  1650. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/udp.rs +0 -0
  1651. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/src/write_stream.rs +0 -0
  1652. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/tests/process_stdin.rs +0 -0
  1653. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/command-extended.wit +0 -0
  1654. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/command.wit +0 -0
  1655. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/environment.wit +0 -0
  1656. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/exit.wit +0 -0
  1657. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/imports.wit +0 -0
  1658. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/run.wit +0 -0
  1659. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/stdio.wit +0 -0
  1660. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/cli/terminal.wit +0 -0
  1661. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/clocks/monotonic-clock.wit +0 -0
  1662. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/clocks/wall-clock.wit +0 -0
  1663. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/clocks/world.wit +0 -0
  1664. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/filesystem/preopens.wit +0 -0
  1665. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/filesystem/types.wit +0 -0
  1666. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/filesystem/world.wit +0 -0
  1667. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/http/handler.wit +0 -0
  1668. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/http/proxy.wit +0 -0
  1669. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/http/types.wit +0 -0
  1670. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/io/error.wit +0 -0
  1671. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/io/poll.wit +0 -0
  1672. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/io/streams.wit +0 -0
  1673. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/io/world.wit +0 -0
  1674. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/random/insecure-seed.wit +0 -0
  1675. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/random/insecure.wit +0 -0
  1676. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/random/random.wit +0 -0
  1677. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/random/world.wit +0 -0
  1678. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/instance-network.wit +0 -0
  1679. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/ip-name-lookup.wit +0 -0
  1680. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/network.wit +0 -0
  1681. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/tcp-create-socket.wit +0 -0
  1682. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/tcp.wit +0 -0
  1683. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/udp-create-socket.wit +0 -0
  1684. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/udp.wit +0 -0
  1685. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/deps/sockets/world.wit +0 -0
  1686. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/wit/test.wit +0 -0
  1687. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/witx/preview0/typenames.witx +0 -0
  1688. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/witx/preview0/wasi_unstable.witx +0 -0
  1689. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/witx/preview1/typenames.witx +0 -0
  1690. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wasmtime-wasi-21.0.1}/witx/preview1/wasi_snapshot_preview1.witx +0 -0
  1691. /data/ext/cargo-vendor/{wasmtime-winch-20.0.2 → wasmtime-winch-21.0.1}/LICENSE +0 -0
  1692. /data/ext/cargo-vendor/{wasmtime-winch-20.0.2 → wasmtime-winch-21.0.1}/src/builder.rs +0 -0
  1693. /data/ext/cargo-vendor/{wasmtime-winch-20.0.2 → wasmtime-winch-21.0.1}/src/lib.rs +0 -0
  1694. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-20.0.2 → wasmtime-wit-bindgen-21.0.1}/src/source.rs +0 -0
  1695. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-20.0.2 → wasmtime-wit-bindgen-21.0.1}/src/types.rs +0 -0
  1696. /data/ext/cargo-vendor/{wasmtime-types-20.0.2 → wiggle-21.0.1}/LICENSE +0 -0
  1697. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/README.md +0 -0
  1698. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/borrow.rs +0 -0
  1699. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/error.rs +0 -0
  1700. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/guest_type.rs +0 -0
  1701. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/lib.rs +0 -0
  1702. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/region.rs +0 -0
  1703. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-21.0.1}/src/wasmtime.rs +0 -0
  1704. /data/ext/cargo-vendor/{wasmtime-wasi-20.0.2 → wiggle-generate-21.0.1}/LICENSE +0 -0
  1705. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/README.md +0 -0
  1706. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/codegen_settings.rs +0 -0
  1707. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/config.rs +0 -0
  1708. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/funcs.rs +0 -0
  1709. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/lib.rs +0 -0
  1710. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/lifetimes.rs +0 -0
  1711. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/module_trait.rs +0 -0
  1712. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/names.rs +0 -0
  1713. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/error.rs +0 -0
  1714. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/flags.rs +0 -0
  1715. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/handle.rs +0 -0
  1716. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/mod.rs +0 -0
  1717. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/record.rs +0 -0
  1718. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/types/variant.rs +0 -0
  1719. /data/ext/cargo-vendor/{wiggle-generate-20.0.2 → wiggle-generate-21.0.1}/src/wasmtime.rs +0 -0
  1720. /data/ext/cargo-vendor/{wiggle-20.0.2 → wiggle-macro-21.0.1}/LICENSE +0 -0
  1721. /data/ext/cargo-vendor/{wiggle-macro-20.0.2 → wiggle-macro-21.0.1}/src/lib.rs +0 -0
  1722. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/LICENSE +0 -0
  1723. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/build.rs +0 -0
  1724. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/abi/local.rs +0 -0
  1725. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/abi/mod.rs +0 -0
  1726. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/codegen/bounds.rs +0 -0
  1727. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/codegen/builtin.rs +0 -0
  1728. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/codegen/call.rs +0 -0
  1729. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/codegen/control.rs +0 -0
  1730. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/frame/mod.rs +0 -0
  1731. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/isa/mod.rs +0 -0
  1732. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/isa/x64/abi.rs +0 -0
  1733. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/isa/x64/address.rs +0 -0
  1734. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/isa/x64/mod.rs +0 -0
  1735. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/isa/x64/regs.rs +0 -0
  1736. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/lib.rs +0 -0
  1737. /data/ext/cargo-vendor/{winch-codegen-0.18.2 → winch-codegen-0.19.1}/src/stack.rs +0 -0
  1738. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/README.md +0 -0
  1739. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/abi.rs +0 -0
  1740. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/ast/lex.rs +0 -0
  1741. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/ast/toposort.rs +0 -0
  1742. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/ast.rs +0 -0
  1743. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/docs.rs +0 -0
  1744. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/serde_.rs +0 -0
  1745. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/src/sizealign.rs +0 -0
  1746. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/all.rs +0 -0
  1747. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/comments.wit +0 -0
  1748. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/comments.wit.json +0 -0
  1749. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/complex-include/deps/bar/root.wit +0 -0
  1750. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/complex-include/deps/baz/root.wit +0 -0
  1751. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/complex-include/root.wit +0 -0
  1752. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/complex-include.wit.json +0 -0
  1753. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/cross-package-resource/deps/foo/foo.wit +0 -0
  1754. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/cross-package-resource/foo.wit +0 -0
  1755. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/cross-package-resource.wit.json +0 -0
  1756. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/diamond1/deps/dep1/types.wit +0 -0
  1757. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/diamond1/deps/dep2/types.wit +0 -0
  1758. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/diamond1/join.wit +0 -0
  1759. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/diamond1.wit.json +0 -0
  1760. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/disambiguate-diamond/shared1.wit +0 -0
  1761. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/disambiguate-diamond/shared2.wit +0 -0
  1762. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/disambiguate-diamond/world.wit +0 -0
  1763. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/disambiguate-diamond.wit.json +0 -0
  1764. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/empty.wit +0 -0
  1765. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/empty.wit.json +0 -0
  1766. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/another-pkg/other-doc.wit +0 -0
  1767. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/corp/saas.wit +0 -0
  1768. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/different-pkg/the-doc.wit +0 -0
  1769. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/foreign-pkg/the-doc.wit +0 -0
  1770. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/some-pkg/some-doc.wit +0 -0
  1771. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/wasi/clocks.wit +0 -0
  1772. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/deps/wasi/filesystem.wit +0 -0
  1773. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps/root.wit +0 -0
  1774. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/another-pkg/other-doc.wit +0 -0
  1775. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/corp/saas.wit +0 -0
  1776. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/different-pkg/the-doc.wit +0 -0
  1777. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/foreign-pkg/the-doc.wit +0 -0
  1778. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/some-pkg/some-doc.wit +0 -0
  1779. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/wasi/clocks.wit +0 -0
  1780. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/wasi/filesystem.wit +0 -0
  1781. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/deps/wasi/wasi.wit +0 -0
  1782. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union/root.wit +0 -0
  1783. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps-union.wit.json +0 -0
  1784. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/foreign-deps.wit.json +0 -0
  1785. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/functions.wit +0 -0
  1786. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/functions.wit.json +0 -0
  1787. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/ignore-files-deps/deps/bar/types.wit +0 -0
  1788. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/ignore-files-deps/deps/ignore-me.txt +0 -0
  1789. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/ignore-files-deps/world.wit +0 -0
  1790. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/ignore-files-deps.wit.json +0 -0
  1791. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/import-export-overlap1.wit +0 -0
  1792. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/import-export-overlap1.wit.json +0 -0
  1793. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/import-export-overlap2.wit +0 -0
  1794. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/import-export-overlap2.wit.json +0 -0
  1795. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/include-reps.wit +0 -0
  1796. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/include-reps.wit.json +0 -0
  1797. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kebab-name-include-with.wit +0 -0
  1798. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kebab-name-include-with.wit.json +0 -0
  1799. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps/a.wit +0 -0
  1800. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps/deps/b/root.wit +0 -0
  1801. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps/deps/c.wit +0 -0
  1802. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps/deps/d.wat +0 -0
  1803. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps/deps/e.wasm +0 -0
  1804. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/kinds-of-deps.wit.json +0 -0
  1805. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/many-names/a.wit +0 -0
  1806. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/many-names/b.wit +0 -0
  1807. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/many-names.wit.json +0 -0
  1808. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/multi-file/bar.wit +0 -0
  1809. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/multi-file/cycle-a.wit +0 -0
  1810. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/multi-file/cycle-b.wit +0 -0
  1811. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/multi-file/foo.wit +0 -0
  1812. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/multi-file.wit.json +0 -0
  1813. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/name-both-resource-and-type/deps/dep/foo.wit +0 -0
  1814. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/name-both-resource-and-type/foo.wit +0 -0
  1815. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/name-both-resource-and-type.wit.json +0 -0
  1816. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax1.wit +0 -0
  1817. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax1.wit.json +0 -0
  1818. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax3.wit +0 -0
  1819. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax3.wit.json +0 -0
  1820. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax4.wit +0 -0
  1821. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/package-syntax4.wit.json +0 -0
  1822. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/alias-no-type.wit +0 -0
  1823. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/alias-no-type.wit.result +0 -0
  1824. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/async.wit.result +0 -0
  1825. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/async1.wit.result +0 -0
  1826. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-function.wit +0 -0
  1827. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-function.wit.result +0 -0
  1828. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-function2.wit +0 -0
  1829. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-function2.wit.result +0 -0
  1830. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include1.wit +0 -0
  1831. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include1.wit.result +0 -0
  1832. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include2.wit +0 -0
  1833. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include2.wit.result +0 -0
  1834. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include3.wit +0 -0
  1835. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-include3.wit.result +0 -0
  1836. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-list.wit +0 -0
  1837. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-list.wit.result +0 -0
  1838. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg1/root.wit +0 -0
  1839. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg1.wit.result +0 -0
  1840. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg2/deps/bar/empty.wit +0 -0
  1841. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg2/root.wit +0 -0
  1842. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg2.wit.result +0 -0
  1843. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg3/deps/bar/baz.wit +0 -0
  1844. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg3/root.wit +0 -0
  1845. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg3.wit.result +0 -0
  1846. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg4/deps/bar/baz.wit +0 -0
  1847. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg4/root.wit +0 -0
  1848. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg4.wit.result +0 -0
  1849. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg5/deps/bar/baz.wit +0 -0
  1850. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg5/root.wit +0 -0
  1851. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg5.wit.result +0 -0
  1852. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg6/deps/bar/baz.wit +0 -0
  1853. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg6/root.wit +0 -0
  1854. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-pkg6.wit.result +0 -0
  1855. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource1.wit +0 -0
  1856. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource1.wit.result +0 -0
  1857. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource10.wit +0 -0
  1858. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource10.wit.result +0 -0
  1859. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource11.wit +0 -0
  1860. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource11.wit.result +0 -0
  1861. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource12.wit +0 -0
  1862. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource12.wit.result +0 -0
  1863. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource13.wit +0 -0
  1864. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource13.wit.result +0 -0
  1865. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource14.wit +0 -0
  1866. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource14.wit.result +0 -0
  1867. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource15/deps/foo/foo.wit +0 -0
  1868. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource15/foo.wit +0 -0
  1869. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource15.wit.result +0 -0
  1870. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource2.wit +0 -0
  1871. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource2.wit.result +0 -0
  1872. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource3.wit +0 -0
  1873. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource3.wit.result +0 -0
  1874. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource4.wit +0 -0
  1875. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource4.wit.result +0 -0
  1876. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource5.wit +0 -0
  1877. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource5.wit.result +0 -0
  1878. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource6.wit +0 -0
  1879. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource6.wit.result +0 -0
  1880. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource7.wit +0 -0
  1881. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource7.wit.result +0 -0
  1882. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource8.wit +0 -0
  1883. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource8.wit.result +0 -0
  1884. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource9.wit +0 -0
  1885. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-resource9.wit.result +0 -0
  1886. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-world-type1.wit +0 -0
  1887. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/bad-world-type1.wit.result +0 -0
  1888. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/conflicting-package/a.wit +0 -0
  1889. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/conflicting-package/b.wit +0 -0
  1890. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/conflicting-package.wit.result +0 -0
  1891. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle.wit +0 -0
  1892. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle.wit.result +0 -0
  1893. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle2.wit +0 -0
  1894. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle2.wit.result +0 -0
  1895. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle3.wit +0 -0
  1896. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle3.wit.result +0 -0
  1897. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle4.wit +0 -0
  1898. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle4.wit.result +0 -0
  1899. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle5.wit +0 -0
  1900. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/cycle5.wit.result +0 -0
  1901. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/dangling-type.wit +0 -0
  1902. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/dangling-type.wit.result +0 -0
  1903. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-function-params.wit +0 -0
  1904. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-function-params.wit.result +0 -0
  1905. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-functions.wit +0 -0
  1906. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-functions.wit.result +0 -0
  1907. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-interface.wit +0 -0
  1908. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-interface.wit.result +0 -0
  1909. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-interface2/foo.wit +0 -0
  1910. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-interface2/foo2.wit +0 -0
  1911. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-interface2.wit.result +0 -0
  1912. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-type.wit +0 -0
  1913. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/duplicate-type.wit.result +0 -0
  1914. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/empty-enum.wit +0 -0
  1915. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/empty-enum.wit.result +0 -0
  1916. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/empty-variant1.wit +0 -0
  1917. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/empty-variant1.wit.result +0 -0
  1918. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/export-twice.wit +0 -0
  1919. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/export-twice.wit.result +0 -0
  1920. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export1.wit +0 -0
  1921. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export1.wit.result +0 -0
  1922. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export2.wit +0 -0
  1923. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export2.wit.result +0 -0
  1924. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export3.wit +0 -0
  1925. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export3.wit.result +0 -0
  1926. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export4.wit +0 -0
  1927. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export4.wit.result +0 -0
  1928. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export5.wit +0 -0
  1929. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-and-export5.wit.result +0 -0
  1930. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-twice.wit +0 -0
  1931. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/import-twice.wit.result +0 -0
  1932. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-cycle.wit +0 -0
  1933. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-cycle.wit.result +0 -0
  1934. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-foreign/deps/bar/empty.wit +0 -0
  1935. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-foreign/root.wit +0 -0
  1936. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-foreign.wit.result +0 -0
  1937. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-with-id.wit +0 -0
  1938. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-with-id.wit.result +0 -0
  1939. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-with-on-id.wit +0 -0
  1940. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/include-with-on-id.wit.result +0 -0
  1941. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-toplevel.wit +0 -0
  1942. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-toplevel.wit.result +0 -0
  1943. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-type-reference.wit +0 -0
  1944. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-type-reference.wit.result +0 -0
  1945. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-type-reference2.wit +0 -0
  1946. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/invalid-type-reference2.wit.result +0 -0
  1947. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/kebab-name-include-not-found.wit +0 -0
  1948. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/kebab-name-include-not-found.wit.result +0 -0
  1949. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/kebab-name-include.wit +0 -0
  1950. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/kebab-name-include.wit.result +0 -0
  1951. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/keyword.wit +0 -0
  1952. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/keyword.wit.result +0 -0
  1953. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/missing-package.wit +0 -0
  1954. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/missing-package.wit.result +0 -0
  1955. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/multiple-package-docs/a.wit +0 -0
  1956. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/multiple-package-docs/b.wit +0 -0
  1957. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/multiple-package-docs.wit.result +0 -0
  1958. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/no-access-to-sibling-use/bar.wit +0 -0
  1959. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/no-access-to-sibling-use/foo.wit +0 -0
  1960. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/no-access-to-sibling-use.wit.result +0 -0
  1961. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/non-existance-world-include/deps/bar/baz.wit +0 -0
  1962. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/non-existance-world-include/root.wit +0 -0
  1963. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/non-existance-world-include.wit.result +0 -0
  1964. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle/deps/a1/root.wit +0 -0
  1965. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle/root.wit +0 -0
  1966. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle.wit.result +0 -0
  1967. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle2/deps/a1/root.wit +0 -0
  1968. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle2/deps/a2/root.wit +0 -0
  1969. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle2/root.wit +0 -0
  1970. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/pkg-cycle2.wit.result +0 -0
  1971. /data/ext/cargo-vendor/{wit-parser-0.202.0/tests/ui → wit-parser-0.207.0/tests/ui/parse-fail}/resources-multiple-returns-borrow.wit +0 -0
  1972. /data/ext/cargo-vendor/{wit-parser-0.202.0/tests/ui → wit-parser-0.207.0/tests/ui/parse-fail}/resources-return-borrow.wit +0 -0
  1973. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/type-and-resource-same-name/deps/dep/foo.wit +0 -0
  1974. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/type-and-resource-same-name/foo.wit +0 -0
  1975. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/type-and-resource-same-name.wit.result +0 -0
  1976. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/undefined-typed.wit +0 -0
  1977. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/undefined-typed.wit.result +0 -0
  1978. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unknown-interface.wit +0 -0
  1979. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unknown-interface.wit.result +0 -0
  1980. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface1.wit +0 -0
  1981. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface1.wit.result +0 -0
  1982. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface2.wit +0 -0
  1983. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface2.wit.result +0 -0
  1984. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface3.wit +0 -0
  1985. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface3.wit.result +0 -0
  1986. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface4.wit +0 -0
  1987. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-interface4.wit.result +0 -0
  1988. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use1.wit +0 -0
  1989. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use1.wit.result +0 -0
  1990. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use10/bar.wit +0 -0
  1991. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use10/foo.wit +0 -0
  1992. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use10.wit.result +0 -0
  1993. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use2.wit +0 -0
  1994. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use2.wit.result +0 -0
  1995. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use3.wit +0 -0
  1996. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use3.wit.result +0 -0
  1997. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use7.wit +0 -0
  1998. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use7.wit.result +0 -0
  1999. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use8.wit +0 -0
  2000. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use8.wit.result +0 -0
  2001. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use9.wit +0 -0
  2002. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unresolved-use9.wit.result +0 -0
  2003. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/unterminated-string.wit.result +0 -0
  2004. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-and-include-world/deps/bar/baz.wit +0 -0
  2005. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-and-include-world/root.wit +0 -0
  2006. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-and-include-world.wit.result +0 -0
  2007. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict.wit +0 -0
  2008. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict.wit.result +0 -0
  2009. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict2.wit +0 -0
  2010. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict2.wit.result +0 -0
  2011. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict3.wit +0 -0
  2012. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-conflict3.wit.result +0 -0
  2013. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-cycle1.wit +0 -0
  2014. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-cycle1.wit.result +0 -0
  2015. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-cycle4.wit +0 -0
  2016. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-cycle4.wit.result +0 -0
  2017. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-shadow1.wit +0 -0
  2018. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-shadow1.wit.result +0 -0
  2019. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-world/deps/bar/baz.wit +0 -0
  2020. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-world/root.wit +0 -0
  2021. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/use-world.wit.result +0 -0
  2022. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-interface-clash.wit +0 -0
  2023. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-interface-clash.wit.result +0 -0
  2024. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-same-fields2.wit +0 -0
  2025. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-same-fields2.wit.result +0 -0
  2026. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-same-fields3.wit +0 -0
  2027. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-same-fields3.wit.result +0 -0
  2028. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-top-level-func.wit +0 -0
  2029. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-top-level-func.wit.result +0 -0
  2030. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-top-level-func2.wit +0 -0
  2031. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/parse-fail/world-top-level-func2.wit.result +0 -0
  2032. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/random.wit +0 -0
  2033. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/random.wit.json +0 -0
  2034. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-empty.wit +0 -0
  2035. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-empty.wit.json +0 -0
  2036. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-multiple-returns-own.wit +0 -0
  2037. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-multiple-returns-own.wit.json +0 -0
  2038. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-multiple.wit +0 -0
  2039. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-multiple.wit.json +0 -0
  2040. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-return-own.wit +0 -0
  2041. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources-return-own.wit.json +0 -0
  2042. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources.wit +0 -0
  2043. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources.wit.json +0 -0
  2044. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources1.wit +0 -0
  2045. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/resources1.wit.json +0 -0
  2046. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/same-name-import-export.wit +0 -0
  2047. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/same-name-import-export.wit.json +0 -0
  2048. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/shared-types.wit +0 -0
  2049. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/shared-types.wit.json +0 -0
  2050. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/simple-wasm-text.wat +0 -0
  2051. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/simple-wasm-text.wit.json +0 -0
  2052. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/stress-export-elaborate.wit +0 -0
  2053. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/stress-export-elaborate.wit.json +0 -0
  2054. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/type-then-eof.wit +0 -0
  2055. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/type-then-eof.wit.json +0 -0
  2056. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/types.wit +0 -0
  2057. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/types.wit.json +0 -0
  2058. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/union-fuzz-1.wit +0 -0
  2059. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/union-fuzz-1.wit.json +0 -0
  2060. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/union-fuzz-2.wit +0 -0
  2061. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/union-fuzz-2.wit.json +0 -0
  2062. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/use-chain.wit +0 -0
  2063. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/use-chain.wit.json +0 -0
  2064. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/use.wit +0 -0
  2065. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/use.wit.json +0 -0
  2066. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/versions/deps/a1/foo.wit +0 -0
  2067. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/versions/deps/a2/foo.wit +0 -0
  2068. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/versions/foo.wit +0 -0
  2069. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/versions.wit.json +0 -0
  2070. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/wasi.wit +0 -0
  2071. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/wasi.wit.json +0 -0
  2072. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-diamond.wit +0 -0
  2073. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-diamond.wit.json +0 -0
  2074. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-iface-no-collide.wit +0 -0
  2075. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-iface-no-collide.wit.json +0 -0
  2076. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import1.wit +0 -0
  2077. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import1.wit.json +0 -0
  2078. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import2.wit +0 -0
  2079. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import2.wit.json +0 -0
  2080. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import3.wit +0 -0
  2081. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-implicit-import3.wit.json +0 -0
  2082. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-same-fields4.wit +0 -0
  2083. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-same-fields4.wit.json +0 -0
  2084. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-top-level-funcs.wit +0 -0
  2085. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/world-top-level-funcs.wit.json +0 -0
  2086. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/worlds-union-dedup.wit +0 -0
  2087. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/worlds-union-dedup.wit.json +0 -0
  2088. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/worlds-with-types.wit +0 -0
  2089. /data/ext/cargo-vendor/{wit-parser-0.202.0 → wit-parser-0.207.0}/tests/ui/worlds-with-types.wit.json +0 -0
@@ -0,0 +1,4492 @@
1
+ //! Types relating to type information provided by validation.
2
+
3
+ use super::{
4
+ component::{ComponentState, ExternKind},
5
+ core::Module,
6
+ };
7
+ use crate::prelude::*;
8
+ use crate::{validator::names::KebabString, HeapType, ValidatorId};
9
+ use crate::{
10
+ BinaryReaderError, CompositeType, Export, ExternalKind, FuncType, GlobalType, Import, Matches,
11
+ MemoryType, PackedIndex, PrimitiveValType, RecGroup, RefType, Result, SubType, TableType,
12
+ TypeRef, UnpackedIndex, ValType, WithRecGroup,
13
+ };
14
+ use alloc::sync::Arc;
15
+ use core::ops::{Deref, DerefMut, Index, Range};
16
+ use core::sync::atomic::{AtomicUsize, Ordering};
17
+ use core::{
18
+ borrow::Borrow,
19
+ hash::{Hash, Hasher},
20
+ mem,
21
+ };
22
+ use hashbrown::hash_map::Entry;
23
+
24
+ /// The maximum number of parameters in the canonical ABI that can be passed by value.
25
+ ///
26
+ /// Functions that exceed this limit will instead pass parameters indirectly from
27
+ /// linear memory via a single pointer parameter.
28
+ const MAX_FLAT_FUNC_PARAMS: usize = 16;
29
+ /// The maximum number of results in the canonical ABI that can be returned by a function.
30
+ ///
31
+ /// Functions that exceed this limit have their results written to linear memory via an
32
+ /// additional pointer parameter (imports) or return a single pointer value (exports).
33
+ const MAX_FLAT_FUNC_RESULTS: usize = 1;
34
+
35
+ /// The maximum lowered types, including a possible type for a return pointer parameter.
36
+ const MAX_LOWERED_TYPES: usize = MAX_FLAT_FUNC_PARAMS + 1;
37
+
38
+ /// A simple alloc-free list of types used for calculating lowered function signatures.
39
+ pub(crate) struct LoweredTypes {
40
+ types: [ValType; MAX_LOWERED_TYPES],
41
+ len: usize,
42
+ max: usize,
43
+ }
44
+
45
+ impl LoweredTypes {
46
+ fn new(max: usize) -> Self {
47
+ assert!(max <= MAX_LOWERED_TYPES);
48
+ Self {
49
+ types: [ValType::I32; MAX_LOWERED_TYPES],
50
+ len: 0,
51
+ max,
52
+ }
53
+ }
54
+
55
+ fn len(&self) -> usize {
56
+ self.len
57
+ }
58
+
59
+ fn maxed(&self) -> bool {
60
+ self.len == self.max
61
+ }
62
+
63
+ fn get_mut(&mut self, index: usize) -> Option<&mut ValType> {
64
+ if index < self.len {
65
+ Some(&mut self.types[index])
66
+ } else {
67
+ None
68
+ }
69
+ }
70
+
71
+ fn push(&mut self, ty: ValType) -> bool {
72
+ if self.maxed() {
73
+ return false;
74
+ }
75
+
76
+ self.types[self.len] = ty;
77
+ self.len += 1;
78
+ true
79
+ }
80
+
81
+ fn clear(&mut self) {
82
+ self.len = 0;
83
+ }
84
+
85
+ pub fn as_slice(&self) -> &[ValType] {
86
+ &self.types[..self.len]
87
+ }
88
+
89
+ pub fn iter(&self) -> impl Iterator<Item = ValType> + '_ {
90
+ self.as_slice().iter().copied()
91
+ }
92
+ }
93
+
94
+ /// Represents information about a component function type lowering.
95
+ pub(crate) struct LoweringInfo {
96
+ pub(crate) params: LoweredTypes,
97
+ pub(crate) results: LoweredTypes,
98
+ pub(crate) requires_memory: bool,
99
+ pub(crate) requires_realloc: bool,
100
+ }
101
+
102
+ impl LoweringInfo {
103
+ pub(crate) fn into_func_type(self) -> FuncType {
104
+ FuncType::new(
105
+ self.params.as_slice().iter().copied(),
106
+ self.results.as_slice().iter().copied(),
107
+ )
108
+ }
109
+ }
110
+
111
+ impl Default for LoweringInfo {
112
+ fn default() -> Self {
113
+ Self {
114
+ params: LoweredTypes::new(MAX_FLAT_FUNC_PARAMS),
115
+ results: LoweredTypes::new(MAX_FLAT_FUNC_RESULTS),
116
+ requires_memory: false,
117
+ requires_realloc: false,
118
+ }
119
+ }
120
+ }
121
+
122
+ fn push_primitive_wasm_types(ty: &PrimitiveValType, lowered_types: &mut LoweredTypes) -> bool {
123
+ match ty {
124
+ PrimitiveValType::Bool
125
+ | PrimitiveValType::S8
126
+ | PrimitiveValType::U8
127
+ | PrimitiveValType::S16
128
+ | PrimitiveValType::U16
129
+ | PrimitiveValType::S32
130
+ | PrimitiveValType::U32
131
+ | PrimitiveValType::Char => lowered_types.push(ValType::I32),
132
+ PrimitiveValType::S64 | PrimitiveValType::U64 => lowered_types.push(ValType::I64),
133
+ PrimitiveValType::F32 => lowered_types.push(ValType::F32),
134
+ PrimitiveValType::F64 => lowered_types.push(ValType::F64),
135
+ PrimitiveValType::String => {
136
+ lowered_types.push(ValType::I32) && lowered_types.push(ValType::I32)
137
+ }
138
+ }
139
+ }
140
+
141
+ /// A trait shared by all type identifiers.
142
+ ///
143
+ /// Any id that can be used to get a type from a `Types`.
144
+ //
145
+ // Or, internally, from a `TypeList`.
146
+ pub trait TypeIdentifier: core::fmt::Debug + Copy + Eq + Sized + 'static {
147
+ /// The data pointed to by this type of id.
148
+ type Data: TypeData<Id = Self>;
149
+
150
+ /// Create a type id from an index.
151
+ #[doc(hidden)]
152
+ fn from_index(index: u32) -> Self;
153
+
154
+ /// Get a shared reference to the list where this id's type data is stored
155
+ /// within.
156
+ #[doc(hidden)]
157
+ fn list(types: &TypeList) -> &SnapshotList<Self::Data>;
158
+
159
+ /// Get an exclusive reference to the list where this id's type data is
160
+ /// stored within.
161
+ #[doc(hidden)]
162
+ fn list_mut(types: &mut TypeList) -> &mut SnapshotList<Self::Data>;
163
+
164
+ /// The raw index of this id.
165
+ #[doc(hidden)]
166
+ fn index(&self) -> usize;
167
+ }
168
+
169
+ /// A trait shared by all types within a `Types`.
170
+ ///
171
+ /// This is the data that can be retreived by indexing with the associated
172
+ /// [`TypeIdentifier`].
173
+ pub trait TypeData: core::fmt::Debug {
174
+ /// The identifier for this type data.
175
+ type Id: TypeIdentifier<Data = Self>;
176
+
177
+ /// Get the info for this type.
178
+ #[doc(hidden)]
179
+ fn type_info(&self, types: &TypeList) -> TypeInfo;
180
+ }
181
+
182
+ /// A type that can be aliased in the component model.
183
+ pub trait Aliasable {
184
+ #[doc(hidden)]
185
+ fn alias_id(&self) -> u32;
186
+
187
+ #[doc(hidden)]
188
+ fn set_alias_id(&mut self, alias_id: u32);
189
+ }
190
+
191
+ /// A fresh alias id that means the entity is not an alias of anything.
192
+ ///
193
+ /// Note that the `TypeList::alias_counter` starts at zero, so we can't use that
194
+ /// as this sentinel. The implementation limits are such that we can't ever
195
+ /// generate `u32::MAX` aliases, so we don't need to worryabout running into
196
+ /// this value in practice either.
197
+ const NO_ALIAS: u32 = u32::MAX;
198
+
199
+ macro_rules! define_type_id {
200
+ ($name:ident, $data:ty, $list:ident, $type_str:expr) => {
201
+ #[doc = "Represents a unique identifier for a "]
202
+ #[doc = $type_str]
203
+ #[doc = " type known to a [`crate::Validator`]."]
204
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
205
+ #[repr(C)] // Use fixed field layout to ensure minimal size.
206
+ pub struct $name {
207
+ /// The index into the associated list of types.
208
+ index: u32,
209
+ }
210
+
211
+ impl TypeIdentifier for $name {
212
+ type Data = $data;
213
+
214
+ fn from_index(index: u32) -> Self {
215
+ $name { index }
216
+ }
217
+
218
+ fn list(types: &TypeList) -> &SnapshotList<Self::Data> {
219
+ &types.$list
220
+ }
221
+
222
+ fn list_mut(types: &mut TypeList) -> &mut SnapshotList<Self::Data> {
223
+ &mut types.$list
224
+ }
225
+
226
+ fn index(&self) -> usize {
227
+ usize::try_from(self.index).unwrap()
228
+ }
229
+ }
230
+
231
+ impl Aliasable for $name {
232
+ fn alias_id(&self) -> u32 {
233
+ NO_ALIAS
234
+ }
235
+
236
+ fn set_alias_id(&mut self, _: u32) {}
237
+ }
238
+
239
+ // The size of type IDs was seen to have a large-ish impact in #844, so
240
+ // this assert ensures that it stays relatively small.
241
+ const _: () = {
242
+ assert!(core::mem::size_of::<$name>() <= 4);
243
+ };
244
+ };
245
+ }
246
+
247
+ /// A core WebAssembly type, in the core WebAssembly types index space.
248
+ pub enum CoreType {
249
+ /// A sub type.
250
+ Sub(SubType),
251
+
252
+ /// A module type.
253
+ ///
254
+ /// Does not actually appear in core Wasm at the moment. Only used for the
255
+ /// core types index space within components.
256
+ Module(ModuleType),
257
+ }
258
+
259
+ /// Represents a unique identifier for a core type type known to a
260
+ /// [`crate::Validator`]
261
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
262
+ #[repr(C)]
263
+ pub struct CoreTypeId {
264
+ index: u32,
265
+ }
266
+
267
+ const _: () = {
268
+ assert!(core::mem::size_of::<CoreTypeId>() <= 4);
269
+ };
270
+
271
+ impl TypeIdentifier for CoreTypeId {
272
+ type Data = SubType;
273
+
274
+ fn from_index(index: u32) -> Self {
275
+ CoreTypeId { index }
276
+ }
277
+
278
+ fn list(types: &TypeList) -> &SnapshotList<Self::Data> {
279
+ &types.core_types
280
+ }
281
+
282
+ fn list_mut(types: &mut TypeList) -> &mut SnapshotList<Self::Data> {
283
+ &mut types.core_types
284
+ }
285
+
286
+ fn index(&self) -> usize {
287
+ usize::try_from(self.index).unwrap()
288
+ }
289
+ }
290
+
291
+ impl TypeData for SubType {
292
+ type Id = CoreTypeId;
293
+
294
+ fn type_info(&self, _types: &TypeList) -> TypeInfo {
295
+ // TODO(#1036): calculate actual size for func, array, struct.
296
+ let size = 1 + match &self.composite_type {
297
+ CompositeType::Func(ty) => 1 + (ty.params().len() + ty.results().len()) as u32,
298
+ CompositeType::Array(_) => 2,
299
+ CompositeType::Struct(ty) => 1 + 2 * ty.fields.len() as u32,
300
+ };
301
+ TypeInfo::core(size)
302
+ }
303
+ }
304
+
305
+ impl CoreType {
306
+ /// Get the underlying `SubType` or panic.
307
+ pub fn unwrap_sub(&self) -> &SubType {
308
+ match self {
309
+ CoreType::Sub(s) => s,
310
+ CoreType::Module(_) => panic!("`unwrap_sub` on module type"),
311
+ }
312
+ }
313
+
314
+ /// Get the underlying `FuncType` within this `SubType` or panic.
315
+ pub fn unwrap_func(&self) -> &FuncType {
316
+ match &self.unwrap_sub().composite_type {
317
+ CompositeType::Func(f) => f,
318
+ CompositeType::Array(_) | CompositeType::Struct(_) => {
319
+ panic!("`unwrap_func` on non-func composite type")
320
+ }
321
+ }
322
+ }
323
+
324
+ /// Get the underlying `ModuleType` or panic.
325
+ pub fn unwrap_module(&self) -> &ModuleType {
326
+ match self {
327
+ CoreType::Module(m) => m,
328
+ CoreType::Sub(_) => panic!("`unwrap_module` on a subtype"),
329
+ }
330
+ }
331
+ }
332
+
333
+ macro_rules! define_wrapper_id {
334
+ (
335
+ $(#[$outer_attrs:meta])*
336
+ pub enum $name:ident {
337
+ $(
338
+ #[unwrap = $unwrap:ident]
339
+ $(#[$inner_attrs:meta])*
340
+ $variant:ident ( $inner:ty ) ,
341
+ )*
342
+ }
343
+ ) => {
344
+ $(#[$outer_attrs])*
345
+ pub enum $name {
346
+ $(
347
+ $(#[$inner_attrs])*
348
+ $variant ( $inner ) ,
349
+ )*
350
+ }
351
+
352
+ $(
353
+ impl From<$inner> for $name {
354
+ #[inline]
355
+ fn from(x: $inner) -> Self {
356
+ Self::$variant(x)
357
+ }
358
+ }
359
+
360
+ impl TryFrom<$name> for $inner {
361
+ type Error = ();
362
+
363
+ #[inline]
364
+ fn try_from(x: $name) -> Result<Self, Self::Error> {
365
+ match x {
366
+ $name::$variant(x) => Ok(x),
367
+ _ => Err(())
368
+ }
369
+ }
370
+ }
371
+ )*
372
+
373
+ impl $name {
374
+ $(
375
+ #[doc = "Unwrap a `"]
376
+ #[doc = stringify!($inner)]
377
+ #[doc = "` or panic."]
378
+ #[inline]
379
+ pub fn $unwrap(self) -> $inner {
380
+ <$inner>::try_from(self).unwrap()
381
+ }
382
+ )*
383
+ }
384
+ };
385
+ }
386
+
387
+ macro_rules! define_transitive_conversions {
388
+ (
389
+ $(
390
+ $outer:ty,
391
+ $middle:ty,
392
+ $inner:ty,
393
+ $unwrap:ident;
394
+ )*
395
+ ) => {
396
+ $(
397
+ impl From<$inner> for $outer {
398
+ #[inline]
399
+ fn from(x: $inner) -> Self {
400
+ <$middle>::from(x).into()
401
+ }
402
+ }
403
+
404
+ impl TryFrom<$outer> for $inner {
405
+ type Error = ();
406
+
407
+ #[inline]
408
+ fn try_from(x: $outer) -> Result<Self, Self::Error> {
409
+ let middle = <$middle>::try_from(x)?;
410
+ <$inner>::try_from(middle)
411
+ }
412
+ }
413
+
414
+ impl $outer {
415
+ #[doc = "Unwrap a `"]
416
+ #[doc = stringify!($inner)]
417
+ #[doc = "` or panic."]
418
+ #[inline]
419
+ pub fn $unwrap(self) -> $inner {
420
+ <$inner>::try_from(self).unwrap()
421
+ }
422
+ }
423
+ )*
424
+ };
425
+ }
426
+
427
+ define_wrapper_id! {
428
+ /// An identifier pointing to any kind of type, component or core.
429
+ #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
430
+ pub enum AnyTypeId {
431
+ #[unwrap = unwrap_component_core_type]
432
+ /// A core type.
433
+ Core(ComponentCoreTypeId),
434
+
435
+ #[unwrap = unwrap_component_any_type]
436
+ /// A component type.
437
+ Component(ComponentAnyTypeId),
438
+ }
439
+ }
440
+
441
+ define_transitive_conversions! {
442
+ AnyTypeId, ComponentCoreTypeId, CoreTypeId, unwrap_core_type;
443
+ AnyTypeId, ComponentCoreTypeId, ComponentCoreModuleTypeId, unwrap_component_core_module_type;
444
+ AnyTypeId, ComponentAnyTypeId, AliasableResourceId, unwrap_aliasable_resource;
445
+ AnyTypeId, ComponentAnyTypeId, ComponentDefinedTypeId, unwrap_component_defined_type;
446
+ AnyTypeId, ComponentAnyTypeId, ComponentFuncTypeId, unwrap_component_func_type;
447
+ AnyTypeId, ComponentAnyTypeId, ComponentInstanceTypeId, unwrap_component_instance_type;
448
+ AnyTypeId, ComponentAnyTypeId, ComponentTypeId, unwrap_component_type;
449
+ }
450
+
451
+ impl AnyTypeId {
452
+ /// Peel off one layer of aliasing from this type and return the aliased
453
+ /// inner type, or `None` if this type is not aliasing anything.
454
+ pub fn peel_alias(&self, types: &Types) -> Option<Self> {
455
+ match *self {
456
+ Self::Core(id) => id.peel_alias(types).map(Self::Core),
457
+ Self::Component(id) => types.peel_alias(id).map(Self::Component),
458
+ }
459
+ }
460
+ }
461
+
462
+ define_wrapper_id! {
463
+ /// An identifier for a core type or a core module's type.
464
+ #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
465
+ pub enum ComponentCoreTypeId {
466
+ #[unwrap = unwrap_sub]
467
+ /// A core type.
468
+ Sub(CoreTypeId),
469
+
470
+ #[unwrap = unwrap_module]
471
+ /// A core module's type.
472
+ Module(ComponentCoreModuleTypeId),
473
+ }
474
+ }
475
+
476
+ impl ComponentCoreTypeId {
477
+ /// Peel off one layer of aliasing from this type and return the aliased
478
+ /// inner type, or `None` if this type is not aliasing anything.
479
+ pub fn peel_alias(&self, types: &Types) -> Option<Self> {
480
+ match *self {
481
+ Self::Sub(_) => None,
482
+ Self::Module(id) => types.peel_alias(id).map(Self::Module),
483
+ }
484
+ }
485
+ }
486
+
487
+ /// An aliasable resource identifier.
488
+ #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
489
+ pub struct AliasableResourceId {
490
+ id: ResourceId,
491
+ alias_id: u32,
492
+ }
493
+
494
+ impl Aliasable for AliasableResourceId {
495
+ fn alias_id(&self) -> u32 {
496
+ self.alias_id
497
+ }
498
+
499
+ fn set_alias_id(&mut self, alias_id: u32) {
500
+ self.alias_id = alias_id;
501
+ }
502
+ }
503
+
504
+ impl AliasableResourceId {
505
+ /// Create a new instance with the specified resource ID and `self`'s alias
506
+ /// ID.
507
+ pub fn with_resource_id(&self, id: ResourceId) -> Self {
508
+ Self {
509
+ id,
510
+ alias_id: self.alias_id,
511
+ }
512
+ }
513
+
514
+ /// Get the underlying resource.
515
+ pub fn resource(&self) -> ResourceId {
516
+ self.id
517
+ }
518
+
519
+ pub(crate) fn resource_mut(&mut self) -> &mut ResourceId {
520
+ &mut self.id
521
+ }
522
+ }
523
+
524
+ define_wrapper_id! {
525
+ /// An identifier for any kind of component type.
526
+ #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
527
+ pub enum ComponentAnyTypeId {
528
+ #[unwrap = unwrap_resource]
529
+ /// The type is a resource with the specified id.
530
+ Resource(AliasableResourceId),
531
+
532
+ #[unwrap = unwrap_defined]
533
+ /// The type is a defined type with the specified id.
534
+ Defined(ComponentDefinedTypeId),
535
+
536
+ #[unwrap = unwrap_func]
537
+ /// The type is a function type with the specified id.
538
+ Func(ComponentFuncTypeId),
539
+
540
+ #[unwrap = unwrap_instance]
541
+ /// The type is an instance type with the specified id.
542
+ Instance(ComponentInstanceTypeId),
543
+
544
+ #[unwrap = unwrap_component]
545
+ /// The type is a component type with the specified id.
546
+ Component(ComponentTypeId),
547
+ }
548
+ }
549
+
550
+ impl Aliasable for ComponentAnyTypeId {
551
+ fn alias_id(&self) -> u32 {
552
+ match self {
553
+ ComponentAnyTypeId::Resource(x) => x.alias_id(),
554
+ ComponentAnyTypeId::Defined(x) => x.alias_id(),
555
+ ComponentAnyTypeId::Func(x) => x.alias_id(),
556
+ ComponentAnyTypeId::Instance(x) => x.alias_id(),
557
+ ComponentAnyTypeId::Component(x) => x.alias_id(),
558
+ }
559
+ }
560
+
561
+ fn set_alias_id(&mut self, alias_id: u32) {
562
+ match self {
563
+ ComponentAnyTypeId::Resource(x) => x.set_alias_id(alias_id),
564
+ ComponentAnyTypeId::Defined(x) => x.set_alias_id(alias_id),
565
+ ComponentAnyTypeId::Func(x) => x.set_alias_id(alias_id),
566
+ ComponentAnyTypeId::Instance(x) => x.set_alias_id(alias_id),
567
+ ComponentAnyTypeId::Component(x) => x.set_alias_id(alias_id),
568
+ }
569
+ }
570
+ }
571
+
572
+ impl ComponentAnyTypeId {
573
+ pub(crate) fn info(&self, types: &TypeList) -> TypeInfo {
574
+ match *self {
575
+ Self::Resource(_) => TypeInfo::new(),
576
+ Self::Defined(id) => types[id].type_info(types),
577
+ Self::Func(id) => types[id].type_info(types),
578
+ Self::Instance(id) => types[id].type_info(types),
579
+ Self::Component(id) => types[id].type_info(types),
580
+ }
581
+ }
582
+
583
+ pub(crate) fn desc(&self) -> &'static str {
584
+ match self {
585
+ Self::Resource(_) => "resource",
586
+ Self::Defined(_) => "defined type",
587
+ Self::Func(_) => "func",
588
+ Self::Instance(_) => "instance",
589
+ Self::Component(_) => "component",
590
+ }
591
+ }
592
+ }
593
+
594
+ define_type_id!(
595
+ RecGroupId,
596
+ Range<CoreTypeId>,
597
+ rec_group_elements,
598
+ "recursion group"
599
+ );
600
+
601
+ impl TypeData for Range<CoreTypeId> {
602
+ type Id = RecGroupId;
603
+
604
+ fn type_info(&self, _types: &TypeList) -> TypeInfo {
605
+ let size = self.end.index() - self.start.index();
606
+ TypeInfo::core(u32::try_from(size).unwrap())
607
+ }
608
+ }
609
+
610
+ define_type_id!(ComponentTypeId, ComponentType, components, "component");
611
+
612
+ define_type_id!(
613
+ ComponentValueTypeId,
614
+ ComponentValType,
615
+ component_values,
616
+ "component value"
617
+ );
618
+
619
+ define_type_id!(
620
+ ComponentInstanceTypeId,
621
+ ComponentInstanceType,
622
+ component_instances,
623
+ "component instance"
624
+ );
625
+
626
+ define_type_id!(
627
+ ComponentFuncTypeId,
628
+ ComponentFuncType,
629
+ component_funcs,
630
+ "component function"
631
+ );
632
+
633
+ define_type_id!(
634
+ ComponentCoreInstanceTypeId,
635
+ InstanceType,
636
+ core_instances,
637
+ "component's core instance"
638
+ );
639
+
640
+ define_type_id!(
641
+ ComponentCoreModuleTypeId,
642
+ ModuleType,
643
+ core_modules,
644
+ "component's core module"
645
+ );
646
+
647
+ /// Represents a unique identifier for a component type type known to a
648
+ /// [`crate::Validator`].
649
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
650
+ #[repr(C)]
651
+ pub struct ComponentDefinedTypeId {
652
+ index: u32,
653
+ alias_id: u32,
654
+ }
655
+
656
+ const _: () = {
657
+ assert!(core::mem::size_of::<ComponentDefinedTypeId>() <= 8);
658
+ };
659
+
660
+ impl TypeIdentifier for ComponentDefinedTypeId {
661
+ type Data = ComponentDefinedType;
662
+
663
+ fn from_index(index: u32) -> Self {
664
+ ComponentDefinedTypeId {
665
+ index,
666
+ alias_id: NO_ALIAS,
667
+ }
668
+ }
669
+
670
+ fn list(types: &TypeList) -> &SnapshotList<Self::Data> {
671
+ &types.component_defined_types
672
+ }
673
+
674
+ fn list_mut(types: &mut TypeList) -> &mut SnapshotList<Self::Data> {
675
+ &mut types.component_defined_types
676
+ }
677
+
678
+ fn index(&self) -> usize {
679
+ usize::try_from(self.index).unwrap()
680
+ }
681
+ }
682
+
683
+ impl Aliasable for ComponentDefinedTypeId {
684
+ fn alias_id(&self) -> u32 {
685
+ self.alias_id
686
+ }
687
+
688
+ fn set_alias_id(&mut self, alias_id: u32) {
689
+ self.alias_id = alias_id;
690
+ }
691
+ }
692
+
693
+ /// Metadata about a type and its transitive structure.
694
+ ///
695
+ /// Currently contains two properties:
696
+ ///
697
+ /// * The "size" of a type - a proxy to the recursive size of a type if
698
+ /// everything in the type were unique (e.g. no shared references). Not an
699
+ /// approximation of runtime size, but instead of type-complexity size if
700
+ /// someone were to visit each element of the type individually. For example
701
+ /// `u32` has size 1 and `(list u32)` has size 2 (roughly). Used to prevent
702
+ /// massive trees of types.
703
+ ///
704
+ /// * Whether or not a type contains a "borrow" transitively inside of it. For
705
+ /// example `(borrow $t)` and `(list (borrow $t))` both contain borrows, but
706
+ /// `(list u32)` does not. Used to validate that component function results do
707
+ /// not contain borrows.
708
+ ///
709
+ /// Currently this is represented as a compact 32-bit integer to ensure that
710
+ /// `TypeId`, which this is stored in, remains relatively small. The maximum
711
+ /// type size allowed in wasmparser is 1M at this time which is 20 bits of
712
+ /// information, and then one more bit is used for whether or not a borrow is
713
+ /// used. Currently this uses the low 24 bits for the type size and the MSB for
714
+ /// the borrow bit.
715
+ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
716
+ // Only public because it shows up in a public trait's `doc(hidden)` method.
717
+ #[doc(hidden)]
718
+ pub struct TypeInfo(u32);
719
+
720
+ impl TypeInfo {
721
+ /// Creates a new blank set of type information.
722
+ ///
723
+ /// Defaults to size 1 to ensure that this consumes space in the final type
724
+ /// structure.
725
+ pub(crate) fn new() -> TypeInfo {
726
+ TypeInfo::_new(1, false)
727
+ }
728
+
729
+ /// Creates a new blank set of information about a leaf "borrow" type which
730
+ /// has size 1.
731
+ pub(crate) fn borrow() -> TypeInfo {
732
+ TypeInfo::_new(1, true)
733
+ }
734
+
735
+ /// Creates type information corresponding to a core type of the `size`
736
+ /// specified, meaning no borrows are contained within.
737
+ pub(crate) fn core(size: u32) -> TypeInfo {
738
+ TypeInfo::_new(size, false)
739
+ }
740
+
741
+ fn _new(size: u32, contains_borrow: bool) -> TypeInfo {
742
+ assert!(size < (1 << 24));
743
+ TypeInfo(size | ((contains_borrow as u32) << 31))
744
+ }
745
+
746
+ /// Combines another set of type information into this one, for example if
747
+ /// this is a record which has `other` as a field.
748
+ ///
749
+ /// Updates the size of `self` and whether or not this type contains a
750
+ /// borrow based on whether `other` contains a borrow.
751
+ ///
752
+ /// Returns an error if the type size would exceed this crate's static limit
753
+ /// of a type size.
754
+ pub(crate) fn combine(&mut self, other: TypeInfo, offset: usize) -> Result<()> {
755
+ *self = TypeInfo::_new(
756
+ super::combine_type_sizes(self.size(), other.size(), offset)?,
757
+ self.contains_borrow() || other.contains_borrow(),
758
+ );
759
+ Ok(())
760
+ }
761
+
762
+ pub(crate) fn size(&self) -> u32 {
763
+ self.0 & 0xffffff
764
+ }
765
+
766
+ pub(crate) fn contains_borrow(&self) -> bool {
767
+ (self.0 >> 31) != 0
768
+ }
769
+ }
770
+
771
+ /// A component value type.
772
+ #[derive(Debug, Clone, Copy)]
773
+ pub enum ComponentValType {
774
+ /// The value type is one of the primitive types.
775
+ Primitive(PrimitiveValType),
776
+ /// The type is represented with the given type identifier.
777
+ Type(ComponentDefinedTypeId),
778
+ }
779
+
780
+ impl TypeData for ComponentValType {
781
+ type Id = ComponentValueTypeId;
782
+
783
+ fn type_info(&self, types: &TypeList) -> TypeInfo {
784
+ match self {
785
+ ComponentValType::Primitive(_) => TypeInfo::new(),
786
+ ComponentValType::Type(id) => types[*id].type_info(types),
787
+ }
788
+ }
789
+ }
790
+
791
+ impl ComponentValType {
792
+ pub(crate) fn contains_ptr(&self, types: &TypeList) -> bool {
793
+ match self {
794
+ ComponentValType::Primitive(ty) => ty.contains_ptr(),
795
+ ComponentValType::Type(ty) => types[*ty].contains_ptr(types),
796
+ }
797
+ }
798
+
799
+ fn push_wasm_types(&self, types: &TypeList, lowered_types: &mut LoweredTypes) -> bool {
800
+ match self {
801
+ Self::Primitive(ty) => push_primitive_wasm_types(ty, lowered_types),
802
+ Self::Type(id) => types[*id].push_wasm_types(types, lowered_types),
803
+ }
804
+ }
805
+
806
+ pub(crate) fn info(&self, types: &TypeList) -> TypeInfo {
807
+ match self {
808
+ Self::Primitive(_) => TypeInfo::new(),
809
+ Self::Type(id) => types[*id].type_info(types),
810
+ }
811
+ }
812
+ }
813
+
814
+ /// The entity type for imports and exports of a module.
815
+ #[derive(Debug, Clone, Copy)]
816
+ pub enum EntityType {
817
+ /// The entity is a function.
818
+ Func(CoreTypeId),
819
+ /// The entity is a table.
820
+ Table(TableType),
821
+ /// The entity is a memory.
822
+ Memory(MemoryType),
823
+ /// The entity is a global.
824
+ Global(GlobalType),
825
+ /// The entity is a tag.
826
+ Tag(CoreTypeId),
827
+ }
828
+
829
+ impl EntityType {
830
+ pub(crate) fn desc(&self) -> &'static str {
831
+ match self {
832
+ Self::Func(_) => "func",
833
+ Self::Table(_) => "table",
834
+ Self::Memory(_) => "memory",
835
+ Self::Global(_) => "global",
836
+ Self::Tag(_) => "tag",
837
+ }
838
+ }
839
+
840
+ pub(crate) fn info(&self, types: &TypeList) -> TypeInfo {
841
+ match self {
842
+ Self::Func(id) | Self::Tag(id) => types[*id].type_info(types),
843
+ Self::Table(_) | Self::Memory(_) | Self::Global(_) => TypeInfo::new(),
844
+ }
845
+ }
846
+ }
847
+
848
+ trait ModuleImportKey {
849
+ fn module(&self) -> &str;
850
+ fn name(&self) -> &str;
851
+ }
852
+
853
+ impl<'a> Borrow<dyn ModuleImportKey + 'a> for (String, String) {
854
+ fn borrow(&self) -> &(dyn ModuleImportKey + 'a) {
855
+ self
856
+ }
857
+ }
858
+
859
+ impl Hash for (dyn ModuleImportKey + '_) {
860
+ fn hash<H: Hasher>(&self, state: &mut H) {
861
+ self.module().hash(state);
862
+ self.name().hash(state);
863
+ }
864
+ }
865
+
866
+ impl PartialEq for (dyn ModuleImportKey + '_) {
867
+ fn eq(&self, other: &Self) -> bool {
868
+ self.module() == other.module() && self.name() == other.name()
869
+ }
870
+ }
871
+
872
+ impl Eq for (dyn ModuleImportKey + '_) {}
873
+
874
+ impl ModuleImportKey for (String, String) {
875
+ fn module(&self) -> &str {
876
+ &self.0
877
+ }
878
+
879
+ fn name(&self) -> &str {
880
+ &self.1
881
+ }
882
+ }
883
+
884
+ impl ModuleImportKey for (&str, &str) {
885
+ fn module(&self) -> &str {
886
+ self.0
887
+ }
888
+
889
+ fn name(&self) -> &str {
890
+ self.1
891
+ }
892
+ }
893
+
894
+ /// Represents a core module type.
895
+ #[derive(Debug, Clone)]
896
+ pub struct ModuleType {
897
+ /// Metadata about this module type
898
+ pub(crate) info: TypeInfo,
899
+ /// The imports of the module type.
900
+ pub imports: IndexMap<(String, String), EntityType>,
901
+ /// The exports of the module type.
902
+ pub exports: IndexMap<String, EntityType>,
903
+ }
904
+
905
+ impl TypeData for ModuleType {
906
+ type Id = ComponentCoreModuleTypeId;
907
+
908
+ fn type_info(&self, _types: &TypeList) -> TypeInfo {
909
+ self.info
910
+ }
911
+ }
912
+
913
+ impl ModuleType {
914
+ /// Looks up an import by its module and name.
915
+ ///
916
+ /// Returns `None` if the import was not found.
917
+ pub fn lookup_import(&self, module: &str, name: &str) -> Option<&EntityType> {
918
+ self.imports.get(&(module, name) as &dyn ModuleImportKey)
919
+ }
920
+ }
921
+
922
+ /// Represents the kind of module instance type.
923
+ #[derive(Debug, Clone)]
924
+ pub enum CoreInstanceTypeKind {
925
+ /// The instance type is the result of instantiating a module type.
926
+ Instantiated(ComponentCoreModuleTypeId),
927
+
928
+ /// The instance type is the result of instantiating from exported items.
929
+ Exports(IndexMap<String, EntityType>),
930
+ }
931
+
932
+ /// Represents a module instance type.
933
+ #[derive(Debug, Clone)]
934
+ pub struct InstanceType {
935
+ /// Metadata about this instance type
936
+ pub(crate) info: TypeInfo,
937
+ /// The kind of module instance type.
938
+ pub kind: CoreInstanceTypeKind,
939
+ }
940
+
941
+ impl TypeData for InstanceType {
942
+ type Id = ComponentCoreInstanceTypeId;
943
+
944
+ fn type_info(&self, _types: &TypeList) -> TypeInfo {
945
+ self.info
946
+ }
947
+ }
948
+
949
+ impl InstanceType {
950
+ /// Gets the exports of the instance type.
951
+ pub fn exports<'a>(&'a self, types: TypesRef<'a>) -> &'a IndexMap<String, EntityType> {
952
+ self.internal_exports(types.list)
953
+ }
954
+
955
+ pub(crate) fn internal_exports<'a>(
956
+ &'a self,
957
+ types: &'a TypeList,
958
+ ) -> &'a IndexMap<String, EntityType> {
959
+ match &self.kind {
960
+ CoreInstanceTypeKind::Instantiated(id) => &types[*id].exports,
961
+ CoreInstanceTypeKind::Exports(exports) => exports,
962
+ }
963
+ }
964
+ }
965
+
966
+ /// The entity type for imports and exports of a component.
967
+ #[derive(Debug, Clone, Copy)]
968
+ pub enum ComponentEntityType {
969
+ /// The entity is a core module.
970
+ Module(ComponentCoreModuleTypeId),
971
+ /// The entity is a function.
972
+ Func(ComponentFuncTypeId),
973
+ /// The entity is a value.
974
+ Value(ComponentValType),
975
+ /// The entity is a type.
976
+ Type {
977
+ /// This is the identifier of the type that was referenced when this
978
+ /// entity was created.
979
+ referenced: ComponentAnyTypeId,
980
+ /// This is the identifier of the type that was created when this type
981
+ /// was imported or exported from the component.
982
+ ///
983
+ /// Note that the underlying type information for the `referenced`
984
+ /// field and for this `created` field is the same, but these two types
985
+ /// will hash to different values.
986
+ created: ComponentAnyTypeId,
987
+ },
988
+ /// The entity is a component instance.
989
+ Instance(ComponentInstanceTypeId),
990
+ /// The entity is a component.
991
+ Component(ComponentTypeId),
992
+ }
993
+
994
+ impl ComponentEntityType {
995
+ /// Determines if component entity type `a` is a subtype of `b`.
996
+ pub fn is_subtype_of(a: &Self, at: TypesRef, b: &Self, bt: TypesRef) -> bool {
997
+ SubtypeCx::new(at.list, bt.list)
998
+ .component_entity_type(a, b, 0)
999
+ .is_ok()
1000
+ }
1001
+
1002
+ pub(crate) fn desc(&self) -> &'static str {
1003
+ match self {
1004
+ Self::Module(_) => "module",
1005
+ Self::Func(_) => "func",
1006
+ Self::Value(_) => "value",
1007
+ Self::Type { .. } => "type",
1008
+ Self::Instance(_) => "instance",
1009
+ Self::Component(_) => "component",
1010
+ }
1011
+ }
1012
+
1013
+ pub(crate) fn info(&self, types: &TypeList) -> TypeInfo {
1014
+ match self {
1015
+ Self::Module(ty) => types[*ty].type_info(types),
1016
+ Self::Func(ty) => types[*ty].type_info(types),
1017
+ Self::Type { referenced: ty, .. } => ty.info(types),
1018
+ Self::Instance(ty) => types[*ty].type_info(types),
1019
+ Self::Component(ty) => types[*ty].type_info(types),
1020
+ Self::Value(ty) => ty.info(types),
1021
+ }
1022
+ }
1023
+ }
1024
+
1025
+ /// Represents a type of a component.
1026
+ #[derive(Debug, Clone)]
1027
+ pub struct ComponentType {
1028
+ /// Metadata about this component type
1029
+ pub(crate) info: TypeInfo,
1030
+
1031
+ /// The imports of the component type.
1032
+ ///
1033
+ /// Each import has its own kebab-name and an optional URL listed. Note that
1034
+ /// the set of import names is disjoint with the set of export names.
1035
+ pub imports: IndexMap<String, ComponentEntityType>,
1036
+
1037
+ /// The exports of the component type.
1038
+ ///
1039
+ /// Each export has its own kebab-name and an optional URL listed. Note that
1040
+ /// the set of export names is disjoint with the set of import names.
1041
+ pub exports: IndexMap<String, ComponentEntityType>,
1042
+
1043
+ /// Universally quantified resources required to be provided when
1044
+ /// instantiating this component type.
1045
+ ///
1046
+ /// Each resource in this map is explicitly imported somewhere in the
1047
+ /// `imports` map. The "path" to where it's imported is specified by the
1048
+ /// `Vec<usize>` payload here. For more information about the indexes see
1049
+ /// the documentation on `ComponentState::imported_resources`.
1050
+ ///
1051
+ /// This should technically be inferrable from the structure of `imports`,
1052
+ /// but it's stored as an auxiliary set for subtype checking and
1053
+ /// instantiation.
1054
+ ///
1055
+ /// Note that this is not a set of all resources referred to by the
1056
+ /// `imports`. Instead it's only those created, relative to the internals of
1057
+ /// this component, by the imports.
1058
+ pub imported_resources: Vec<(ResourceId, Vec<usize>)>,
1059
+
1060
+ /// The dual of the `imported_resources`, or the set of defined
1061
+ /// resources -- those created through the instantiation process which are
1062
+ /// unique to this component.
1063
+ ///
1064
+ /// This set is similar to the `imported_resources` set but it's those
1065
+ /// contained within the `exports`. Instantiating this component will
1066
+ /// create fresh new versions of all of these resources. The path here is
1067
+ /// within the `exports` array.
1068
+ pub defined_resources: Vec<(ResourceId, Vec<usize>)>,
1069
+
1070
+ /// The set of all resources which are explicitly exported by this
1071
+ /// component, and where they're exported.
1072
+ ///
1073
+ /// This mapping is stored separately from `defined_resources` to ensure
1074
+ /// that it contains all exported resources, not just those which are
1075
+ /// defined. That means that this can cover reexports of imported
1076
+ /// resources, exports of local resources, or exports of closed-over
1077
+ /// resources for example.
1078
+ pub explicit_resources: IndexMap<ResourceId, Vec<usize>>,
1079
+ }
1080
+
1081
+ impl TypeData for ComponentType {
1082
+ type Id = ComponentTypeId;
1083
+
1084
+ fn type_info(&self, _types: &TypeList) -> TypeInfo {
1085
+ self.info
1086
+ }
1087
+ }
1088
+
1089
+ /// Represents a type of a component instance.
1090
+ #[derive(Debug, Clone)]
1091
+ pub struct ComponentInstanceType {
1092
+ /// Metadata about this instance type
1093
+ pub(crate) info: TypeInfo,
1094
+
1095
+ /// The list of exports, keyed by name, that this instance has.
1096
+ ///
1097
+ /// An optional URL and type of each export is provided as well.
1098
+ pub exports: IndexMap<String, ComponentEntityType>,
1099
+
1100
+ /// The list of "defined resources" or those which are closed over in
1101
+ /// this instance type.
1102
+ ///
1103
+ /// This list is populated, for example, when the type of an instance is
1104
+ /// declared and it contains its own resource type exports defined
1105
+ /// internally. For example:
1106
+ ///
1107
+ /// ```wasm
1108
+ /// (component
1109
+ /// (type (instance
1110
+ /// (export "x" (type sub resource)) ;; one `defined_resources` entry
1111
+ /// ))
1112
+ /// )
1113
+ /// ```
1114
+ ///
1115
+ /// This list is also a bit of an oddity, however, because the type of a
1116
+ /// concrete instance will always have this as empty. For example:
1117
+ ///
1118
+ /// ```wasm
1119
+ /// (component
1120
+ /// (type $t (instance (export "x" (type sub resource))))
1121
+ ///
1122
+ /// ;; the type of this instance has no defined resources
1123
+ /// (import "i" (instance (type $t)))
1124
+ /// )
1125
+ /// ```
1126
+ ///
1127
+ /// This list ends up only being populated for instance types declared in a
1128
+ /// module which aren't yet "attached" to anything. Once something is
1129
+ /// instantiated, imported, exported, or otherwise refers to a concrete
1130
+ /// instance then this list is always empty. For concrete instances
1131
+ /// defined resources are tracked in the component state or component type.
1132
+ pub defined_resources: Vec<ResourceId>,
1133
+
1134
+ /// The list of all resources that are explicitly exported from this
1135
+ /// instance type along with the path they're exported at.
1136
+ pub explicit_resources: IndexMap<ResourceId, Vec<usize>>,
1137
+ }
1138
+
1139
+ impl TypeData for ComponentInstanceType {
1140
+ type Id = ComponentInstanceTypeId;
1141
+
1142
+ fn type_info(&self, _types: &TypeList) -> TypeInfo {
1143
+ self.info
1144
+ }
1145
+ }
1146
+
1147
+ /// Represents a type of a component function.
1148
+ #[derive(Debug, Clone)]
1149
+ pub struct ComponentFuncType {
1150
+ /// Metadata about this function type.
1151
+ pub(crate) info: TypeInfo,
1152
+ /// The function parameters.
1153
+ pub params: Box<[(KebabString, ComponentValType)]>,
1154
+ /// The function's results.
1155
+ pub results: Box<[(Option<KebabString>, ComponentValType)]>,
1156
+ }
1157
+
1158
+ impl TypeData for ComponentFuncType {
1159
+ type Id = ComponentFuncTypeId;
1160
+
1161
+ fn type_info(&self, _types: &TypeList) -> TypeInfo {
1162
+ self.info
1163
+ }
1164
+ }
1165
+
1166
+ impl ComponentFuncType {
1167
+ /// Lowers the component function type to core parameter and result types for the
1168
+ /// canonical ABI.
1169
+ pub(crate) fn lower(&self, types: &TypeList, is_lower: bool) -> LoweringInfo {
1170
+ let mut info = LoweringInfo::default();
1171
+
1172
+ for (_, ty) in self.params.iter() {
1173
+ // Check to see if `ty` has a pointer somewhere in it, needed for
1174
+ // any type that transitively contains either a string or a list.
1175
+ // In this situation lowered functions must specify `memory`, and
1176
+ // lifted functions must specify `realloc` as well. Lifted functions
1177
+ // gain their memory requirement through the final clause of this
1178
+ // function.
1179
+ if is_lower {
1180
+ if !info.requires_memory {
1181
+ info.requires_memory = ty.contains_ptr(types);
1182
+ }
1183
+ } else {
1184
+ if !info.requires_realloc {
1185
+ info.requires_realloc = ty.contains_ptr(types);
1186
+ }
1187
+ }
1188
+
1189
+ if !ty.push_wasm_types(types, &mut info.params) {
1190
+ // Too many parameters to pass directly
1191
+ // Function will have a single pointer parameter to pass the arguments
1192
+ // via linear memory
1193
+ info.params.clear();
1194
+ assert!(info.params.push(ValType::I32));
1195
+ info.requires_memory = true;
1196
+
1197
+ // We need realloc as well when lifting a function
1198
+ if !is_lower {
1199
+ info.requires_realloc = true;
1200
+ }
1201
+ break;
1202
+ }
1203
+ }
1204
+
1205
+ for (_, ty) in self.results.iter() {
1206
+ // Results of lowered functions that contains pointers must be
1207
+ // allocated by the callee meaning that realloc is required.
1208
+ // Results of lifted function are allocated by the guest which
1209
+ // means that no realloc option is necessary.
1210
+ if is_lower && !info.requires_realloc {
1211
+ info.requires_realloc = ty.contains_ptr(types);
1212
+ }
1213
+
1214
+ if !ty.push_wasm_types(types, &mut info.results) {
1215
+ // Too many results to return directly, either a retptr parameter will be used (import)
1216
+ // or a single pointer will be returned (export)
1217
+ info.results.clear();
1218
+ if is_lower {
1219
+ info.params.max = MAX_LOWERED_TYPES;
1220
+ assert!(info.params.push(ValType::I32));
1221
+ } else {
1222
+ assert!(info.results.push(ValType::I32));
1223
+ }
1224
+ info.requires_memory = true;
1225
+ break;
1226
+ }
1227
+ }
1228
+
1229
+ // Memory is always required when realloc is required
1230
+ info.requires_memory |= info.requires_realloc;
1231
+
1232
+ info
1233
+ }
1234
+ }
1235
+
1236
+ /// Represents a variant case.
1237
+ #[derive(Debug, Clone)]
1238
+ pub struct VariantCase {
1239
+ /// The variant case type.
1240
+ pub ty: Option<ComponentValType>,
1241
+ /// The name of the variant case refined by this one.
1242
+ pub refines: Option<KebabString>,
1243
+ }
1244
+
1245
+ /// Represents a record type.
1246
+ #[derive(Debug, Clone)]
1247
+ pub struct RecordType {
1248
+ /// Metadata about this record type.
1249
+ pub(crate) info: TypeInfo,
1250
+ /// The map of record fields.
1251
+ pub fields: IndexMap<KebabString, ComponentValType>,
1252
+ }
1253
+
1254
+ /// Represents a variant type.
1255
+ #[derive(Debug, Clone)]
1256
+ pub struct VariantType {
1257
+ /// Metadata about this variant type.
1258
+ pub(crate) info: TypeInfo,
1259
+ /// The map of variant cases.
1260
+ pub cases: IndexMap<KebabString, VariantCase>,
1261
+ }
1262
+
1263
+ /// Represents a tuple type.
1264
+ #[derive(Debug, Clone)]
1265
+ pub struct TupleType {
1266
+ /// Metadata about this tuple type.
1267
+ pub(crate) info: TypeInfo,
1268
+ /// The types of the tuple.
1269
+ pub types: Box<[ComponentValType]>,
1270
+ }
1271
+
1272
+ /// Represents a component defined type.
1273
+ #[derive(Debug, Clone)]
1274
+ pub enum ComponentDefinedType {
1275
+ /// The type is a primitive value type.
1276
+ Primitive(PrimitiveValType),
1277
+ /// The type is a record.
1278
+ Record(RecordType),
1279
+ /// The type is a variant.
1280
+ Variant(VariantType),
1281
+ /// The type is a list.
1282
+ List(ComponentValType),
1283
+ /// The type is a tuple.
1284
+ Tuple(TupleType),
1285
+ /// The type is a set of flags.
1286
+ Flags(IndexSet<KebabString>),
1287
+ /// The type is an enumeration.
1288
+ Enum(IndexSet<KebabString>),
1289
+ /// The type is an `option`.
1290
+ Option(ComponentValType),
1291
+ /// The type is a `result`.
1292
+ Result {
1293
+ /// The `ok` type.
1294
+ ok: Option<ComponentValType>,
1295
+ /// The `error` type.
1296
+ err: Option<ComponentValType>,
1297
+ },
1298
+ /// The type is an owned handle to the specified resource.
1299
+ Own(AliasableResourceId),
1300
+ /// The type is a borrowed handle to the specified resource.
1301
+ Borrow(AliasableResourceId),
1302
+ }
1303
+
1304
+ impl TypeData for ComponentDefinedType {
1305
+ type Id = ComponentDefinedTypeId;
1306
+
1307
+ fn type_info(&self, types: &TypeList) -> TypeInfo {
1308
+ match self {
1309
+ Self::Primitive(_) | Self::Flags(_) | Self::Enum(_) | Self::Own(_) => TypeInfo::new(),
1310
+ Self::Borrow(_) => TypeInfo::borrow(),
1311
+ Self::Record(r) => r.info,
1312
+ Self::Variant(v) => v.info,
1313
+ Self::Tuple(t) => t.info,
1314
+ Self::List(ty) | Self::Option(ty) => ty.info(types),
1315
+ Self::Result { ok, err } => {
1316
+ let default = TypeInfo::new();
1317
+ let mut info = ok.map(|ty| ty.type_info(types)).unwrap_or(default);
1318
+ info.combine(err.map(|ty| ty.type_info(types)).unwrap_or(default), 0)
1319
+ .unwrap();
1320
+ info
1321
+ }
1322
+ }
1323
+ }
1324
+ }
1325
+
1326
+ impl ComponentDefinedType {
1327
+ pub(crate) fn contains_ptr(&self, types: &TypeList) -> bool {
1328
+ match self {
1329
+ Self::Primitive(ty) => ty.contains_ptr(),
1330
+ Self::Record(r) => r.fields.values().any(|ty| ty.contains_ptr(types)),
1331
+ Self::Variant(v) => v
1332
+ .cases
1333
+ .values()
1334
+ .any(|case| case.ty.map(|ty| ty.contains_ptr(types)).unwrap_or(false)),
1335
+ Self::List(_) => true,
1336
+ Self::Tuple(t) => t.types.iter().any(|ty| ty.contains_ptr(types)),
1337
+ Self::Flags(_) | Self::Enum(_) | Self::Own(_) | Self::Borrow(_) => false,
1338
+ Self::Option(ty) => ty.contains_ptr(types),
1339
+ Self::Result { ok, err } => {
1340
+ ok.map(|ty| ty.contains_ptr(types)).unwrap_or(false)
1341
+ || err.map(|ty| ty.contains_ptr(types)).unwrap_or(false)
1342
+ }
1343
+ }
1344
+ }
1345
+
1346
+ fn push_wasm_types(&self, types: &TypeList, lowered_types: &mut LoweredTypes) -> bool {
1347
+ match self {
1348
+ Self::Primitive(ty) => push_primitive_wasm_types(ty, lowered_types),
1349
+ Self::Record(r) => r
1350
+ .fields
1351
+ .iter()
1352
+ .all(|(_, ty)| ty.push_wasm_types(types, lowered_types)),
1353
+ Self::Variant(v) => Self::push_variant_wasm_types(
1354
+ v.cases.iter().filter_map(|(_, case)| case.ty.as_ref()),
1355
+ types,
1356
+ lowered_types,
1357
+ ),
1358
+ Self::List(_) => lowered_types.push(ValType::I32) && lowered_types.push(ValType::I32),
1359
+ Self::Tuple(t) => t
1360
+ .types
1361
+ .iter()
1362
+ .all(|ty| ty.push_wasm_types(types, lowered_types)),
1363
+ Self::Flags(names) => {
1364
+ (0..(names.len() + 31) / 32).all(|_| lowered_types.push(ValType::I32))
1365
+ }
1366
+ Self::Enum(_) | Self::Own(_) | Self::Borrow(_) => lowered_types.push(ValType::I32),
1367
+ Self::Option(ty) => {
1368
+ Self::push_variant_wasm_types([ty].into_iter(), types, lowered_types)
1369
+ }
1370
+ Self::Result { ok, err } => {
1371
+ Self::push_variant_wasm_types(ok.iter().chain(err.iter()), types, lowered_types)
1372
+ }
1373
+ }
1374
+ }
1375
+
1376
+ fn push_variant_wasm_types<'a>(
1377
+ cases: impl Iterator<Item = &'a ComponentValType>,
1378
+ types: &TypeList,
1379
+ lowered_types: &mut LoweredTypes,
1380
+ ) -> bool {
1381
+ // Push the discriminant
1382
+ if !lowered_types.push(ValType::I32) {
1383
+ return false;
1384
+ }
1385
+
1386
+ let start = lowered_types.len();
1387
+
1388
+ for ty in cases {
1389
+ let mut temp = LoweredTypes::new(lowered_types.max);
1390
+
1391
+ if !ty.push_wasm_types(types, &mut temp) {
1392
+ return false;
1393
+ }
1394
+
1395
+ for (i, ty) in temp.iter().enumerate() {
1396
+ match lowered_types.get_mut(start + i) {
1397
+ Some(prev) => *prev = Self::join_types(*prev, ty),
1398
+ None => {
1399
+ if !lowered_types.push(ty) {
1400
+ return false;
1401
+ }
1402
+ }
1403
+ }
1404
+ }
1405
+ }
1406
+
1407
+ true
1408
+ }
1409
+
1410
+ fn join_types(a: ValType, b: ValType) -> ValType {
1411
+ use ValType::*;
1412
+
1413
+ match (a, b) {
1414
+ (I32, I32) | (I64, I64) | (F32, F32) | (F64, F64) => a,
1415
+ (I32, F32) | (F32, I32) => I32,
1416
+ (_, I64 | F64) | (I64 | F64, _) => I64,
1417
+ _ => panic!("unexpected wasm type for canonical ABI"),
1418
+ }
1419
+ }
1420
+
1421
+ fn desc(&self) -> &'static str {
1422
+ match self {
1423
+ ComponentDefinedType::Record(_) => "record",
1424
+ ComponentDefinedType::Primitive(_) => "primitive",
1425
+ ComponentDefinedType::Variant(_) => "variant",
1426
+ ComponentDefinedType::Tuple(_) => "tuple",
1427
+ ComponentDefinedType::Enum(_) => "enum",
1428
+ ComponentDefinedType::Flags(_) => "flags",
1429
+ ComponentDefinedType::Option(_) => "option",
1430
+ ComponentDefinedType::List(_) => "list",
1431
+ ComponentDefinedType::Result { .. } => "result",
1432
+ ComponentDefinedType::Own(_) => "own",
1433
+ ComponentDefinedType::Borrow(_) => "borrow",
1434
+ }
1435
+ }
1436
+ }
1437
+
1438
+ /// An opaque identifier intended to be used to distinguish whether two
1439
+ /// resource types are equivalent or not.
1440
+ #[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, Copy)]
1441
+ #[repr(packed(4))] // try to not waste 4 bytes in padding
1442
+ pub struct ResourceId {
1443
+ // This is a globally unique identifier which is assigned once per
1444
+ // `TypeAlloc`. This ensures that resource identifiers from different
1445
+ // instances of `Types`, for example, are considered unique.
1446
+ //
1447
+ // Technically 64-bits should be enough for all resource ids ever, but
1448
+ // they're allocated so often it's predicted that an atomic increment
1449
+ // per resource id is probably too expensive. To amortize that cost each
1450
+ // top-level wasm component gets a single globally unique identifier, and
1451
+ // then within a component contextually unique identifiers are handed out.
1452
+ globally_unique_id: usize,
1453
+
1454
+ // A contextually unique id within the globally unique id above. This is
1455
+ // allocated within a `TypeAlloc` with its own counter, and allocations of
1456
+ // this are cheap as nothing atomic is required.
1457
+ //
1458
+ // The 32-bit storage here should ideally be enough for any component
1459
+ // containing resources. If memory usage becomes an issue (this struct is
1460
+ // 12 bytes instead of 8 or 4) then this could get folded into the globally
1461
+ // unique id with everything using an atomic increment perhaps.
1462
+ contextually_unique_id: u32,
1463
+ }
1464
+
1465
+ #[allow(clippy::large_enum_variant)]
1466
+ enum TypesKind {
1467
+ Module(Arc<Module>),
1468
+ Component(ComponentState),
1469
+ }
1470
+
1471
+ /// Represents the types known to a [`crate::Validator`] once validation has completed.
1472
+ ///
1473
+ /// The type information is returned via the [`crate::Validator::end`] method.
1474
+ pub struct Types {
1475
+ id: ValidatorId,
1476
+ list: TypeList,
1477
+ kind: TypesKind,
1478
+ }
1479
+
1480
+ #[derive(Clone, Copy)]
1481
+ enum TypesRefKind<'a> {
1482
+ Module(&'a Module),
1483
+ Component(&'a ComponentState),
1484
+ }
1485
+
1486
+ /// Represents the types known to a [`crate::Validator`] during validation.
1487
+ ///
1488
+ /// Retrieved via the [`crate::Validator::types`] method.
1489
+ #[derive(Clone, Copy)]
1490
+ pub struct TypesRef<'a> {
1491
+ id: ValidatorId,
1492
+ list: &'a TypeList,
1493
+ kind: TypesRefKind<'a>,
1494
+ }
1495
+
1496
+ impl<'a> TypesRef<'a> {
1497
+ pub(crate) fn from_module(id: ValidatorId, types: &'a TypeList, module: &'a Module) -> Self {
1498
+ Self {
1499
+ id,
1500
+ list: types,
1501
+ kind: TypesRefKind::Module(module),
1502
+ }
1503
+ }
1504
+
1505
+ pub(crate) fn from_component(
1506
+ id: ValidatorId,
1507
+ types: &'a TypeList,
1508
+ component: &'a ComponentState,
1509
+ ) -> Self {
1510
+ Self {
1511
+ id,
1512
+ list: types,
1513
+ kind: TypesRefKind::Component(component),
1514
+ }
1515
+ }
1516
+
1517
+ /// Get the id of the validator that these types are associated with.
1518
+ #[inline]
1519
+ pub fn id(&self) -> ValidatorId {
1520
+ self.id
1521
+ }
1522
+
1523
+ /// Gets a type based on its type id.
1524
+ ///
1525
+ /// Returns `None` if the type id is unknown.
1526
+ pub fn get<T>(&self, id: T) -> Option<&'a T::Data>
1527
+ where
1528
+ T: TypeIdentifier,
1529
+ {
1530
+ self.list.get(id)
1531
+ }
1532
+
1533
+ /// Get the id of the rec group that the given type id was defined within.
1534
+ pub fn rec_group_id_of(&self, id: CoreTypeId) -> RecGroupId {
1535
+ self.list.rec_group_id_of(id)
1536
+ }
1537
+
1538
+ /// Get the types within a rec group.
1539
+ pub fn rec_group_elements(&self, id: RecGroupId) -> impl ExactSizeIterator<Item = CoreTypeId> {
1540
+ let range = &self.list.rec_group_elements[id];
1541
+ (range.start.index..range.end.index).map(|index| CoreTypeId { index })
1542
+ }
1543
+
1544
+ /// Get the super type of the given type id, if any.
1545
+ pub fn supertype_of(&self, id: CoreTypeId) -> Option<CoreTypeId> {
1546
+ self.list.supertype_of(id)
1547
+ }
1548
+
1549
+ /// Gets a core WebAssembly type id from a type index.
1550
+ ///
1551
+ /// Note that this is in contrast to [`TypesRef::component_type_at`] which
1552
+ /// gets a component type from its index.
1553
+ ///
1554
+ /// # Panics
1555
+ ///
1556
+ /// This will panic if the `index` provided is out of bounds.
1557
+ pub fn core_type_at(&self, index: u32) -> ComponentCoreTypeId {
1558
+ match &self.kind {
1559
+ TypesRefKind::Module(module) => ComponentCoreTypeId::Sub(module.types[index as usize]),
1560
+ TypesRefKind::Component(component) => component.core_types[index as usize],
1561
+ }
1562
+ }
1563
+
1564
+ /// Gets a type id from a type index.
1565
+ ///
1566
+ /// # Panics
1567
+ ///
1568
+ /// Panics if `index` is not a valid type index or if this type information
1569
+ /// represents a core module.
1570
+ pub fn component_any_type_at(&self, index: u32) -> ComponentAnyTypeId {
1571
+ match &self.kind {
1572
+ TypesRefKind::Module(_) => panic!("not a component"),
1573
+ TypesRefKind::Component(component) => component.types[index as usize],
1574
+ }
1575
+ }
1576
+
1577
+ /// Gets a component type id from a type index.
1578
+ ///
1579
+ /// # Panics
1580
+ ///
1581
+ /// Panics if `index` is not a valid component type index or if this type
1582
+ /// information represents a core module.
1583
+ pub fn component_type_at(&self, index: u32) -> ComponentTypeId {
1584
+ match self.component_any_type_at(index) {
1585
+ ComponentAnyTypeId::Component(id) => id,
1586
+ _ => panic!("not a component type"),
1587
+ }
1588
+ }
1589
+
1590
+ /// Gets a type id from a type index.
1591
+ ///
1592
+ /// # Panics
1593
+ ///
1594
+ /// Panics if `index` is not a valid function index or if this type
1595
+ /// information represents a core module.
1596
+ pub fn component_defined_type_at(&self, index: u32) -> ComponentDefinedTypeId {
1597
+ match self.component_any_type_at(index) {
1598
+ ComponentAnyTypeId::Defined(id) => id,
1599
+ _ => panic!("not a defined type"),
1600
+ }
1601
+ }
1602
+
1603
+ /// Returns the number of core types defined so far.
1604
+ pub fn core_type_count(&self) -> u32 {
1605
+ match &self.kind {
1606
+ TypesRefKind::Module(module) => module.types.len() as u32,
1607
+ TypesRefKind::Component(component) => component.core_types.len() as u32,
1608
+ }
1609
+ }
1610
+
1611
+ /// Returns the number of component types defined so far.
1612
+ pub fn component_type_count(&self) -> u32 {
1613
+ match &self.kind {
1614
+ TypesRefKind::Module(_module) => 0,
1615
+ TypesRefKind::Component(component) => component.types.len() as u32,
1616
+ }
1617
+ }
1618
+
1619
+ /// Gets the type of a table at the given table index.
1620
+ ///
1621
+ /// # Panics
1622
+ ///
1623
+ /// This will panic if the `index` provided is out of bounds.
1624
+ pub fn table_at(&self, index: u32) -> TableType {
1625
+ let tables = match &self.kind {
1626
+ TypesRefKind::Module(module) => &module.tables,
1627
+ TypesRefKind::Component(component) => &component.core_tables,
1628
+ };
1629
+ tables[index as usize]
1630
+ }
1631
+
1632
+ /// Returns the number of tables defined so far.
1633
+ pub fn table_count(&self) -> u32 {
1634
+ match &self.kind {
1635
+ TypesRefKind::Module(module) => module.tables.len() as u32,
1636
+ TypesRefKind::Component(component) => component.core_tables.len() as u32,
1637
+ }
1638
+ }
1639
+
1640
+ /// Gets the type of a memory at the given memory index.
1641
+ ///
1642
+ /// # Panics
1643
+ ///
1644
+ /// This will panic if the `index` provided is out of bounds.
1645
+ pub fn memory_at(&self, index: u32) -> MemoryType {
1646
+ let memories = match &self.kind {
1647
+ TypesRefKind::Module(module) => &module.memories,
1648
+ TypesRefKind::Component(component) => &component.core_memories,
1649
+ };
1650
+
1651
+ memories[index as usize]
1652
+ }
1653
+
1654
+ /// Returns the number of memories defined so far.
1655
+ pub fn memory_count(&self) -> u32 {
1656
+ match &self.kind {
1657
+ TypesRefKind::Module(module) => module.memories.len() as u32,
1658
+ TypesRefKind::Component(component) => component.core_memories.len() as u32,
1659
+ }
1660
+ }
1661
+
1662
+ /// Gets the type of a global at the given global index.
1663
+ ///
1664
+ /// # Panics
1665
+ ///
1666
+ /// This will panic if the `index` provided is out of bounds.
1667
+ pub fn global_at(&self, index: u32) -> GlobalType {
1668
+ let globals = match &self.kind {
1669
+ TypesRefKind::Module(module) => &module.globals,
1670
+ TypesRefKind::Component(component) => &component.core_globals,
1671
+ };
1672
+
1673
+ globals[index as usize]
1674
+ }
1675
+
1676
+ /// Returns the number of globals defined so far.
1677
+ pub fn global_count(&self) -> u32 {
1678
+ match &self.kind {
1679
+ TypesRefKind::Module(module) => module.globals.len() as u32,
1680
+ TypesRefKind::Component(component) => component.core_globals.len() as u32,
1681
+ }
1682
+ }
1683
+
1684
+ /// Gets the type of a tag at the given tag index.
1685
+ ///
1686
+ /// # Panics
1687
+ ///
1688
+ /// This will panic if the `index` provided is out of bounds.
1689
+ pub fn tag_at(&self, index: u32) -> CoreTypeId {
1690
+ let tags = match &self.kind {
1691
+ TypesRefKind::Module(module) => &module.tags,
1692
+ TypesRefKind::Component(component) => &component.core_tags,
1693
+ };
1694
+ tags[index as usize]
1695
+ }
1696
+
1697
+ /// Returns the number of tags defined so far.
1698
+ pub fn tag_count(&self) -> u32 {
1699
+ match &self.kind {
1700
+ TypesRefKind::Module(module) => module.tags.len() as u32,
1701
+ TypesRefKind::Component(component) => component.core_tags.len() as u32,
1702
+ }
1703
+ }
1704
+
1705
+ /// Gets the type of a core function at the given function index.
1706
+ ///
1707
+ /// # Panics
1708
+ ///
1709
+ /// This will panic if the `index` provided is out of bounds.
1710
+ pub fn core_function_at(&self, index: u32) -> CoreTypeId {
1711
+ match &self.kind {
1712
+ TypesRefKind::Module(module) => module.types[module.functions[index as usize] as usize],
1713
+ TypesRefKind::Component(component) => component.core_funcs[index as usize],
1714
+ }
1715
+ }
1716
+
1717
+ /// Gets the count of core functions defined so far.
1718
+ ///
1719
+ /// Note that this includes imported functions, defined functions, and for
1720
+ /// components lowered/aliased functions.
1721
+ pub fn function_count(&self) -> u32 {
1722
+ match &self.kind {
1723
+ TypesRefKind::Module(module) => module.functions.len() as u32,
1724
+ TypesRefKind::Component(component) => component.core_funcs.len() as u32,
1725
+ }
1726
+ }
1727
+
1728
+ /// Gets the type of an element segment at the given element segment index.
1729
+ ///
1730
+ /// # Panics
1731
+ ///
1732
+ /// This will panic if the `index` provided is out of bounds.
1733
+ pub fn element_at(&self, index: u32) -> RefType {
1734
+ match &self.kind {
1735
+ TypesRefKind::Module(module) => module.element_types[index as usize],
1736
+ TypesRefKind::Component(_) => {
1737
+ panic!("no elements on a component")
1738
+ }
1739
+ }
1740
+ }
1741
+
1742
+ /// Returns the number of elements defined so far.
1743
+ pub fn element_count(&self) -> u32 {
1744
+ match &self.kind {
1745
+ TypesRefKind::Module(module) => module.element_types.len() as u32,
1746
+ TypesRefKind::Component(_) => 0,
1747
+ }
1748
+ }
1749
+
1750
+ /// Gets the type of a component function at the given function index.
1751
+ ///
1752
+ /// # Panics
1753
+ ///
1754
+ /// This will panic if the `index` provided is out of bounds or if this type
1755
+ /// information represents a core module.
1756
+ pub fn component_function_at(&self, index: u32) -> ComponentFuncTypeId {
1757
+ match &self.kind {
1758
+ TypesRefKind::Module(_) => panic!("not a component"),
1759
+ TypesRefKind::Component(component) => component.funcs[index as usize],
1760
+ }
1761
+ }
1762
+
1763
+ /// Returns the number of component functions defined so far.
1764
+ pub fn component_function_count(&self) -> u32 {
1765
+ match &self.kind {
1766
+ TypesRefKind::Module(_module) => 0,
1767
+ TypesRefKind::Component(component) => component.funcs.len() as u32,
1768
+ }
1769
+ }
1770
+
1771
+ /// Gets the type of a module at the given module index.
1772
+ ///
1773
+ /// # Panics
1774
+ ///
1775
+ /// This will panic if the `index` provided is out of bounds or if this type
1776
+ /// information represents a core module.
1777
+ pub fn module_at(&self, index: u32) -> ComponentCoreModuleTypeId {
1778
+ match &self.kind {
1779
+ TypesRefKind::Module(_) => panic!("not a component"),
1780
+ TypesRefKind::Component(component) => component.core_modules[index as usize],
1781
+ }
1782
+ }
1783
+
1784
+ /// Returns the number of core wasm modules defined so far.
1785
+ pub fn module_count(&self) -> u32 {
1786
+ match &self.kind {
1787
+ TypesRefKind::Module(_module) => 0,
1788
+ TypesRefKind::Component(component) => component.core_modules.len() as u32,
1789
+ }
1790
+ }
1791
+
1792
+ /// Gets the type of a module instance at the given module instance index.
1793
+ ///
1794
+ /// # Panics
1795
+ ///
1796
+ /// This will panic if the `index` provided is out of bounds or if this type
1797
+ /// information represents a core module.
1798
+ pub fn core_instance_at(&self, index: u32) -> ComponentCoreInstanceTypeId {
1799
+ match &self.kind {
1800
+ TypesRefKind::Module(_) => panic!("not a component"),
1801
+ TypesRefKind::Component(component) => component.core_instances[index as usize],
1802
+ }
1803
+ }
1804
+
1805
+ /// Returns the number of core wasm instances defined so far.
1806
+ pub fn core_instance_count(&self) -> u32 {
1807
+ match &self.kind {
1808
+ TypesRefKind::Module(_module) => 0,
1809
+ TypesRefKind::Component(component) => component.core_instances.len() as u32,
1810
+ }
1811
+ }
1812
+
1813
+ /// Gets the type of a component at the given component index.
1814
+ ///
1815
+ /// # Panics
1816
+ ///
1817
+ /// This will panic if the `index` provided is out of bounds or if this type
1818
+ /// information represents a core module.
1819
+ pub fn component_at(&self, index: u32) -> ComponentTypeId {
1820
+ match &self.kind {
1821
+ TypesRefKind::Module(_) => panic!("not a component"),
1822
+ TypesRefKind::Component(component) => component.components[index as usize],
1823
+ }
1824
+ }
1825
+
1826
+ /// Returns the number of components defined so far.
1827
+ pub fn component_count(&self) -> u32 {
1828
+ match &self.kind {
1829
+ TypesRefKind::Module(_module) => 0,
1830
+ TypesRefKind::Component(component) => component.components.len() as u32,
1831
+ }
1832
+ }
1833
+
1834
+ /// Gets the type of an component instance at the given component instance index.
1835
+ ///
1836
+ /// # Panics
1837
+ ///
1838
+ /// This will panic if the `index` provided is out of bounds or if this type
1839
+ /// information represents a core module.
1840
+ pub fn component_instance_at(&self, index: u32) -> ComponentInstanceTypeId {
1841
+ match &self.kind {
1842
+ TypesRefKind::Module(_) => panic!("not a component"),
1843
+ TypesRefKind::Component(component) => component.instances[index as usize],
1844
+ }
1845
+ }
1846
+
1847
+ /// Returns the number of component instances defined so far.
1848
+ pub fn component_instance_count(&self) -> u32 {
1849
+ match &self.kind {
1850
+ TypesRefKind::Module(_module) => 0,
1851
+ TypesRefKind::Component(component) => component.instances.len() as u32,
1852
+ }
1853
+ }
1854
+
1855
+ /// Gets the type of a value at the given value index.
1856
+ ///
1857
+ /// # Panics
1858
+ ///
1859
+ /// This will panic if the `index` provided is out of bounds or if this type
1860
+ /// information represents a core module.
1861
+ pub fn value_at(&self, index: u32) -> ComponentValType {
1862
+ match &self.kind {
1863
+ TypesRefKind::Module(_) => panic!("not a component"),
1864
+ TypesRefKind::Component(component) => component.values[index as usize].0,
1865
+ }
1866
+ }
1867
+
1868
+ /// Gets the entity type for the given import.
1869
+ pub fn entity_type_from_import(&self, import: &Import) -> Option<EntityType> {
1870
+ match &self.kind {
1871
+ TypesRefKind::Module(module) => Some(match import.ty {
1872
+ TypeRef::Func(idx) => EntityType::Func(*module.types.get(idx as usize)?),
1873
+ TypeRef::Table(ty) => EntityType::Table(ty),
1874
+ TypeRef::Memory(ty) => EntityType::Memory(ty),
1875
+ TypeRef::Global(ty) => EntityType::Global(ty),
1876
+ TypeRef::Tag(ty) => EntityType::Tag(*module.types.get(ty.func_type_idx as usize)?),
1877
+ }),
1878
+ TypesRefKind::Component(_) => None,
1879
+ }
1880
+ }
1881
+
1882
+ /// Gets the entity type from the given export.
1883
+ pub fn entity_type_from_export(&self, export: &Export) -> Option<EntityType> {
1884
+ match &self.kind {
1885
+ TypesRefKind::Module(module) => Some(match export.kind {
1886
+ ExternalKind::Func => EntityType::Func(
1887
+ module.types[*module.functions.get(export.index as usize)? as usize],
1888
+ ),
1889
+ ExternalKind::Table => {
1890
+ EntityType::Table(*module.tables.get(export.index as usize)?)
1891
+ }
1892
+ ExternalKind::Memory => {
1893
+ EntityType::Memory(*module.memories.get(export.index as usize)?)
1894
+ }
1895
+ ExternalKind::Global => {
1896
+ EntityType::Global(*module.globals.get(export.index as usize)?)
1897
+ }
1898
+ ExternalKind::Tag => EntityType::Tag(
1899
+ module.types[*module.functions.get(export.index as usize)? as usize],
1900
+ ),
1901
+ }),
1902
+ TypesRefKind::Component(_) => None,
1903
+ }
1904
+ }
1905
+
1906
+ /// Gets the component entity type for the given component import.
1907
+ pub fn component_entity_type_of_import(&self, name: &str) -> Option<ComponentEntityType> {
1908
+ match &self.kind {
1909
+ TypesRefKind::Module(_) => None,
1910
+ TypesRefKind::Component(component) => Some(*component.imports.get(name)?),
1911
+ }
1912
+ }
1913
+
1914
+ /// Gets the component entity type for the given component export.
1915
+ pub fn component_entity_type_of_export(&self, name: &str) -> Option<ComponentEntityType> {
1916
+ match &self.kind {
1917
+ TypesRefKind::Module(_) => None,
1918
+ TypesRefKind::Component(component) => Some(*component.exports.get(name)?),
1919
+ }
1920
+ }
1921
+
1922
+ /// Attempts to lookup the type id that `ty` is an alias of.
1923
+ ///
1924
+ /// Returns `None` if `ty` wasn't listed as aliasing a prior type.
1925
+ pub fn peel_alias<T>(&self, ty: T) -> Option<T>
1926
+ where
1927
+ T: Aliasable,
1928
+ {
1929
+ self.list.peel_alias(ty)
1930
+ }
1931
+ }
1932
+
1933
+ impl<T> Index<T> for TypesRef<'_>
1934
+ where
1935
+ T: TypeIdentifier,
1936
+ {
1937
+ type Output = T::Data;
1938
+
1939
+ fn index(&self, index: T) -> &Self::Output {
1940
+ &self.list[index]
1941
+ }
1942
+ }
1943
+
1944
+ impl Types {
1945
+ pub(crate) fn from_module(id: ValidatorId, types: TypeList, module: Arc<Module>) -> Self {
1946
+ Self {
1947
+ id,
1948
+ list: types,
1949
+ kind: TypesKind::Module(module),
1950
+ }
1951
+ }
1952
+
1953
+ pub(crate) fn from_component(
1954
+ id: ValidatorId,
1955
+ types: TypeList,
1956
+ component: ComponentState,
1957
+ ) -> Self {
1958
+ Self {
1959
+ id,
1960
+ list: types,
1961
+ kind: TypesKind::Component(component),
1962
+ }
1963
+ }
1964
+
1965
+ /// Get the id of the validator that these types are associated with.
1966
+ #[inline]
1967
+ pub fn id(&self) -> ValidatorId {
1968
+ self.id
1969
+ }
1970
+
1971
+ /// Gets a reference to this validation type information.
1972
+ pub fn as_ref(&self) -> TypesRef {
1973
+ TypesRef {
1974
+ id: self.id,
1975
+ list: &self.list,
1976
+ kind: match &self.kind {
1977
+ TypesKind::Module(module) => TypesRefKind::Module(module),
1978
+ TypesKind::Component(component) => TypesRefKind::Component(component),
1979
+ },
1980
+ }
1981
+ }
1982
+
1983
+ /// Gets a type based on its type id.
1984
+ ///
1985
+ /// Returns `None` if the type id is unknown.
1986
+ pub fn get<T>(&self, id: T) -> Option<&T::Data>
1987
+ where
1988
+ T: TypeIdentifier,
1989
+ {
1990
+ self.as_ref().get(id)
1991
+ }
1992
+
1993
+ /// Gets a core WebAssembly type at the given type index.
1994
+ ///
1995
+ /// Note that this is in contrast to [`TypesRef::component_type_at`] which
1996
+ /// gets a component type from its index.
1997
+ ///
1998
+ /// # Panics
1999
+ ///
2000
+ /// Panics if `index` is not a valid function index.
2001
+ pub fn core_type_at(&self, index: u32) -> ComponentCoreTypeId {
2002
+ self.as_ref().core_type_at(index)
2003
+ }
2004
+
2005
+ /// Gets a component WebAssembly type at the given type index.
2006
+ ///
2007
+ /// Note that this is in contrast to [`TypesRef::core_type_at`] which gets a
2008
+ /// core type from its index.
2009
+ ///
2010
+ /// # Panics
2011
+ ///
2012
+ /// Panics if `index` is not a valid type index.
2013
+ pub fn component_any_type_at(&self, index: u32) -> ComponentAnyTypeId {
2014
+ self.as_ref().component_any_type_at(index)
2015
+ }
2016
+
2017
+ /// Gets a component type at the given type index.
2018
+ ///
2019
+ /// # Panics
2020
+ ///
2021
+ /// Panics if `index` is not a valid component type index.
2022
+ pub fn component_type_at(&self, index: u32) -> ComponentTypeId {
2023
+ self.as_ref().component_type_at(index)
2024
+ }
2025
+
2026
+ /// Gets a component type from the given component type index.
2027
+ ///
2028
+ /// # Panics
2029
+ ///
2030
+ /// Panics if `index` is not a valid defined type index or if this type
2031
+ /// information represents a core module.
2032
+ pub fn component_defined_type_at(&self, index: u32) -> ComponentDefinedTypeId {
2033
+ self.as_ref().component_defined_type_at(index)
2034
+ }
2035
+
2036
+ /// Gets the count of core types.
2037
+ pub fn type_count(&self) -> usize {
2038
+ match &self.kind {
2039
+ TypesKind::Module(module) => module.types.len(),
2040
+ TypesKind::Component(component) => component.core_types.len(),
2041
+ }
2042
+ }
2043
+
2044
+ /// Gets the type of a table at the given table index.
2045
+ ///
2046
+ /// # Panics
2047
+ ///
2048
+ /// Panics if `index` is not a valid function index.
2049
+ pub fn table_at(&self, index: u32) -> TableType {
2050
+ self.as_ref().table_at(index)
2051
+ }
2052
+
2053
+ /// Gets the count of imported and defined tables.
2054
+ pub fn table_count(&self) -> usize {
2055
+ match &self.kind {
2056
+ TypesKind::Module(module) => module.tables.len(),
2057
+ TypesKind::Component(component) => component.core_tables.len(),
2058
+ }
2059
+ }
2060
+
2061
+ /// Gets the type of a memory at the given memory index.
2062
+ ///
2063
+ /// # Panics
2064
+ ///
2065
+ /// Panics if `index` is not a valid function index.
2066
+ pub fn memory_at(&self, index: u32) -> MemoryType {
2067
+ self.as_ref().memory_at(index)
2068
+ }
2069
+
2070
+ /// Gets the count of imported and defined memories.
2071
+ pub fn memory_count(&self) -> u32 {
2072
+ self.as_ref().memory_count()
2073
+ }
2074
+
2075
+ /// Gets the type of a global at the given global index.
2076
+ ///
2077
+ /// # Panics
2078
+ ///
2079
+ /// Panics if `index` is not a valid function index.
2080
+ pub fn global_at(&self, index: u32) -> GlobalType {
2081
+ self.as_ref().global_at(index)
2082
+ }
2083
+
2084
+ /// Gets the count of imported and defined globals.
2085
+ pub fn global_count(&self) -> u32 {
2086
+ self.as_ref().global_count()
2087
+ }
2088
+
2089
+ /// Gets the type of a tag at the given tag index.
2090
+ ///
2091
+ /// # Panics
2092
+ ///
2093
+ /// Panics if `index` is not a valid function index.
2094
+ pub fn tag_at(&self, index: u32) -> CoreTypeId {
2095
+ self.as_ref().tag_at(index)
2096
+ }
2097
+
2098
+ /// Gets the count of imported and defined tags.
2099
+ pub fn tag_count(&self) -> u32 {
2100
+ self.as_ref().tag_count()
2101
+ }
2102
+
2103
+ /// Gets the type of a core function at the given function index.
2104
+ ///
2105
+ /// # Panics
2106
+ ///
2107
+ /// Panics if `index` is not a valid function index.
2108
+ pub fn core_function_at(&self, index: u32) -> CoreTypeId {
2109
+ self.as_ref().core_function_at(index)
2110
+ }
2111
+
2112
+ /// Gets the count of core functions defined so far.
2113
+ ///
2114
+ /// Note that this includes imported functions, defined functions, and for
2115
+ /// components lowered/aliased functions.
2116
+ pub fn core_function_count(&self) -> u32 {
2117
+ self.as_ref().function_count()
2118
+ }
2119
+
2120
+ /// Gets the type of an element segment at the given element segment index.
2121
+ ///
2122
+ /// # Panics
2123
+ ///
2124
+ /// This will panic if the `index` provided is out of bounds.
2125
+ pub fn element_at(&self, index: u32) -> RefType {
2126
+ self.as_ref().element_at(index)
2127
+ }
2128
+
2129
+ /// Gets the count of element segments.
2130
+ pub fn element_count(&self) -> u32 {
2131
+ self.as_ref().element_count()
2132
+ }
2133
+
2134
+ /// Gets the type of a component function at the given function index.
2135
+ ///
2136
+ /// # Panics
2137
+ ///
2138
+ /// This will panic if the `index` provided is out of bounds or if this type
2139
+ /// information represents a core module.
2140
+ pub fn component_function_at(&self, index: u32) -> ComponentFuncTypeId {
2141
+ self.as_ref().component_function_at(index)
2142
+ }
2143
+
2144
+ /// Gets the count of imported, exported, or aliased component functions.
2145
+ pub fn component_function_count(&self) -> u32 {
2146
+ self.as_ref().component_function_count()
2147
+ }
2148
+
2149
+ /// Gets the type of a module at the given module index.
2150
+ ///
2151
+ /// # Panics
2152
+ ///
2153
+ /// This will panic if the `index` provided is out of bounds or if this type
2154
+ /// information represents a core module.
2155
+ pub fn module_at(&self, index: u32) -> ComponentCoreModuleTypeId {
2156
+ self.as_ref().module_at(index)
2157
+ }
2158
+
2159
+ /// Gets the count of imported, exported, or aliased modules.
2160
+ pub fn module_count(&self) -> usize {
2161
+ match &self.kind {
2162
+ TypesKind::Module(_) => 0,
2163
+ TypesKind::Component(component) => component.core_modules.len(),
2164
+ }
2165
+ }
2166
+
2167
+ /// Gets the type of a module instance at the given module instance index.
2168
+ ///
2169
+ /// # Panics
2170
+ ///
2171
+ /// This will panic if the `index` provided is out of bounds or if this type
2172
+ /// information represents a core module.
2173
+ pub fn core_instance_at(&self, index: u32) -> ComponentCoreInstanceTypeId {
2174
+ self.as_ref().core_instance_at(index)
2175
+ }
2176
+
2177
+ /// Gets the count of imported, exported, or aliased core module instances.
2178
+ pub fn core_instance_count(&self) -> usize {
2179
+ match &self.kind {
2180
+ TypesKind::Module(_) => 0,
2181
+ TypesKind::Component(component) => component.core_instances.len(),
2182
+ }
2183
+ }
2184
+
2185
+ /// Gets the type of a component at the given component index.
2186
+ ///
2187
+ /// # Panics
2188
+ ///
2189
+ /// This will panic if the `index` provided is out of bounds or if this type
2190
+ /// information represents a core module.
2191
+ pub fn component_at(&self, index: u32) -> ComponentTypeId {
2192
+ self.as_ref().component_at(index)
2193
+ }
2194
+
2195
+ /// Gets the count of imported, exported, or aliased components.
2196
+ pub fn component_count(&self) -> usize {
2197
+ match &self.kind {
2198
+ TypesKind::Module(_) => 0,
2199
+ TypesKind::Component(component) => component.components.len(),
2200
+ }
2201
+ }
2202
+
2203
+ /// Gets the type of an component instance at the given component instance index.
2204
+ ///
2205
+ /// # Panics
2206
+ ///
2207
+ /// This will panic if the `index` provided is out of bounds or if this type
2208
+ /// information represents a core module.
2209
+ pub fn component_instance_at(&self, index: u32) -> ComponentInstanceTypeId {
2210
+ self.as_ref().component_instance_at(index)
2211
+ }
2212
+
2213
+ /// Gets the count of imported, exported, or aliased component instances.
2214
+ pub fn component_instance_count(&self) -> usize {
2215
+ match &self.kind {
2216
+ TypesKind::Module(_) => 0,
2217
+ TypesKind::Component(component) => component.instances.len(),
2218
+ }
2219
+ }
2220
+
2221
+ /// Gets the type of a value at the given value index.
2222
+ ///
2223
+ /// # Panics
2224
+ ///
2225
+ /// This will panic if the `index` provided is out of bounds or if this type
2226
+ /// information represents a core module.
2227
+ pub fn value_at(&self, index: u32) -> ComponentValType {
2228
+ self.as_ref().value_at(index)
2229
+ }
2230
+
2231
+ /// Gets the count of imported, exported, or aliased values.
2232
+ pub fn value_count(&self) -> usize {
2233
+ match &self.kind {
2234
+ TypesKind::Module(_) => 0,
2235
+ TypesKind::Component(component) => component.values.len(),
2236
+ }
2237
+ }
2238
+
2239
+ /// Gets the entity type from the given import.
2240
+ pub fn entity_type_from_import(&self, import: &Import) -> Option<EntityType> {
2241
+ self.as_ref().entity_type_from_import(import)
2242
+ }
2243
+
2244
+ /// Gets the entity type from the given export.
2245
+ pub fn entity_type_from_export(&self, export: &Export) -> Option<EntityType> {
2246
+ self.as_ref().entity_type_from_export(export)
2247
+ }
2248
+
2249
+ /// Gets the component entity type for the given component import name.
2250
+ pub fn component_entity_type_of_import(&self, name: &str) -> Option<ComponentEntityType> {
2251
+ self.as_ref().component_entity_type_of_import(name)
2252
+ }
2253
+
2254
+ /// Gets the component entity type for the given component export name.
2255
+ pub fn component_entity_type_of_export(&self, name: &str) -> Option<ComponentEntityType> {
2256
+ self.as_ref().component_entity_type_of_export(name)
2257
+ }
2258
+
2259
+ /// Attempts to lookup the type id that `ty` is an alias of.
2260
+ ///
2261
+ /// Returns `None` if `ty` wasn't listed as aliasing a prior type.
2262
+ pub fn peel_alias<T>(&self, ty: T) -> Option<T>
2263
+ where
2264
+ T: Aliasable,
2265
+ {
2266
+ self.list.peel_alias(ty)
2267
+ }
2268
+ }
2269
+
2270
+ impl<T> Index<T> for Types
2271
+ where
2272
+ T: TypeIdentifier,
2273
+ {
2274
+ type Output = T::Data;
2275
+
2276
+ fn index(&self, id: T) -> &Self::Output {
2277
+ &self.list[id]
2278
+ }
2279
+ }
2280
+
2281
+ /// This is a type which mirrors a subset of the `Vec<T>` API, but is intended
2282
+ /// to be able to be cheaply snapshotted and cloned.
2283
+ ///
2284
+ /// When each module's code sections start we "commit" the current list of types
2285
+ /// in the global list of types. This means that the temporary `cur` vec here is
2286
+ /// pushed onto `snapshots` and wrapped up in an `Arc`. At that point we clone
2287
+ /// this entire list (which is then O(modules), not O(types in all modules)) and
2288
+ /// pass out as a context to each function validator.
2289
+ ///
2290
+ /// Otherwise, though, this type behaves as if it were a large `Vec<T>`, but
2291
+ /// it's represented by lists of contiguous chunks.
2292
+ //
2293
+ // Only public because it shows up in a public trait's `doc(hidden)` method.
2294
+ #[doc(hidden)]
2295
+ #[derive(Debug)]
2296
+ pub struct SnapshotList<T> {
2297
+ // All previous snapshots, the "head" of the list that this type represents.
2298
+ // The first entry in this pair is the starting index for all elements
2299
+ // contained in the list, and the second element is the list itself. Note
2300
+ // the `Arc` wrapper around sub-lists, which makes cloning time for this
2301
+ // `SnapshotList` O(snapshots) rather than O(snapshots_total), which for
2302
+ // us in this context means the number of modules, not types.
2303
+ //
2304
+ // Note that this list is sorted least-to-greatest in order of the index for
2305
+ // binary searching.
2306
+ snapshots: Vec<Arc<Snapshot<T>>>,
2307
+
2308
+ // This is the total length of all lists in the `snapshots` array.
2309
+ snapshots_total: usize,
2310
+
2311
+ // The current list of types for the current snapshot that are being built.
2312
+ cur: Vec<T>,
2313
+ }
2314
+
2315
+ #[derive(Debug)]
2316
+ struct Snapshot<T> {
2317
+ prior_types: usize,
2318
+ items: Vec<T>,
2319
+ }
2320
+
2321
+ impl<T> SnapshotList<T> {
2322
+ /// Same as `<&[T]>::get`
2323
+ pub(crate) fn get(&self, index: usize) -> Option<&T> {
2324
+ // Check to see if this index falls on our local list
2325
+ if index >= self.snapshots_total {
2326
+ return self.cur.get(index - self.snapshots_total);
2327
+ }
2328
+ // ... and failing that we do a binary search to figure out which bucket
2329
+ // it's in. Note the `i-1` in the `Err` case because if we don't find an
2330
+ // exact match the type is located in the previous bucket.
2331
+ let i = match self
2332
+ .snapshots
2333
+ .binary_search_by_key(&index, |snapshot| snapshot.prior_types)
2334
+ {
2335
+ Ok(i) => i,
2336
+ Err(i) => i - 1,
2337
+ };
2338
+ let snapshot = &self.snapshots[i];
2339
+ Some(&snapshot.items[index - snapshot.prior_types])
2340
+ }
2341
+
2342
+ /// Same as `Vec::push`
2343
+ pub(crate) fn push(&mut self, val: T) {
2344
+ self.cur.push(val);
2345
+ }
2346
+
2347
+ /// Same as `<[T]>::len`
2348
+ pub(crate) fn len(&self) -> usize {
2349
+ self.cur.len() + self.snapshots_total
2350
+ }
2351
+
2352
+ /// Same as `Vec::truncate` but can only truncate uncommitted elements.
2353
+ pub(crate) fn truncate(&mut self, len: usize) {
2354
+ assert!(len >= self.snapshots_total);
2355
+ self.cur.truncate(len - self.snapshots_total);
2356
+ }
2357
+
2358
+ /// Commits previously pushed types into this snapshot vector, and returns a
2359
+ /// clone of this list.
2360
+ ///
2361
+ /// The returned `SnapshotList` can be used to access all the same types as
2362
+ /// this list itself. This list also is not changed (from an external
2363
+ /// perspective) and can continue to access all the same types.
2364
+ pub(crate) fn commit(&mut self) -> SnapshotList<T> {
2365
+ // If the current chunk has new elements, commit them in to an
2366
+ // `Arc`-wrapped vector in the snapshots list. Note the `shrink_to_fit`
2367
+ // ahead of time to hopefully keep memory usage lower than it would
2368
+ // otherwise be.
2369
+ let len = self.cur.len();
2370
+ if len > 0 {
2371
+ self.cur.shrink_to_fit();
2372
+ self.snapshots.push(Arc::new(Snapshot {
2373
+ prior_types: self.snapshots_total,
2374
+ items: mem::take(&mut self.cur),
2375
+ }));
2376
+ self.snapshots_total += len;
2377
+ }
2378
+ SnapshotList {
2379
+ snapshots: self.snapshots.clone(),
2380
+ snapshots_total: self.snapshots_total,
2381
+ cur: Vec::new(),
2382
+ }
2383
+ }
2384
+ }
2385
+
2386
+ impl<T> Index<usize> for SnapshotList<T> {
2387
+ type Output = T;
2388
+
2389
+ #[inline]
2390
+ fn index(&self, index: usize) -> &T {
2391
+ self.get(index).unwrap()
2392
+ }
2393
+ }
2394
+
2395
+ impl<T, U> Index<U> for SnapshotList<T>
2396
+ where
2397
+ U: TypeIdentifier<Data = T>,
2398
+ {
2399
+ type Output = T;
2400
+
2401
+ #[inline]
2402
+ fn index(&self, id: U) -> &T {
2403
+ self.get(id.index()).unwrap()
2404
+ }
2405
+ }
2406
+
2407
+ impl<T> Default for SnapshotList<T> {
2408
+ fn default() -> SnapshotList<T> {
2409
+ SnapshotList {
2410
+ snapshots: Vec::new(),
2411
+ snapshots_total: 0,
2412
+ cur: Vec::new(),
2413
+ }
2414
+ }
2415
+ }
2416
+
2417
+ /// A snapshot list of types.
2418
+ ///
2419
+ /// Note that the snapshot lists below do not correspond with index spaces. Many
2420
+ /// different kinds of types are in the same index space (e.g. all of the
2421
+ /// component model's {component, instance, defined, func} types are in the same
2422
+ /// index space). However, we store each of them in their own type-specific
2423
+ /// snapshot list and give each of them their own identifier type.
2424
+ #[derive(Default, Debug)]
2425
+ // Only public because it shows up in a public trait's `doc(hidden)` method.
2426
+ #[doc(hidden)]
2427
+ pub struct TypeList {
2428
+ // Keeps track of which `alias_id` is an alias of which other `alias_id`.
2429
+ alias_mappings: HashMap<u32, u32>,
2430
+ // Counter for generating new `alias_id`s.
2431
+ alias_counter: u32,
2432
+ // Snapshots of previously committed `TypeList`s' aliases.
2433
+ alias_snapshots: Vec<TypeListAliasSnapshot>,
2434
+
2435
+ // Core Wasm types.
2436
+ //
2437
+ // A primary map from `CoreTypeId` to `SubType`.
2438
+ core_types: SnapshotList<SubType>,
2439
+ // The id of each core Wasm type's rec group.
2440
+ //
2441
+ // A secondary map from `CoreTypeId` to `RecGroupId`.
2442
+ core_type_to_rec_group: SnapshotList<RecGroupId>,
2443
+ // The supertype of each core type.
2444
+ //
2445
+ // A secondary map from `coreTypeId` to `Option<CoreTypeId>`.
2446
+ core_type_to_supertype: SnapshotList<Option<CoreTypeId>>,
2447
+ // A primary map from `RecGroupId` to the range of the rec group's elements
2448
+ // within `core_types`.
2449
+ rec_group_elements: SnapshotList<Range<CoreTypeId>>,
2450
+ // A hash map from rec group elements to their canonical `RecGroupId`.
2451
+ //
2452
+ // This is `None` when a list is "committed" meaning that no more insertions
2453
+ // can happen.
2454
+ canonical_rec_groups: Option<HashMap<RecGroup, RecGroupId>>,
2455
+
2456
+ // Component model types.
2457
+ components: SnapshotList<ComponentType>,
2458
+ component_defined_types: SnapshotList<ComponentDefinedType>,
2459
+ component_values: SnapshotList<ComponentValType>,
2460
+ component_instances: SnapshotList<ComponentInstanceType>,
2461
+ component_funcs: SnapshotList<ComponentFuncType>,
2462
+ core_modules: SnapshotList<ModuleType>,
2463
+ core_instances: SnapshotList<InstanceType>,
2464
+ }
2465
+
2466
+ #[derive(Clone, Debug)]
2467
+ struct TypeListAliasSnapshot {
2468
+ // The `alias_counter` at the time that this snapshot was taken.
2469
+ alias_counter: u32,
2470
+
2471
+ // The alias mappings in this snapshot.
2472
+ alias_mappings: HashMap<u32, u32>,
2473
+ }
2474
+
2475
+ struct TypeListCheckpoint {
2476
+ core_types: usize,
2477
+ components: usize,
2478
+ component_defined_types: usize,
2479
+ component_values: usize,
2480
+ component_instances: usize,
2481
+ component_funcs: usize,
2482
+ core_modules: usize,
2483
+ core_instances: usize,
2484
+ core_type_to_rec_group: usize,
2485
+ core_type_to_supertype: usize,
2486
+ rec_group_elements: usize,
2487
+ canonical_rec_groups: usize,
2488
+ }
2489
+
2490
+ impl TypeList {
2491
+ pub fn get<T>(&self, id: T) -> Option<&T::Data>
2492
+ where
2493
+ T: TypeIdentifier,
2494
+ {
2495
+ T::list(self).get(id.index())
2496
+ }
2497
+
2498
+ pub fn push<T>(&mut self, ty: T) -> T::Id
2499
+ where
2500
+ T: TypeData,
2501
+ {
2502
+ let index = u32::try_from(T::Id::list(self).len()).unwrap();
2503
+ let id = T::Id::from_index(index);
2504
+ T::Id::list_mut(self).push(ty);
2505
+ id
2506
+ }
2507
+
2508
+ /// Intern the given recursion group (that has already been canonicalized)
2509
+ /// and return its associated id and whether this was a new recursion group
2510
+ /// or not.
2511
+ pub fn intern_canonical_rec_group(&mut self, rec_group: RecGroup) -> (bool, RecGroupId) {
2512
+ let canonical_rec_groups = self
2513
+ .canonical_rec_groups
2514
+ .as_mut()
2515
+ .expect("cannot intern into a committed list");
2516
+ let entry = match canonical_rec_groups.entry(rec_group) {
2517
+ Entry::Occupied(e) => return (false, *e.get()),
2518
+ Entry::Vacant(e) => e,
2519
+ };
2520
+
2521
+ let rec_group_id = self.rec_group_elements.len();
2522
+ let rec_group_id = u32::try_from(rec_group_id).unwrap();
2523
+ let rec_group_id = RecGroupId::from_index(rec_group_id);
2524
+
2525
+ let start = self.core_types.len();
2526
+ let start = u32::try_from(start).unwrap();
2527
+ let start = CoreTypeId::from_index(start);
2528
+
2529
+ for ty in entry.key().types() {
2530
+ debug_assert_eq!(self.core_types.len(), self.core_type_to_supertype.len());
2531
+ debug_assert_eq!(self.core_types.len(), self.core_type_to_rec_group.len());
2532
+
2533
+ self.core_type_to_supertype
2534
+ .push(ty.supertype_idx.map(|idx| match idx.unpack() {
2535
+ UnpackedIndex::RecGroup(offset) => CoreTypeId::from_index(start.index + offset),
2536
+ UnpackedIndex::Id(id) => id,
2537
+ UnpackedIndex::Module(_) => unreachable!("in canonical form"),
2538
+ }));
2539
+ let mut ty = ty.clone();
2540
+ ty.remap_indices(&mut |index| {
2541
+ match index.unpack() {
2542
+ UnpackedIndex::Id(_) => {}
2543
+ UnpackedIndex::Module(_) => unreachable!(),
2544
+ UnpackedIndex::RecGroup(offset) => {
2545
+ *index = UnpackedIndex::Id(CoreTypeId::from_index(start.index + offset))
2546
+ .pack()
2547
+ .unwrap();
2548
+ }
2549
+ };
2550
+ Ok(())
2551
+ })
2552
+ .expect("cannot fail");
2553
+ self.core_types.push(ty);
2554
+ self.core_type_to_rec_group.push(rec_group_id);
2555
+ }
2556
+
2557
+ let end = self.core_types.len();
2558
+ let end = u32::try_from(end).unwrap();
2559
+ let end = CoreTypeId::from_index(end);
2560
+
2561
+ let range = start..end;
2562
+
2563
+ self.rec_group_elements.push(range.clone());
2564
+
2565
+ entry.insert(rec_group_id);
2566
+ return (true, rec_group_id);
2567
+ }
2568
+
2569
+ /// Get the `CoreTypeId` for a local index into a rec group.
2570
+ pub fn rec_group_local_id(
2571
+ &self,
2572
+ rec_group: RecGroupId,
2573
+ index: u32,
2574
+ offset: usize,
2575
+ ) -> Result<CoreTypeId> {
2576
+ let elems = &self[rec_group];
2577
+ let len = elems.end.index() - elems.start.index();
2578
+ let len = u32::try_from(len).unwrap();
2579
+ if index < len {
2580
+ let id = u32::try_from(elems.start.index()).unwrap() + index;
2581
+ let id = CoreTypeId::from_index(id);
2582
+ Ok(id)
2583
+ } else {
2584
+ bail!(
2585
+ offset,
2586
+ "unknown type {index}: type index out of rec group bounds"
2587
+ )
2588
+ }
2589
+ }
2590
+
2591
+ /// Get the id of the rec group that the given type id was defined within.
2592
+ pub fn rec_group_id_of(&self, id: CoreTypeId) -> RecGroupId {
2593
+ self.core_type_to_rec_group[id.index()]
2594
+ }
2595
+
2596
+ /// Get the super type of the given type id, if any.
2597
+ pub fn supertype_of(&self, id: CoreTypeId) -> Option<CoreTypeId> {
2598
+ self.core_type_to_supertype[id.index()]
2599
+ }
2600
+
2601
+ /// Get the `CoreTypeId` for a canonicalized `PackedIndex`.
2602
+ ///
2603
+ /// Panics when given a non-canonicalized `PackedIndex`.
2604
+ pub fn at_canonicalized_packed_index(
2605
+ &self,
2606
+ rec_group: RecGroupId,
2607
+ index: PackedIndex,
2608
+ offset: usize,
2609
+ ) -> Result<CoreTypeId> {
2610
+ self.at_canonicalized_unpacked_index(rec_group, index.unpack(), offset)
2611
+ }
2612
+
2613
+ /// Get the `CoreTypeId` for a canonicalized `UnpackedIndex`.
2614
+ ///
2615
+ /// Panics when given a non-canonicalized `PackedIndex`.
2616
+ pub fn at_canonicalized_unpacked_index(
2617
+ &self,
2618
+ rec_group: RecGroupId,
2619
+ index: UnpackedIndex,
2620
+ offset: usize,
2621
+ ) -> Result<CoreTypeId> {
2622
+ match index {
2623
+ UnpackedIndex::Module(_) => panic!("not canonicalized"),
2624
+ UnpackedIndex::Id(id) => Ok(id),
2625
+ UnpackedIndex::RecGroup(idx) => self.rec_group_local_id(rec_group, idx, offset),
2626
+ }
2627
+ }
2628
+
2629
+ /// Does `a` structurally match `b`?
2630
+ pub fn matches(&self, a: CoreTypeId, b: CoreTypeId) -> bool {
2631
+ let a = WithRecGroup::new(self, a);
2632
+ let a = WithRecGroup::map(a, |a| &self[a]);
2633
+
2634
+ let b = WithRecGroup::new(self, b);
2635
+ let b = WithRecGroup::map(b, |b| &self[b]);
2636
+
2637
+ Matches::matches(self, a, b)
2638
+ }
2639
+
2640
+ /// Is `a == b` or was `a` declared (potentially transitively) to be a
2641
+ /// subtype of `b`?
2642
+ pub fn id_is_subtype(&self, mut a: CoreTypeId, b: CoreTypeId) -> bool {
2643
+ loop {
2644
+ if a == b {
2645
+ return true;
2646
+ }
2647
+
2648
+ // TODO: maintain supertype vectors and implement this check in O(1)
2649
+ // instead of O(n) time.
2650
+ a = match self.supertype_of(a) {
2651
+ Some(a) => a,
2652
+ None => return false,
2653
+ };
2654
+ }
2655
+ }
2656
+
2657
+ /// Like `id_is_subtype` but for `RefType`s.
2658
+ ///
2659
+ /// Both `a` and `b` must be canonicalized already.
2660
+ pub fn reftype_is_subtype(&self, a: RefType, b: RefType) -> bool {
2661
+ // NB: Don't need `RecGroupId`s since we are calling from outside of the
2662
+ // rec group, and so any `PackedIndex`es we encounter have already been
2663
+ // canonicalized to `CoreTypeId`s directly.
2664
+ self.reftype_is_subtype_impl(a, None, b, None)
2665
+ }
2666
+
2667
+ /// Implementation of `RefType` and `HeapType` subtyping.
2668
+ ///
2669
+ /// Panics if we need rec groups but aren't given them. Rec groups only need
2670
+ /// to be passed in when checking subtyping of `RefType`s that we encounter
2671
+ /// while validating a rec group itself.
2672
+ pub(crate) fn reftype_is_subtype_impl(
2673
+ &self,
2674
+ a: RefType,
2675
+ a_group: Option<RecGroupId>,
2676
+ b: RefType,
2677
+ b_group: Option<RecGroupId>,
2678
+ ) -> bool {
2679
+ if a == b && a_group == b_group {
2680
+ return true;
2681
+ }
2682
+
2683
+ if a.is_nullable() && !b.is_nullable() {
2684
+ return false;
2685
+ }
2686
+
2687
+ let core_type_id = |group: Option<RecGroupId>, index: UnpackedIndex| -> CoreTypeId {
2688
+ if let Some(id) = index.as_core_type_id() {
2689
+ id
2690
+ } else {
2691
+ self.at_canonicalized_unpacked_index(group.unwrap(), index, usize::MAX)
2692
+ .expect("type references are checked during canonicalization")
2693
+ }
2694
+ };
2695
+
2696
+ let subtype = |group, index| -> &SubType {
2697
+ let id = core_type_id(group, index);
2698
+ &self[id]
2699
+ };
2700
+
2701
+ use HeapType as HT;
2702
+ match (a.heap_type(), b.heap_type()) {
2703
+ (a, b) if a == b => true,
2704
+
2705
+ (HT::Eq | HT::I31 | HT::Struct | HT::Array | HT::None, HT::Any) => true,
2706
+ (HT::I31 | HT::Struct | HT::Array | HT::None, HT::Eq) => true,
2707
+ (HT::NoExtern, HT::Extern) => true,
2708
+ (HT::NoFunc, HT::Func) => true,
2709
+ (HT::None, HT::I31 | HT::Array | HT::Struct) => true,
2710
+
2711
+ (HT::Concrete(a), HT::Eq | HT::Any) => matches!(
2712
+ subtype(a_group, a).composite_type,
2713
+ CompositeType::Array(_) | CompositeType::Struct(_)
2714
+ ),
2715
+
2716
+ (HT::Concrete(a), HT::Struct) => {
2717
+ matches!(subtype(a_group, a).composite_type, CompositeType::Struct(_))
2718
+ }
2719
+
2720
+ (HT::Concrete(a), HT::Array) => {
2721
+ matches!(subtype(a_group, a).composite_type, CompositeType::Array(_))
2722
+ }
2723
+
2724
+ (HT::Concrete(a), HT::Func) => {
2725
+ matches!(subtype(a_group, a).composite_type, CompositeType::Func(_))
2726
+ }
2727
+
2728
+ (HT::Concrete(a), HT::Concrete(b)) => {
2729
+ self.id_is_subtype(core_type_id(a_group, a), core_type_id(b_group, b))
2730
+ }
2731
+
2732
+ (HT::None, HT::Concrete(b)) => matches!(
2733
+ subtype(b_group, b).composite_type,
2734
+ CompositeType::Array(_) | CompositeType::Struct(_)
2735
+ ),
2736
+
2737
+ (HT::NoFunc, HT::Concrete(b)) => {
2738
+ matches!(subtype(b_group, b).composite_type, CompositeType::Func(_))
2739
+ }
2740
+
2741
+ (HT::NoExn, HT::Exn) => true,
2742
+
2743
+ // Nothing else matches. (Avoid full wildcard matches so that
2744
+ // adding/modifying variants is easier in the future.)
2745
+ (HT::Concrete(_), _)
2746
+ | (HT::Func, _)
2747
+ | (HT::Extern, _)
2748
+ | (HT::Any, _)
2749
+ | (HT::None, _)
2750
+ | (HT::NoExtern, _)
2751
+ | (HT::NoFunc, _)
2752
+ | (HT::Eq, _)
2753
+ | (HT::Struct, _)
2754
+ | (HT::Array, _)
2755
+ | (HT::I31, _)
2756
+ | (HT::Exn, _)
2757
+ | (HT::NoExn, _) => false,
2758
+ }
2759
+ }
2760
+
2761
+ /// Like `id_is_subtype` but for `RefType`s.
2762
+ ///
2763
+ /// Both `a` and `b` must be canonicalized already.
2764
+ pub fn valtype_is_subtype(&self, a: ValType, b: ValType) -> bool {
2765
+ match (a, b) {
2766
+ (a, b) if a == b => true,
2767
+ (ValType::Ref(a), ValType::Ref(b)) => self.reftype_is_subtype(a, b),
2768
+ (ValType::Ref(_), _)
2769
+ | (ValType::I32, _)
2770
+ | (ValType::I64, _)
2771
+ | (ValType::F32, _)
2772
+ | (ValType::F64, _)
2773
+ | (ValType::V128, _) => false,
2774
+ }
2775
+ }
2776
+
2777
+ /// Get the top type of the given heap type.
2778
+ ///
2779
+ /// Concrete types must have had their indices canonicalized to core type
2780
+ /// ids, otherwise this method will panic.
2781
+ pub fn top_type(&self, heap_type: &HeapType) -> HeapType {
2782
+ match *heap_type {
2783
+ HeapType::Concrete(idx) => match self[idx.as_core_type_id().unwrap()].composite_type {
2784
+ CompositeType::Func(_) => HeapType::Func,
2785
+ CompositeType::Array(_) | CompositeType::Struct(_) => HeapType::Any,
2786
+ },
2787
+ HeapType::Func | HeapType::NoFunc => HeapType::Func,
2788
+ HeapType::Extern | HeapType::NoExtern => HeapType::Extern,
2789
+ HeapType::Any
2790
+ | HeapType::Eq
2791
+ | HeapType::Struct
2792
+ | HeapType::Array
2793
+ | HeapType::I31
2794
+ | HeapType::None => HeapType::Any,
2795
+ HeapType::Exn | HeapType::NoExn => HeapType::Exn,
2796
+ }
2797
+ }
2798
+
2799
+ fn checkpoint(&self) -> TypeListCheckpoint {
2800
+ let TypeList {
2801
+ alias_mappings: _,
2802
+ alias_counter: _,
2803
+ alias_snapshots: _,
2804
+ core_types,
2805
+ components,
2806
+ component_defined_types,
2807
+ component_values,
2808
+ component_instances,
2809
+ component_funcs,
2810
+ core_modules,
2811
+ core_instances,
2812
+ core_type_to_rec_group,
2813
+ core_type_to_supertype,
2814
+ rec_group_elements,
2815
+ canonical_rec_groups,
2816
+ } = self;
2817
+
2818
+ TypeListCheckpoint {
2819
+ core_types: core_types.len(),
2820
+ components: components.len(),
2821
+ component_defined_types: component_defined_types.len(),
2822
+ component_values: component_values.len(),
2823
+ component_instances: component_instances.len(),
2824
+ component_funcs: component_funcs.len(),
2825
+ core_modules: core_modules.len(),
2826
+ core_instances: core_instances.len(),
2827
+ core_type_to_rec_group: core_type_to_rec_group.len(),
2828
+ core_type_to_supertype: core_type_to_supertype.len(),
2829
+ rec_group_elements: rec_group_elements.len(),
2830
+ canonical_rec_groups: canonical_rec_groups.as_ref().map(|m| m.len()).unwrap_or(0),
2831
+ }
2832
+ }
2833
+
2834
+ fn reset_to_checkpoint(&mut self, checkpoint: TypeListCheckpoint) {
2835
+ let TypeList {
2836
+ alias_mappings: _,
2837
+ alias_counter: _,
2838
+ alias_snapshots: _,
2839
+ core_types,
2840
+ components,
2841
+ component_defined_types,
2842
+ component_values,
2843
+ component_instances,
2844
+ component_funcs,
2845
+ core_modules,
2846
+ core_instances,
2847
+ core_type_to_rec_group,
2848
+ core_type_to_supertype,
2849
+ rec_group_elements,
2850
+ canonical_rec_groups,
2851
+ } = self;
2852
+
2853
+ core_types.truncate(checkpoint.core_types);
2854
+ components.truncate(checkpoint.components);
2855
+ component_defined_types.truncate(checkpoint.component_defined_types);
2856
+ component_values.truncate(checkpoint.component_values);
2857
+ component_instances.truncate(checkpoint.component_instances);
2858
+ component_funcs.truncate(checkpoint.component_funcs);
2859
+ core_modules.truncate(checkpoint.core_modules);
2860
+ core_instances.truncate(checkpoint.core_instances);
2861
+ core_type_to_rec_group.truncate(checkpoint.core_type_to_rec_group);
2862
+ core_type_to_supertype.truncate(checkpoint.core_type_to_supertype);
2863
+ rec_group_elements.truncate(checkpoint.rec_group_elements);
2864
+
2865
+ if let Some(canonical_rec_groups) = canonical_rec_groups {
2866
+ assert_eq!(
2867
+ canonical_rec_groups.len(),
2868
+ checkpoint.canonical_rec_groups,
2869
+ "checkpointing does not support resetting `canonical_rec_groups` (it would require a \
2870
+ proper immutable and persistent hash map) so adding new groups is disallowed"
2871
+ );
2872
+ }
2873
+ }
2874
+
2875
+ pub fn commit(&mut self) -> TypeList {
2876
+ // Note that the `alias_counter` is bumped here to ensure that the
2877
+ // previous value of the unique counter is never used for an actual type
2878
+ // so it's suitable for lookup via a binary search.
2879
+ let alias_counter = self.alias_counter;
2880
+ self.alias_counter += 1;
2881
+
2882
+ self.alias_snapshots.push(TypeListAliasSnapshot {
2883
+ alias_counter,
2884
+ alias_mappings: mem::take(&mut self.alias_mappings),
2885
+ });
2886
+
2887
+ TypeList {
2888
+ alias_mappings: HashMap::default(),
2889
+ alias_counter: self.alias_counter,
2890
+ alias_snapshots: self.alias_snapshots.clone(),
2891
+ core_types: self.core_types.commit(),
2892
+ components: self.components.commit(),
2893
+ component_defined_types: self.component_defined_types.commit(),
2894
+ component_values: self.component_values.commit(),
2895
+ component_instances: self.component_instances.commit(),
2896
+ component_funcs: self.component_funcs.commit(),
2897
+ core_modules: self.core_modules.commit(),
2898
+ core_instances: self.core_instances.commit(),
2899
+ core_type_to_rec_group: self.core_type_to_rec_group.commit(),
2900
+ core_type_to_supertype: self.core_type_to_supertype.commit(),
2901
+ rec_group_elements: self.rec_group_elements.commit(),
2902
+ canonical_rec_groups: None,
2903
+ }
2904
+ }
2905
+
2906
+ /// See `SnapshotList::with_unique`.
2907
+ pub fn with_unique<T>(&mut self, mut ty: T) -> T
2908
+ where
2909
+ T: Aliasable,
2910
+ {
2911
+ self.alias_mappings
2912
+ .insert(self.alias_counter, ty.alias_id());
2913
+ ty.set_alias_id(self.alias_counter);
2914
+ self.alias_counter += 1;
2915
+ ty
2916
+ }
2917
+
2918
+ /// Attempts to lookup the type id that `ty` is an alias of.
2919
+ ///
2920
+ /// Returns `None` if `ty` wasn't listed as aliasing a prior type.
2921
+ pub fn peel_alias<T>(&self, mut ty: T) -> Option<T>
2922
+ where
2923
+ T: Aliasable,
2924
+ {
2925
+ let alias_id = ty.alias_id();
2926
+
2927
+ // The unique counter in each snapshot is the unique counter at the
2928
+ // time of the snapshot so it's guaranteed to never be used, meaning
2929
+ // that `Ok` should never show up here. With an `Err` it's where the
2930
+ // index would be placed meaning that the index in question is the
2931
+ // smallest value over the unique id's value, meaning that slot has the
2932
+ // mapping we're interested in.
2933
+ let i = match self
2934
+ .alias_snapshots
2935
+ .binary_search_by_key(&alias_id, |snapshot| snapshot.alias_counter)
2936
+ {
2937
+ Ok(_) => unreachable!(),
2938
+ Err(i) => i,
2939
+ };
2940
+
2941
+ // If the `i` index is beyond the snapshot array then lookup in the
2942
+ // current mappings instead since it may refer to a type not snapshot
2943
+ // yet.
2944
+ ty.set_alias_id(match self.alias_snapshots.get(i) {
2945
+ Some(snapshot) => *snapshot.alias_mappings.get(&alias_id)?,
2946
+ None => *self.alias_mappings.get(&alias_id)?,
2947
+ });
2948
+ Some(ty)
2949
+ }
2950
+ }
2951
+
2952
+ impl<T> Index<T> for TypeList
2953
+ where
2954
+ T: TypeIdentifier,
2955
+ {
2956
+ type Output = T::Data;
2957
+
2958
+ fn index(&self, id: T) -> &Self::Output {
2959
+ let arena = T::list(self);
2960
+ &arena[id.index()]
2961
+ }
2962
+ }
2963
+
2964
+ /// Thin wrapper around `TypeList` which provides an allocator of unique ids for
2965
+ /// types contained within this list.
2966
+ pub(crate) struct TypeAlloc {
2967
+ list: TypeList,
2968
+
2969
+ // This is assigned at creation of a `TypeAlloc` and then never changed.
2970
+ // It's used in one entry for all `ResourceId`s contained within.
2971
+ globally_unique_id: usize,
2972
+
2973
+ // This is a counter that's incremeneted each time `alloc_resource_id` is
2974
+ // called.
2975
+ next_resource_id: u32,
2976
+ }
2977
+
2978
+ impl Default for TypeAlloc {
2979
+ fn default() -> TypeAlloc {
2980
+ static NEXT_GLOBAL_ID: AtomicUsize = AtomicUsize::new(0);
2981
+ let mut ret = TypeAlloc {
2982
+ list: TypeList::default(),
2983
+ globally_unique_id: {
2984
+ let id = NEXT_GLOBAL_ID.fetch_add(1, Ordering::Relaxed);
2985
+ if id > usize::MAX - 10_000 {
2986
+ NEXT_GLOBAL_ID.store(usize::MAX - 10_000, Ordering::Relaxed);
2987
+ panic!("overflow on the global id counter");
2988
+ }
2989
+ id
2990
+ },
2991
+ next_resource_id: 0,
2992
+ };
2993
+ ret.list.canonical_rec_groups = Some(Default::default());
2994
+ ret
2995
+ }
2996
+ }
2997
+
2998
+ impl Deref for TypeAlloc {
2999
+ type Target = TypeList;
3000
+ fn deref(&self) -> &TypeList {
3001
+ &self.list
3002
+ }
3003
+ }
3004
+
3005
+ impl DerefMut for TypeAlloc {
3006
+ fn deref_mut(&mut self) -> &mut TypeList {
3007
+ &mut self.list
3008
+ }
3009
+ }
3010
+
3011
+ impl TypeAlloc {
3012
+ /// Pushes a new type into this list, returning an identifier which can be
3013
+ /// used to later retrieve it.
3014
+ ///
3015
+ /// The returned identifier is unique within this `TypeAlloc` and won't be
3016
+ /// hash-equivalent to anything else.
3017
+ pub fn push_ty<T>(&mut self, ty: T) -> T::Id
3018
+ where
3019
+ T: TypeData,
3020
+ {
3021
+ self.list.push(ty)
3022
+ }
3023
+
3024
+ /// Allocates a new unique resource identifier.
3025
+ ///
3026
+ /// Note that uniqueness is only a property within this `TypeAlloc`.
3027
+ pub fn alloc_resource_id(&mut self) -> AliasableResourceId {
3028
+ let contextually_unique_id = self.next_resource_id;
3029
+ self.next_resource_id = self.next_resource_id.checked_add(1).unwrap();
3030
+ AliasableResourceId {
3031
+ id: ResourceId {
3032
+ globally_unique_id: self.globally_unique_id,
3033
+ contextually_unique_id,
3034
+ },
3035
+ alias_id: NO_ALIAS,
3036
+ }
3037
+ }
3038
+
3039
+ /// Adds the set of "free variables" of the `id` provided to the `set`
3040
+ /// provided.
3041
+ ///
3042
+ /// Free variables are defined as resources. Any resource, perhaps
3043
+ /// transitively, referred to but not defined by `id` is added to the `set`
3044
+ /// and returned.
3045
+ pub fn free_variables_any_type_id(
3046
+ &self,
3047
+ id: ComponentAnyTypeId,
3048
+ set: &mut IndexSet<ResourceId>,
3049
+ ) {
3050
+ match id {
3051
+ ComponentAnyTypeId::Resource(r) => {
3052
+ set.insert(r.resource());
3053
+ }
3054
+ ComponentAnyTypeId::Defined(id) => {
3055
+ self.free_variables_component_defined_type_id(id, set)
3056
+ }
3057
+ ComponentAnyTypeId::Func(id) => self.free_variables_component_func_type_id(id, set),
3058
+ ComponentAnyTypeId::Instance(id) => {
3059
+ self.free_variables_component_instance_type_id(id, set)
3060
+ }
3061
+ ComponentAnyTypeId::Component(id) => self.free_variables_component_type_id(id, set),
3062
+ }
3063
+ }
3064
+
3065
+ pub fn free_variables_component_defined_type_id(
3066
+ &self,
3067
+ id: ComponentDefinedTypeId,
3068
+ set: &mut IndexSet<ResourceId>,
3069
+ ) {
3070
+ match &self[id] {
3071
+ ComponentDefinedType::Primitive(_)
3072
+ | ComponentDefinedType::Flags(_)
3073
+ | ComponentDefinedType::Enum(_) => {}
3074
+ ComponentDefinedType::Record(r) => {
3075
+ for ty in r.fields.values() {
3076
+ self.free_variables_valtype(ty, set);
3077
+ }
3078
+ }
3079
+ ComponentDefinedType::Tuple(r) => {
3080
+ for ty in r.types.iter() {
3081
+ self.free_variables_valtype(ty, set);
3082
+ }
3083
+ }
3084
+ ComponentDefinedType::Variant(r) => {
3085
+ for ty in r.cases.values() {
3086
+ if let Some(ty) = &ty.ty {
3087
+ self.free_variables_valtype(ty, set);
3088
+ }
3089
+ }
3090
+ }
3091
+ ComponentDefinedType::List(ty) | ComponentDefinedType::Option(ty) => {
3092
+ self.free_variables_valtype(ty, set);
3093
+ }
3094
+ ComponentDefinedType::Result { ok, err } => {
3095
+ if let Some(ok) = ok {
3096
+ self.free_variables_valtype(ok, set);
3097
+ }
3098
+ if let Some(err) = err {
3099
+ self.free_variables_valtype(err, set);
3100
+ }
3101
+ }
3102
+ ComponentDefinedType::Own(id) | ComponentDefinedType::Borrow(id) => {
3103
+ set.insert(id.resource());
3104
+ }
3105
+ }
3106
+ }
3107
+
3108
+ pub fn free_variables_component_type_id(
3109
+ &self,
3110
+ id: ComponentTypeId,
3111
+ set: &mut IndexSet<ResourceId>,
3112
+ ) {
3113
+ let i = &self[id];
3114
+ // Recurse on the imports/exports of components, but remove the
3115
+ // imported and defined resources within the component itself.
3116
+ //
3117
+ // Technically this needs to add all the free variables of the
3118
+ // exports, remove the defined resources, then add the free
3119
+ // variables of imports, then remove the imported resources. Given
3120
+ // prior validation of component types, however, the defined
3121
+ // and imported resources are disjoint and imports can't refer to
3122
+ // defined resources, so doing this all in one go should be
3123
+ // equivalent.
3124
+ for ty in i.imports.values().chain(i.exports.values()) {
3125
+ self.free_variables_component_entity(ty, set);
3126
+ }
3127
+ for (id, _path) in i.imported_resources.iter().chain(&i.defined_resources) {
3128
+ set.swap_remove(id);
3129
+ }
3130
+ }
3131
+
3132
+ pub fn free_variables_component_instance_type_id(
3133
+ &self,
3134
+ id: ComponentInstanceTypeId,
3135
+ set: &mut IndexSet<ResourceId>,
3136
+ ) {
3137
+ let i = &self[id];
3138
+ // Like components, add in all the free variables of referenced
3139
+ // types but then remove those defined by this component instance
3140
+ // itself.
3141
+ for ty in i.exports.values() {
3142
+ self.free_variables_component_entity(ty, set);
3143
+ }
3144
+ for id in i.defined_resources.iter() {
3145
+ set.swap_remove(id);
3146
+ }
3147
+ }
3148
+
3149
+ pub fn free_variables_component_func_type_id(
3150
+ &self,
3151
+ id: ComponentFuncTypeId,
3152
+ set: &mut IndexSet<ResourceId>,
3153
+ ) {
3154
+ let i = &self[id];
3155
+ for ty in i
3156
+ .params
3157
+ .iter()
3158
+ .map(|(_, ty)| ty)
3159
+ .chain(i.results.iter().map(|(_, ty)| ty))
3160
+ {
3161
+ self.free_variables_valtype(ty, set);
3162
+ }
3163
+ }
3164
+
3165
+ /// Same as `free_variables_type_id`, but for `ComponentEntityType`.
3166
+ pub fn free_variables_component_entity(
3167
+ &self,
3168
+ ty: &ComponentEntityType,
3169
+ set: &mut IndexSet<ResourceId>,
3170
+ ) {
3171
+ match ty {
3172
+ ComponentEntityType::Module(_) => {}
3173
+ ComponentEntityType::Func(id) => self.free_variables_component_func_type_id(*id, set),
3174
+ ComponentEntityType::Instance(id) => {
3175
+ self.free_variables_component_instance_type_id(*id, set)
3176
+ }
3177
+ ComponentEntityType::Component(id) => self.free_variables_component_type_id(*id, set),
3178
+ ComponentEntityType::Type { created, .. } => {
3179
+ self.free_variables_any_type_id(*created, set);
3180
+ }
3181
+ ComponentEntityType::Value(ty) => self.free_variables_valtype(ty, set),
3182
+ }
3183
+ }
3184
+
3185
+ /// Same as `free_variables_type_id`, but for `ComponentValType`.
3186
+ fn free_variables_valtype(&self, ty: &ComponentValType, set: &mut IndexSet<ResourceId>) {
3187
+ match ty {
3188
+ ComponentValType::Primitive(_) => {}
3189
+ ComponentValType::Type(id) => self.free_variables_component_defined_type_id(*id, set),
3190
+ }
3191
+ }
3192
+
3193
+ /// Returns whether the type `id` is "named" where named types are presented
3194
+ /// via the provided `set`.
3195
+ ///
3196
+ /// This requires that `id` is a `Defined` type.
3197
+ pub(crate) fn type_named_type_id(
3198
+ &self,
3199
+ id: ComponentDefinedTypeId,
3200
+ set: &HashSet<ComponentAnyTypeId>,
3201
+ ) -> bool {
3202
+ let ty = &self[id];
3203
+ match ty {
3204
+ // Primitives are always considered named
3205
+ ComponentDefinedType::Primitive(_) => true,
3206
+
3207
+ // These structures are never allowed to be anonymous, so they
3208
+ // themselves must be named.
3209
+ ComponentDefinedType::Flags(_)
3210
+ | ComponentDefinedType::Enum(_)
3211
+ | ComponentDefinedType::Record(_)
3212
+ | ComponentDefinedType::Variant(_) => set.contains(&ComponentAnyTypeId::from(id)),
3213
+
3214
+ // All types below here are allowed to be anonymous, but their
3215
+ // own components must be appropriately named.
3216
+ ComponentDefinedType::Tuple(r) => {
3217
+ r.types.iter().all(|t| self.type_named_valtype(t, set))
3218
+ }
3219
+ ComponentDefinedType::Result { ok, err } => {
3220
+ ok.as_ref()
3221
+ .map(|t| self.type_named_valtype(t, set))
3222
+ .unwrap_or(true)
3223
+ && err
3224
+ .as_ref()
3225
+ .map(|t| self.type_named_valtype(t, set))
3226
+ .unwrap_or(true)
3227
+ }
3228
+ ComponentDefinedType::List(ty) | ComponentDefinedType::Option(ty) => {
3229
+ self.type_named_valtype(ty, set)
3230
+ }
3231
+
3232
+ // own/borrow themselves don't have to be named, but the resource
3233
+ // they refer to must be named.
3234
+ ComponentDefinedType::Own(id) | ComponentDefinedType::Borrow(id) => {
3235
+ set.contains(&ComponentAnyTypeId::from(*id))
3236
+ }
3237
+ }
3238
+ }
3239
+
3240
+ pub(crate) fn type_named_valtype(
3241
+ &self,
3242
+ ty: &ComponentValType,
3243
+ set: &HashSet<ComponentAnyTypeId>,
3244
+ ) -> bool {
3245
+ match ty {
3246
+ ComponentValType::Primitive(_) => true,
3247
+ ComponentValType::Type(id) => self.type_named_type_id(*id, set),
3248
+ }
3249
+ }
3250
+ }
3251
+
3252
+ /// A helper trait to provide the functionality necessary to resources within a
3253
+ /// type.
3254
+ ///
3255
+ /// This currently exists to abstract over `TypeAlloc` and `SubtypeArena` which
3256
+ /// both need to perform remapping operations.
3257
+ pub trait Remap
3258
+ where
3259
+ Self: Index<ComponentTypeId, Output = ComponentType>,
3260
+ Self: Index<ComponentDefinedTypeId, Output = ComponentDefinedType>,
3261
+ Self: Index<ComponentInstanceTypeId, Output = ComponentInstanceType>,
3262
+ Self: Index<ComponentFuncTypeId, Output = ComponentFuncType>,
3263
+ {
3264
+ /// Pushes a new anonymous type within this object, returning an identifier
3265
+ /// which can be used to refer to it.
3266
+ fn push_ty<T>(&mut self, ty: T) -> T::Id
3267
+ where
3268
+ T: TypeData;
3269
+
3270
+ /// Apply `map` to the keys of `tmp`, setting `*any_changed = true` if any
3271
+ /// keys were remapped.
3272
+ fn map_map(
3273
+ tmp: &mut IndexMap<ResourceId, Vec<usize>>,
3274
+ any_changed: &mut bool,
3275
+ map: &Remapping,
3276
+ ) {
3277
+ for (id, path) in mem::take(tmp) {
3278
+ let id = match map.resources.get(&id) {
3279
+ Some(id) => {
3280
+ *any_changed = true;
3281
+ *id
3282
+ }
3283
+ None => id,
3284
+ };
3285
+ tmp.insert(id, path);
3286
+ }
3287
+ }
3288
+
3289
+ /// If `any_changed` is true, push `ty`, update `map` to point `id` to the
3290
+ /// new type ID, set `id` equal to the new type ID, and return `true`.
3291
+ /// Otherwise, update `map` to point `id` to itself and return `false`.
3292
+ fn insert_if_any_changed<T>(
3293
+ &mut self,
3294
+ map: &mut Remapping,
3295
+ any_changed: bool,
3296
+ id: &mut T::Id,
3297
+ ty: T,
3298
+ ) -> bool
3299
+ where
3300
+ T: TypeData,
3301
+ T::Id: Into<ComponentAnyTypeId>,
3302
+ {
3303
+ let new = if any_changed { self.push_ty(ty) } else { *id };
3304
+ map.types.insert((*id).into(), new.into());
3305
+ let changed = *id != new;
3306
+ *id = new;
3307
+ changed
3308
+ }
3309
+
3310
+ /// Recursively search for any resource types reachable from `id`, updating
3311
+ /// it and `map` if any are found and remapped, returning `true` iff at last
3312
+ /// one is remapped.
3313
+ fn remap_component_any_type_id(
3314
+ &mut self,
3315
+ id: &mut ComponentAnyTypeId,
3316
+ map: &mut Remapping,
3317
+ ) -> bool {
3318
+ match id {
3319
+ ComponentAnyTypeId::Resource(id) => self.remap_resource_id(id, map),
3320
+ ComponentAnyTypeId::Defined(id) => self.remap_component_defined_type_id(id, map),
3321
+ ComponentAnyTypeId::Func(id) => self.remap_component_func_type_id(id, map),
3322
+ ComponentAnyTypeId::Instance(id) => self.remap_component_instance_type_id(id, map),
3323
+ ComponentAnyTypeId::Component(id) => self.remap_component_type_id(id, map),
3324
+ }
3325
+ }
3326
+
3327
+ /// If `map` indicates `id` should be remapped, update it and return `true`.
3328
+ /// Otherwise, do nothing and return `false`.
3329
+ fn remap_resource_id(&mut self, id: &mut AliasableResourceId, map: &Remapping) -> bool {
3330
+ if let Some(changed) = map.remap_id(id) {
3331
+ return changed;
3332
+ }
3333
+
3334
+ match map.resources.get(&id.resource()) {
3335
+ None => false,
3336
+ Some(new_id) => {
3337
+ *id.resource_mut() = *new_id;
3338
+ true
3339
+ }
3340
+ }
3341
+ }
3342
+
3343
+ /// Recursively search for any resource types reachable from `id`, updating
3344
+ /// it and `map` if any are found and remapped, returning `true` iff at last
3345
+ /// one is remapped.
3346
+ fn remap_component_type_id(&mut self, id: &mut ComponentTypeId, map: &mut Remapping) -> bool {
3347
+ if let Some(changed) = map.remap_id(id) {
3348
+ return changed;
3349
+ }
3350
+
3351
+ let mut any_changed = false;
3352
+ let mut ty = self[*id].clone();
3353
+ for ty in ty.imports.values_mut().chain(ty.exports.values_mut()) {
3354
+ any_changed |= self.remap_component_entity(ty, map);
3355
+ }
3356
+ for (id, _) in ty
3357
+ .imported_resources
3358
+ .iter_mut()
3359
+ .chain(&mut ty.defined_resources)
3360
+ {
3361
+ if let Some(new) = map.resources.get(id) {
3362
+ *id = *new;
3363
+ any_changed = true;
3364
+ }
3365
+ }
3366
+ Self::map_map(&mut ty.explicit_resources, &mut any_changed, map);
3367
+ self.insert_if_any_changed(map, any_changed, id, ty)
3368
+ }
3369
+
3370
+ /// Recursively search for any resource types reachable from `id`, updating
3371
+ /// it and `map` if any are found and remapped, returning `true` iff at last
3372
+ /// one is remapped.
3373
+ fn remap_component_defined_type_id(
3374
+ &mut self,
3375
+ id: &mut ComponentDefinedTypeId,
3376
+ map: &mut Remapping,
3377
+ ) -> bool {
3378
+ if let Some(changed) = map.remap_id(id) {
3379
+ return changed;
3380
+ }
3381
+
3382
+ let mut any_changed = false;
3383
+ let mut tmp = self[*id].clone();
3384
+ match &mut tmp {
3385
+ ComponentDefinedType::Primitive(_)
3386
+ | ComponentDefinedType::Flags(_)
3387
+ | ComponentDefinedType::Enum(_) => {}
3388
+ ComponentDefinedType::Record(r) => {
3389
+ for ty in r.fields.values_mut() {
3390
+ any_changed |= self.remap_valtype(ty, map);
3391
+ }
3392
+ }
3393
+ ComponentDefinedType::Tuple(r) => {
3394
+ for ty in r.types.iter_mut() {
3395
+ any_changed |= self.remap_valtype(ty, map);
3396
+ }
3397
+ }
3398
+ ComponentDefinedType::Variant(r) => {
3399
+ for ty in r.cases.values_mut() {
3400
+ if let Some(ty) = &mut ty.ty {
3401
+ any_changed |= self.remap_valtype(ty, map);
3402
+ }
3403
+ }
3404
+ }
3405
+ ComponentDefinedType::List(ty) | ComponentDefinedType::Option(ty) => {
3406
+ any_changed |= self.remap_valtype(ty, map);
3407
+ }
3408
+ ComponentDefinedType::Result { ok, err } => {
3409
+ if let Some(ok) = ok {
3410
+ any_changed |= self.remap_valtype(ok, map);
3411
+ }
3412
+ if let Some(err) = err {
3413
+ any_changed |= self.remap_valtype(err, map);
3414
+ }
3415
+ }
3416
+ ComponentDefinedType::Own(id) | ComponentDefinedType::Borrow(id) => {
3417
+ any_changed |= self.remap_resource_id(id, map);
3418
+ }
3419
+ }
3420
+ self.insert_if_any_changed(map, any_changed, id, tmp)
3421
+ }
3422
+
3423
+ /// Recursively search for any resource types reachable from `id`, updating
3424
+ /// it and `map` if any are found and remapped, returning `true` iff at last
3425
+ /// one is remapped.
3426
+ fn remap_component_instance_type_id(
3427
+ &mut self,
3428
+ id: &mut ComponentInstanceTypeId,
3429
+ map: &mut Remapping,
3430
+ ) -> bool {
3431
+ if let Some(changed) = map.remap_id(id) {
3432
+ return changed;
3433
+ }
3434
+
3435
+ let mut any_changed = false;
3436
+ let mut tmp = self[*id].clone();
3437
+ for ty in tmp.exports.values_mut() {
3438
+ any_changed |= self.remap_component_entity(ty, map);
3439
+ }
3440
+ for id in tmp.defined_resources.iter_mut() {
3441
+ if let Some(new) = map.resources.get(id) {
3442
+ *id = *new;
3443
+ any_changed = true;
3444
+ }
3445
+ }
3446
+ Self::map_map(&mut tmp.explicit_resources, &mut any_changed, map);
3447
+ self.insert_if_any_changed(map, any_changed, id, tmp)
3448
+ }
3449
+
3450
+ /// Recursively search for any resource types reachable from `id`, updating
3451
+ /// it and `map` if any are found and remapped, returning `true` iff at last
3452
+ /// one is remapped.
3453
+ fn remap_component_func_type_id(
3454
+ &mut self,
3455
+ id: &mut ComponentFuncTypeId,
3456
+ map: &mut Remapping,
3457
+ ) -> bool {
3458
+ if let Some(changed) = map.remap_id(id) {
3459
+ return changed;
3460
+ }
3461
+
3462
+ let mut any_changed = false;
3463
+ let mut tmp = self[*id].clone();
3464
+ for ty in tmp
3465
+ .params
3466
+ .iter_mut()
3467
+ .map(|(_, ty)| ty)
3468
+ .chain(tmp.results.iter_mut().map(|(_, ty)| ty))
3469
+ {
3470
+ any_changed |= self.remap_valtype(ty, map);
3471
+ }
3472
+ self.insert_if_any_changed(map, any_changed, id, tmp)
3473
+ }
3474
+
3475
+ /// Same as `remap_type_id`, but works with `ComponentEntityType`.
3476
+ fn remap_component_entity(
3477
+ &mut self,
3478
+ ty: &mut ComponentEntityType,
3479
+ map: &mut Remapping,
3480
+ ) -> bool {
3481
+ match ty {
3482
+ ComponentEntityType::Module(_) => {
3483
+ // Can't reference resources.
3484
+ false
3485
+ }
3486
+ ComponentEntityType::Func(id) => self.remap_component_func_type_id(id, map),
3487
+ ComponentEntityType::Instance(id) => self.remap_component_instance_type_id(id, map),
3488
+ ComponentEntityType::Component(id) => self.remap_component_type_id(id, map),
3489
+ ComponentEntityType::Type {
3490
+ referenced,
3491
+ created,
3492
+ } => {
3493
+ let mut changed = self.remap_component_any_type_id(referenced, map);
3494
+ if *referenced == *created {
3495
+ *created = *referenced;
3496
+ } else {
3497
+ changed |= self.remap_component_any_type_id(created, map);
3498
+ }
3499
+ changed
3500
+ }
3501
+ ComponentEntityType::Value(ty) => self.remap_valtype(ty, map),
3502
+ }
3503
+ }
3504
+
3505
+ /// Same as `remap_type_id`, but works with `ComponentValType`.
3506
+ fn remap_valtype(&mut self, ty: &mut ComponentValType, map: &mut Remapping) -> bool {
3507
+ match ty {
3508
+ ComponentValType::Primitive(_) => false,
3509
+ ComponentValType::Type(id) => self.remap_component_defined_type_id(id, map),
3510
+ }
3511
+ }
3512
+ }
3513
+
3514
+ /// Utility for mapping equivalent `ResourceId`s to each other and (when paired with the `Remap` trait)
3515
+ /// non-destructively edit type lists to reflect those mappings.
3516
+ #[derive(Debug, Default)]
3517
+ pub struct Remapping {
3518
+ /// A mapping from old resource ID to new resource ID.
3519
+ pub(crate) resources: HashMap<ResourceId, ResourceId>,
3520
+
3521
+ /// A mapping filled in during the remapping process which records how a
3522
+ /// type was remapped, if applicable. This avoids remapping multiple
3523
+ /// references to the same type and instead only processing it once.
3524
+ types: HashMap<ComponentAnyTypeId, ComponentAnyTypeId>,
3525
+ }
3526
+
3527
+ impl Remap for TypeAlloc {
3528
+ fn push_ty<T>(&mut self, ty: T) -> T::Id
3529
+ where
3530
+ T: TypeData,
3531
+ {
3532
+ <TypeList>::push(self, ty)
3533
+ }
3534
+ }
3535
+
3536
+ impl<T> Index<T> for TypeAlloc
3537
+ where
3538
+ T: TypeIdentifier,
3539
+ {
3540
+ type Output = T::Data;
3541
+
3542
+ #[inline]
3543
+ fn index(&self, id: T) -> &T::Data {
3544
+ &self.list[id]
3545
+ }
3546
+ }
3547
+
3548
+ impl Remapping {
3549
+ /// Add a mapping from the specified old resource ID to the new resource ID
3550
+ pub fn add(&mut self, old: ResourceId, new: ResourceId) {
3551
+ self.resources.insert(old, new);
3552
+ }
3553
+
3554
+ /// Clear the type cache while leaving the resource mappings intact.
3555
+ pub fn reset_type_cache(&mut self) {
3556
+ self.types.clear()
3557
+ }
3558
+
3559
+ fn remap_id<T>(&self, id: &mut T) -> Option<bool>
3560
+ where
3561
+ T: Copy + Into<ComponentAnyTypeId> + TryFrom<ComponentAnyTypeId>,
3562
+ T::Error: core::fmt::Debug,
3563
+ {
3564
+ let old: ComponentAnyTypeId = (*id).into();
3565
+ let new = self.types.get(&old)?;
3566
+ if *new == old {
3567
+ Some(false)
3568
+ } else {
3569
+ *id = T::try_from(*new).expect("should never remap across different kinds");
3570
+ Some(true)
3571
+ }
3572
+ }
3573
+ }
3574
+
3575
+ /// Helper structure used to perform subtyping computations.
3576
+ ///
3577
+ /// This type is used whenever a subtype needs to be tested in one direction or
3578
+ /// the other. The methods of this type are the various entry points for
3579
+ /// subtyping.
3580
+ ///
3581
+ /// Internally this contains arenas for two lists of types. The `a` arena is
3582
+ /// intended to be used for lookup of the first argument to all of the methods
3583
+ /// below, and the `b` arena is used for lookup of the second argument.
3584
+ ///
3585
+ /// Arenas here are used specifically for component-based subtyping queries. In
3586
+ /// these situations new types must be created based on substitution mappings,
3587
+ /// but the types all have temporary lifetimes. Everything in these arenas is
3588
+ /// thrown away once the subtyping computation has finished.
3589
+ ///
3590
+ /// Note that this subtyping context also explicitly supports being created
3591
+ /// from to different lists `a` and `b` originally, for testing subtyping
3592
+ /// between two different components for example.
3593
+ pub struct SubtypeCx<'a> {
3594
+ /// Lookup arena for first type argument
3595
+ pub a: SubtypeArena<'a>,
3596
+ /// Lookup arena for second type argument
3597
+ pub b: SubtypeArena<'a>,
3598
+ }
3599
+
3600
+ impl<'a> SubtypeCx<'a> {
3601
+ /// Create a new instance with the specified type lists
3602
+ pub fn new_with_refs(a: TypesRef<'a>, b: TypesRef<'a>) -> SubtypeCx<'a> {
3603
+ Self::new(a.list, b.list)
3604
+ }
3605
+
3606
+ pub(crate) fn new(a: &'a TypeList, b: &'a TypeList) -> SubtypeCx<'a> {
3607
+ SubtypeCx {
3608
+ a: SubtypeArena::new(a),
3609
+ b: SubtypeArena::new(b),
3610
+ }
3611
+ }
3612
+
3613
+ /// Swap the type lists
3614
+ pub fn swap(&mut self) {
3615
+ mem::swap(&mut self.a, &mut self.b);
3616
+ }
3617
+
3618
+ /// Executes the closure `f`, resetting the internal arenas to their
3619
+ /// original size after the closure finishes.
3620
+ ///
3621
+ /// This enables `f` to modify the internal arenas while relying on all
3622
+ /// changes being discarded after the closure finishes.
3623
+ fn with_checkpoint<T>(&mut self, f: impl FnOnce(&mut Self) -> T) -> T {
3624
+ let a = self.a.list.checkpoint();
3625
+ let b = self.b.list.checkpoint();
3626
+ let result = f(self);
3627
+ self.a.list.reset_to_checkpoint(a);
3628
+ self.b.list.reset_to_checkpoint(b);
3629
+ result
3630
+ }
3631
+
3632
+ /// Tests whether `a` is a subtype of `b`.
3633
+ ///
3634
+ /// Errors are reported at the `offset` specified.
3635
+ pub fn component_entity_type(
3636
+ &mut self,
3637
+ a: &ComponentEntityType,
3638
+ b: &ComponentEntityType,
3639
+ offset: usize,
3640
+ ) -> Result<()> {
3641
+ use ComponentEntityType::*;
3642
+
3643
+ match (a, b) {
3644
+ (Module(a), Module(b)) => self.module_type(*a, *b, offset),
3645
+ (Module(_), b) => bail!(offset, "expected {}, found module", b.desc()),
3646
+
3647
+ (Func(a), Func(b)) => self.component_func_type(*a, *b, offset),
3648
+ (Func(_), b) => bail!(offset, "expected {}, found func", b.desc()),
3649
+
3650
+ (Value(a), Value(b)) => self.component_val_type(a, b, offset),
3651
+ (Value(_), b) => bail!(offset, "expected {}, found value", b.desc()),
3652
+
3653
+ (Type { referenced: a, .. }, Type { referenced: b, .. }) => {
3654
+ self.component_any_type_id(*a, *b, offset)
3655
+ }
3656
+ (Type { .. }, b) => bail!(offset, "expected {}, found type", b.desc()),
3657
+
3658
+ (Instance(a), Instance(b)) => self.component_instance_type(*a, *b, offset),
3659
+ (Instance(_), b) => bail!(offset, "expected {}, found instance", b.desc()),
3660
+
3661
+ (Component(a), Component(b)) => self.component_type(*a, *b, offset),
3662
+ (Component(_), b) => bail!(offset, "expected {}, found component", b.desc()),
3663
+ }
3664
+ }
3665
+
3666
+ /// Tests whether `a` is a subtype of `b`.
3667
+ ///
3668
+ /// Errors are reported at the `offset` specified.
3669
+ pub fn component_type(
3670
+ &mut self,
3671
+ a: ComponentTypeId,
3672
+ b: ComponentTypeId,
3673
+ offset: usize,
3674
+ ) -> Result<()> {
3675
+ // Components are ... tricky. They follow the same basic
3676
+ // structure as core wasm modules, but they also have extra
3677
+ // logic to handle resource types. Resources are effectively
3678
+ // abstract types so this is sort of where an ML module system
3679
+ // in the component model becomes a reality.
3680
+ //
3681
+ // This also leverages the `open_instance_type` method below
3682
+ // heavily which internally has its own quite large suite of
3683
+ // logic. More-or-less what's happening here is:
3684
+ //
3685
+ // 1. Pretend that the imports of B are given as values to the
3686
+ // imports of A. If A didn't import anything, for example,
3687
+ // that's great and the subtyping definitely passes there.
3688
+ // This operation produces a mapping of all the resources of
3689
+ // A's imports to resources in B's imports.
3690
+ //
3691
+ // 2. This mapping is applied to all of A's exports. This means
3692
+ // that all exports of A referring to A's imported resources
3693
+ // now instead refer to B's. Note, though that A's exports
3694
+ // still refer to its own defined resources.
3695
+ //
3696
+ // 3. The same `open_instance_type` method used during the
3697
+ // first step is used again, but this time on the exports
3698
+ // in the reverse direction. This performs a similar
3699
+ // operation, though, by creating a mapping from B's
3700
+ // defined resources to A's defined resources. The map
3701
+ // itself is discarded as it's not needed.
3702
+ //
3703
+ // The order that everything passed here is intentional, but
3704
+ // also subtle. I personally think of it as
3705
+ // `open_instance_type` takes a list of things to satisfy a
3706
+ // signature and produces a mapping of resources in the
3707
+ // signature to those provided in the list of things. The
3708
+ // order of operations then goes:
3709
+ //
3710
+ // * Someone thinks they have a component of type B, but they
3711
+ // actually have a component of type A (e.g. due to this
3712
+ // subtype check passing).
3713
+ // * This person provides the imports of B and that must be
3714
+ // sufficient to satisfy the imports of A. This is the first
3715
+ // `open_instance_type` check.
3716
+ // * Now though the resources provided by B are substituted
3717
+ // into A's exports since that's what was provided.
3718
+ // * A's exports are then handed back to the original person,
3719
+ // and these exports must satisfy the signature required by B
3720
+ // since that's what they're expecting.
3721
+ // * This is the second `open_instance_type` which, to get
3722
+ // resource types to line up, will map from A's defined
3723
+ // resources to B's defined resources.
3724
+ //
3725
+ // If all that passes then the resources should all line up
3726
+ // perfectly. Any misalignment is reported as a subtyping
3727
+ // error.
3728
+ let b_imports = self.b[b]
3729
+ .imports
3730
+ .iter()
3731
+ .map(|(name, ty)| (name.clone(), ty.clone()))
3732
+ .collect();
3733
+ self.swap();
3734
+ let mut import_mapping =
3735
+ self.open_instance_type(&b_imports, a, ExternKind::Import, offset)?;
3736
+ self.swap();
3737
+ self.with_checkpoint(|this| {
3738
+ let mut a_exports = this.a[a]
3739
+ .exports
3740
+ .iter()
3741
+ .map(|(name, ty)| (name.clone(), ty.clone()))
3742
+ .collect::<IndexMap<_, _>>();
3743
+ for ty in a_exports.values_mut() {
3744
+ this.a.remap_component_entity(ty, &mut import_mapping);
3745
+ }
3746
+ this.open_instance_type(&a_exports, b, ExternKind::Export, offset)?;
3747
+ Ok(())
3748
+ })
3749
+ }
3750
+
3751
+ /// Tests whether `a` is a subtype of `b`.
3752
+ ///
3753
+ /// Errors are reported at the `offset` specified.
3754
+ pub fn component_instance_type(
3755
+ &mut self,
3756
+ a_id: ComponentInstanceTypeId,
3757
+ b_id: ComponentInstanceTypeId,
3758
+ offset: usize,
3759
+ ) -> Result<()> {
3760
+ // For instance type subtyping, all exports in the other
3761
+ // instance type must be present in this instance type's
3762
+ // exports (i.e. it can export *more* than what this instance
3763
+ // type needs).
3764
+ let a = &self.a[a_id];
3765
+ let b = &self.b[b_id];
3766
+
3767
+ let mut exports = Vec::with_capacity(b.exports.len());
3768
+ for (k, b) in b.exports.iter() {
3769
+ match a.exports.get(k) {
3770
+ Some(a) => exports.push((*a, *b)),
3771
+ None => bail!(offset, "missing expected export `{k}`"),
3772
+ }
3773
+ }
3774
+ for (i, (a, b)) in exports.iter().enumerate() {
3775
+ let err = match self.component_entity_type(a, b, offset) {
3776
+ Ok(()) => continue,
3777
+ Err(e) => e,
3778
+ };
3779
+ // On failure attach the name of this export as context to
3780
+ // the error message to leave a breadcrumb trail.
3781
+ let (name, _) = self.b[b_id].exports.get_index(i).unwrap();
3782
+ return Err(err.with_context(|| format!("type mismatch in instance export `{name}`")));
3783
+ }
3784
+ Ok(())
3785
+ }
3786
+
3787
+ /// Tests whether `a` is a subtype of `b`.
3788
+ ///
3789
+ /// Errors are reported at the `offset` specified.
3790
+ pub fn component_func_type(
3791
+ &mut self,
3792
+ a: ComponentFuncTypeId,
3793
+ b: ComponentFuncTypeId,
3794
+ offset: usize,
3795
+ ) -> Result<()> {
3796
+ let a = &self.a[a];
3797
+ let b = &self.b[b];
3798
+
3799
+ // Note that this intentionally diverges from the upstream
3800
+ // specification in terms of subtyping. This is a full
3801
+ // type-equality check which ensures that the structure of `a`
3802
+ // exactly matches the structure of `b`. The rationale for this
3803
+ // is:
3804
+ //
3805
+ // * Primarily in Wasmtime subtyping based on function types is
3806
+ // not implemented. This includes both subtyping a host
3807
+ // import and additionally handling subtyping as functions
3808
+ // cross component boundaries. The host import subtyping (or
3809
+ // component export subtyping) is not clear how to handle at
3810
+ // all at this time. The subtyping of functions between
3811
+ // components can more easily be handled by extending the
3812
+ // `fact` compiler, but that hasn't been done yet.
3813
+ //
3814
+ // * The upstream specification is currently pretty
3815
+ // intentionally vague precisely what subtyping is allowed.
3816
+ // Implementing a strict check here is intended to be a
3817
+ // conservative starting point for the component model which
3818
+ // can be extended in the future if necessary.
3819
+ //
3820
+ // * The interaction with subtyping on bindings generation, for
3821
+ // example, is a tricky problem that doesn't have a clear
3822
+ // answer at this time. Effectively this is more rationale
3823
+ // for being conservative in the first pass of the component
3824
+ // model.
3825
+ //
3826
+ // So, in conclusion, the test here (and other places that
3827
+ // reference this comment) is for exact type equality with no
3828
+ // differences.
3829
+ if a.params.len() != b.params.len() {
3830
+ bail!(
3831
+ offset,
3832
+ "expected {} parameters, found {}",
3833
+ b.params.len(),
3834
+ a.params.len(),
3835
+ );
3836
+ }
3837
+ if a.results.len() != b.results.len() {
3838
+ bail!(
3839
+ offset,
3840
+ "expected {} results, found {}",
3841
+ b.results.len(),
3842
+ a.results.len(),
3843
+ );
3844
+ }
3845
+ for ((an, a), (bn, b)) in a.params.iter().zip(b.params.iter()) {
3846
+ if an != bn {
3847
+ bail!(offset, "expected parameter named `{bn}`, found `{an}`");
3848
+ }
3849
+ self.component_val_type(a, b, offset)
3850
+ .with_context(|| format!("type mismatch in function parameter `{an}`"))?;
3851
+ }
3852
+ for ((an, a), (bn, b)) in a.results.iter().zip(b.results.iter()) {
3853
+ if an != bn {
3854
+ bail!(offset, "mismatched result names");
3855
+ }
3856
+ self.component_val_type(a, b, offset)
3857
+ .with_context(|| "type mismatch with result type")?;
3858
+ }
3859
+ Ok(())
3860
+ }
3861
+
3862
+ /// Tests whether `a` is a subtype of `b`.
3863
+ ///
3864
+ /// Errors are reported at the `offset` specified.
3865
+ pub fn module_type(
3866
+ &mut self,
3867
+ a: ComponentCoreModuleTypeId,
3868
+ b: ComponentCoreModuleTypeId,
3869
+ offset: usize,
3870
+ ) -> Result<()> {
3871
+ // For module type subtyping, all exports in the other module
3872
+ // type must be present in this module type's exports (i.e. it
3873
+ // can export *more* than what this module type needs).
3874
+ // However, for imports, the check is reversed (i.e. it is okay
3875
+ // to import *less* than what this module type needs).
3876
+ self.swap();
3877
+ let a_imports = &self.b[a].imports;
3878
+ let b_imports = &self.a[b].imports;
3879
+ for (k, a) in a_imports {
3880
+ match b_imports.get(k) {
3881
+ Some(b) => self
3882
+ .entity_type(b, a, offset)
3883
+ .with_context(|| format!("type mismatch in import `{}::{}`", k.0, k.1))?,
3884
+ None => bail!(offset, "missing expected import `{}::{}`", k.0, k.1),
3885
+ }
3886
+ }
3887
+ self.swap();
3888
+ let a = &self.a[a];
3889
+ let b = &self.b[b];
3890
+ for (k, b) in b.exports.iter() {
3891
+ match a.exports.get(k) {
3892
+ Some(a) => self
3893
+ .entity_type(a, b, offset)
3894
+ .with_context(|| format!("type mismatch in export `{k}`"))?,
3895
+ None => bail!(offset, "missing expected export `{k}`"),
3896
+ }
3897
+ }
3898
+ Ok(())
3899
+ }
3900
+
3901
+ /// Tests whether `a` is a subtype of `b`.
3902
+ ///
3903
+ /// Errors are reported at the `offset` specified.
3904
+ pub fn component_any_type_id(
3905
+ &mut self,
3906
+ a: ComponentAnyTypeId,
3907
+ b: ComponentAnyTypeId,
3908
+ offset: usize,
3909
+ ) -> Result<()> {
3910
+ match (a, b) {
3911
+ (ComponentAnyTypeId::Resource(a), ComponentAnyTypeId::Resource(b)) => {
3912
+ if a.resource() == b.resource() {
3913
+ Ok(())
3914
+ } else {
3915
+ bail!(
3916
+ offset,
3917
+ "resource types are not the same ({:?} vs. {:?})",
3918
+ a.resource(),
3919
+ b.resource()
3920
+ )
3921
+ }
3922
+ }
3923
+ (ComponentAnyTypeId::Resource(_), b) => {
3924
+ bail!(offset, "expected {}, found resource", b.desc())
3925
+ }
3926
+ (ComponentAnyTypeId::Defined(a), ComponentAnyTypeId::Defined(b)) => {
3927
+ self.component_defined_type(a, b, offset)
3928
+ }
3929
+ (ComponentAnyTypeId::Defined(_), b) => {
3930
+ bail!(offset, "expected {}, found defined type", b.desc())
3931
+ }
3932
+
3933
+ (ComponentAnyTypeId::Func(a), ComponentAnyTypeId::Func(b)) => {
3934
+ self.component_func_type(a, b, offset)
3935
+ }
3936
+ (ComponentAnyTypeId::Func(_), b) => {
3937
+ bail!(offset, "expected {}, found func type", b.desc())
3938
+ }
3939
+
3940
+ (ComponentAnyTypeId::Instance(a), ComponentAnyTypeId::Instance(b)) => {
3941
+ self.component_instance_type(a, b, offset)
3942
+ }
3943
+ (ComponentAnyTypeId::Instance(_), b) => {
3944
+ bail!(offset, "expected {}, found instance type", b.desc())
3945
+ }
3946
+
3947
+ (ComponentAnyTypeId::Component(a), ComponentAnyTypeId::Component(b)) => {
3948
+ self.component_type(a, b, offset)
3949
+ }
3950
+ (ComponentAnyTypeId::Component(_), b) => {
3951
+ bail!(offset, "expected {}, found component type", b.desc())
3952
+ }
3953
+ }
3954
+ }
3955
+
3956
+ /// The building block for subtyping checks when components are
3957
+ /// instantiated and when components are tested if they're subtypes of each
3958
+ /// other.
3959
+ ///
3960
+ /// This method takes a number of arguments:
3961
+ ///
3962
+ /// * `a` - this is a list of typed items which can be thought of as
3963
+ /// concrete values to test against `b`.
3964
+ /// * `b` - this `TypeId` must point to `Type::Component`.
3965
+ /// * `kind` - indicates whether the `imports` or `exports` of `b` are
3966
+ /// being tested against for the values in `a`.
3967
+ /// * `offset` - the binary offset at which to report errors if one happens.
3968
+ ///
3969
+ /// This will attempt to determine if the items in `a` satisfy the
3970
+ /// signature required by the `kind` items of `b`. For example component
3971
+ /// instantiation will have `a` as the list of arguments provided to
3972
+ /// instantiation, `b` is the component being instantiated, and `kind` is
3973
+ /// `ExternKind::Import`.
3974
+ ///
3975
+ /// This function, if successful, will return a mapping of the resources in
3976
+ /// `b` to the resources in `a` provided. This mapping is guaranteed to
3977
+ /// contain all the resources for `b` (all imported resources for
3978
+ /// `ExternKind::Import` or all defined resources for `ExternKind::Export`).
3979
+ pub fn open_instance_type(
3980
+ &mut self,
3981
+ a: &IndexMap<String, ComponentEntityType>,
3982
+ b: ComponentTypeId,
3983
+ kind: ExternKind,
3984
+ offset: usize,
3985
+ ) -> Result<Remapping> {
3986
+ // First, determine the mapping from resources in `b` to those supplied
3987
+ // by arguments in `a`.
3988
+ //
3989
+ // This loop will iterate over all the appropriate resources in `b`
3990
+ // and find the corresponding resource in `args`. The exact lists
3991
+ // in use here depend on the `kind` provided. This necessarily requires
3992
+ // a sequence of string lookups to find the corresponding items in each
3993
+ // list.
3994
+ //
3995
+ // The path to each resource in `resources` is precomputed as a list of
3996
+ // indexes. The first index is into `b`'s list of `entities`, and gives
3997
+ // the name that `b` assigns to the resource. Each subsequent index,
3998
+ // if present, means that this resource was present through a layer of
3999
+ // an instance type, and the index is into the instance type's exports.
4000
+ // More information about this can be found on
4001
+ // `ComponentState::imported_resources`.
4002
+ //
4003
+ // This loop will follow the list of indices for each resource and, at
4004
+ // the same time, walk through the arguments supplied to instantiating
4005
+ // the `component_type`. This means that within `component_type`
4006
+ // index-based lookups are performed while in `args` name-based
4007
+ // lookups are performed.
4008
+ //
4009
+ // Note that here it's possible that `args` doesn't actually supply the
4010
+ // correct type of import for each item since argument checking has
4011
+ // not proceeded yet. These type errors, however, aren't handled by
4012
+ // this loop and are deferred below to the main subtyping check. That
4013
+ // means that `mapping` won't necessarily have a mapping for all
4014
+ // imported resources into `component_type`, but that should be ok.
4015
+ let component_type = &self.b[b];
4016
+ let entities = match kind {
4017
+ ExternKind::Import => &component_type.imports,
4018
+ ExternKind::Export => &component_type.exports,
4019
+ };
4020
+ let resources = match kind {
4021
+ ExternKind::Import => &component_type.imported_resources,
4022
+ ExternKind::Export => &component_type.defined_resources,
4023
+ };
4024
+ let mut mapping = Remapping::default();
4025
+ 'outer: for (resource, path) in resources.iter() {
4026
+ // Lookup the first path item in `imports` and the corresponding
4027
+ // entry in `args` by name.
4028
+ let (name, ty) = entities.get_index(path[0]).unwrap();
4029
+ let mut ty = *ty;
4030
+ let mut arg = a.get(name);
4031
+
4032
+ // Lookup all the subsequent `path` entries, if any, by index in
4033
+ // `ty` and by name in `arg`. Type errors in `arg` are skipped over
4034
+ // entirely.
4035
+ for i in path.iter().skip(1).copied() {
4036
+ let id = match ty {
4037
+ ComponentEntityType::Instance(id) => id,
4038
+ _ => unreachable!(),
4039
+ };
4040
+ let (name, next_ty) = self.b[id].exports.get_index(i).unwrap();
4041
+ ty = *next_ty;
4042
+ arg = match arg {
4043
+ Some(ComponentEntityType::Instance(id)) => self.a[*id].exports.get(name),
4044
+ _ => continue 'outer,
4045
+ };
4046
+ }
4047
+
4048
+ // Double-check that `ty`, the leaf type of `component_type`, is
4049
+ // indeed the expected resource.
4050
+ if cfg!(debug_assertions) {
4051
+ let id = match ty {
4052
+ ComponentEntityType::Type { created, .. } => match created {
4053
+ ComponentAnyTypeId::Resource(id) => id.resource(),
4054
+ _ => unreachable!(),
4055
+ },
4056
+ _ => unreachable!(),
4057
+ };
4058
+ assert_eq!(id, *resource);
4059
+ }
4060
+
4061
+ // The leaf of `arg` should be a type which is a resource. If not
4062
+ // it's skipped and this'll wind up generating an error later on in
4063
+ // subtype checking below.
4064
+ if let Some(ComponentEntityType::Type { created, .. }) = arg {
4065
+ if let ComponentAnyTypeId::Resource(r) = created {
4066
+ mapping.resources.insert(*resource, r.resource());
4067
+ }
4068
+ }
4069
+ }
4070
+
4071
+ // Now that a mapping from the resources in `b` to the resources in `a`
4072
+ // has been determined it's possible to perform the actual subtype
4073
+ // check.
4074
+ //
4075
+ // This subtype check notably needs to ensure that all resource types
4076
+ // line up. To achieve this the `mapping` previously calculated is used
4077
+ // to perform a substitution on each component entity type.
4078
+ //
4079
+ // The first loop here performs a name lookup to create a list of
4080
+ // values from `a` to expected items in `b`. Once the list is created
4081
+ // the substitution check is performed on each element.
4082
+ let mut to_typecheck = Vec::new();
4083
+ for (name, expected) in entities.iter() {
4084
+ match a.get(name) {
4085
+ Some(arg) => to_typecheck.push((arg.clone(), expected.clone())),
4086
+ None => bail!(offset, "missing {} named `{name}`", kind.desc()),
4087
+ }
4088
+ }
4089
+ let mut type_map = HashMap::default();
4090
+ for (i, (actual, expected)) in to_typecheck.into_iter().enumerate() {
4091
+ let result = self.with_checkpoint(|this| {
4092
+ let mut expected = expected;
4093
+ this.b.remap_component_entity(&mut expected, &mut mapping);
4094
+ mapping.types.clear();
4095
+ this.component_entity_type(&actual, &expected, offset)
4096
+ });
4097
+ let err = match result {
4098
+ Ok(()) => {
4099
+ // On a successful type-check record a mapping of
4100
+ // type-to-type in `type_map` for any type imports that were
4101
+ // satisfied. This is then used afterwards when performing
4102
+ // type substitution to remap all component-local types to
4103
+ // those that were provided in the imports.
4104
+ self.register_type_renamings(actual, expected, &mut type_map);
4105
+ continue;
4106
+ }
4107
+ Err(e) => e,
4108
+ };
4109
+
4110
+ // If an error happens then attach the name of the entity to the
4111
+ // error message using the `i` iteration counter.
4112
+ let component_type = &self.b[b];
4113
+ let entities = match kind {
4114
+ ExternKind::Import => &component_type.imports,
4115
+ ExternKind::Export => &component_type.exports,
4116
+ };
4117
+ let (name, _) = entities.get_index(i).unwrap();
4118
+ return Err(err.with_context(|| format!("type mismatch for {} `{name}`", kind.desc())));
4119
+ }
4120
+ mapping.types = type_map;
4121
+ Ok(mapping)
4122
+ }
4123
+
4124
+ pub(crate) fn entity_type(&self, a: &EntityType, b: &EntityType, offset: usize) -> Result<()> {
4125
+ macro_rules! limits_match {
4126
+ ($a:expr, $b:expr) => {{
4127
+ let a = $a;
4128
+ let b = $b;
4129
+ a.initial >= b.initial
4130
+ && match b.maximum {
4131
+ Some(b_max) => match a.maximum {
4132
+ Some(a_max) => a_max <= b_max,
4133
+ None => false,
4134
+ },
4135
+ None => true,
4136
+ }
4137
+ }};
4138
+ }
4139
+
4140
+ match (a, b) {
4141
+ (EntityType::Func(a), EntityType::Func(b)) => {
4142
+ self.core_func_type(self.a[*a].unwrap_func(), self.b[*b].unwrap_func(), offset)
4143
+ }
4144
+ (EntityType::Func(_), b) => bail!(offset, "expected {}, found func", b.desc()),
4145
+ (EntityType::Table(a), EntityType::Table(b)) => {
4146
+ if a.element_type != b.element_type {
4147
+ bail!(
4148
+ offset,
4149
+ "expected table element type {}, found {}",
4150
+ b.element_type,
4151
+ a.element_type,
4152
+ )
4153
+ }
4154
+ if limits_match!(a, b) {
4155
+ Ok(())
4156
+ } else {
4157
+ bail!(offset, "mismatch in table limits")
4158
+ }
4159
+ }
4160
+ (EntityType::Table(_), b) => bail!(offset, "expected {}, found table", b.desc()),
4161
+ (EntityType::Memory(a), EntityType::Memory(b)) => {
4162
+ if a.shared != b.shared {
4163
+ bail!(offset, "mismatch in the shared flag for memories")
4164
+ }
4165
+ if a.memory64 != b.memory64 {
4166
+ bail!(offset, "mismatch in index type used for memories")
4167
+ }
4168
+ if limits_match!(a, b) {
4169
+ Ok(())
4170
+ } else {
4171
+ bail!(offset, "mismatch in memory limits")
4172
+ }
4173
+ }
4174
+ (EntityType::Memory(_), b) => bail!(offset, "expected {}, found memory", b.desc()),
4175
+ (EntityType::Global(a), EntityType::Global(b)) => {
4176
+ if a.mutable != b.mutable {
4177
+ bail!(offset, "global types differ in mutability")
4178
+ }
4179
+ if a.content_type == b.content_type {
4180
+ Ok(())
4181
+ } else {
4182
+ bail!(
4183
+ offset,
4184
+ "expected global type {}, found {}",
4185
+ b.content_type,
4186
+ a.content_type,
4187
+ )
4188
+ }
4189
+ }
4190
+ (EntityType::Global(_), b) => bail!(offset, "expected {}, found global", b.desc()),
4191
+ (EntityType::Tag(a), EntityType::Tag(b)) => {
4192
+ self.core_func_type(self.a[*a].unwrap_func(), self.b[*b].unwrap_func(), offset)
4193
+ }
4194
+ (EntityType::Tag(_), b) => bail!(offset, "expected {}, found tag", b.desc()),
4195
+ }
4196
+ }
4197
+
4198
+ fn core_func_type(&self, a: &FuncType, b: &FuncType, offset: usize) -> Result<()> {
4199
+ if a == b {
4200
+ Ok(())
4201
+ } else {
4202
+ bail!(
4203
+ offset,
4204
+ "expected: {}\n\
4205
+ found: {}",
4206
+ b.desc(),
4207
+ a.desc(),
4208
+ )
4209
+ }
4210
+ }
4211
+
4212
+ pub(crate) fn component_val_type(
4213
+ &self,
4214
+ a: &ComponentValType,
4215
+ b: &ComponentValType,
4216
+ offset: usize,
4217
+ ) -> Result<()> {
4218
+ match (a, b) {
4219
+ (ComponentValType::Primitive(a), ComponentValType::Primitive(b)) => {
4220
+ self.primitive_val_type(*a, *b, offset)
4221
+ }
4222
+ (ComponentValType::Type(a), ComponentValType::Type(b)) => {
4223
+ self.component_defined_type(*a, *b, offset)
4224
+ }
4225
+ (ComponentValType::Primitive(a), ComponentValType::Type(b)) => match &self.b[*b] {
4226
+ ComponentDefinedType::Primitive(b) => self.primitive_val_type(*a, *b, offset),
4227
+ b => bail!(offset, "expected {}, found {a}", b.desc()),
4228
+ },
4229
+ (ComponentValType::Type(a), ComponentValType::Primitive(b)) => match &self.a[*a] {
4230
+ ComponentDefinedType::Primitive(a) => self.primitive_val_type(*a, *b, offset),
4231
+ a => bail!(offset, "expected {b}, found {}", a.desc()),
4232
+ },
4233
+ }
4234
+ }
4235
+
4236
+ fn component_defined_type(
4237
+ &self,
4238
+ a: ComponentDefinedTypeId,
4239
+ b: ComponentDefinedTypeId,
4240
+ offset: usize,
4241
+ ) -> Result<()> {
4242
+ use ComponentDefinedType::*;
4243
+
4244
+ // Note that the implementation of subtyping here diverges from the
4245
+ // upstream specification intentionally, see the documentation on
4246
+ // function subtyping for more information.
4247
+ match (&self.a[a], &self.b[b]) {
4248
+ (Primitive(a), Primitive(b)) => self.primitive_val_type(*a, *b, offset),
4249
+ (Primitive(a), b) => bail!(offset, "expected {}, found {a}", b.desc()),
4250
+ (Record(a), Record(b)) => {
4251
+ if a.fields.len() != b.fields.len() {
4252
+ bail!(
4253
+ offset,
4254
+ "expected {} fields, found {}",
4255
+ b.fields.len(),
4256
+ a.fields.len(),
4257
+ );
4258
+ }
4259
+
4260
+ for ((aname, a), (bname, b)) in a.fields.iter().zip(b.fields.iter()) {
4261
+ if aname != bname {
4262
+ bail!(offset, "expected field name `{bname}`, found `{aname}`");
4263
+ }
4264
+ self.component_val_type(a, b, offset)
4265
+ .with_context(|| format!("type mismatch in record field `{aname}`"))?;
4266
+ }
4267
+ Ok(())
4268
+ }
4269
+ (Record(_), b) => bail!(offset, "expected {}, found record", b.desc()),
4270
+ (Variant(a), Variant(b)) => {
4271
+ if a.cases.len() != b.cases.len() {
4272
+ bail!(
4273
+ offset,
4274
+ "expected {} cases, found {}",
4275
+ b.cases.len(),
4276
+ a.cases.len(),
4277
+ );
4278
+ }
4279
+ for ((aname, a), (bname, b)) in a.cases.iter().zip(b.cases.iter()) {
4280
+ if aname != bname {
4281
+ bail!(offset, "expected case named `{bname}`, found `{aname}`");
4282
+ }
4283
+ match (&a.ty, &b.ty) {
4284
+ (Some(a), Some(b)) => self
4285
+ .component_val_type(a, b, offset)
4286
+ .with_context(|| format!("type mismatch in variant case `{aname}`"))?,
4287
+ (None, None) => {}
4288
+ (None, Some(_)) => {
4289
+ bail!(offset, "expected case `{aname}` to have a type, found none")
4290
+ }
4291
+ (Some(_), None) => bail!(offset, "expected case `{aname}` to have no type"),
4292
+ }
4293
+ }
4294
+ Ok(())
4295
+ }
4296
+ (Variant(_), b) => bail!(offset, "expected {}, found variant", b.desc()),
4297
+ (List(a), List(b)) | (Option(a), Option(b)) => self.component_val_type(a, b, offset),
4298
+ (List(_), b) => bail!(offset, "expected {}, found list", b.desc()),
4299
+ (Option(_), b) => bail!(offset, "expected {}, found option", b.desc()),
4300
+ (Tuple(a), Tuple(b)) => {
4301
+ if a.types.len() != b.types.len() {
4302
+ bail!(
4303
+ offset,
4304
+ "expected {} types, found {}",
4305
+ b.types.len(),
4306
+ a.types.len(),
4307
+ );
4308
+ }
4309
+ for (i, (a, b)) in a.types.iter().zip(b.types.iter()).enumerate() {
4310
+ self.component_val_type(a, b, offset)
4311
+ .with_context(|| format!("type mismatch in tuple field {i}"))?;
4312
+ }
4313
+ Ok(())
4314
+ }
4315
+ (Tuple(_), b) => bail!(offset, "expected {}, found tuple", b.desc()),
4316
+ (at @ Flags(a), Flags(b)) | (at @ Enum(a), Enum(b)) => {
4317
+ let desc = match at {
4318
+ Flags(_) => "flags",
4319
+ _ => "enum",
4320
+ };
4321
+ if a.len() == b.len() && a.iter().eq(b.iter()) {
4322
+ Ok(())
4323
+ } else {
4324
+ bail!(offset, "mismatch in {desc} elements")
4325
+ }
4326
+ }
4327
+ (Flags(_), b) => bail!(offset, "expected {}, found flags", b.desc()),
4328
+ (Enum(_), b) => bail!(offset, "expected {}, found enum", b.desc()),
4329
+ (Result { ok: ao, err: ae }, Result { ok: bo, err: be }) => {
4330
+ match (ao, bo) {
4331
+ (None, None) => {}
4332
+ (Some(a), Some(b)) => self
4333
+ .component_val_type(a, b, offset)
4334
+ .with_context(|| "type mismatch in ok variant")?,
4335
+ (None, Some(_)) => bail!(offset, "expected ok type, but found none"),
4336
+ (Some(_), None) => bail!(offset, "expected ok type to not be present"),
4337
+ }
4338
+ match (ae, be) {
4339
+ (None, None) => {}
4340
+ (Some(a), Some(b)) => self
4341
+ .component_val_type(a, b, offset)
4342
+ .with_context(|| "type mismatch in err variant")?,
4343
+ (None, Some(_)) => bail!(offset, "expected err type, but found none"),
4344
+ (Some(_), None) => bail!(offset, "expected err type to not be present"),
4345
+ }
4346
+ Ok(())
4347
+ }
4348
+ (Result { .. }, b) => bail!(offset, "expected {}, found result", b.desc()),
4349
+ (Own(a), Own(b)) | (Borrow(a), Borrow(b)) => {
4350
+ if a.resource() == b.resource() {
4351
+ Ok(())
4352
+ } else {
4353
+ bail!(offset, "resource types are not the same")
4354
+ }
4355
+ }
4356
+ (Own(_), b) => bail!(offset, "expected {}, found own", b.desc()),
4357
+ (Borrow(_), b) => bail!(offset, "expected {}, found borrow", b.desc()),
4358
+ }
4359
+ }
4360
+
4361
+ fn primitive_val_type(
4362
+ &self,
4363
+ a: PrimitiveValType,
4364
+ b: PrimitiveValType,
4365
+ offset: usize,
4366
+ ) -> Result<()> {
4367
+ // Note that this intentionally diverges from the upstream specification
4368
+ // at this time and only considers exact equality for subtyping
4369
+ // relationships.
4370
+ //
4371
+ // More information can be found in the subtyping implementation for
4372
+ // component functions.
4373
+ if a == b {
4374
+ Ok(())
4375
+ } else {
4376
+ bail!(offset, "expected primitive `{b}` found primitive `{a}`")
4377
+ }
4378
+ }
4379
+
4380
+ fn register_type_renamings(
4381
+ &self,
4382
+ actual: ComponentEntityType,
4383
+ expected: ComponentEntityType,
4384
+ type_map: &mut HashMap<ComponentAnyTypeId, ComponentAnyTypeId>,
4385
+ ) {
4386
+ match (expected, actual) {
4387
+ (
4388
+ ComponentEntityType::Type {
4389
+ created: expected, ..
4390
+ },
4391
+ ComponentEntityType::Type {
4392
+ created: actual, ..
4393
+ },
4394
+ ) => {
4395
+ let prev = type_map.insert(expected, actual);
4396
+ assert!(prev.is_none());
4397
+ }
4398
+ (ComponentEntityType::Instance(expected), ComponentEntityType::Instance(actual)) => {
4399
+ let actual = &self.a[actual];
4400
+ for (name, expected) in self.b[expected].exports.iter() {
4401
+ let actual = actual.exports[name];
4402
+ self.register_type_renamings(actual, *expected, type_map);
4403
+ }
4404
+ }
4405
+ _ => {}
4406
+ }
4407
+ }
4408
+ }
4409
+
4410
+ /// A helper typed used purely during subtyping as part of `SubtypeCx`.
4411
+ ///
4412
+ /// This takes a `types` list as input which is the "base" of the ids that can
4413
+ /// be indexed through this arena. All future types pushed into this, if any,
4414
+ /// are stored in `self.list`.
4415
+ ///
4416
+ /// This is intended to have arena-like behavior where everything pushed onto
4417
+ /// `self.list` is thrown away after a subtyping computation is performed. All
4418
+ /// new types pushed into this arena are purely temporary.
4419
+ pub struct SubtypeArena<'a> {
4420
+ types: &'a TypeList,
4421
+ list: TypeList,
4422
+ }
4423
+
4424
+ impl<'a> SubtypeArena<'a> {
4425
+ fn new(types: &'a TypeList) -> SubtypeArena<'a> {
4426
+ SubtypeArena {
4427
+ types,
4428
+ list: TypeList::default(),
4429
+ }
4430
+ }
4431
+ }
4432
+
4433
+ impl<T> Index<T> for SubtypeArena<'_>
4434
+ where
4435
+ T: TypeIdentifier,
4436
+ {
4437
+ type Output = T::Data;
4438
+
4439
+ fn index(&self, id: T) -> &T::Data {
4440
+ let index = id.index();
4441
+ if index < T::list(self.types).len() {
4442
+ &self.types[id]
4443
+ } else {
4444
+ let temp_index = index - T::list(self.types).len();
4445
+ let temp_index = u32::try_from(temp_index).unwrap();
4446
+ let temp_id = T::from_index(temp_index);
4447
+ &self.list[temp_id]
4448
+ }
4449
+ }
4450
+ }
4451
+
4452
+ impl Remap for SubtypeArena<'_> {
4453
+ fn push_ty<T>(&mut self, ty: T) -> T::Id
4454
+ where
4455
+ T: TypeData,
4456
+ {
4457
+ let index = T::Id::list(&self.list).len() + T::Id::list(self.types).len();
4458
+ let index = u32::try_from(index).unwrap();
4459
+ self.list.push(ty);
4460
+ T::Id::from_index(index)
4461
+ }
4462
+ }
4463
+
4464
+ /// Helper trait for adding contextual information to an error, modeled after
4465
+ /// `anyhow::Context`.
4466
+ pub(crate) trait Context {
4467
+ fn with_context<S>(self, context: impl FnOnce() -> S) -> Self
4468
+ where
4469
+ S: Into<String>;
4470
+ }
4471
+
4472
+ impl<T> Context for Result<T> {
4473
+ fn with_context<S>(self, context: impl FnOnce() -> S) -> Self
4474
+ where
4475
+ S: Into<String>,
4476
+ {
4477
+ match self {
4478
+ Ok(val) => Ok(val),
4479
+ Err(e) => Err(e.with_context(context)),
4480
+ }
4481
+ }
4482
+ }
4483
+
4484
+ impl Context for BinaryReaderError {
4485
+ fn with_context<S>(mut self, context: impl FnOnce() -> S) -> Self
4486
+ where
4487
+ S: Into<String>,
4488
+ {
4489
+ self.add_context(context().into());
4490
+ self
4491
+ }
4492
+ }