wasmtime 21.0.1 → 22.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Cargo.lock +80 -87
- data/ext/Cargo.toml +4 -4
- data/ext/cargo-vendor/cranelift-bforest-0.109.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-bforest-0.109.0/Cargo.toml +41 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/Cargo.toml +193 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/context.rs +384 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/dominator_tree.rs +727 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/egraph.rs +835 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/inst_predicates.rs +230 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/ir/dfg.rs +1777 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/ir/extfunc.rs +402 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/ir/immediates.rs +1612 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/ir/stackslot.rs +208 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/ir/types.rs +627 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/aarch64/abi.rs +1556 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/aarch64/inst/args.rs +711 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/aarch64/inst/emit.rs +3584 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/aarch64/inst/emit_tests.rs +7901 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/aarch64/inst/imms.rs +1213 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/aarch64/inst/mod.rs +3060 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/aarch64/inst/regs.rs +269 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/aarch64/inst/unwind/systemv.rs +174 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/aarch64/inst.isle +4218 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/aarch64/pcc.rs +568 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/abi.rs +1029 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/inst/args.rs +2054 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/inst/emit.rs +2682 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/inst/emit_tests.rs +2215 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/inst/encode.rs +675 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/inst/imms.rs +374 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/inst/mod.rs +1938 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/inst/unwind/systemv.rs +170 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/inst/vector.rs +1150 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/inst.isle +3127 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/inst_vector.isle +1907 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/lower/isle.rs +649 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/lower.isle +2923 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/riscv64/mod.rs +260 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/s390x/abi.rs +1016 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/s390x/inst/args.rs +298 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/s390x/inst/emit.rs +3401 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/s390x/inst/emit_tests.rs +13388 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/s390x/inst/imms.rs +202 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/s390x/inst/mod.rs +3401 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/s390x/inst/regs.rs +169 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/s390x/inst/unwind/systemv.rs +212 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/s390x/inst.isle +5028 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/s390x/lower.isle +3995 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/x64/abi.rs +1390 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/x64/inst/args.rs +2240 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/x64/inst/emit.rs +4287 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/x64/inst/emit_state.rs +52 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/x64/inst/emit_tests.rs +5171 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/x64/inst/mod.rs +2821 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/x64/inst/regs.rs +275 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/x64/inst/unwind/systemv.rs +198 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/x64/inst.isle +5289 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/x64/lower.isle +4810 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isa/x64/pcc.rs +1014 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/isle_prelude.rs +986 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/lib.rs +106 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/machinst/abi.rs +2419 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/machinst/blockorder.rs +465 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/machinst/buffer.rs +2508 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/machinst/isle.rs +909 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/machinst/lower.rs +1432 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/machinst/mod.rs +551 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/machinst/reg.rs +479 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/machinst/valueregs.rs +138 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/machinst/vcode.rs +1741 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/opts/cprop.isle +297 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/opts/shifts.isle +307 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/prelude.isle +664 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/prelude_lower.isle +1073 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/timing.rs +296 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/traversals.rs +216 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/verifier/mod.rs +1957 -0
- data/ext/cargo-vendor/cranelift-codegen-0.109.0/src/write.rs +638 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.109.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.109.0/Cargo.toml +36 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.109.0/src/cdsl/types.rs +496 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.109.0/src/isa/riscv64.rs +174 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.109.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.109.0/Cargo.toml +22 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.109.0/src/constants.rs +28 -0
- data/ext/cargo-vendor/cranelift-control-0.109.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-control-0.109.0/Cargo.toml +30 -0
- data/ext/cargo-vendor/cranelift-entity-0.109.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-entity-0.109.0/Cargo.toml +53 -0
- data/ext/cargo-vendor/cranelift-entity-0.109.0/src/set.rs +290 -0
- data/ext/cargo-vendor/cranelift-frontend-0.109.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-frontend-0.109.0/Cargo.toml +68 -0
- data/ext/cargo-vendor/cranelift-frontend-0.109.0/src/frontend.rs +1857 -0
- data/ext/cargo-vendor/cranelift-frontend-0.109.0/src/lib.rs +187 -0
- data/ext/cargo-vendor/cranelift-frontend-0.109.0/src/ssa.rs +1328 -0
- data/ext/cargo-vendor/cranelift-isle-0.109.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-isle-0.109.0/Cargo.toml +47 -0
- data/ext/cargo-vendor/cranelift-isle-0.109.0/src/sema.rs +2492 -0
- data/ext/cargo-vendor/cranelift-native-0.109.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-native-0.109.0/Cargo.toml +43 -0
- data/ext/cargo-vendor/cranelift-native-0.109.0/src/lib.rs +188 -0
- data/ext/cargo-vendor/cranelift-native-0.109.0/src/riscv.rs +128 -0
- data/ext/cargo-vendor/cranelift-wasm-0.109.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-wasm-0.109.0/Cargo.toml +110 -0
- data/ext/cargo-vendor/cranelift-wasm-0.109.0/src/code_translator.rs +3695 -0
- data/ext/cargo-vendor/cranelift-wasm-0.109.0/src/func_translator.rs +296 -0
- data/ext/cargo-vendor/cranelift-wasm-0.109.0/src/module_translator.rs +120 -0
- data/ext/cargo-vendor/cranelift-wasm-0.109.0/src/sections_translator.rs +343 -0
- data/ext/cargo-vendor/cranelift-wasm-0.109.0/src/state.rs +522 -0
- data/ext/cargo-vendor/object-0.36.3/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/object-0.36.3/CHANGELOG.md +1028 -0
- data/ext/cargo-vendor/object-0.36.3/Cargo.toml +180 -0
- data/ext/cargo-vendor/object-0.36.3/README.md +60 -0
- data/ext/cargo-vendor/object-0.36.3/src/build/bytes.rs +146 -0
- data/ext/cargo-vendor/object-0.36.3/src/build/elf.rs +3113 -0
- data/ext/cargo-vendor/object-0.36.3/src/common.rs +590 -0
- data/ext/cargo-vendor/object-0.36.3/src/elf.rs +6303 -0
- data/ext/cargo-vendor/object-0.36.3/src/endian.rs +831 -0
- data/ext/cargo-vendor/object-0.36.3/src/macho.rs +3303 -0
- data/ext/cargo-vendor/object-0.36.3/src/pod.rs +281 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/any.rs +1334 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/archive.rs +1133 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/coff/comdat.rs +220 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/coff/file.rs +381 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/coff/relocation.rs +113 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/coff/section.rs +619 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/coff/symbol.rs +669 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/elf/attributes.rs +340 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/elf/comdat.rs +186 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/elf/file.rs +959 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/elf/hash.rs +236 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/elf/note.rs +302 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/elf/relocation.rs +661 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/elf/section.rs +1241 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/elf/segment.rs +365 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/elf/symbol.rs +654 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/elf/version.rs +513 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/gnu_compression.rs +36 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/macho/dyld_cache.rs +384 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/macho/file.rs +779 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/macho/load_command.rs +404 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/macho/section.rs +420 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/macho/segment.rs +317 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/macho/symbol.rs +532 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/mod.rs +1018 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/pe/file.rs +1033 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/pe/import.rs +381 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/pe/relocation.rs +109 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/pe/section.rs +476 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/read_cache.rs +261 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/traits.rs +589 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/wasm.rs +983 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/xcoff/file.rs +716 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/xcoff/relocation.rs +138 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/xcoff/section.rs +452 -0
- data/ext/cargo-vendor/object-0.36.3/src/read/xcoff/symbol.rs +836 -0
- data/ext/cargo-vendor/object-0.36.3/src/write/coff/object.rs +681 -0
- data/ext/cargo-vendor/object-0.36.3/src/write/coff/writer.rs +520 -0
- data/ext/cargo-vendor/object-0.36.3/src/write/elf/object.rs +897 -0
- data/ext/cargo-vendor/object-0.36.3/src/write/elf/writer.rs +2361 -0
- data/ext/cargo-vendor/object-0.36.3/src/write/macho.rs +1124 -0
- data/ext/cargo-vendor/object-0.36.3/src/write/mod.rs +1023 -0
- data/ext/cargo-vendor/object-0.36.3/src/write/pe.rs +849 -0
- data/ext/cargo-vendor/object-0.36.3/src/write/xcoff.rs +588 -0
- data/ext/cargo-vendor/object-0.36.3/tests/build/elf.rs +254 -0
- data/ext/cargo-vendor/object-0.36.3/tests/build/mod.rs +3 -0
- data/ext/cargo-vendor/object-0.36.3/tests/integration.rs +3 -0
- data/ext/cargo-vendor/object-0.36.3/tests/read/macho.rs +49 -0
- data/ext/cargo-vendor/object-0.36.3/tests/read/mod.rs +5 -0
- data/ext/cargo-vendor/object-0.36.3/tests/round_trip/bss.rs +244 -0
- data/ext/cargo-vendor/object-0.36.3/tests/round_trip/comdat.rs +217 -0
- data/ext/cargo-vendor/object-0.36.3/tests/round_trip/common.rs +241 -0
- data/ext/cargo-vendor/object-0.36.3/tests/round_trip/elf.rs +302 -0
- data/ext/cargo-vendor/object-0.36.3/tests/round_trip/mod.rs +682 -0
- data/ext/cargo-vendor/object-0.36.3/tests/round_trip/section_flags.rs +89 -0
- data/ext/cargo-vendor/object-0.36.3/tests/round_trip/tls.rs +308 -0
- data/ext/cargo-vendor/wasi-common-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasi-common-22.0.0/Cargo.toml +224 -0
- data/ext/cargo-vendor/wasi-common-22.0.0/src/snapshots/preview_0.rs +1080 -0
- data/ext/cargo-vendor/wasi-common-22.0.0/src/snapshots/preview_1.rs +1562 -0
- data/ext/cargo-vendor/wasi-common-22.0.0/src/string_array.rs +75 -0
- data/ext/cargo-vendor/wasi-common-22.0.0/src/sync/sched/windows.rs +221 -0
- data/ext/cargo-vendor/wasi-common-22.0.0/src/tokio/file.rs +247 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/Cargo.lock +662 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/Cargo.toml +109 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/binary_reader.rs +1929 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/collections/hash.rs +120 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/collections/index_map/detail.rs +1094 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/collections/index_map/tests.rs +183 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/collections/index_map.rs +656 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/collections/index_set.rs +316 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/collections/map.rs +840 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/collections/mod.rs +24 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/collections/set.rs +660 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/features.rs +164 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/lib.rs +814 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/limits.rs +79 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/parser.rs +1682 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/component/imports.rs +130 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/component/instances.rs +166 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/component/names.rs +99 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/component/types.rs +553 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/branch_hinting.rs +59 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/code.rs +142 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/coredumps.rs +278 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/custom.rs +128 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/data.rs +96 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/elements.rs +146 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/globals.rs +61 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/init.rs +57 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/linking.rs +457 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/names.rs +159 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/operators.rs +423 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/producers.rs +84 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/reloc.rs +300 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers/core/types.rs +1788 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/readers.rs +315 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/validator/component.rs +3236 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/validator/core/canonical.rs +233 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/validator/core.rs +1464 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/validator/func.rs +331 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/validator/names.rs +1016 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/validator/operators.rs +4231 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/validator/types.rs +4550 -0
- data/ext/cargo-vendor/wasmparser-0.209.1/src/validator.rs +1633 -0
- data/ext/cargo-vendor/wasmprinter-0.209.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmprinter-0.209.1/Cargo.toml +51 -0
- data/ext/cargo-vendor/wasmprinter-0.209.1/src/lib.rs +3225 -0
- data/ext/cargo-vendor/wasmprinter-0.209.1/src/operator.rs +1171 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/Cargo.toml +387 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/build.rs +42 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/compile/runtime.rs +167 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/compile.rs +917 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/config.rs +2943 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/engine/serialization.rs +890 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/lib.rs +389 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/profiling_agent/jitdump.rs +67 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/profiling_agent/perfmap.rs +48 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/code.rs +102 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/code_memory.rs +338 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/bindgen_examples/_0_hello_world.rs +9 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/bindgen_examples/_1_world_imports.rs +17 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/bindgen_examples/_2_world_exports.rs +18 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/bindgen_examples/_3_interface_imports.rs +20 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/bindgen_examples/_4_imported_resources.rs +45 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/bindgen_examples/_5_all_world_export_kinds.rs +29 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/bindgen_examples/_6_exported_resources.rs +26 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/bindgen_examples/mod.rs +489 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/component.rs +656 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/func/typed.rs +2498 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/func.rs +689 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/instance.rs +810 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/linker.rs +854 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/matching.rs +217 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/mod.rs +657 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/resource_table.rs +355 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/component/types.rs +897 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/debug.rs +166 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/externals/global.rs +310 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/externals/table.rs +481 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/func/typed.rs +780 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/func.rs +2564 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/gc/enabled/anyref.rs +410 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/gc/enabled/externref.rs +592 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/gc/enabled/i31.rs +299 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/gc/noextern.rs +154 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/gc.rs +92 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/instance.rs +992 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/instantiate.rs +337 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/linker.rs +1499 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/module/registry.rs +353 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/module.rs +1322 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/store/func_refs.rs +90 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/store.rs +2824 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/trampoline/func.rs +94 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/trampoline/memory.rs +287 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/type_registry.rs +1015 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/types.rs +2580 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/v128.rs +116 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/values.rs +966 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/component/resources.rs +352 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/component.rs +857 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/cow.rs +972 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/export.rs +108 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/gc/gc_ref.rs +491 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/instance/allocator/on_demand.rs +220 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/instance/allocator/pooling/decommit_queue.rs +194 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/instance/allocator/pooling/gc_heap_pool.rs +94 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/instance/allocator/pooling/generic_stack_pool.rs +78 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/instance/allocator/pooling/index_allocator.rs +707 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/instance/allocator/pooling/memory_pool.rs +975 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/instance/allocator/pooling/table_pool.rs +245 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/instance/allocator/pooling/unix_stack_pool.rs +278 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/instance/allocator/pooling.rs +794 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/instance/allocator.rs +801 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/instance.rs +1514 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/memory.rs +736 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/sys/custom/capi.rs +200 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/sys/custom/vm.rs +105 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/sys/miri/vm.rs +59 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/sys/mod.rs +36 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/sys/unix/signals.rs +407 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/sys/unix/vm.rs +190 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/sys/windows/vm.rs +75 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/table.rs +899 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/traphandlers.rs +768 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/vmcontext/vm_host_func_context.rs +79 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm/vmcontext.rs +1302 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime/vm.rs +277 -0
- data/ext/cargo-vendor/wasmtime-22.0.0/src/runtime.rs +113 -0
- data/ext/cargo-vendor/wasmtime-asm-macros-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-asm-macros-22.0.0/Cargo.toml +22 -0
- data/ext/cargo-vendor/wasmtime-cache-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cache-22.0.0/Cargo.toml +89 -0
- data/ext/cargo-vendor/wasmtime-cache-22.0.0/src/config.rs +584 -0
- data/ext/cargo-vendor/wasmtime-cache-22.0.0/src/lib.rs +235 -0
- data/ext/cargo-vendor/wasmtime-cache-22.0.0/src/tests.rs +91 -0
- data/ext/cargo-vendor/wasmtime-cache-22.0.0/src/worker/tests.rs +758 -0
- data/ext/cargo-vendor/wasmtime-cache-22.0.0/src/worker.rs +890 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/Cargo.toml +86 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/src/bindgen.rs +493 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/src/component.rs +1330 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/codegen.rs +651 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/char.rs +198 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/char_async.rs +215 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/conventions.rs +586 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/conventions_async.rs +631 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/dead-code.rs +165 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/dead-code_async.rs +178 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/direct-import.rs +91 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/direct-import_async.rs +97 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/empty.rs +45 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/empty_async.rs +45 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/flags.rs +637 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/flags_async.rs +679 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/floats.rs +255 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/floats_async.rs +282 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/function-new.rs +59 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/function-new_async.rs +62 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/integers.rs +722 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/integers_async.rs +819 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/lists.rs +1743 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/lists_async.rs +1927 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/many-arguments.rs +543 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/many-arguments_async.rs +561 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/multi-return.rs +270 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/multi-return_async.rs +298 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/multiversion.rs +251 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/multiversion_async.rs +270 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/records.rs +815 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/records_async.rs +877 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/rename.rs +154 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/rename_async.rs +167 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/resources-export.rs +467 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/resources-export_async.rs +516 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/resources-import.rs +1014 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/resources-import_async.rs +1086 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/share-types.rs +249 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/share-types_async.rs +265 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/simple-functions.rs +313 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/simple-functions_async.rs +347 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/simple-lists.rs +350 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/simple-lists_async.rs +381 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/simple-wasi.rs +216 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/simple-wasi_async.rs +229 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/small-anonymous.rs +275 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/small-anonymous_async.rs +287 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/smoke-default.rs +59 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/smoke-default_async.rs +62 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/smoke-export.rs +86 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/smoke-export_async.rs +89 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/smoke.rs +104 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/smoke_async.rs +111 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/strings.rs +247 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/strings_async.rs +269 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/unversioned-foo.rs +136 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/unversioned-foo_async.rs +143 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/use-paths.rs +288 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/use-paths_async.rs +314 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/variants.rs +1750 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/variants_async.rs +1867 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/wat.rs +84 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/wat_async.rs +84 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/worlds-with-types.rs +138 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded/worlds-with-types_async.rs +148 -0
- data/ext/cargo-vendor/wasmtime-component-macro-22.0.0/tests/expanded.rs +65 -0
- data/ext/cargo-vendor/wasmtime-component-util-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-component-util-22.0.0/Cargo.toml +25 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/Cargo.toml +115 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/compiler/component.rs +957 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/compiler.rs +1067 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/debug/transform/address_transform.rs +783 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/debug/transform/mod.rs +256 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/debug/transform/simulate.rs +411 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/debug/transform/unit.rs +529 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/debug/transform/utils.rs +186 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/debug/write_debuginfo.rs +196 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/func_environ.rs +2910 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/gc/enabled.rs +648 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/lib.rs +462 -0
- data/ext/cargo-vendor/wasmtime-cranelift-22.0.0/src/obj.rs +545 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/Cargo.lock +774 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/Cargo.toml +161 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/compile/address_map.rs +73 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/compile/mod.rs +374 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/compile/module_artifacts.rs +315 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/compile/module_environ.rs +1348 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/compile/module_types.rs +455 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/component/artifacts.rs +68 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/component/info.rs +672 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/component/translate/adapt.rs +455 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/component/translate.rs +985 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/component/types.rs +1038 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/component/types_builder/resources.rs +233 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/component/types_builder.rs +1004 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/fact/trampoline.rs +3234 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/fact/transcode.rs +90 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/fact.rs +714 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/lib.rs +151 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/module.rs +704 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/module_artifacts.rs +144 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/module_types.rs +139 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/ref_bits.rs +36 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/tunables.rs +175 -0
- data/ext/cargo-vendor/wasmtime-environ-22.0.0/src/vmoffsets.rs +989 -0
- data/ext/cargo-vendor/wasmtime-fiber-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-fiber-22.0.0/Cargo.toml +65 -0
- data/ext/cargo-vendor/wasmtime-fiber-22.0.0/build.rs +39 -0
- data/ext/cargo-vendor/wasmtime-fiber-22.0.0/src/lib.rs +340 -0
- data/ext/cargo-vendor/wasmtime-fiber-22.0.0/src/unix.rs +494 -0
- data/ext/cargo-vendor/wasmtime-fiber-22.0.0/src/windows.rs +170 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-22.0.0/Cargo.toml +68 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-22.0.0/src/gdb_jit_int.rs +130 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-22.0.0/src/perf_jitdump.rs +293 -0
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-22.0.0/Cargo.toml +52 -0
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-22.0.0/src/libc.rs +164 -0
- data/ext/cargo-vendor/wasmtime-slab-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-slab-22.0.0/Cargo.toml +21 -0
- data/ext/cargo-vendor/wasmtime-slab-22.0.0/src/lib.rs +498 -0
- data/ext/cargo-vendor/wasmtime-types-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-types-22.0.0/Cargo.toml +56 -0
- data/ext/cargo-vendor/wasmtime-types-22.0.0/src/lib.rs +1737 -0
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-22.0.0/Cargo.toml +32 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/Cargo.toml +201 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/bindings.rs +289 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/ctx.rs +704 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/filesystem.rs +446 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/clocks.rs +109 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/env.rs +18 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/exit.rs +14 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/filesystem/sync.rs +525 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/filesystem.rs +1091 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/instance_network.rs +18 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/io.rs +388 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/network.rs +545 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/random.rs +45 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/tcp.rs +547 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/tcp_create_socket.rs +18 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/udp.rs +762 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/host/udp_create_socket.rs +18 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/ip_name_lookup.rs +132 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/lib.rs +417 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/network.rs +113 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/pipe.rs +826 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/poll.rs +245 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/preview0.rs +983 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/preview1.rs +2801 -0
- data/ext/cargo-vendor/wasmtime-wasi-22.0.0/src/stdio.rs +533 -0
- data/ext/cargo-vendor/wasmtime-winch-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-winch-22.0.0/Cargo.toml +82 -0
- data/ext/cargo-vendor/wasmtime-winch-22.0.0/src/compiler.rs +239 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-22.0.0/Cargo.toml +47 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-22.0.0/src/lib.rs +2639 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-22.0.0/src/rust.rs +427 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-22.0.0/src/types.rs +202 -0
- data/ext/cargo-vendor/wiggle-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-22.0.0/Cargo.toml +124 -0
- data/ext/cargo-vendor/wiggle-22.0.0/src/guest_type.rs +200 -0
- data/ext/cargo-vendor/wiggle-22.0.0/src/lib.rs +605 -0
- data/ext/cargo-vendor/wiggle-generate-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-generate-22.0.0/Cargo.toml +67 -0
- data/ext/cargo-vendor/wiggle-generate-22.0.0/src/funcs.rs +434 -0
- data/ext/cargo-vendor/wiggle-generate-22.0.0/src/module_trait.rs +89 -0
- data/ext/cargo-vendor/wiggle-generate-22.0.0/src/names.rs +299 -0
- data/ext/cargo-vendor/wiggle-generate-22.0.0/src/types/flags.rs +92 -0
- data/ext/cargo-vendor/wiggle-generate-22.0.0/src/types/handle.rs +84 -0
- data/ext/cargo-vendor/wiggle-generate-22.0.0/src/types/mod.rs +129 -0
- data/ext/cargo-vendor/wiggle-generate-22.0.0/src/types/record.rs +129 -0
- data/ext/cargo-vendor/wiggle-generate-22.0.0/src/types/variant.rs +186 -0
- data/ext/cargo-vendor/wiggle-generate-22.0.0/src/wasmtime.rs +172 -0
- data/ext/cargo-vendor/wiggle-macro-22.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-macro-22.0.0/Cargo.toml +51 -0
- data/ext/cargo-vendor/wiggle-macro-22.0.0/build.rs +5 -0
- data/ext/cargo-vendor/wiggle-macro-22.0.0/src/lib.rs +233 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/Cargo.toml +77 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/abi/mod.rs +671 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/codegen/context.rs +536 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/codegen/control.rs +972 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/codegen/env.rs +448 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/codegen/mod.rs +882 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/frame/mod.rs +258 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/isa/aarch64/asm.rs +430 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/isa/aarch64/masm.rs +572 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/isa/aarch64/regs.rs +161 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/isa/x64/asm.rs +1423 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/isa/x64/masm.rs +1120 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/masm.rs +941 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/regalloc.rs +65 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/stack.rs +439 -0
- data/ext/cargo-vendor/winch-codegen-0.20.0/src/visitor.rs +2149 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/Cargo.toml +112 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/src/ast/resolve.rs +1524 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/src/ast.rs +1668 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/src/decoding.rs +1795 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/src/lib.rs +873 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/src/live.rs +126 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/src/metadata.rs +772 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/src/resolve.rs +2498 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/src/serde_.rs +124 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/all.rs +154 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/complex-include.wit.json +200 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/diamond1.wit.json +59 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/disambiguate-diamond.wit.json +115 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/feature-gates.wit +118 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/feature-gates.wit.json +288 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/foreign-deps-union.wit.json +410 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/foreign-deps.wit.json +362 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/ignore-files-deps.wit.json +41 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/import-export-overlap2.wit.json +43 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/include-reps.wit.json +68 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/kinds-of-deps.wit.json +95 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/many-names.wit.json +42 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/multi-file.wit.json +304 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-gate1.wit +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-gate1.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-gate2.wit +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-gate2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-gate3.wit +6 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-gate3.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-gate4.wit +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-gate4.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-gate5.wit +11 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-gate5.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-since1.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-since1.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-since3.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/bad-since3.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/conflicting-package.wit.result +10 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/multiple-package-docs.wit.result +10 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/resources-multiple-returns-borrow.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/resources-return-borrow.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/return-borrow1.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/return-borrow2.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/return-borrow6.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/return-borrow7.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/parse-fail/return-borrow8.wit.result +9 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/shared-types.wit.json +87 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/since-and-unstable.wit +89 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/since-and-unstable.wit.json +549 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/stress-export-elaborate.wit.json +1156 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/world-diamond.wit.json +124 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/world-iface-no-collide.wit.json +68 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/world-implicit-import1.wit.json +81 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/world-implicit-import2.wit.json +72 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/world-implicit-import3.wit.json +73 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/world-same-fields4.wit.json +82 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/world-top-level-resources.wit.json +237 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/worlds-union-dedup.wit.json +112 -0
- data/ext/cargo-vendor/wit-parser-0.209.1/tests/ui/worlds-with-types.wit.json +204 -0
- data/ext/src/ruby_api/pooling_allocation_config.rs +6 -6
- data/lib/wasmtime/version.rb +1 -1
- metadata +1525 -1459
- data/ext/cargo-vendor/cranelift-bforest-0.108.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-bforest-0.108.1/Cargo.toml +0 -40
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/Cargo.toml +0 -189
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/context.rs +0 -395
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/dce.rs +0 -37
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/dominator_tree.rs +0 -803
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/egraph.rs +0 -839
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/inst_predicates.rs +0 -236
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/ir/dfg.rs +0 -1777
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/ir/extfunc.rs +0 -411
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/ir/immediates.rs +0 -1612
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/ir/stackslot.rs +0 -216
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/ir/types.rs +0 -629
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/abi.rs +0 -1580
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/args.rs +0 -721
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/emit.rs +0 -3846
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/emit_tests.rs +0 -7902
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/imms.rs +0 -1213
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/mod.rs +0 -3094
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/regs.rs +0 -288
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst/unwind/systemv.rs +0 -174
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/inst.isle +0 -4225
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/aarch64/pcc.rs +0 -568
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/abi.rs +0 -1051
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/args.rs +0 -1938
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/emit.rs +0 -2681
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/emit_tests.rs +0 -2197
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/encode.rs +0 -654
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/imms.rs +0 -374
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/mod.rs +0 -1975
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/unwind/systemv.rs +0 -170
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst/vector.rs +0 -1144
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst.isle +0 -2969
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/inst_vector.isle +0 -1899
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/lower/isle.rs +0 -625
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/lower.isle +0 -2883
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/riscv64/mod.rs +0 -260
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/abi.rs +0 -1037
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/args.rs +0 -314
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/emit.rs +0 -3646
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/emit_tests.rs +0 -13389
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/imms.rs +0 -202
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/mod.rs +0 -3421
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/regs.rs +0 -180
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst/unwind/systemv.rs +0 -212
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/inst.isle +0 -5033
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/s390x/lower.isle +0 -3995
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/abi.rs +0 -1410
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/args.rs +0 -2256
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/emit.rs +0 -4311
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/emit_state.rs +0 -74
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/emit_tests.rs +0 -5171
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/mod.rs +0 -2838
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/regs.rs +0 -276
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst/unwind/systemv.rs +0 -198
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/inst.isle +0 -5294
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/lower.isle +0 -4808
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isa/x64/pcc.rs +0 -1014
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/isle_prelude.rs +0 -957
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/lib.rs +0 -106
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/abi.rs +0 -2506
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/blockorder.rs +0 -465
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/buffer.rs +0 -2512
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/isle.rs +0 -903
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/lower.rs +0 -1432
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/mod.rs +0 -555
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/reg.rs +0 -522
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/valueregs.rs +0 -138
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/machinst/vcode.rs +0 -1741
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/opts/cprop.isle +0 -281
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/opts/shifts.isle +0 -307
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/prelude.isle +0 -646
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/prelude_lower.isle +0 -1073
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/timing.rs +0 -297
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/verifier/mod.rs +0 -1957
- data/ext/cargo-vendor/cranelift-codegen-0.108.1/src/write.rs +0 -631
- data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/Cargo.toml +0 -35
- data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/cdsl/types.rs +0 -496
- data/ext/cargo-vendor/cranelift-codegen-meta-0.108.1/src/isa/riscv64.rs +0 -168
- data/ext/cargo-vendor/cranelift-codegen-shared-0.108.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-shared-0.108.1/Cargo.toml +0 -22
- data/ext/cargo-vendor/cranelift-codegen-shared-0.108.1/src/constants.rs +0 -28
- data/ext/cargo-vendor/cranelift-control-0.108.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-control-0.108.1/Cargo.toml +0 -30
- data/ext/cargo-vendor/cranelift-entity-0.108.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-entity-0.108.1/Cargo.toml +0 -52
- data/ext/cargo-vendor/cranelift-entity-0.108.1/src/set.rs +0 -290
- data/ext/cargo-vendor/cranelift-frontend-0.108.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-frontend-0.108.1/Cargo.toml +0 -67
- data/ext/cargo-vendor/cranelift-frontend-0.108.1/src/frontend.rs +0 -1854
- data/ext/cargo-vendor/cranelift-frontend-0.108.1/src/lib.rs +0 -189
- data/ext/cargo-vendor/cranelift-frontend-0.108.1/src/ssa.rs +0 -1328
- data/ext/cargo-vendor/cranelift-isle-0.108.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-isle-0.108.1/Cargo.toml +0 -46
- data/ext/cargo-vendor/cranelift-isle-0.108.1/src/sema.rs +0 -2492
- data/ext/cargo-vendor/cranelift-native-0.108.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-native-0.108.1/Cargo.toml +0 -43
- data/ext/cargo-vendor/cranelift-native-0.108.1/src/lib.rs +0 -188
- data/ext/cargo-vendor/cranelift-native-0.108.1/src/riscv.rs +0 -128
- data/ext/cargo-vendor/cranelift-wasm-0.108.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-wasm-0.108.1/Cargo.toml +0 -109
- data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/code_translator.rs +0 -3687
- data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/func_translator.rs +0 -296
- data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/module_translator.rs +0 -128
- data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/sections_translator.rs +0 -389
- data/ext/cargo-vendor/cranelift-wasm-0.108.1/src/state.rs +0 -522
- data/ext/cargo-vendor/object-0.33.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/object-0.33.0/CHANGELOG.md +0 -797
- data/ext/cargo-vendor/object-0.33.0/Cargo.toml +0 -179
- data/ext/cargo-vendor/object-0.33.0/README.md +0 -56
- data/ext/cargo-vendor/object-0.33.0/src/build/bytes.rs +0 -141
- data/ext/cargo-vendor/object-0.33.0/src/build/elf.rs +0 -3033
- data/ext/cargo-vendor/object-0.33.0/src/common.rs +0 -568
- data/ext/cargo-vendor/object-0.33.0/src/elf.rs +0 -6291
- data/ext/cargo-vendor/object-0.33.0/src/endian.rs +0 -831
- data/ext/cargo-vendor/object-0.33.0/src/macho.rs +0 -3309
- data/ext/cargo-vendor/object-0.33.0/src/pod.rs +0 -239
- data/ext/cargo-vendor/object-0.33.0/src/read/any.rs +0 -1328
- data/ext/cargo-vendor/object-0.33.0/src/read/archive.rs +0 -759
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/comdat.rs +0 -211
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/file.rs +0 -383
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/relocation.rs +0 -108
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/section.rs +0 -585
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/symbol.rs +0 -635
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/attributes.rs +0 -306
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/comdat.rs +0 -162
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/file.rs +0 -918
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/hash.rs +0 -224
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/note.rs +0 -271
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/relocation.rs +0 -629
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/section.rs +0 -1150
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/segment.rs +0 -356
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/symbol.rs +0 -595
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/version.rs +0 -424
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/dyld_cache.rs +0 -345
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/file.rs +0 -783
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/load_command.rs +0 -386
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/section.rs +0 -389
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/segment.rs +0 -303
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/symbol.rs +0 -492
- data/ext/cargo-vendor/object-0.33.0/src/read/mod.rs +0 -880
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/file.rs +0 -1053
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/import.rs +0 -339
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/relocation.rs +0 -92
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/section.rs +0 -440
- data/ext/cargo-vendor/object-0.33.0/src/read/read_cache.rs +0 -213
- data/ext/cargo-vendor/object-0.33.0/src/read/traits.rs +0 -551
- data/ext/cargo-vendor/object-0.33.0/src/read/wasm.rs +0 -966
- data/ext/cargo-vendor/object-0.33.0/src/read/xcoff/file.rs +0 -697
- data/ext/cargo-vendor/object-0.33.0/src/read/xcoff/relocation.rs +0 -134
- data/ext/cargo-vendor/object-0.33.0/src/read/xcoff/section.rs +0 -433
- data/ext/cargo-vendor/object-0.33.0/src/read/xcoff/symbol.rs +0 -784
- data/ext/cargo-vendor/object-0.33.0/src/write/coff/object.rs +0 -678
- data/ext/cargo-vendor/object-0.33.0/src/write/coff/writer.rs +0 -518
- data/ext/cargo-vendor/object-0.33.0/src/write/elf/object.rs +0 -885
- data/ext/cargo-vendor/object-0.33.0/src/write/elf/writer.rs +0 -2309
- data/ext/cargo-vendor/object-0.33.0/src/write/macho.rs +0 -1107
- data/ext/cargo-vendor/object-0.33.0/src/write/mod.rs +0 -990
- data/ext/cargo-vendor/object-0.33.0/src/write/pe.rs +0 -847
- data/ext/cargo-vendor/object-0.33.0/src/write/xcoff.rs +0 -589
- data/ext/cargo-vendor/object-0.33.0/tests/integration.rs +0 -2
- data/ext/cargo-vendor/object-0.33.0/tests/read/mod.rs +0 -4
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/bss.rs +0 -255
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/comdat.rs +0 -225
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/common.rs +0 -245
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/elf.rs +0 -289
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/mod.rs +0 -704
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/section_flags.rs +0 -90
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/tls.rs +0 -316
- data/ext/cargo-vendor/wasi-common-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasi-common-21.0.1/Cargo.toml +0 -223
- data/ext/cargo-vendor/wasi-common-21.0.1/src/snapshots/preview_0.rs +0 -1145
- data/ext/cargo-vendor/wasi-common-21.0.1/src/snapshots/preview_1.rs +0 -1497
- data/ext/cargo-vendor/wasi-common-21.0.1/src/string_array.rs +0 -74
- data/ext/cargo-vendor/wasi-common-21.0.1/src/sync/sched/windows.rs +0 -221
- data/ext/cargo-vendor/wasi-common-21.0.1/src/tokio/file.rs +0 -247
- data/ext/cargo-vendor/wasm-encoder-0.207.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasm-encoder-0.207.0/Cargo.toml +0 -45
- data/ext/cargo-vendor/wasm-encoder-0.207.0/README.md +0 -80
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component/aliases.rs +0 -160
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component/builder.rs +0 -455
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component/canonicals.rs +0 -159
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component/components.rs +0 -29
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component/exports.rs +0 -124
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component/imports.rs +0 -175
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component/instances.rs +0 -200
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component/modules.rs +0 -29
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component/names.rs +0 -149
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component/start.rs +0 -52
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component/types.rs +0 -792
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/component.rs +0 -168
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/code.rs +0 -3502
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/custom.rs +0 -73
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/data.rs +0 -186
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/dump.rs +0 -627
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/elements.rs +0 -221
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/exports.rs +0 -98
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/functions.rs +0 -63
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/globals.rs +0 -112
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/imports.rs +0 -157
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/linking.rs +0 -263
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/memories.rs +0 -128
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/names.rs +0 -298
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/producers.rs +0 -180
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/start.rs +0 -39
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/tables.rs +0 -134
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/tags.rs +0 -104
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core/types.rs +0 -678
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/core.rs +0 -168
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/lib.rs +0 -215
- data/ext/cargo-vendor/wasm-encoder-0.207.0/src/raw.rs +0 -30
- data/ext/cargo-vendor/wasmparser-0.207.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmparser-0.207.0/Cargo.lock +0 -659
- data/ext/cargo-vendor/wasmparser-0.207.0/Cargo.toml +0 -95
- data/ext/cargo-vendor/wasmparser-0.207.0/src/binary_reader.rs +0 -1867
- data/ext/cargo-vendor/wasmparser-0.207.0/src/lib.rs +0 -805
- data/ext/cargo-vendor/wasmparser-0.207.0/src/limits.rs +0 -78
- data/ext/cargo-vendor/wasmparser-0.207.0/src/map.rs +0 -137
- data/ext/cargo-vendor/wasmparser-0.207.0/src/parser.rs +0 -1636
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/imports.rs +0 -129
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/instances.rs +0 -164
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/names.rs +0 -102
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/component/types.rs +0 -551
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/branch_hinting.rs +0 -59
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/code.rs +0 -146
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/coredumps.rs +0 -244
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/custom.rs +0 -64
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/data.rs +0 -96
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/elements.rs +0 -152
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/globals.rs +0 -51
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/init.rs +0 -51
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/linking.rs +0 -450
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/names.rs +0 -159
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/operators.rs +0 -430
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/producers.rs +0 -83
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/reloc.rs +0 -301
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers/core/types.rs +0 -1773
- data/ext/cargo-vendor/wasmparser-0.207.0/src/readers.rs +0 -316
- data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/component.rs +0 -3242
- data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/core/canonical.rs +0 -233
- data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/core.rs +0 -1450
- data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/func.rs +0 -331
- data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/names.rs +0 -947
- data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/operators.rs +0 -4117
- data/ext/cargo-vendor/wasmparser-0.207.0/src/validator/types.rs +0 -4492
- data/ext/cargo-vendor/wasmparser-0.207.0/src/validator.rs +0 -1786
- data/ext/cargo-vendor/wasmprinter-0.207.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmprinter-0.207.0/Cargo.toml +0 -50
- data/ext/cargo-vendor/wasmprinter-0.207.0/src/lib.rs +0 -3226
- data/ext/cargo-vendor/wasmprinter-0.207.0/src/operator.rs +0 -1164
- data/ext/cargo-vendor/wasmtime-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-21.0.1/Cargo.toml +0 -386
- data/ext/cargo-vendor/wasmtime-21.0.1/build.rs +0 -37
- data/ext/cargo-vendor/wasmtime-21.0.1/src/compile/runtime.rs +0 -176
- data/ext/cargo-vendor/wasmtime-21.0.1/src/compile.rs +0 -910
- data/ext/cargo-vendor/wasmtime-21.0.1/src/config.rs +0 -2904
- data/ext/cargo-vendor/wasmtime-21.0.1/src/engine/serialization.rs +0 -887
- data/ext/cargo-vendor/wasmtime-21.0.1/src/lib.rs +0 -328
- data/ext/cargo-vendor/wasmtime-21.0.1/src/profiling_agent/jitdump.rs +0 -67
- data/ext/cargo-vendor/wasmtime-21.0.1/src/profiling_agent/perfmap.rs +0 -48
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/code.rs +0 -102
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/code_memory.rs +0 -337
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/component.rs +0 -661
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/func/typed.rs +0 -2498
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/func.rs +0 -746
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/instance.rs +0 -814
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/linker.rs +0 -783
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/matching.rs +0 -217
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/mod.rs +0 -783
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/resource_table.rs +0 -355
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/component/types.rs +0 -892
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/debug.rs +0 -166
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/externals/global.rs +0 -310
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/externals/table.rs +0 -477
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/func/typed.rs +0 -899
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/func.rs +0 -2627
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/enabled/anyref.rs +0 -473
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/enabled/externref.rs +0 -650
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc/enabled/i31.rs +0 -346
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/gc.rs +0 -89
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/instance.rs +0 -992
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/instantiate.rs +0 -346
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/linker.rs +0 -1506
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/module/registry.rs +0 -353
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/module.rs +0 -1295
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/store/func_refs.rs +0 -90
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/store.rs +0 -2820
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline/func.rs +0 -139
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/trampoline/memory.rs +0 -287
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/type_registry.rs +0 -807
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/types.rs +0 -2239
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/v128.rs +0 -131
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/values.rs +0 -966
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/component/resources.rs +0 -352
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/component.rs +0 -860
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/cow.rs +0 -893
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/export.rs +0 -108
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/gc/gc_ref.rs +0 -491
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/on_demand.rs +0 -218
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/gc_heap_pool.rs +0 -93
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/generic_stack_pool.rs +0 -66
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/index_allocator.rs +0 -705
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/memory_pool.rs +0 -1000
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/table_pool.rs +0 -233
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling/unix_stack_pool.rs +0 -245
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator/pooling.rs +0 -656
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance/allocator.rs +0 -798
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/instance.rs +0 -1519
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/memory.rs +0 -744
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/capi.rs +0 -200
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/custom/vm.rs +0 -109
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/miri/vm.rs +0 -63
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/mod.rs +0 -25
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/signals.rs +0 -401
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/unix/vm.rs +0 -215
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/sys/windows/vm.rs +0 -79
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/table.rs +0 -847
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs +0 -768
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/vmcontext/vm_host_func_context.rs +0 -138
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm/vmcontext.rs +0 -1337
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime/vm.rs +0 -287
- data/ext/cargo-vendor/wasmtime-21.0.1/src/runtime.rs +0 -110
- data/ext/cargo-vendor/wasmtime-asm-macros-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-asm-macros-21.0.1/Cargo.toml +0 -22
- data/ext/cargo-vendor/wasmtime-cache-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cache-21.0.1/Cargo.toml +0 -88
- data/ext/cargo-vendor/wasmtime-cache-21.0.1/src/config.rs +0 -584
- data/ext/cargo-vendor/wasmtime-cache-21.0.1/src/lib.rs +0 -235
- data/ext/cargo-vendor/wasmtime-cache-21.0.1/src/tests.rs +0 -91
- data/ext/cargo-vendor/wasmtime-cache-21.0.1/src/worker/tests.rs +0 -758
- data/ext/cargo-vendor/wasmtime-cache-21.0.1/src/worker.rs +0 -890
- data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/Cargo.toml +0 -79
- data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/src/bindgen.rs +0 -436
- data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/src/component.rs +0 -1295
- data/ext/cargo-vendor/wasmtime-component-macro-21.0.1/tests/codegen.rs +0 -576
- data/ext/cargo-vendor/wasmtime-component-util-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-component-util-21.0.1/Cargo.toml +0 -25
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/Cargo.toml +0 -114
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/compiler/component.rs +0 -968
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/compiler.rs +0 -1383
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/address_transform.rs +0 -783
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/mod.rs +0 -256
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/simulate.rs +0 -411
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/unit.rs +0 -529
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/transform/utils.rs +0 -186
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/debug/write_debuginfo.rs +0 -196
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/func_environ.rs +0 -2888
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/gc/enabled.rs +0 -648
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/lib.rs +0 -511
- data/ext/cargo-vendor/wasmtime-cranelift-21.0.1/src/obj.rs +0 -545
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/Cargo.lock +0 -772
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/Cargo.toml +0 -154
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/address_map.rs +0 -73
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/mod.rs +0 -419
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/module_artifacts.rs +0 -315
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/module_environ.rs +0 -1337
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/compile/module_types.rs +0 -362
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/artifacts.rs +0 -72
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/info.rs +0 -672
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/translate/adapt.rs +0 -455
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/translate.rs +0 -978
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/types.rs +0 -1029
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/types_builder/resources.rs +0 -233
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/component/types_builder.rs +0 -997
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/trampoline.rs +0 -3234
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact/transcode.rs +0 -90
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/fact.rs +0 -714
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/lib.rs +0 -161
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/module.rs +0 -697
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/module_artifacts.rs +0 -146
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/module_types.rs +0 -91
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/ref_bits.rs +0 -36
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/tunables.rs +0 -168
- data/ext/cargo-vendor/wasmtime-environ-21.0.1/src/vmoffsets.rs +0 -1015
- data/ext/cargo-vendor/wasmtime-fiber-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-fiber-21.0.1/Cargo.toml +0 -64
- data/ext/cargo-vendor/wasmtime-fiber-21.0.1/build.rs +0 -38
- data/ext/cargo-vendor/wasmtime-fiber-21.0.1/src/lib.rs +0 -328
- data/ext/cargo-vendor/wasmtime-fiber-21.0.1/src/unix.rs +0 -490
- data/ext/cargo-vendor/wasmtime-fiber-21.0.1/src/windows.rs +0 -166
- data/ext/cargo-vendor/wasmtime-jit-debug-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-debug-21.0.1/Cargo.toml +0 -67
- data/ext/cargo-vendor/wasmtime-jit-debug-21.0.1/src/gdb_jit_int.rs +0 -130
- data/ext/cargo-vendor/wasmtime-jit-debug-21.0.1/src/perf_jitdump.rs +0 -293
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/Cargo.toml +0 -51
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-21.0.1/src/libc.rs +0 -163
- data/ext/cargo-vendor/wasmtime-slab-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-slab-21.0.1/Cargo.toml +0 -21
- data/ext/cargo-vendor/wasmtime-slab-21.0.1/src/lib.rs +0 -498
- data/ext/cargo-vendor/wasmtime-types-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-types-21.0.1/Cargo.toml +0 -55
- data/ext/cargo-vendor/wasmtime-types-21.0.1/src/lib.rs +0 -1572
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-21.0.1/Cargo.toml +0 -32
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/Cargo.toml +0 -200
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/bindings.rs +0 -280
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/ctx.rs +0 -667
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/filesystem.rs +0 -446
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/clocks.rs +0 -103
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/env.rs +0 -15
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/exit.rs +0 -11
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/filesystem/sync.rs +0 -518
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/filesystem.rs +0 -1079
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/instance_network.rs +0 -15
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/io.rs +0 -367
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/network.rs +0 -539
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/random.rs +0 -36
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/tcp.rs +0 -306
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/tcp_create_socket.rs +0 -15
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/udp.rs +0 -532
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/host/udp_create_socket.rs +0 -15
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/ip_name_lookup.rs +0 -126
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/lib.rs +0 -426
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/network.rs +0 -107
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/pipe.rs +0 -826
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/poll.rs +0 -233
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/preview0.rs +0 -877
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/preview1.rs +0 -2660
- data/ext/cargo-vendor/wasmtime-wasi-21.0.1/src/stdio.rs +0 -507
- data/ext/cargo-vendor/wasmtime-winch-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-winch-21.0.1/Cargo.toml +0 -81
- data/ext/cargo-vendor/wasmtime-winch-21.0.1/src/compiler.rs +0 -261
- data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/Cargo.toml +0 -46
- data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/src/lib.rs +0 -2541
- data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/src/rust.rs +0 -421
- data/ext/cargo-vendor/wasmtime-wit-bindgen-21.0.1/src/types.rs +0 -202
- data/ext/cargo-vendor/wiggle-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-21.0.1/Cargo.toml +0 -123
- data/ext/cargo-vendor/wiggle-21.0.1/src/borrow.rs +0 -113
- data/ext/cargo-vendor/wiggle-21.0.1/src/guest_type.rs +0 -237
- data/ext/cargo-vendor/wiggle-21.0.1/src/lib.rs +0 -1184
- data/ext/cargo-vendor/wiggle-21.0.1/src/wasmtime.rs +0 -97
- data/ext/cargo-vendor/wiggle-generate-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-generate-21.0.1/Cargo.toml +0 -66
- data/ext/cargo-vendor/wiggle-generate-21.0.1/src/funcs.rs +0 -435
- data/ext/cargo-vendor/wiggle-generate-21.0.1/src/module_trait.rs +0 -102
- data/ext/cargo-vendor/wiggle-generate-21.0.1/src/names.rs +0 -303
- data/ext/cargo-vendor/wiggle-generate-21.0.1/src/types/flags.rs +0 -92
- data/ext/cargo-vendor/wiggle-generate-21.0.1/src/types/handle.rs +0 -84
- data/ext/cargo-vendor/wiggle-generate-21.0.1/src/types/mod.rs +0 -129
- data/ext/cargo-vendor/wiggle-generate-21.0.1/src/types/record.rs +0 -132
- data/ext/cargo-vendor/wiggle-generate-21.0.1/src/types/variant.rs +0 -191
- data/ext/cargo-vendor/wiggle-generate-21.0.1/src/wasmtime.rs +0 -170
- data/ext/cargo-vendor/wiggle-macro-21.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-macro-21.0.1/Cargo.toml +0 -55
- data/ext/cargo-vendor/wiggle-macro-21.0.1/LICENSE +0 -220
- data/ext/cargo-vendor/wiggle-macro-21.0.1/src/lib.rs +0 -210
- data/ext/cargo-vendor/winch-codegen-0.19.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/winch-codegen-0.19.1/Cargo.toml +0 -76
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/abi/mod.rs +0 -671
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/codegen/context.rs +0 -534
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/codegen/control.rs +0 -972
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/codegen/env.rs +0 -440
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/codegen/mod.rs +0 -882
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/frame/mod.rs +0 -258
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/asm.rs +0 -380
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/masm.rs +0 -566
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/aarch64/regs.rs +0 -161
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/x64/asm.rs +0 -1423
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/isa/x64/masm.rs +0 -1120
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/masm.rs +0 -941
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/regalloc.rs +0 -65
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/stack.rs +0 -439
- data/ext/cargo-vendor/winch-codegen-0.19.1/src/visitor.rs +0 -2144
- data/ext/cargo-vendor/wit-parser-0.207.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wit-parser-0.207.0/Cargo.toml +0 -109
- data/ext/cargo-vendor/wit-parser-0.207.0/src/ast/resolve.rs +0 -1442
- data/ext/cargo-vendor/wit-parser-0.207.0/src/ast.rs +0 -1348
- data/ext/cargo-vendor/wit-parser-0.207.0/src/decoding.rs +0 -1764
- data/ext/cargo-vendor/wit-parser-0.207.0/src/docs.rs +0 -389
- data/ext/cargo-vendor/wit-parser-0.207.0/src/lib.rs +0 -777
- data/ext/cargo-vendor/wit-parser-0.207.0/src/live.rs +0 -126
- data/ext/cargo-vendor/wit-parser-0.207.0/src/resolve.rs +0 -2337
- data/ext/cargo-vendor/wit-parser-0.207.0/src/serde_.rs +0 -108
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/all.rs +0 -153
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/complex-include.wit.json +0 -168
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/diamond1.wit.json +0 -55
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/disambiguate-diamond.wit.json +0 -107
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/foreign-deps-union.wit.json +0 -380
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/foreign-deps.wit.json +0 -344
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/ignore-files-deps.wit.json +0 -39
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/import-export-overlap2.wit.json +0 -41
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/include-reps.wit.json +0 -60
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/kinds-of-deps.wit.json +0 -87
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/many-names.wit.json +0 -40
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/multi-file.wit.json +0 -298
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/conflicting-package.wit.result +0 -9
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/multiple-package-docs.wit.result +0 -9
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/resources-multiple-returns-borrow.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/resources-return-borrow.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow1.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow6.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow7.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/parse-fail/return-borrow8.wit.result +0 -8
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/shared-types.wit.json +0 -83
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/stress-export-elaborate.wit.json +0 -1136
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/world-diamond.wit.json +0 -118
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/world-iface-no-collide.wit.json +0 -66
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/world-implicit-import1.wit.json +0 -75
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/world-implicit-import2.wit.json +0 -70
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/world-implicit-import3.wit.json +0 -71
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/world-same-fields4.wit.json +0 -76
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/world-top-level-resources.wit.json +0 -231
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/worlds-union-dedup.wit.json +0 -100
- data/ext/cargo-vendor/wit-parser-0.207.0/tests/ui/worlds-with-types.wit.json +0 -202
- /data/ext/cargo-vendor/{cranelift-bforest-0.108.1 → cranelift-bforest-0.109.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.108.1 → cranelift-bforest-0.109.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.108.1 → cranelift-bforest-0.109.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.108.1 → cranelift-bforest-0.109.0}/src/map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.108.1 → cranelift-bforest-0.109.0}/src/node.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.108.1 → cranelift-bforest-0.109.0}/src/path.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.108.1 → cranelift-bforest-0.109.0}/src/pool.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.108.1 → cranelift-bforest-0.109.0}/src/set.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/benches/x64-evex-encoding.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/alias_analysis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/binemit/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/binemit/stack_map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/bitset.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/cfg_printer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ctxhash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/cursor.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/data_value.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/dbg.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/egraph/cost.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/egraph/elaborate.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/flowgraph.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/incremental_cache.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/atomic_rmw_op.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/builder.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/condcodes.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/constant.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/dynamic_type.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/entities.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/extname.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/function.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/globalvalue.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/jumptable.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/known_symbol.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/layout.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/libcall.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/memflags.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/memtype.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/pcc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/progpoint.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/sourceloc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ir/trapcode.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/aarch64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/aarch64/inst_neon.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/aarch64/lower/isle.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/aarch64/lower.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/aarch64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/aarch64/lower_dynamic_neon.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/aarch64/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/aarch64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/call_conv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/riscv64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/riscv64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/riscv64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/riscv64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/s390x/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/s390x/lower/isle.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/s390x/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/s390x/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/s390x/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/unwind/winx64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/x64/encoding/evex.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/x64/encoding/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/x64/encoding/rex.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/x64/encoding/vex.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/x64/inst/unwind/winx64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/x64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/x64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/x64/lower/isle.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/x64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/x64/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/isa/x64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/iterators.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/legalizer/globalvalue.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/legalizer/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/loop_analysis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/machinst/compile.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/machinst/helpers.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/machinst/inst_common.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/machinst/pcc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/nan_canonicalization.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts/arithmetic.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts/bitops.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts/extends.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts/icmp.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts/remat.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts/selects.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts/spaceship.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts/spectre.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts/vector.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/opts.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/prelude_opt.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/print_errors.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/ranges.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/remove_constant_phis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/result.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/scoped_hash_map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/souper_harvest.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/unionfind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/unreachable_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.108.1 → cranelift-codegen-0.109.0}/src/value_label.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/cdsl/formats.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/cdsl/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/cdsl/isa.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/cdsl/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/cdsl/operands.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/cdsl/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/cdsl/typevar.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/gen_inst.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/gen_isle.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/gen_settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/gen_types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/isa/arm64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/isa/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/isa/s390x.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/isa/x86.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/isle.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/shared/entities.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/shared/formats.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/shared/immediates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/shared/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/shared/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/shared/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/shared/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/srcgen.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.108.1 → cranelift-codegen-meta-0.109.0}/src/unique_table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.108.1 → cranelift-codegen-shared-0.109.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.108.1 → cranelift-codegen-shared-0.109.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.108.1 → cranelift-codegen-shared-0.109.0}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.108.1 → cranelift-codegen-shared-0.109.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.108.1 → cranelift-control-0.109.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.108.1 → cranelift-control-0.109.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.108.1 → cranelift-control-0.109.0}/src/chaos.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.108.1 → cranelift-control-0.109.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.108.1 → cranelift-control-0.109.0}/src/zero_sized.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/src/boxed_slice.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/src/iter.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/src/keys.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/src/list.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/src/map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/src/packed_option.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/src/primary.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/src/sparse.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.108.1 → cranelift-entity-0.109.0}/src/unsigned.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.108.1 → cranelift-frontend-0.109.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.108.1 → cranelift-frontend-0.109.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.108.1 → cranelift-frontend-0.109.0}/src/switch.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.108.1 → cranelift-frontend-0.109.0}/src/variable.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/fail/bad_converters.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/fail/error1.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/fail/extra_parens.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/fail/impure_expression.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/fail/impure_rhs.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/fail/multi_internal_etor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/fail/multi_prio.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/link/borrows.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/link/borrows_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/link/iflets.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/link/iflets_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/link/multi_constructor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/link/multi_constructor_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/link/multi_extractor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/link/multi_extractor_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/link/test.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/link/test_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/pass/bound_var.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/pass/construct_and_extract.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/pass/conversions.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/pass/conversions_extern.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/pass/let.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/pass/nodebug.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/pass/prio_trie_bug.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/pass/test2.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/pass/test3.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/pass/test4.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/pass/tutorial.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/run/iconst.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/run/iconst_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/run/let_shadowing.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/isle_examples/run/let_shadowing_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/ast.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/codegen.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/compile.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/disjointsets.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/lexer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/log.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/overlap.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/parser.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/serialize.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/stablemapset.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/src/trie_again.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.108.1 → cranelift-isle-0.109.0}/tests/run_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.108.1 → cranelift-native-0.109.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.108.1 → cranelift-native-0.109.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.108.1 → cranelift-wasm-0.109.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.108.1 → cranelift-wasm-0.109.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.108.1 → cranelift-wasm-0.109.0}/src/code_translator/bounds_checks.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.108.1 → cranelift-wasm-0.109.0}/src/environ/dummy.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.108.1 → cranelift-wasm-0.109.0}/src/environ/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.108.1 → cranelift-wasm-0.109.0}/src/environ/spec.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.108.1 → cranelift-wasm-0.109.0}/src/heap.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.108.1 → cranelift-wasm-0.109.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.108.1 → cranelift-wasm-0.109.0}/src/table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.108.1 → cranelift-wasm-0.109.0}/src/translation_utils.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/archive.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/build/error.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/build/mod.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/build/table.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/pe.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/coff/import.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/coff/mod.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/elf/compression.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/elf/dynamic.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/elf/mod.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/macho/fat.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/macho/mod.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/macho/relocation.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/pe/data_directory.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/pe/export.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/pe/mod.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/pe/resource.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/pe/rich.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/read_ref.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/util.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/xcoff/comdat.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/xcoff/mod.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/read/xcoff/segment.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/write/coff/mod.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/write/elf/mod.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/write/string.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/write/util.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/src/xcoff.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/tests/parse_self.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/tests/read/coff.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/tests/read/elf.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/tests/round_trip/coff.rs +0 -0
- /data/ext/cargo-vendor/{object-0.33.0 → object-0.36.3}/tests/round_trip/macho.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/ctx.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/dir.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/file.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/pipe.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/random.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/sched/subscription.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/snapshots/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/snapshots/preview_1/error.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/sync/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/sync/dir.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/sync/file.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/sync/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/sync/net.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/sync/sched/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/sync/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/sync/stdio.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/table.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/tokio/dir.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/tokio/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/tokio/net.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/tokio/sched/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/tokio/sched/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/tokio/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/src/tokio/stdio.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/tests/all/async_.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/tests/all/main.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/tests/all/sync.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/witx/preview0/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/witx/preview0/wasi_unstable.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/witx/preview1/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-21.0.1 → wasi-common-22.0.0}/witx/preview1/wasi_snapshot_preview1.witx +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/benches/benchmark.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/examples/simple.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/component/aliases.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/component/canonicals.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/component/exports.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/component/start.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/core/dylink0.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/core/exports.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/core/functions.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/core/imports.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/core/memories.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/core/tables.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/core/tags.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/core/types/matches.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/readers/core.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/src/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.207.0 → wasmparser-0.209.1}/tests/big-module.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.207.0 → wasmprinter-0.209.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmprinter-0.207.0 → wasmprinter-0.209.1}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmprinter-0.207.0 → wasmprinter-0.209.1}/tests/all.rs +0 -0
- /data/ext/cargo-vendor/{wasmprinter-0.207.0 → wasmtime-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/proptest-regressions/runtime/vm/instance/allocator/pooling/memory_pool.txt +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/compile/code_builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/engine.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/profiling_agent/vtune.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/profiling_agent.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/component/func/host.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/component/func/options.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/component/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/component/storage.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/component/store.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/component/values.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/coredump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/externals.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/gc/disabled/anyref.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/gc/disabled/externref.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/gc/disabled/i31.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/gc/disabled/rooting.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/gc/disabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/gc/enabled/rooting.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/gc/enabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/limits.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/memory.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/profiling.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/signatures.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/stack.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/store/context.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/store/data.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/trampoline/global.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/trampoline/table.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/trampoline.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/trap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/types/matching.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/uninhabited.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/arch/aarch64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/arch/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/arch/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/arch/s390x.S +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/arch/s390x.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/arch/x86_64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/async_yield.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/component/libcalls.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/const_expr.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/debug_builtins.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/gc/disabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/gc/enabled/drc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/gc/enabled/externref.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/gc/enabled/free_list.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/gc/enabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/gc/gc_runtime.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/gc/host_data.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/gc/i31.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/gc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/helpers.c +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/imports.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/libcalls.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/mmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/mmap_vec.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/module_id.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/mpk/disabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/mpk/enabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/mpk/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/mpk/pkru.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/mpk/sys.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/send_sync_ptr.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/store_box.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/custom/mmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/custom/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/custom/traphandlers.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/custom/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/miri/mmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/miri/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/miri/traphandlers.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/miri/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/unix/machports.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/unix/macos_traphandlers.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/unix/mmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/unix/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/unix/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/windows/mmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/windows/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/windows/traphandlers.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/sys/windows/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/threads/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/threads/parking_spot.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/threads/shared_memory.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/threads/shared_memory_disabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/traphandlers/backtrace.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/traphandlers/coredump_disabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/vm/traphandlers/coredump_enabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/runtime/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/sync_nostd.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-22.0.0}/src/sync_std.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-asm-macros-21.0.1 → wasmtime-asm-macros-22.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-21.0.1 → wasmtime-cache-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-21.0.1 → wasmtime-cache-22.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-21.0.1 → wasmtime-cache-22.0.0}/src/config/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-21.0.1 → wasmtime-cache-22.0.0}/src/worker/tests/system_time_stub.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-21.0.1 → wasmtime-cache-22.0.0}/tests/cache_write_default_config.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/char.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/conventions.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/dead-code.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/direct-import.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/empty.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/flags.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/floats.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/function-new.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/integers.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/lists.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/many-arguments.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/multi-return.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/multiversion/deps/v1/root.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/multiversion/deps/v2/root.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/multiversion/root.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/records.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/rename.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/resources-export.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/resources-import.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/share-types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/simple-functions.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/simple-lists.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/simple-wasi.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/small-anonymous.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/smoke-default.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/smoke-export.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/smoke.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/strings.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/unversioned-foo.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/use-paths.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/variants.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/wat.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen/worlds-with-types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-21.0.1 → wasmtime-component-macro-22.0.0}/tests/codegen_no_std.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-util-21.0.1 → wasmtime-component-util-22.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-21.0.1 → wasmtime-cranelift-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/SECURITY.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/compiled_function.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/debug/gc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/debug/transform/attr.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/debug/transform/expression.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/debug/transform/line_program.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/debug/transform/range_info_builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/debug/transform/refs.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/debug.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/gc/disabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/gc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-cranelift-22.0.0}/src/isa_builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-21.0.1 → wasmtime-environ-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/examples/factc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/address_map.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/builtin.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/compile/trap_encoding.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/component/compiler.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/component/dfg.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/component/translate/inline.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/component/vmcomponent_offsets.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/demangling.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/fact/core_types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/fact/signature.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/fact/traps.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/gc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/obj.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/scopevec.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/stack_map.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-environ-22.0.0}/src/trap_encoding.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-21.0.1 → wasmtime-fiber-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-21.0.1 → wasmtime-fiber-22.0.0}/src/unix/aarch64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-21.0.1 → wasmtime-fiber-22.0.0}/src/unix/arm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-21.0.1 → wasmtime-fiber-22.0.0}/src/unix/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-21.0.1 → wasmtime-fiber-22.0.0}/src/unix/s390x.S +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-21.0.1 → wasmtime-fiber-22.0.0}/src/unix/x86.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-21.0.1 → wasmtime-fiber-22.0.0}/src/unix/x86_64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-21.0.1 → wasmtime-fiber-22.0.0}/src/windows.c +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-21.0.1 → wasmtime-jit-debug-22.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-21.0.1 → wasmtime-jit-debug-22.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-21.0.1 → wasmtime-jit-icache-coherence-22.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-21.0.1 → wasmtime-jit-icache-coherence-22.0.0}/src/miri.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-21.0.1 → wasmtime-jit-icache-coherence-22.0.0}/src/win.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-21.0.1 → wasmtime-types-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-types-21.0.1 → wasmtime-types-22.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-versioned-export-macros-21.0.1 → wasmtime-versioned-export-macros-22.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-types-21.0.1 → wasmtime-wasi-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/src/clocks/host.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/src/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/src/host/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/src/random.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/src/runtime.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/src/stdio/worker_thread_stdin.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/src/stream.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/src/tcp.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/src/udp.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/src/write_stream.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/tests/all/api.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/tests/all/async_.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/tests/all/main.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/tests/all/preview1.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/tests/all/sync.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/tests/process_stdin.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/command-extended.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/cli/command.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/cli/environment.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/cli/exit.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/cli/imports.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/cli/run.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/cli/stdio.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/cli/terminal.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/clocks/monotonic-clock.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/clocks/wall-clock.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/clocks/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/filesystem/preopens.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/filesystem/types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/filesystem/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/http/handler.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/http/proxy.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/http/types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/io/error.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/io/poll.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/io/streams.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/io/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/random/insecure-seed.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/random/insecure.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/random/random.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/random/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/sockets/instance-network.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/sockets/ip-name-lookup.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/sockets/network.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/sockets/tcp-create-socket.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/sockets/tcp.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/sockets/udp-create-socket.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/sockets/udp.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/deps/sockets/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/wit/test.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/witx/preview0/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/witx/preview0/wasi_unstable.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/witx/preview1/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wasmtime-wasi-22.0.0}/witx/preview1/wasi_snapshot_preview1.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-21.0.1 → wasmtime-winch-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-21.0.1 → wasmtime-winch-22.0.0}/src/builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-21.0.1 → wasmtime-winch-22.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wit-bindgen-21.0.1 → wasmtime-wit-bindgen-22.0.0}/src/source.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-21.0.1 → wiggle-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wiggle-21.0.1 → wiggle-22.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wiggle-21.0.1 → wiggle-22.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-21.0.1 → wiggle-22.0.0}/src/region.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-21.0.1 → wiggle-generate-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-21.0.1 → wiggle-generate-22.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-21.0.1 → wiggle-generate-22.0.0}/src/codegen_settings.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-21.0.1 → wiggle-generate-22.0.0}/src/config.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-21.0.1 → wiggle-generate-22.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-21.0.1 → wiggle-generate-22.0.0}/src/lifetimes.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-21.0.1 → wiggle-generate-22.0.0}/src/types/error.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-21.0.1 → wiggle-macro-22.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/abi/local.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/codegen/bounds.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/codegen/builtin.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/codegen/call.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/isa/aarch64/abi.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/isa/aarch64/address.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/isa/aarch64/mod.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/isa/mod.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/isa/reg.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/isa/x64/abi.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/isa/x64/address.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/isa/x64/mod.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/isa/x64/regs.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.19.1 → winch-codegen-0.20.0}/src/regset.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/README.md +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/src/abi.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/src/ast/lex.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/src/ast/toposort.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/src/sizealign.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/comments.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/comments.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/complex-include/deps/bar/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/complex-include/deps/baz/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/complex-include/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/cross-package-resource/deps/foo/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/cross-package-resource/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/cross-package-resource.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/diamond1/deps/dep1/types.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/diamond1/deps/dep2/types.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/diamond1/join.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/disambiguate-diamond/shared1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/disambiguate-diamond/shared2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/disambiguate-diamond/world.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/empty.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/empty.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps/deps/another-pkg/other-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps/deps/corp/saas.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps/deps/different-pkg/the-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps/deps/foreign-pkg/the-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps/deps/some-pkg/some-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps/deps/wasi/clocks.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps/deps/wasi/filesystem.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps-union/deps/another-pkg/other-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps-union/deps/corp/saas.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps-union/deps/different-pkg/the-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps-union/deps/foreign-pkg/the-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps-union/deps/some-pkg/some-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps-union/deps/wasi/clocks.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps-union/deps/wasi/filesystem.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps-union/deps/wasi/wasi.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/foreign-deps-union/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/functions.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/functions.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/ignore-files-deps/deps/bar/types.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/ignore-files-deps/deps/ignore-me.txt +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/ignore-files-deps/world.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/import-export-overlap1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/import-export-overlap1.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/import-export-overlap2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/include-reps.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/kebab-name-include-with.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/kebab-name-include-with.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/kinds-of-deps/a.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/kinds-of-deps/deps/b/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/kinds-of-deps/deps/c.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/kinds-of-deps/deps/d.wat +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/kinds-of-deps/deps/e.wasm +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/many-names/a.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/many-names/b.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/multi-file/bar.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/multi-file/cycle-a.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/multi-file/cycle-b.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/multi-file/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/name-both-resource-and-type/deps/dep/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/name-both-resource-and-type/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/name-both-resource-and-type.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/package-syntax1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/package-syntax1.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/package-syntax3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/package-syntax3.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/package-syntax4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/package-syntax4.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/alias-no-type.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/alias-no-type.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/async.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/async1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-function.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-function.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-function2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-function2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-include1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-include1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-include2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-include2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-include3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-include3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-list.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-list.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg1/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg2/deps/bar/empty.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg2/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg3/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg3/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg4/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg4/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg5/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg5/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg5.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg6/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg6/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-pkg6.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource10.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource10.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource11.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource11.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource12.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource12.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource13.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource13.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource14.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource14.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource15/deps/foo/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource15/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource15.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource5.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource5.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource6.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource6.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource7.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource7.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource8.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource8.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource9.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-resource9.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-world-type1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/bad-world-type1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/conflicting-package/a.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/conflicting-package/b.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/cycle.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/cycle.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/cycle2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/cycle2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/cycle3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/cycle3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/cycle4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/cycle4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/cycle5.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/cycle5.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/dangling-type.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/dangling-type.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/duplicate-function-params.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/duplicate-function-params.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/duplicate-functions.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/duplicate-functions.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/duplicate-interface.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/duplicate-interface.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/duplicate-interface2/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/duplicate-interface2/foo2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/duplicate-interface2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/duplicate-type.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/duplicate-type.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/empty-enum.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/empty-enum.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/empty-variant1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/empty-variant1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/export-twice.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/export-twice.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-and-export1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-and-export1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-and-export2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-and-export2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-and-export3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-and-export3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-and-export4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-and-export4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-and-export5.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-and-export5.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-twice.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/import-twice.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/include-cycle.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/include-cycle.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/include-foreign/deps/bar/empty.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/include-foreign/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/include-foreign.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/include-with-id.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/include-with-id.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/include-with-on-id.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/include-with-on-id.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/invalid-toplevel.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/invalid-toplevel.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/invalid-type-reference.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/invalid-type-reference.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/invalid-type-reference2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/invalid-type-reference2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/kebab-name-include-not-found.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/kebab-name-include-not-found.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/kebab-name-include.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/kebab-name-include.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/keyword.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/keyword.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/missing-package.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/missing-package.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/multiple-package-docs/a.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/multiple-package-docs/b.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/no-access-to-sibling-use/bar.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/no-access-to-sibling-use/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/no-access-to-sibling-use.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/non-existance-world-include/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/non-existance-world-include/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/non-existance-world-include.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/pkg-cycle/deps/a1/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/pkg-cycle/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/pkg-cycle.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/pkg-cycle2/deps/a1/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/pkg-cycle2/deps/a2/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/pkg-cycle2/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/pkg-cycle2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/resources-multiple-returns-borrow.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/resources-return-borrow.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow5.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow5.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow6.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow7.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow8/deps/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/return-borrow8/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/type-and-resource-same-name/deps/dep/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/type-and-resource-same-name/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/type-and-resource-same-name.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/undefined-typed.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/undefined-typed.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unknown-interface.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unknown-interface.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-interface1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-interface1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-interface2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-interface2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-interface3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-interface3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-interface4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-interface4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use10/bar.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use10/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use10.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use7.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use7.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use8.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use8.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use9.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unresolved-use9.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/unterminated-string.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-and-include-world/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-and-include-world/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-and-include-world.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-conflict.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-conflict.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-conflict2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-conflict2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-conflict3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-conflict3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-cycle1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-cycle1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-cycle4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-cycle4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-shadow1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-shadow1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-world/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-world/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/use-world.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/world-interface-clash.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/world-interface-clash.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/world-same-fields2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/world-same-fields2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/world-same-fields3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/world-same-fields3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/world-top-level-func.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/world-top-level-func.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/world-top-level-func2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/parse-fail/world-top-level-func2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/random.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/random.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources-empty.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources-empty.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources-multiple-returns-own.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources-multiple-returns-own.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources-multiple.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources-multiple.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources-return-own.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources-return-own.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/resources1.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/same-name-import-export.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/same-name-import-export.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/shared-types.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/simple-wasm-text.wat +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/simple-wasm-text.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/stress-export-elaborate.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/type-then-eof.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/type-then-eof.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/types.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/types.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/union-fuzz-1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/union-fuzz-1.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/union-fuzz-2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/union-fuzz-2.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/use-chain.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/use-chain.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/use.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/use.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/versions/deps/a1/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/versions/deps/a2/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/versions/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/versions.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/wasi.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/wasi.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/world-diamond.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/world-iface-no-collide.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/world-implicit-import1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/world-implicit-import2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/world-implicit-import3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/world-same-fields4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/world-top-level-funcs.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/world-top-level-funcs.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/world-top-level-resources.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/worlds-union-dedup.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.207.0 → wit-parser-0.209.1}/tests/ui/worlds-with-types.wit +0 -0
@@ -0,0 +1,2639 @@
|
|
1
|
+
use crate::rust::{to_rust_ident, to_rust_upper_camel_case, RustGenerator, TypeMode};
|
2
|
+
use crate::types::{TypeInfo, Types};
|
3
|
+
use anyhow::{bail, Context};
|
4
|
+
use heck::*;
|
5
|
+
use indexmap::{IndexMap, IndexSet};
|
6
|
+
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
|
7
|
+
use std::fmt::Write as _;
|
8
|
+
use std::io::{Read, Write};
|
9
|
+
use std::mem;
|
10
|
+
use std::process::{Command, Stdio};
|
11
|
+
use wit_parser::*;
|
12
|
+
|
13
|
+
macro_rules! uwrite {
|
14
|
+
($dst:expr, $($arg:tt)*) => {
|
15
|
+
write!($dst, $($arg)*).unwrap()
|
16
|
+
};
|
17
|
+
}
|
18
|
+
|
19
|
+
macro_rules! uwriteln {
|
20
|
+
($dst:expr, $($arg:tt)*) => {
|
21
|
+
writeln!($dst, $($arg)*).unwrap()
|
22
|
+
};
|
23
|
+
}
|
24
|
+
|
25
|
+
mod rust;
|
26
|
+
mod source;
|
27
|
+
mod types;
|
28
|
+
use source::Source;
|
29
|
+
|
30
|
+
#[derive(Clone)]
|
31
|
+
enum InterfaceName {
|
32
|
+
/// This interface was remapped using `with` to some other Rust code.
|
33
|
+
Remapped {
|
34
|
+
/// This is the `::`-separated string which is the path to the mapped
|
35
|
+
/// item relative to the root of the `bindgen!` macro invocation.
|
36
|
+
///
|
37
|
+
/// This path currently starts with `__with_name$N` and will then
|
38
|
+
/// optionally have `::` projections through to the actual item
|
39
|
+
/// depending on how `with` was configured.
|
40
|
+
name_at_root: String,
|
41
|
+
|
42
|
+
/// This is currently only used for exports and is the relative path to
|
43
|
+
/// where this mapped name would be located if `with` were not
|
44
|
+
/// specified. Basically it's the same as the `Path` variant of this
|
45
|
+
/// enum if the mapping weren't present.
|
46
|
+
local_path: Vec<String>,
|
47
|
+
},
|
48
|
+
|
49
|
+
/// This interface is generated in the module hierarchy specified.
|
50
|
+
///
|
51
|
+
/// The path listed here is the path, from the root of the `bindgen!` macro,
|
52
|
+
/// to where this interface is generated.
|
53
|
+
Path(Vec<String>),
|
54
|
+
}
|
55
|
+
|
56
|
+
#[derive(Default)]
|
57
|
+
struct Wasmtime {
|
58
|
+
src: Source,
|
59
|
+
opts: Opts,
|
60
|
+
/// A list of all interfaces which were imported by this world.
|
61
|
+
///
|
62
|
+
/// The first value here is the contents of the module that this interface
|
63
|
+
/// generated. The second value is the name of the interface as also present
|
64
|
+
/// in `self.interface_names`.
|
65
|
+
import_interfaces: Vec<(String, InterfaceName)>,
|
66
|
+
import_functions: Vec<ImportFunction>,
|
67
|
+
exports: Exports,
|
68
|
+
types: Types,
|
69
|
+
sizes: SizeAlign,
|
70
|
+
interface_names: HashMap<InterfaceId, InterfaceName>,
|
71
|
+
interface_last_seen_as_import: HashMap<InterfaceId, bool>,
|
72
|
+
trappable_errors: IndexMap<TypeId, String>,
|
73
|
+
// Track the with options that were used. Remapped interfaces provided via `with`
|
74
|
+
// are required to be used.
|
75
|
+
used_with_opts: HashSet<String>,
|
76
|
+
}
|
77
|
+
|
78
|
+
struct ImportFunction {
|
79
|
+
func: Function,
|
80
|
+
add_to_linker: String,
|
81
|
+
sig: Option<String>,
|
82
|
+
}
|
83
|
+
|
84
|
+
#[derive(Default)]
|
85
|
+
struct Exports {
|
86
|
+
fields: BTreeMap<String, (String, String)>,
|
87
|
+
modules: Vec<(String, InterfaceName)>,
|
88
|
+
funcs: Vec<String>,
|
89
|
+
}
|
90
|
+
|
91
|
+
#[derive(Default, Debug, Clone, Copy)]
|
92
|
+
pub enum Ownership {
|
93
|
+
/// Generated types will be composed entirely of owning fields, regardless
|
94
|
+
/// of whether they are used as parameters to guest exports or not.
|
95
|
+
#[default]
|
96
|
+
Owning,
|
97
|
+
|
98
|
+
/// Generated types used as parameters to guest exports will be "deeply
|
99
|
+
/// borrowing", i.e. contain references rather than owned values when
|
100
|
+
/// applicable.
|
101
|
+
Borrowing {
|
102
|
+
/// Whether or not to generate "duplicate" type definitions for a single
|
103
|
+
/// WIT type if necessary, for example if it's used as both an import
|
104
|
+
/// and an export, or if it's used both as a parameter to an export and
|
105
|
+
/// a return value from an export.
|
106
|
+
duplicate_if_necessary: bool,
|
107
|
+
},
|
108
|
+
}
|
109
|
+
|
110
|
+
#[derive(Default, Debug, Clone)]
|
111
|
+
pub struct Opts {
|
112
|
+
/// Whether or not `rustfmt` is executed to format generated code.
|
113
|
+
pub rustfmt: bool,
|
114
|
+
|
115
|
+
/// Whether or not to emit `tracing` macro calls on function entry/exit.
|
116
|
+
pub tracing: bool,
|
117
|
+
|
118
|
+
/// Whether or not to use async rust functions and traits.
|
119
|
+
pub async_: AsyncConfig,
|
120
|
+
|
121
|
+
/// A list of "trappable errors" which are used to replace the `E` in
|
122
|
+
/// `result<T, E>` found in WIT.
|
123
|
+
pub trappable_error_type: Vec<TrappableError>,
|
124
|
+
|
125
|
+
/// Whether to generate owning or borrowing type definitions.
|
126
|
+
pub ownership: Ownership,
|
127
|
+
|
128
|
+
/// Whether or not to generate code for only the interfaces of this wit file or not.
|
129
|
+
pub only_interfaces: bool,
|
130
|
+
|
131
|
+
/// Configuration of which imports are allowed to generate a trap.
|
132
|
+
pub trappable_imports: TrappableImports,
|
133
|
+
|
134
|
+
/// Remapping of interface names to rust module names.
|
135
|
+
/// TODO: is there a better type to use for the value of this map?
|
136
|
+
pub with: HashMap<String, String>,
|
137
|
+
|
138
|
+
/// Additional derive attributes to add to generated types. If using in a CLI, this flag can be
|
139
|
+
/// specified multiple times to add multiple attributes.
|
140
|
+
///
|
141
|
+
/// These derive attributes will be added to any generated structs or enums
|
142
|
+
pub additional_derive_attributes: Vec<String>,
|
143
|
+
|
144
|
+
/// Evaluate to a string literal containing the generated code rather than the generated tokens
|
145
|
+
/// themselves. Mostly useful for Wasmtime internal debugging and development.
|
146
|
+
pub stringify: bool,
|
147
|
+
|
148
|
+
/// Temporary option to skip `impl<T: Trait> Trait for &mut T` for the
|
149
|
+
/// `wasmtime-wasi` crate while that's given a chance to update its b
|
150
|
+
/// indings.
|
151
|
+
pub skip_mut_forwarding_impls: bool,
|
152
|
+
|
153
|
+
/// Indicates that the `T` in `Store<T>` should be send even if async is not
|
154
|
+
/// enabled.
|
155
|
+
///
|
156
|
+
/// This is helpful when sync bindings depend on generated functions from
|
157
|
+
/// async bindings as is the case with WASI in-tree.
|
158
|
+
pub require_store_data_send: bool,
|
159
|
+
|
160
|
+
/// Path to the `wasmtime` crate if it's not the default path.
|
161
|
+
pub wasmtime_crate: Option<String>,
|
162
|
+
}
|
163
|
+
|
164
|
+
#[derive(Debug, Clone)]
|
165
|
+
pub struct TrappableError {
|
166
|
+
/// Full path to the error, such as `wasi:io/streams/error`.
|
167
|
+
pub wit_path: String,
|
168
|
+
|
169
|
+
/// The name, in Rust, of the error type to generate.
|
170
|
+
pub rust_type_name: String,
|
171
|
+
}
|
172
|
+
|
173
|
+
#[derive(Default, Debug, Clone)]
|
174
|
+
pub enum AsyncConfig {
|
175
|
+
/// No functions are `async`.
|
176
|
+
#[default]
|
177
|
+
None,
|
178
|
+
/// All generated functions should be `async`.
|
179
|
+
All,
|
180
|
+
/// These imported functions should not be async, but everything else is.
|
181
|
+
AllExceptImports(HashSet<String>),
|
182
|
+
/// These functions are the only imports that are async, all other imports
|
183
|
+
/// are sync.
|
184
|
+
///
|
185
|
+
/// Note that all exports are still async in this situation.
|
186
|
+
OnlyImports(HashSet<String>),
|
187
|
+
}
|
188
|
+
|
189
|
+
impl AsyncConfig {
|
190
|
+
pub fn is_import_async(&self, f: &str) -> bool {
|
191
|
+
match self {
|
192
|
+
AsyncConfig::None => false,
|
193
|
+
AsyncConfig::All => true,
|
194
|
+
AsyncConfig::AllExceptImports(set) => !set.contains(f),
|
195
|
+
AsyncConfig::OnlyImports(set) => set.contains(f),
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
pub fn maybe_async(&self) -> bool {
|
200
|
+
match self {
|
201
|
+
AsyncConfig::None => false,
|
202
|
+
AsyncConfig::All | AsyncConfig::AllExceptImports(_) | AsyncConfig::OnlyImports(_) => {
|
203
|
+
true
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
#[derive(Default, Debug, Clone)]
|
210
|
+
pub enum TrappableImports {
|
211
|
+
/// No imports are allowed to trap.
|
212
|
+
#[default]
|
213
|
+
None,
|
214
|
+
/// All imports may trap.
|
215
|
+
All,
|
216
|
+
/// Only the specified set of functions may trap.
|
217
|
+
Only(HashSet<String>),
|
218
|
+
}
|
219
|
+
|
220
|
+
impl TrappableImports {
|
221
|
+
fn can_trap(&self, f: &Function) -> bool {
|
222
|
+
match self {
|
223
|
+
TrappableImports::None => false,
|
224
|
+
TrappableImports::All => true,
|
225
|
+
TrappableImports::Only(set) => set.contains(&f.name),
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
impl Opts {
|
231
|
+
pub fn generate(&self, resolve: &Resolve, world: WorldId) -> anyhow::Result<String> {
|
232
|
+
let mut r = Wasmtime::default();
|
233
|
+
r.sizes.fill(resolve);
|
234
|
+
r.opts = self.clone();
|
235
|
+
r.generate(resolve, world)
|
236
|
+
}
|
237
|
+
|
238
|
+
fn is_store_data_send(&self) -> bool {
|
239
|
+
self.async_.maybe_async() || self.require_store_data_send
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
impl Wasmtime {
|
244
|
+
fn name_interface(
|
245
|
+
&mut self,
|
246
|
+
resolve: &Resolve,
|
247
|
+
id: InterfaceId,
|
248
|
+
name: &WorldKey,
|
249
|
+
is_export: bool,
|
250
|
+
) -> bool {
|
251
|
+
let mut path = Vec::new();
|
252
|
+
if is_export {
|
253
|
+
path.push("exports".to_string());
|
254
|
+
}
|
255
|
+
match name {
|
256
|
+
WorldKey::Name(name) => {
|
257
|
+
path.push(name.to_snake_case());
|
258
|
+
}
|
259
|
+
WorldKey::Interface(_) => {
|
260
|
+
let iface = &resolve.interfaces[id];
|
261
|
+
let pkgname = &resolve.packages[iface.package.unwrap()].name;
|
262
|
+
path.push(pkgname.namespace.to_snake_case());
|
263
|
+
path.push(self.name_package_module(resolve, iface.package.unwrap()));
|
264
|
+
path.push(to_rust_ident(iface.name.as_ref().unwrap()));
|
265
|
+
}
|
266
|
+
}
|
267
|
+
let entry = if let Some(name_at_root) = self.lookup_replacement(resolve, name, None) {
|
268
|
+
InterfaceName::Remapped {
|
269
|
+
name_at_root,
|
270
|
+
local_path: path,
|
271
|
+
}
|
272
|
+
} else {
|
273
|
+
InterfaceName::Path(path)
|
274
|
+
};
|
275
|
+
|
276
|
+
let remapped = matches!(entry, InterfaceName::Remapped { .. });
|
277
|
+
self.interface_names.insert(id, entry);
|
278
|
+
remapped
|
279
|
+
}
|
280
|
+
|
281
|
+
/// If the package `id` is the only package with its namespace/name combo
|
282
|
+
/// then pass through the name unmodified. If, however, there are multiple
|
283
|
+
/// versions of this package then the package module is going to get version
|
284
|
+
/// information.
|
285
|
+
fn name_package_module(&self, resolve: &Resolve, id: PackageId) -> String {
|
286
|
+
let pkg = &resolve.packages[id];
|
287
|
+
let versions_with_same_name = resolve
|
288
|
+
.packages
|
289
|
+
.iter()
|
290
|
+
.filter_map(|(_, p)| {
|
291
|
+
if p.name.namespace == pkg.name.namespace && p.name.name == pkg.name.name {
|
292
|
+
Some(&p.name.version)
|
293
|
+
} else {
|
294
|
+
None
|
295
|
+
}
|
296
|
+
})
|
297
|
+
.collect::<Vec<_>>();
|
298
|
+
let base = pkg.name.name.to_snake_case();
|
299
|
+
if versions_with_same_name.len() == 1 {
|
300
|
+
return base;
|
301
|
+
}
|
302
|
+
|
303
|
+
let version = match &pkg.name.version {
|
304
|
+
Some(version) => version,
|
305
|
+
// If this package didn't have a version then don't mangle its name
|
306
|
+
// and other packages with the same name but with versions present
|
307
|
+
// will have their names mangled.
|
308
|
+
None => return base,
|
309
|
+
};
|
310
|
+
|
311
|
+
// Here there's multiple packages with the same name that differ only in
|
312
|
+
// version, so the version needs to be mangled into the Rust module name
|
313
|
+
// that we're generating. This in theory could look at all of
|
314
|
+
// `versions_with_same_name` and produce a minimal diff, e.g. for 0.1.0
|
315
|
+
// and 0.2.0 this could generate "foo1" and "foo2", but for now
|
316
|
+
// a simpler path is chosen to generate "foo0_1_0" and "foo0_2_0".
|
317
|
+
let version = version
|
318
|
+
.to_string()
|
319
|
+
.replace('.', "_")
|
320
|
+
.replace('-', "_")
|
321
|
+
.replace('+', "_")
|
322
|
+
.to_snake_case();
|
323
|
+
format!("{base}{version}")
|
324
|
+
}
|
325
|
+
|
326
|
+
fn generate(&mut self, resolve: &Resolve, id: WorldId) -> anyhow::Result<String> {
|
327
|
+
self.types.analyze(resolve, id);
|
328
|
+
for (i, te) in self.opts.trappable_error_type.iter().enumerate() {
|
329
|
+
let id = resolve_type_in_package(resolve, &te.wit_path)
|
330
|
+
.context(format!("resolving {:?}", te))
|
331
|
+
.unwrap();
|
332
|
+
let name = format!("_TrappableError{i}");
|
333
|
+
uwriteln!(self.src, "type {name} = {};", te.rust_type_name);
|
334
|
+
let prev = self.trappable_errors.insert(id, name);
|
335
|
+
assert!(prev.is_none());
|
336
|
+
}
|
337
|
+
|
338
|
+
// Convert all entries in `with` as relative to the root of where the
|
339
|
+
// macro itself is invoked. This emits a `pub use` to bring the name
|
340
|
+
// into scope under an "anonymous name" which then replaces the `with`
|
341
|
+
// map entry.
|
342
|
+
let mut with = self.opts.with.iter_mut().collect::<Vec<_>>();
|
343
|
+
with.sort();
|
344
|
+
for (i, (_k, v)) in with.into_iter().enumerate() {
|
345
|
+
let name = format!("__with_name{i}");
|
346
|
+
uwriteln!(self.src, "#[doc(hidden)]\npub use {v} as {name};");
|
347
|
+
*v = name;
|
348
|
+
}
|
349
|
+
|
350
|
+
let world = &resolve.worlds[id];
|
351
|
+
for (name, import) in world.imports.iter() {
|
352
|
+
if !self.opts.only_interfaces || matches!(import, WorldItem::Interface { .. }) {
|
353
|
+
self.import(resolve, id, name, import);
|
354
|
+
}
|
355
|
+
}
|
356
|
+
|
357
|
+
for (name, export) in world.exports.iter() {
|
358
|
+
if !self.opts.only_interfaces || matches!(export, WorldItem::Interface { .. }) {
|
359
|
+
self.export(resolve, name, export);
|
360
|
+
}
|
361
|
+
}
|
362
|
+
self.finish(resolve, id)
|
363
|
+
}
|
364
|
+
|
365
|
+
fn import(&mut self, resolve: &Resolve, world: WorldId, name: &WorldKey, item: &WorldItem) {
|
366
|
+
let mut gen = InterfaceGenerator::new(self, resolve);
|
367
|
+
match item {
|
368
|
+
WorldItem::Function(func) => {
|
369
|
+
// Only generate a trait signature for free functions since
|
370
|
+
// resource-related functions get their trait signatures
|
371
|
+
// during `type_resource`.
|
372
|
+
let sig = if let FunctionKind::Freestanding = func.kind {
|
373
|
+
gen.generate_function_trait_sig(func);
|
374
|
+
Some(mem::take(&mut gen.src).into())
|
375
|
+
} else {
|
376
|
+
None
|
377
|
+
};
|
378
|
+
gen.generate_add_function_to_linker(TypeOwner::World(world), func, "linker");
|
379
|
+
let add_to_linker = gen.src.into();
|
380
|
+
self.import_functions.push(ImportFunction {
|
381
|
+
func: func.clone(),
|
382
|
+
sig,
|
383
|
+
add_to_linker,
|
384
|
+
});
|
385
|
+
}
|
386
|
+
WorldItem::Interface { id, .. } => {
|
387
|
+
gen.gen.interface_last_seen_as_import.insert(*id, true);
|
388
|
+
gen.current_interface = Some((*id, name, false));
|
389
|
+
let snake = match name {
|
390
|
+
WorldKey::Name(s) => s.to_snake_case(),
|
391
|
+
WorldKey::Interface(id) => resolve.interfaces[*id]
|
392
|
+
.name
|
393
|
+
.as_ref()
|
394
|
+
.unwrap()
|
395
|
+
.to_snake_case(),
|
396
|
+
};
|
397
|
+
let module = if gen.gen.name_interface(resolve, *id, name, false) {
|
398
|
+
// If this interface is remapped then that means that it was
|
399
|
+
// provided via the `with` key in the bindgen configuration.
|
400
|
+
// That means that bindings generation is skipped here. To
|
401
|
+
// accomodate future bindgens depending on this bindgen
|
402
|
+
// though we still generate a module which reexports the
|
403
|
+
// original module. This helps maintain the same output
|
404
|
+
// structure regardless of whether `with` is used.
|
405
|
+
let name_at_root = match &gen.gen.interface_names[id] {
|
406
|
+
InterfaceName::Remapped { name_at_root, .. } => name_at_root,
|
407
|
+
InterfaceName::Path(_) => unreachable!(),
|
408
|
+
};
|
409
|
+
let path_to_root = gen.path_to_root();
|
410
|
+
format!(
|
411
|
+
"
|
412
|
+
pub mod {snake} {{
|
413
|
+
#[allow(unused_imports)]
|
414
|
+
pub use {path_to_root}{name_at_root}::*;
|
415
|
+
}}
|
416
|
+
"
|
417
|
+
)
|
418
|
+
} else {
|
419
|
+
// If this interface is not remapped then it's time to
|
420
|
+
// actually generate bindings here.
|
421
|
+
gen.types(*id);
|
422
|
+
let key_name = resolve.name_world_key(name);
|
423
|
+
gen.generate_add_to_linker(*id, &key_name);
|
424
|
+
|
425
|
+
let module = &gen.src[..];
|
426
|
+
let wt = gen.gen.wasmtime_path();
|
427
|
+
|
428
|
+
format!(
|
429
|
+
"
|
430
|
+
#[allow(clippy::all)]
|
431
|
+
pub mod {snake} {{
|
432
|
+
#[allow(unused_imports)]
|
433
|
+
use {wt}::component::__internal::anyhow;
|
434
|
+
|
435
|
+
{module}
|
436
|
+
}}
|
437
|
+
"
|
438
|
+
)
|
439
|
+
};
|
440
|
+
self.import_interfaces
|
441
|
+
.push((module, self.interface_names[id].clone()));
|
442
|
+
}
|
443
|
+
WorldItem::Type(ty) => {
|
444
|
+
let name = match name {
|
445
|
+
WorldKey::Name(name) => name,
|
446
|
+
WorldKey::Interface(_) => unreachable!(),
|
447
|
+
};
|
448
|
+
gen.define_type(name, *ty);
|
449
|
+
let body = mem::take(&mut gen.src);
|
450
|
+
self.src.push_str(&body);
|
451
|
+
}
|
452
|
+
};
|
453
|
+
}
|
454
|
+
|
455
|
+
fn export(&mut self, resolve: &Resolve, name: &WorldKey, item: &WorldItem) {
|
456
|
+
let wt = self.wasmtime_path();
|
457
|
+
let mut gen = InterfaceGenerator::new(self, resolve);
|
458
|
+
let (field, ty, getter) = match item {
|
459
|
+
WorldItem::Function(func) => {
|
460
|
+
gen.define_rust_guest_export(resolve, None, func);
|
461
|
+
let body = mem::take(&mut gen.src).into();
|
462
|
+
let (_name, getter) = gen.extract_typed_function(func);
|
463
|
+
assert!(gen.src.is_empty());
|
464
|
+
self.exports.funcs.push(body);
|
465
|
+
(
|
466
|
+
func_field_name(resolve, func),
|
467
|
+
format!("{wt}::component::Func"),
|
468
|
+
getter,
|
469
|
+
)
|
470
|
+
}
|
471
|
+
WorldItem::Type(_) => unreachable!(),
|
472
|
+
WorldItem::Interface { id, .. } => {
|
473
|
+
gen.gen.interface_last_seen_as_import.insert(*id, false);
|
474
|
+
gen.gen.name_interface(resolve, *id, name, true);
|
475
|
+
gen.current_interface = Some((*id, name, true));
|
476
|
+
gen.types(*id);
|
477
|
+
let struct_name = "Guest";
|
478
|
+
let iface = &resolve.interfaces[*id];
|
479
|
+
let iface_name = match name {
|
480
|
+
WorldKey::Name(name) => name,
|
481
|
+
WorldKey::Interface(_) => iface.name.as_ref().unwrap(),
|
482
|
+
};
|
483
|
+
uwriteln!(gen.src, "pub struct {struct_name} {{");
|
484
|
+
for (_, func) in iface.functions.iter() {
|
485
|
+
uwriteln!(
|
486
|
+
gen.src,
|
487
|
+
"{}: {wt}::component::Func,",
|
488
|
+
func_field_name(resolve, func)
|
489
|
+
);
|
490
|
+
}
|
491
|
+
uwriteln!(gen.src, "}}");
|
492
|
+
|
493
|
+
uwriteln!(gen.src, "impl {struct_name} {{");
|
494
|
+
uwrite!(
|
495
|
+
gen.src,
|
496
|
+
"
|
497
|
+
pub fn new(
|
498
|
+
__exports: &mut {wt}::component::ExportInstance<'_, '_>,
|
499
|
+
) -> {wt}::Result<{struct_name}> {{
|
500
|
+
"
|
501
|
+
);
|
502
|
+
let mut fields = Vec::new();
|
503
|
+
for (_, func) in iface.functions.iter() {
|
504
|
+
let (name, getter) = gen.extract_typed_function(func);
|
505
|
+
uwriteln!(gen.src, "let {name} = {getter};");
|
506
|
+
fields.push(name);
|
507
|
+
}
|
508
|
+
uwriteln!(gen.src, "Ok({struct_name} {{");
|
509
|
+
for name in fields {
|
510
|
+
uwriteln!(gen.src, "{name},");
|
511
|
+
}
|
512
|
+
uwriteln!(gen.src, "}})");
|
513
|
+
uwriteln!(gen.src, "}}");
|
514
|
+
|
515
|
+
let mut resource_methods = IndexMap::new();
|
516
|
+
|
517
|
+
for (_, func) in iface.functions.iter() {
|
518
|
+
match func.kind {
|
519
|
+
FunctionKind::Freestanding => {
|
520
|
+
gen.define_rust_guest_export(resolve, Some(name), func);
|
521
|
+
}
|
522
|
+
FunctionKind::Method(id)
|
523
|
+
| FunctionKind::Constructor(id)
|
524
|
+
| FunctionKind::Static(id) => {
|
525
|
+
resource_methods.entry(id).or_insert(Vec::new()).push(func);
|
526
|
+
}
|
527
|
+
}
|
528
|
+
}
|
529
|
+
|
530
|
+
for (id, _) in resource_methods.iter() {
|
531
|
+
let name = resolve.types[*id].name.as_ref().unwrap();
|
532
|
+
let snake = name.to_snake_case();
|
533
|
+
let camel = name.to_upper_camel_case();
|
534
|
+
uwriteln!(
|
535
|
+
gen.src,
|
536
|
+
"pub fn {snake}(&self) -> Guest{camel}<'_> {{
|
537
|
+
Guest{camel} {{ funcs: self }}
|
538
|
+
}}"
|
539
|
+
);
|
540
|
+
}
|
541
|
+
|
542
|
+
uwriteln!(gen.src, "}}");
|
543
|
+
|
544
|
+
for (id, methods) in resource_methods {
|
545
|
+
let resource_name = resolve.types[id].name.as_ref().unwrap();
|
546
|
+
let camel = resource_name.to_upper_camel_case();
|
547
|
+
uwriteln!(gen.src, "impl Guest{camel}<'_> {{");
|
548
|
+
for method in methods {
|
549
|
+
gen.define_rust_guest_export(resolve, Some(name), method);
|
550
|
+
}
|
551
|
+
uwriteln!(gen.src, "}}");
|
552
|
+
}
|
553
|
+
|
554
|
+
let module = &gen.src[..];
|
555
|
+
let snake = to_rust_ident(iface_name);
|
556
|
+
|
557
|
+
let module = format!(
|
558
|
+
"
|
559
|
+
#[allow(clippy::all)]
|
560
|
+
pub mod {snake} {{
|
561
|
+
#[allow(unused_imports)]
|
562
|
+
use {wt}::component::__internal::anyhow;
|
563
|
+
|
564
|
+
{module}
|
565
|
+
}}
|
566
|
+
"
|
567
|
+
);
|
568
|
+
let pkgname = match name {
|
569
|
+
WorldKey::Name(_) => None,
|
570
|
+
WorldKey::Interface(_) => {
|
571
|
+
Some(resolve.packages[iface.package.unwrap()].name.clone())
|
572
|
+
}
|
573
|
+
};
|
574
|
+
self.exports
|
575
|
+
.modules
|
576
|
+
.push((module, self.interface_names[id].clone()));
|
577
|
+
|
578
|
+
let name = resolve.name_world_key(name);
|
579
|
+
let (path, method_name) = match pkgname {
|
580
|
+
Some(pkgname) => (
|
581
|
+
format!(
|
582
|
+
"exports::{}::{}::{snake}::{struct_name}",
|
583
|
+
pkgname.namespace.to_snake_case(),
|
584
|
+
self.name_package_module(resolve, iface.package.unwrap()),
|
585
|
+
),
|
586
|
+
format!(
|
587
|
+
"{}_{}_{snake}",
|
588
|
+
pkgname.namespace.to_snake_case(),
|
589
|
+
self.name_package_module(resolve, iface.package.unwrap())
|
590
|
+
),
|
591
|
+
),
|
592
|
+
None => (format!("exports::{snake}::{struct_name}"), snake.clone()),
|
593
|
+
};
|
594
|
+
let getter = format!(
|
595
|
+
"\
|
596
|
+
{path}::new(
|
597
|
+
&mut __exports.instance(\"{name}\")
|
598
|
+
.ok_or_else(|| anyhow::anyhow!(\"exported instance `{name}` not present\"))?
|
599
|
+
)?\
|
600
|
+
"
|
601
|
+
);
|
602
|
+
let field = format!("interface{}", self.exports.fields.len());
|
603
|
+
self.exports.funcs.push(format!(
|
604
|
+
"
|
605
|
+
pub fn {method_name}(&self) -> &{path} {{
|
606
|
+
&self.{field}
|
607
|
+
}}
|
608
|
+
",
|
609
|
+
));
|
610
|
+
(field, path, getter)
|
611
|
+
}
|
612
|
+
};
|
613
|
+
let prev = self.exports.fields.insert(field, (ty, getter));
|
614
|
+
assert!(prev.is_none());
|
615
|
+
}
|
616
|
+
|
617
|
+
fn build_world_struct(&mut self, resolve: &Resolve, world: WorldId) {
|
618
|
+
let wt = self.wasmtime_path();
|
619
|
+
let camel = to_rust_upper_camel_case(&resolve.worlds[world].name);
|
620
|
+
uwriteln!(self.src, "pub struct {camel} {{");
|
621
|
+
for (name, (ty, _)) in self.exports.fields.iter() {
|
622
|
+
uwriteln!(self.src, "{name}: {ty},");
|
623
|
+
}
|
624
|
+
self.src.push_str("}\n");
|
625
|
+
|
626
|
+
self.world_imports_trait(resolve, world);
|
627
|
+
|
628
|
+
uwriteln!(self.src, "const _: () = {{");
|
629
|
+
uwriteln!(
|
630
|
+
self.src,
|
631
|
+
"
|
632
|
+
#[allow(unused_imports)]
|
633
|
+
use {wt}::component::__internal::anyhow;
|
634
|
+
"
|
635
|
+
);
|
636
|
+
|
637
|
+
uwriteln!(self.src, "impl {camel} {{");
|
638
|
+
self.world_add_to_linker(resolve, world);
|
639
|
+
|
640
|
+
let (async_, async__, send, await_) = if self.opts.async_.maybe_async() {
|
641
|
+
("async", "_async", ":Send", ".await")
|
642
|
+
} else {
|
643
|
+
("", "", "", "")
|
644
|
+
};
|
645
|
+
uwriteln!(
|
646
|
+
self.src,
|
647
|
+
"
|
648
|
+
/// Instantiates the provided `module` using the specified
|
649
|
+
/// parameters, wrapping up the result in a structure that
|
650
|
+
/// translates between wasm and the host.
|
651
|
+
pub {async_} fn instantiate{async__}<T {send}>(
|
652
|
+
mut store: impl {wt}::AsContextMut<Data = T>,
|
653
|
+
component: &{wt}::component::Component,
|
654
|
+
linker: &{wt}::component::Linker<T>,
|
655
|
+
) -> {wt}::Result<(Self, {wt}::component::Instance)> {{
|
656
|
+
let instance = linker.instantiate{async__}(&mut store, component){await_}?;
|
657
|
+
Ok((Self::new(store, &instance)?, instance))
|
658
|
+
}}
|
659
|
+
|
660
|
+
/// Instantiates a pre-instantiated module using the specified
|
661
|
+
/// parameters, wrapping up the result in a structure that
|
662
|
+
/// translates between wasm and the host.
|
663
|
+
pub {async_} fn instantiate_pre<T {send}>(
|
664
|
+
mut store: impl {wt}::AsContextMut<Data = T>,
|
665
|
+
instance_pre: &{wt}::component::InstancePre<T>,
|
666
|
+
) -> {wt}::Result<(Self, {wt}::component::Instance)> {{
|
667
|
+
let instance = instance_pre.instantiate{async__}(&mut store){await_}?;
|
668
|
+
Ok((Self::new(store, &instance)?, instance))
|
669
|
+
}}
|
670
|
+
|
671
|
+
/// Low-level creation wrapper for wrapping up the exports
|
672
|
+
/// of the `instance` provided in this structure of wasm
|
673
|
+
/// exports.
|
674
|
+
///
|
675
|
+
/// This function will extract exports from the `instance`
|
676
|
+
/// defined within `store` and wrap them all up in the
|
677
|
+
/// returned structure which can be used to interact with
|
678
|
+
/// the wasm module.
|
679
|
+
pub fn new(
|
680
|
+
mut store: impl {wt}::AsContextMut,
|
681
|
+
instance: &{wt}::component::Instance,
|
682
|
+
) -> {wt}::Result<Self> {{
|
683
|
+
let mut store = store.as_context_mut();
|
684
|
+
let mut exports = instance.exports(&mut store);
|
685
|
+
let mut __exports = exports.root();
|
686
|
+
",
|
687
|
+
);
|
688
|
+
for (name, (_, get)) in self.exports.fields.iter() {
|
689
|
+
uwriteln!(self.src, "let {name} = {get};");
|
690
|
+
}
|
691
|
+
uwriteln!(self.src, "Ok({camel} {{");
|
692
|
+
for (name, _) in self.exports.fields.iter() {
|
693
|
+
uwriteln!(self.src, "{name},");
|
694
|
+
}
|
695
|
+
uwriteln!(self.src, "}})");
|
696
|
+
uwriteln!(self.src, "}}"); // close `fn new`
|
697
|
+
|
698
|
+
for func in self.exports.funcs.iter() {
|
699
|
+
self.src.push_str(func);
|
700
|
+
}
|
701
|
+
|
702
|
+
uwriteln!(self.src, "}}"); // close `impl {camel}`
|
703
|
+
|
704
|
+
uwriteln!(self.src, "}};"); // close `const _: () = ...
|
705
|
+
}
|
706
|
+
|
707
|
+
fn finish(&mut self, resolve: &Resolve, world: WorldId) -> anyhow::Result<String> {
|
708
|
+
let remapping_keys = self.opts.with.keys().cloned().collect::<HashSet<String>>();
|
709
|
+
|
710
|
+
let mut unused_keys = remapping_keys
|
711
|
+
.difference(&self.used_with_opts)
|
712
|
+
.map(|s| s.as_str())
|
713
|
+
.collect::<Vec<&str>>();
|
714
|
+
|
715
|
+
unused_keys.sort();
|
716
|
+
|
717
|
+
if !unused_keys.is_empty() {
|
718
|
+
anyhow::bail!("interfaces were specified in the `with` config option but are not referenced in the target world: {unused_keys:?}");
|
719
|
+
}
|
720
|
+
|
721
|
+
if !self.opts.only_interfaces {
|
722
|
+
self.build_world_struct(resolve, world)
|
723
|
+
}
|
724
|
+
|
725
|
+
let imports = mem::take(&mut self.import_interfaces);
|
726
|
+
self.emit_modules(imports);
|
727
|
+
|
728
|
+
let exports = mem::take(&mut self.exports.modules);
|
729
|
+
self.emit_modules(exports);
|
730
|
+
|
731
|
+
let mut src = mem::take(&mut self.src);
|
732
|
+
if self.opts.rustfmt {
|
733
|
+
let mut child = Command::new("rustfmt")
|
734
|
+
.arg("--edition=2018")
|
735
|
+
.stdin(Stdio::piped())
|
736
|
+
.stdout(Stdio::piped())
|
737
|
+
.spawn()
|
738
|
+
.expect("failed to spawn `rustfmt`");
|
739
|
+
child
|
740
|
+
.stdin
|
741
|
+
.take()
|
742
|
+
.unwrap()
|
743
|
+
.write_all(src.as_bytes())
|
744
|
+
.unwrap();
|
745
|
+
src.as_mut_string().truncate(0);
|
746
|
+
child
|
747
|
+
.stdout
|
748
|
+
.take()
|
749
|
+
.unwrap()
|
750
|
+
.read_to_string(src.as_mut_string())
|
751
|
+
.unwrap();
|
752
|
+
let status = child.wait().unwrap();
|
753
|
+
assert!(status.success());
|
754
|
+
}
|
755
|
+
|
756
|
+
Ok(src.into())
|
757
|
+
}
|
758
|
+
|
759
|
+
fn emit_modules(&mut self, modules: Vec<(String, InterfaceName)>) {
|
760
|
+
#[derive(Default)]
|
761
|
+
struct Module {
|
762
|
+
submodules: BTreeMap<String, Module>,
|
763
|
+
contents: Vec<String>,
|
764
|
+
}
|
765
|
+
let mut map = Module::default();
|
766
|
+
for (module, name) in modules {
|
767
|
+
let path = match name {
|
768
|
+
InterfaceName::Remapped { local_path, .. } => local_path,
|
769
|
+
InterfaceName::Path(path) => path,
|
770
|
+
};
|
771
|
+
let mut cur = &mut map;
|
772
|
+
for name in path[..path.len() - 1].iter() {
|
773
|
+
cur = cur
|
774
|
+
.submodules
|
775
|
+
.entry(name.clone())
|
776
|
+
.or_insert(Module::default());
|
777
|
+
}
|
778
|
+
cur.contents.push(module);
|
779
|
+
}
|
780
|
+
|
781
|
+
emit(&mut self.src, map);
|
782
|
+
|
783
|
+
fn emit(me: &mut Source, module: Module) {
|
784
|
+
for (name, submodule) in module.submodules {
|
785
|
+
uwriteln!(me, "pub mod {name} {{");
|
786
|
+
emit(me, submodule);
|
787
|
+
uwriteln!(me, "}}");
|
788
|
+
}
|
789
|
+
for submodule in module.contents {
|
790
|
+
uwriteln!(me, "{submodule}");
|
791
|
+
}
|
792
|
+
}
|
793
|
+
}
|
794
|
+
|
795
|
+
/// Attempts to find the `key`, possibly with the resource projection
|
796
|
+
/// `item`, within the `with` map provided to bindings configuration.
|
797
|
+
fn lookup_replacement(
|
798
|
+
&mut self,
|
799
|
+
resolve: &Resolve,
|
800
|
+
key: &WorldKey,
|
801
|
+
item: Option<&str>,
|
802
|
+
) -> Option<String> {
|
803
|
+
struct Name<'a> {
|
804
|
+
prefix: Prefix,
|
805
|
+
item: Option<&'a str>,
|
806
|
+
}
|
807
|
+
|
808
|
+
#[derive(Copy, Clone)]
|
809
|
+
enum Prefix {
|
810
|
+
Namespace(PackageId),
|
811
|
+
UnversionedPackage(PackageId),
|
812
|
+
VersionedPackage(PackageId),
|
813
|
+
UnversionedInterface(InterfaceId),
|
814
|
+
VersionedInterface(InterfaceId),
|
815
|
+
}
|
816
|
+
|
817
|
+
let prefix = match key {
|
818
|
+
WorldKey::Interface(id) => Prefix::VersionedInterface(*id),
|
819
|
+
|
820
|
+
// Non-interface-keyed names don't get the lookup logic below,
|
821
|
+
// they're relatively uncommon so only lookup the precise key here.
|
822
|
+
WorldKey::Name(key) => {
|
823
|
+
let to_lookup = match item {
|
824
|
+
Some(item) => format!("{key}/{item}"),
|
825
|
+
None => key.to_string(),
|
826
|
+
};
|
827
|
+
let result = self.opts.with.get(&to_lookup).cloned();
|
828
|
+
if result.is_some() {
|
829
|
+
self.used_with_opts.insert(to_lookup.clone());
|
830
|
+
}
|
831
|
+
return result;
|
832
|
+
}
|
833
|
+
};
|
834
|
+
|
835
|
+
// Here names are iteratively attempted as `key` + `item` is "walked to
|
836
|
+
// its root" and each attempt is consulted in `self.opts.with`. This
|
837
|
+
// loop will start at the leaf, the most specific path, and then walk to
|
838
|
+
// the root, popping items, trying to find a result.
|
839
|
+
//
|
840
|
+
// Each time a name is "popped" the projection from the next path is
|
841
|
+
// pushed onto `projection`. This means that if we actually find a match
|
842
|
+
// then `projection` is a collection of namespaces that results in the
|
843
|
+
// final replacement name.
|
844
|
+
let mut name = Name { prefix, item };
|
845
|
+
let mut projection = Vec::new();
|
846
|
+
loop {
|
847
|
+
let lookup = name.lookup_key(resolve);
|
848
|
+
if let Some(renamed) = self.opts.with.get(&lookup) {
|
849
|
+
projection.push(renamed.clone());
|
850
|
+
projection.reverse();
|
851
|
+
self.used_with_opts.insert(lookup);
|
852
|
+
return Some(projection.join("::"));
|
853
|
+
}
|
854
|
+
if !name.pop(resolve, &mut projection) {
|
855
|
+
return None;
|
856
|
+
}
|
857
|
+
}
|
858
|
+
|
859
|
+
impl<'a> Name<'a> {
|
860
|
+
fn lookup_key(&self, resolve: &Resolve) -> String {
|
861
|
+
let mut s = self.prefix.lookup_key(resolve);
|
862
|
+
if let Some(item) = self.item {
|
863
|
+
s.push_str("/");
|
864
|
+
s.push_str(item);
|
865
|
+
}
|
866
|
+
s
|
867
|
+
}
|
868
|
+
|
869
|
+
fn pop(&mut self, resolve: &'a Resolve, projection: &mut Vec<String>) -> bool {
|
870
|
+
match (self.item, self.prefix) {
|
871
|
+
// If this is a versioned resource name, try the unversioned
|
872
|
+
// resource name next.
|
873
|
+
(Some(_), Prefix::VersionedInterface(id)) => {
|
874
|
+
self.prefix = Prefix::UnversionedInterface(id);
|
875
|
+
true
|
876
|
+
}
|
877
|
+
// If this is an unversioned resource name then time to
|
878
|
+
// ignore the resource itself and move on to the next most
|
879
|
+
// specific item, versioned interface names.
|
880
|
+
(Some(item), Prefix::UnversionedInterface(id)) => {
|
881
|
+
self.prefix = Prefix::VersionedInterface(id);
|
882
|
+
self.item = None;
|
883
|
+
projection.push(item.to_upper_camel_case());
|
884
|
+
true
|
885
|
+
}
|
886
|
+
(Some(_), _) => unreachable!(),
|
887
|
+
(None, _) => self.prefix.pop(resolve, projection),
|
888
|
+
}
|
889
|
+
}
|
890
|
+
}
|
891
|
+
|
892
|
+
impl Prefix {
|
893
|
+
fn lookup_key(&self, resolve: &Resolve) -> String {
|
894
|
+
match *self {
|
895
|
+
Prefix::Namespace(id) => resolve.packages[id].name.namespace.clone(),
|
896
|
+
Prefix::UnversionedPackage(id) => {
|
897
|
+
let mut name = resolve.packages[id].name.clone();
|
898
|
+
name.version = None;
|
899
|
+
name.to_string()
|
900
|
+
}
|
901
|
+
Prefix::VersionedPackage(id) => resolve.packages[id].name.to_string(),
|
902
|
+
Prefix::UnversionedInterface(id) => {
|
903
|
+
let id = resolve.id_of(id).unwrap();
|
904
|
+
match id.find('@') {
|
905
|
+
Some(i) => id[..i].to_string(),
|
906
|
+
None => id,
|
907
|
+
}
|
908
|
+
}
|
909
|
+
Prefix::VersionedInterface(id) => resolve.id_of(id).unwrap(),
|
910
|
+
}
|
911
|
+
}
|
912
|
+
|
913
|
+
fn pop(&mut self, resolve: &Resolve, projection: &mut Vec<String>) -> bool {
|
914
|
+
*self = match *self {
|
915
|
+
// try the unversioned interface next
|
916
|
+
Prefix::VersionedInterface(id) => Prefix::UnversionedInterface(id),
|
917
|
+
// try this interface's versioned package next
|
918
|
+
Prefix::UnversionedInterface(id) => {
|
919
|
+
let iface = &resolve.interfaces[id];
|
920
|
+
let name = iface.name.as_ref().unwrap();
|
921
|
+
projection.push(to_rust_ident(name));
|
922
|
+
Prefix::VersionedPackage(iface.package.unwrap())
|
923
|
+
}
|
924
|
+
// try the unversioned package next
|
925
|
+
Prefix::VersionedPackage(id) => Prefix::UnversionedPackage(id),
|
926
|
+
// try this package's namespace next
|
927
|
+
Prefix::UnversionedPackage(id) => {
|
928
|
+
let name = &resolve.packages[id].name;
|
929
|
+
projection.push(to_rust_ident(&name.name));
|
930
|
+
Prefix::Namespace(id)
|
931
|
+
}
|
932
|
+
// nothing left to try any more
|
933
|
+
Prefix::Namespace(_) => return false,
|
934
|
+
};
|
935
|
+
true
|
936
|
+
}
|
937
|
+
}
|
938
|
+
}
|
939
|
+
|
940
|
+
fn wasmtime_path(&self) -> String {
|
941
|
+
self.opts
|
942
|
+
.wasmtime_crate
|
943
|
+
.clone()
|
944
|
+
.unwrap_or("wasmtime".to_string())
|
945
|
+
}
|
946
|
+
}
|
947
|
+
|
948
|
+
impl Wasmtime {
|
949
|
+
fn has_world_imports_trait(&self, resolve: &Resolve, world: WorldId) -> bool {
|
950
|
+
!self.import_functions.is_empty() || get_world_resources(resolve, world).count() > 0
|
951
|
+
}
|
952
|
+
|
953
|
+
fn world_imports_trait(&mut self, resolve: &Resolve, world: WorldId) {
|
954
|
+
if !self.has_world_imports_trait(resolve, world) {
|
955
|
+
return;
|
956
|
+
}
|
957
|
+
|
958
|
+
let wt = self.wasmtime_path();
|
959
|
+
let world_camel = to_rust_upper_camel_case(&resolve.worlds[world].name);
|
960
|
+
if self.opts.async_.maybe_async() {
|
961
|
+
uwriteln!(self.src, "#[{wt}::component::__internal::async_trait]")
|
962
|
+
}
|
963
|
+
uwrite!(self.src, "pub trait {world_camel}Imports");
|
964
|
+
let mut supertraits = vec![];
|
965
|
+
if self.opts.async_.maybe_async() {
|
966
|
+
supertraits.push("Send".to_string());
|
967
|
+
}
|
968
|
+
for resource in get_world_resources(resolve, world) {
|
969
|
+
supertraits.push(format!("Host{}", resource.to_upper_camel_case()));
|
970
|
+
}
|
971
|
+
if !supertraits.is_empty() {
|
972
|
+
uwrite!(self.src, ": {}", supertraits.join(" + "));
|
973
|
+
}
|
974
|
+
uwriteln!(self.src, " {{");
|
975
|
+
for f in self.import_functions.iter() {
|
976
|
+
if let Some(sig) = &f.sig {
|
977
|
+
self.src.push_str(sig);
|
978
|
+
self.src.push_str(";\n");
|
979
|
+
}
|
980
|
+
}
|
981
|
+
uwriteln!(self.src, "}}");
|
982
|
+
|
983
|
+
uwriteln!(
|
984
|
+
self.src,
|
985
|
+
"
|
986
|
+
pub trait {world_camel}ImportsGetHost<T>:
|
987
|
+
Fn(T) -> <Self as {world_camel}ImportsGetHost<T>>::Host
|
988
|
+
+ Send
|
989
|
+
+ Sync
|
990
|
+
+ Copy
|
991
|
+
+ 'static
|
992
|
+
{{
|
993
|
+
type Host: {world_camel}Imports;
|
994
|
+
}}
|
995
|
+
|
996
|
+
impl<F, T, O> {world_camel}ImportsGetHost<T> for F
|
997
|
+
where
|
998
|
+
F: Fn(T) -> O + Send + Sync + Copy + 'static,
|
999
|
+
O: {world_camel}Imports
|
1000
|
+
{{
|
1001
|
+
type Host = O;
|
1002
|
+
}}
|
1003
|
+
"
|
1004
|
+
);
|
1005
|
+
|
1006
|
+
// Generate impl WorldImports for &mut WorldImports
|
1007
|
+
let (async_trait, maybe_send) = if self.opts.async_.maybe_async() {
|
1008
|
+
(
|
1009
|
+
format!("#[{wt}::component::__internal::async_trait]\n"),
|
1010
|
+
"+ Send",
|
1011
|
+
)
|
1012
|
+
} else {
|
1013
|
+
(String::new(), "")
|
1014
|
+
};
|
1015
|
+
if !self.opts.skip_mut_forwarding_impls {
|
1016
|
+
uwriteln!(
|
1017
|
+
self.src,
|
1018
|
+
"{async_trait}impl<_T: {world_camel}Imports + ?Sized {maybe_send}> {world_camel}Imports for &mut _T {{"
|
1019
|
+
);
|
1020
|
+
// Forward each method call to &mut T
|
1021
|
+
for f in self.import_functions.iter() {
|
1022
|
+
if let Some(sig) = &f.sig {
|
1023
|
+
self.src.push_str(sig);
|
1024
|
+
uwrite!(
|
1025
|
+
self.src,
|
1026
|
+
"{{ {world_camel}Imports::{}(*self,",
|
1027
|
+
rust_function_name(&f.func)
|
1028
|
+
);
|
1029
|
+
for (name, _) in f.func.params.iter() {
|
1030
|
+
uwrite!(self.src, "{},", to_rust_ident(name));
|
1031
|
+
}
|
1032
|
+
uwrite!(self.src, ")");
|
1033
|
+
if self.opts.async_.is_import_async(&f.func.name) {
|
1034
|
+
uwrite!(self.src, ".await");
|
1035
|
+
}
|
1036
|
+
uwriteln!(self.src, "}}");
|
1037
|
+
}
|
1038
|
+
}
|
1039
|
+
uwriteln!(self.src, "}}");
|
1040
|
+
}
|
1041
|
+
}
|
1042
|
+
|
1043
|
+
fn import_interface_paths(&self) -> Vec<String> {
|
1044
|
+
self.import_interfaces
|
1045
|
+
.iter()
|
1046
|
+
.map(|(_, name)| match name {
|
1047
|
+
InterfaceName::Path(path) => path.join("::"),
|
1048
|
+
InterfaceName::Remapped { name_at_root, .. } => name_at_root.clone(),
|
1049
|
+
})
|
1050
|
+
.collect()
|
1051
|
+
}
|
1052
|
+
|
1053
|
+
fn world_host_traits(&self, resolve: &Resolve, world: WorldId) -> Vec<String> {
|
1054
|
+
let mut traits = self
|
1055
|
+
.import_interface_paths()
|
1056
|
+
.iter()
|
1057
|
+
.map(|path| format!("{path}::Host"))
|
1058
|
+
.collect::<Vec<_>>();
|
1059
|
+
if self.has_world_imports_trait(resolve, world) {
|
1060
|
+
let world_camel = to_rust_upper_camel_case(&resolve.worlds[world].name);
|
1061
|
+
traits.push(format!("{world_camel}Imports"));
|
1062
|
+
}
|
1063
|
+
if self.opts.async_.maybe_async() {
|
1064
|
+
traits.push("Send".to_string());
|
1065
|
+
}
|
1066
|
+
traits
|
1067
|
+
}
|
1068
|
+
|
1069
|
+
fn world_add_to_linker(&mut self, resolve: &Resolve, world: WorldId) {
|
1070
|
+
let has_world_imports_trait = self.has_world_imports_trait(resolve, world);
|
1071
|
+
if self.import_interfaces.is_empty() && !has_world_imports_trait {
|
1072
|
+
return;
|
1073
|
+
}
|
1074
|
+
|
1075
|
+
let camel = to_rust_upper_camel_case(&resolve.worlds[world].name);
|
1076
|
+
let data_bounds = if self.opts.is_store_data_send() {
|
1077
|
+
"T: Send,"
|
1078
|
+
} else {
|
1079
|
+
""
|
1080
|
+
};
|
1081
|
+
let wt = self.wasmtime_path();
|
1082
|
+
if has_world_imports_trait {
|
1083
|
+
uwrite!(
|
1084
|
+
self.src,
|
1085
|
+
"
|
1086
|
+
pub fn add_to_linker_imports_get_host<T>(
|
1087
|
+
linker: &mut {wt}::component::Linker<T>,
|
1088
|
+
host_getter: impl for<'a> {camel}ImportsGetHost<&'a mut T>,
|
1089
|
+
) -> {wt}::Result<()>
|
1090
|
+
where {data_bounds}
|
1091
|
+
{{
|
1092
|
+
let mut linker = linker.root();
|
1093
|
+
"
|
1094
|
+
);
|
1095
|
+
for name in get_world_resources(resolve, world) {
|
1096
|
+
let camel = name.to_upper_camel_case();
|
1097
|
+
uwriteln!(
|
1098
|
+
self.src,
|
1099
|
+
"
|
1100
|
+
linker.resource(
|
1101
|
+
\"{name}\",
|
1102
|
+
{wt}::component::ResourceType::host::<{camel}>(),
|
1103
|
+
move |mut store, rep| -> {wt}::Result<()> {{
|
1104
|
+
Host{camel}::drop(&mut host_getter(store.data_mut()), {wt}::component::Resource::new_own(rep))
|
1105
|
+
}},
|
1106
|
+
)?;"
|
1107
|
+
);
|
1108
|
+
}
|
1109
|
+
for f in self.import_functions.iter() {
|
1110
|
+
self.src.push_str(&f.add_to_linker);
|
1111
|
+
self.src.push_str("\n");
|
1112
|
+
}
|
1113
|
+
uwriteln!(self.src, "Ok(())\n}}");
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
let host_bounds = format!("U: {}", self.world_host_traits(resolve, world).join(" + "));
|
1117
|
+
|
1118
|
+
if !self.opts.skip_mut_forwarding_impls {
|
1119
|
+
uwriteln!(
|
1120
|
+
self.src,
|
1121
|
+
"
|
1122
|
+
pub fn add_to_linker<T, U>(
|
1123
|
+
linker: &mut {wt}::component::Linker<T>,
|
1124
|
+
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
|
1125
|
+
) -> {wt}::Result<()>
|
1126
|
+
where
|
1127
|
+
{data_bounds}
|
1128
|
+
{host_bounds}
|
1129
|
+
{{
|
1130
|
+
"
|
1131
|
+
);
|
1132
|
+
if has_world_imports_trait {
|
1133
|
+
uwriteln!(
|
1134
|
+
self.src,
|
1135
|
+
"Self::add_to_linker_imports_get_host(linker, get)?;"
|
1136
|
+
);
|
1137
|
+
}
|
1138
|
+
for path in self.import_interface_paths() {
|
1139
|
+
uwriteln!(self.src, "{path}::add_to_linker(linker, get)?;");
|
1140
|
+
}
|
1141
|
+
uwriteln!(self.src, "Ok(())\n}}");
|
1142
|
+
}
|
1143
|
+
}
|
1144
|
+
}
|
1145
|
+
|
1146
|
+
fn resolve_type_in_package(resolve: &Resolve, wit_path: &str) -> anyhow::Result<TypeId> {
|
1147
|
+
// Build a map, `packages_to_omit_version`, where that package can be
|
1148
|
+
// uniquely identified by its name/namespace combo and as such version
|
1149
|
+
// information is not required.
|
1150
|
+
let mut packages_with_same_name = HashMap::new();
|
1151
|
+
for (id, pkg) in resolve.packages.iter() {
|
1152
|
+
packages_with_same_name
|
1153
|
+
.entry(PackageName {
|
1154
|
+
version: None,
|
1155
|
+
..pkg.name.clone()
|
1156
|
+
})
|
1157
|
+
.or_insert(Vec::new())
|
1158
|
+
.push(id)
|
1159
|
+
}
|
1160
|
+
let packages_to_omit_version = packages_with_same_name
|
1161
|
+
.iter()
|
1162
|
+
.filter_map(
|
1163
|
+
|(_name, list)| {
|
1164
|
+
if list.len() == 1 {
|
1165
|
+
Some(list)
|
1166
|
+
} else {
|
1167
|
+
None
|
1168
|
+
}
|
1169
|
+
},
|
1170
|
+
)
|
1171
|
+
.flat_map(|l| l)
|
1172
|
+
.collect::<HashSet<_>>();
|
1173
|
+
|
1174
|
+
let mut found_interface = false;
|
1175
|
+
|
1176
|
+
// Look for an interface whose assigned prefix starts `wit_path`. Not
|
1177
|
+
// exactly the most efficient thing ever but is sufficient for now.
|
1178
|
+
for (id, interface) in resolve.interfaces.iter() {
|
1179
|
+
found_interface = true;
|
1180
|
+
|
1181
|
+
let iface_name = match &interface.name {
|
1182
|
+
Some(name) => name,
|
1183
|
+
None => continue,
|
1184
|
+
};
|
1185
|
+
let pkgid = interface.package.unwrap();
|
1186
|
+
let pkgname = &resolve.packages[pkgid].name;
|
1187
|
+
let prefix = if packages_to_omit_version.contains(&pkgid) {
|
1188
|
+
let mut name = pkgname.clone();
|
1189
|
+
name.version = None;
|
1190
|
+
format!("{name}/{iface_name}")
|
1191
|
+
} else {
|
1192
|
+
resolve.id_of(id).unwrap()
|
1193
|
+
};
|
1194
|
+
let wit_path = match wit_path.strip_prefix(&prefix) {
|
1195
|
+
Some(rest) => rest,
|
1196
|
+
None => continue,
|
1197
|
+
};
|
1198
|
+
|
1199
|
+
let wit_path = match wit_path.strip_prefix('/') {
|
1200
|
+
Some(rest) => rest,
|
1201
|
+
None => continue,
|
1202
|
+
};
|
1203
|
+
|
1204
|
+
match interface.types.get(wit_path).copied() {
|
1205
|
+
Some(type_id) => return Ok(type_id),
|
1206
|
+
None => continue,
|
1207
|
+
}
|
1208
|
+
}
|
1209
|
+
|
1210
|
+
if found_interface {
|
1211
|
+
bail!("no types found to match `{wit_path}` in interface");
|
1212
|
+
}
|
1213
|
+
|
1214
|
+
bail!("no package/interface found to match `{wit_path}`")
|
1215
|
+
}
|
1216
|
+
|
1217
|
+
struct InterfaceGenerator<'a> {
|
1218
|
+
src: Source,
|
1219
|
+
gen: &'a mut Wasmtime,
|
1220
|
+
resolve: &'a Resolve,
|
1221
|
+
current_interface: Option<(InterfaceId, &'a WorldKey, bool)>,
|
1222
|
+
}
|
1223
|
+
|
1224
|
+
impl<'a> InterfaceGenerator<'a> {
|
1225
|
+
fn new(gen: &'a mut Wasmtime, resolve: &'a Resolve) -> InterfaceGenerator<'a> {
|
1226
|
+
InterfaceGenerator {
|
1227
|
+
src: Source::default(),
|
1228
|
+
gen,
|
1229
|
+
resolve,
|
1230
|
+
current_interface: None,
|
1231
|
+
}
|
1232
|
+
}
|
1233
|
+
|
1234
|
+
fn types_imported(&self) -> bool {
|
1235
|
+
match self.current_interface {
|
1236
|
+
Some((_, _, is_export)) => !is_export,
|
1237
|
+
None => true,
|
1238
|
+
}
|
1239
|
+
}
|
1240
|
+
|
1241
|
+
fn types(&mut self, id: InterfaceId) {
|
1242
|
+
for (name, id) in self.resolve.interfaces[id].types.iter() {
|
1243
|
+
self.define_type(name, *id);
|
1244
|
+
}
|
1245
|
+
}
|
1246
|
+
|
1247
|
+
fn define_type(&mut self, name: &str, id: TypeId) {
|
1248
|
+
let ty = &self.resolve.types[id];
|
1249
|
+
match &ty.kind {
|
1250
|
+
TypeDefKind::Record(record) => self.type_record(id, name, record, &ty.docs),
|
1251
|
+
TypeDefKind::Flags(flags) => self.type_flags(id, name, flags, &ty.docs),
|
1252
|
+
TypeDefKind::Tuple(tuple) => self.type_tuple(id, name, tuple, &ty.docs),
|
1253
|
+
TypeDefKind::Enum(enum_) => self.type_enum(id, name, enum_, &ty.docs),
|
1254
|
+
TypeDefKind::Variant(variant) => self.type_variant(id, name, variant, &ty.docs),
|
1255
|
+
TypeDefKind::Option(t) => self.type_option(id, name, t, &ty.docs),
|
1256
|
+
TypeDefKind::Result(r) => self.type_result(id, name, r, &ty.docs),
|
1257
|
+
TypeDefKind::List(t) => self.type_list(id, name, t, &ty.docs),
|
1258
|
+
TypeDefKind::Type(t) => self.type_alias(id, name, t, &ty.docs),
|
1259
|
+
TypeDefKind::Future(_) => todo!("generate for future"),
|
1260
|
+
TypeDefKind::Stream(_) => todo!("generate for stream"),
|
1261
|
+
TypeDefKind::Handle(handle) => self.type_handle(id, name, handle, &ty.docs),
|
1262
|
+
TypeDefKind::Resource => self.type_resource(id, name, ty, &ty.docs),
|
1263
|
+
TypeDefKind::Unknown => unreachable!(),
|
1264
|
+
}
|
1265
|
+
}
|
1266
|
+
|
1267
|
+
fn type_handle(&mut self, id: TypeId, name: &str, handle: &Handle, docs: &Docs) {
|
1268
|
+
self.rustdoc(docs);
|
1269
|
+
let name = name.to_upper_camel_case();
|
1270
|
+
uwriteln!(self.src, "pub type {name} = ");
|
1271
|
+
self.print_handle(handle);
|
1272
|
+
self.push_str(";\n");
|
1273
|
+
self.assert_type(id, &name);
|
1274
|
+
}
|
1275
|
+
|
1276
|
+
fn type_resource(&mut self, id: TypeId, name: &str, resource: &TypeDef, docs: &Docs) {
|
1277
|
+
let camel = name.to_upper_camel_case();
|
1278
|
+
let wt = self.gen.wasmtime_path();
|
1279
|
+
|
1280
|
+
if self.types_imported() {
|
1281
|
+
self.rustdoc(docs);
|
1282
|
+
|
1283
|
+
let replacement = match self.current_interface {
|
1284
|
+
Some((_, key, _)) => self.gen.lookup_replacement(self.resolve, key, Some(name)),
|
1285
|
+
None => {
|
1286
|
+
self.gen.used_with_opts.insert(name.into());
|
1287
|
+
self.gen.opts.with.get(name).cloned()
|
1288
|
+
}
|
1289
|
+
};
|
1290
|
+
match replacement {
|
1291
|
+
Some(path) => {
|
1292
|
+
uwriteln!(
|
1293
|
+
self.src,
|
1294
|
+
"pub use {}{path} as {camel};",
|
1295
|
+
self.path_to_root()
|
1296
|
+
);
|
1297
|
+
}
|
1298
|
+
None => {
|
1299
|
+
uwriteln!(self.src, "pub enum {camel} {{}}");
|
1300
|
+
}
|
1301
|
+
}
|
1302
|
+
|
1303
|
+
// Generate resource trait
|
1304
|
+
if self.gen.opts.async_.maybe_async() {
|
1305
|
+
uwriteln!(self.src, "#[{wt}::component::__internal::async_trait]")
|
1306
|
+
}
|
1307
|
+
uwriteln!(self.src, "pub trait Host{camel} {{");
|
1308
|
+
|
1309
|
+
let mut functions = match resource.owner {
|
1310
|
+
TypeOwner::World(id) => self.resolve.worlds[id]
|
1311
|
+
.imports
|
1312
|
+
.values()
|
1313
|
+
.filter_map(|item| match item {
|
1314
|
+
WorldItem::Function(f) => Some(f),
|
1315
|
+
_ => None,
|
1316
|
+
})
|
1317
|
+
.collect(),
|
1318
|
+
TypeOwner::Interface(id) => self.resolve.interfaces[id]
|
1319
|
+
.functions
|
1320
|
+
.values()
|
1321
|
+
.collect::<Vec<_>>(),
|
1322
|
+
TypeOwner::None => {
|
1323
|
+
panic!("A resource must be owned by a world or interface");
|
1324
|
+
}
|
1325
|
+
};
|
1326
|
+
|
1327
|
+
functions.retain(|func| match func.kind {
|
1328
|
+
FunctionKind::Freestanding => false,
|
1329
|
+
FunctionKind::Method(resource)
|
1330
|
+
| FunctionKind::Static(resource)
|
1331
|
+
| FunctionKind::Constructor(resource) => id == resource,
|
1332
|
+
});
|
1333
|
+
|
1334
|
+
for func in &functions {
|
1335
|
+
self.generate_function_trait_sig(func);
|
1336
|
+
self.push_str(";\n");
|
1337
|
+
}
|
1338
|
+
|
1339
|
+
uwrite!(
|
1340
|
+
self.src,
|
1341
|
+
"fn drop(&mut self, rep: {wt}::component::Resource<{camel}>) -> {wt}::Result<()>;"
|
1342
|
+
);
|
1343
|
+
|
1344
|
+
uwriteln!(self.src, "}}");
|
1345
|
+
|
1346
|
+
// Generate impl HostResource for &mut HostResource
|
1347
|
+
if !self.gen.opts.skip_mut_forwarding_impls {
|
1348
|
+
let (async_trait, maybe_send) = if self.gen.opts.async_.maybe_async() {
|
1349
|
+
(
|
1350
|
+
format!("#[{wt}::component::__internal::async_trait]\n"),
|
1351
|
+
"+ Send",
|
1352
|
+
)
|
1353
|
+
} else {
|
1354
|
+
(String::new(), "")
|
1355
|
+
};
|
1356
|
+
uwriteln!(
|
1357
|
+
self.src,
|
1358
|
+
"{async_trait}impl <_T: Host{camel} + ?Sized {maybe_send}> Host{camel} for &mut _T {{"
|
1359
|
+
);
|
1360
|
+
for func in &functions {
|
1361
|
+
self.generate_function_trait_sig(func);
|
1362
|
+
uwrite!(
|
1363
|
+
self.src,
|
1364
|
+
"{{ Host{camel}::{}(*self,",
|
1365
|
+
rust_function_name(func)
|
1366
|
+
);
|
1367
|
+
for (name, _) in func.params.iter() {
|
1368
|
+
uwrite!(self.src, "{},", to_rust_ident(name));
|
1369
|
+
}
|
1370
|
+
uwrite!(self.src, ")");
|
1371
|
+
if self.gen.opts.async_.is_import_async(&func.name) {
|
1372
|
+
uwrite!(self.src, ".await");
|
1373
|
+
}
|
1374
|
+
uwriteln!(self.src, "}}");
|
1375
|
+
}
|
1376
|
+
uwriteln!(self.src, "
|
1377
|
+
fn drop(&mut self, rep: {wt}::component::Resource<{camel}>) -> {wt}::Result<()> {{
|
1378
|
+
Host{camel}::drop(*self, rep)
|
1379
|
+
}}",
|
1380
|
+
);
|
1381
|
+
uwriteln!(self.src, "}}");
|
1382
|
+
}
|
1383
|
+
} else {
|
1384
|
+
self.rustdoc(docs);
|
1385
|
+
uwriteln!(
|
1386
|
+
self.src,
|
1387
|
+
"
|
1388
|
+
pub type {camel} = {wt}::component::ResourceAny;
|
1389
|
+
|
1390
|
+
pub struct Guest{camel}<'a> {{
|
1391
|
+
funcs: &'a Guest,
|
1392
|
+
}}
|
1393
|
+
"
|
1394
|
+
);
|
1395
|
+
}
|
1396
|
+
}
|
1397
|
+
|
1398
|
+
fn type_record(&mut self, id: TypeId, _name: &str, record: &Record, docs: &Docs) {
|
1399
|
+
let info = self.info(id);
|
1400
|
+
let wt = self.gen.wasmtime_path();
|
1401
|
+
|
1402
|
+
// We use a BTree set to make sure we don't have any duplicates and we have a stable order
|
1403
|
+
let additional_derives: BTreeSet<String> = self
|
1404
|
+
.gen
|
1405
|
+
.opts
|
1406
|
+
.additional_derive_attributes
|
1407
|
+
.iter()
|
1408
|
+
.cloned()
|
1409
|
+
.collect();
|
1410
|
+
|
1411
|
+
for (name, mode) in self.modes_of(id) {
|
1412
|
+
let lt = self.lifetime_for(&info, mode);
|
1413
|
+
self.rustdoc(docs);
|
1414
|
+
|
1415
|
+
let mut derives = additional_derives.clone();
|
1416
|
+
|
1417
|
+
uwriteln!(self.src, "#[derive({wt}::component::ComponentType)]");
|
1418
|
+
if lt.is_none() {
|
1419
|
+
uwriteln!(self.src, "#[derive({wt}::component::Lift)]");
|
1420
|
+
}
|
1421
|
+
uwriteln!(self.src, "#[derive({wt}::component::Lower)]");
|
1422
|
+
self.push_str("#[component(record)]\n");
|
1423
|
+
if let Some(path) = &self.gen.opts.wasmtime_crate {
|
1424
|
+
uwriteln!(self.src, "#[component(wasmtime_crate = {path})]\n");
|
1425
|
+
}
|
1426
|
+
|
1427
|
+
if info.is_copy() {
|
1428
|
+
derives.extend(["Copy", "Clone"].into_iter().map(|s| s.to_string()));
|
1429
|
+
} else if info.is_clone() {
|
1430
|
+
derives.insert("Clone".to_string());
|
1431
|
+
}
|
1432
|
+
|
1433
|
+
if !derives.is_empty() {
|
1434
|
+
self.push_str("#[derive(");
|
1435
|
+
self.push_str(&derives.into_iter().collect::<Vec<_>>().join(", "));
|
1436
|
+
self.push_str(")]\n")
|
1437
|
+
}
|
1438
|
+
|
1439
|
+
self.push_str(&format!("pub struct {}", name));
|
1440
|
+
self.print_generics(lt);
|
1441
|
+
self.push_str(" {\n");
|
1442
|
+
for field in record.fields.iter() {
|
1443
|
+
self.rustdoc(&field.docs);
|
1444
|
+
self.push_str(&format!("#[component(name = \"{}\")]\n", field.name));
|
1445
|
+
self.push_str("pub ");
|
1446
|
+
self.push_str(&to_rust_ident(&field.name));
|
1447
|
+
self.push_str(": ");
|
1448
|
+
self.print_ty(&field.ty, mode);
|
1449
|
+
self.push_str(",\n");
|
1450
|
+
}
|
1451
|
+
self.push_str("}\n");
|
1452
|
+
|
1453
|
+
self.push_str("impl");
|
1454
|
+
self.print_generics(lt);
|
1455
|
+
self.push_str(" core::fmt::Debug for ");
|
1456
|
+
self.push_str(&name);
|
1457
|
+
self.print_generics(lt);
|
1458
|
+
self.push_str(" {\n");
|
1459
|
+
self.push_str(
|
1460
|
+
"fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {\n",
|
1461
|
+
);
|
1462
|
+
self.push_str(&format!("f.debug_struct(\"{}\")", name));
|
1463
|
+
for field in record.fields.iter() {
|
1464
|
+
self.push_str(&format!(
|
1465
|
+
".field(\"{}\", &self.{})",
|
1466
|
+
field.name,
|
1467
|
+
to_rust_ident(&field.name)
|
1468
|
+
));
|
1469
|
+
}
|
1470
|
+
self.push_str(".finish()\n");
|
1471
|
+
self.push_str("}\n");
|
1472
|
+
self.push_str("}\n");
|
1473
|
+
|
1474
|
+
if info.error {
|
1475
|
+
self.push_str("impl");
|
1476
|
+
self.print_generics(lt);
|
1477
|
+
self.push_str(" core::fmt::Display for ");
|
1478
|
+
self.push_str(&name);
|
1479
|
+
self.print_generics(lt);
|
1480
|
+
self.push_str(" {\n");
|
1481
|
+
self.push_str(
|
1482
|
+
"fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {\n",
|
1483
|
+
);
|
1484
|
+
self.push_str("write!(f, \"{:?}\", self)\n");
|
1485
|
+
self.push_str("}\n");
|
1486
|
+
self.push_str("}\n");
|
1487
|
+
|
1488
|
+
if cfg!(feature = "std") {
|
1489
|
+
self.push_str("impl std::error::Error for ");
|
1490
|
+
self.push_str(&name);
|
1491
|
+
self.push_str("{}\n");
|
1492
|
+
}
|
1493
|
+
}
|
1494
|
+
self.assert_type(id, &name);
|
1495
|
+
}
|
1496
|
+
}
|
1497
|
+
|
1498
|
+
fn type_tuple(&mut self, id: TypeId, _name: &str, tuple: &Tuple, docs: &Docs) {
|
1499
|
+
let info = self.info(id);
|
1500
|
+
for (name, mode) in self.modes_of(id) {
|
1501
|
+
let lt = self.lifetime_for(&info, mode);
|
1502
|
+
self.rustdoc(docs);
|
1503
|
+
self.push_str(&format!("pub type {}", name));
|
1504
|
+
self.print_generics(lt);
|
1505
|
+
self.push_str(" = (");
|
1506
|
+
for ty in tuple.types.iter() {
|
1507
|
+
self.print_ty(ty, mode);
|
1508
|
+
self.push_str(",");
|
1509
|
+
}
|
1510
|
+
self.push_str(");\n");
|
1511
|
+
self.assert_type(id, &name);
|
1512
|
+
}
|
1513
|
+
}
|
1514
|
+
|
1515
|
+
fn type_flags(&mut self, id: TypeId, name: &str, flags: &Flags, docs: &Docs) {
|
1516
|
+
self.rustdoc(docs);
|
1517
|
+
let wt = self.gen.wasmtime_path();
|
1518
|
+
let rust_name = to_rust_upper_camel_case(name);
|
1519
|
+
uwriteln!(self.src, "{wt}::component::flags!(\n");
|
1520
|
+
self.src.push_str(&format!("{rust_name} {{\n"));
|
1521
|
+
for flag in flags.flags.iter() {
|
1522
|
+
// TODO wasmtime-component-macro doesn't support docs for flags rn
|
1523
|
+
uwrite!(
|
1524
|
+
self.src,
|
1525
|
+
"#[component(name=\"{}\")] const {};\n",
|
1526
|
+
flag.name,
|
1527
|
+
flag.name.to_shouty_snake_case()
|
1528
|
+
);
|
1529
|
+
}
|
1530
|
+
self.src.push_str("}\n");
|
1531
|
+
self.src.push_str(");\n\n");
|
1532
|
+
self.assert_type(id, &rust_name);
|
1533
|
+
}
|
1534
|
+
|
1535
|
+
fn type_variant(&mut self, id: TypeId, _name: &str, variant: &Variant, docs: &Docs) {
|
1536
|
+
self.print_rust_enum(
|
1537
|
+
id,
|
1538
|
+
variant.cases.iter().map(|c| {
|
1539
|
+
(
|
1540
|
+
c.name.to_upper_camel_case(),
|
1541
|
+
Some(c.name.clone()),
|
1542
|
+
&c.docs,
|
1543
|
+
c.ty.as_ref(),
|
1544
|
+
)
|
1545
|
+
}),
|
1546
|
+
docs,
|
1547
|
+
"variant",
|
1548
|
+
);
|
1549
|
+
}
|
1550
|
+
|
1551
|
+
fn type_option(&mut self, id: TypeId, _name: &str, payload: &Type, docs: &Docs) {
|
1552
|
+
let info = self.info(id);
|
1553
|
+
|
1554
|
+
for (name, mode) in self.modes_of(id) {
|
1555
|
+
self.rustdoc(docs);
|
1556
|
+
let lt = self.lifetime_for(&info, mode);
|
1557
|
+
self.push_str(&format!("pub type {}", name));
|
1558
|
+
self.print_generics(lt);
|
1559
|
+
self.push_str("= Option<");
|
1560
|
+
self.print_ty(payload, mode);
|
1561
|
+
self.push_str(">;\n");
|
1562
|
+
self.assert_type(id, &name);
|
1563
|
+
}
|
1564
|
+
}
|
1565
|
+
|
1566
|
+
// Emit a double-check that the wit-parser-understood size of a type agrees
|
1567
|
+
// with the Wasmtime-understood size of a type.
|
1568
|
+
fn assert_type(&mut self, id: TypeId, name: &str) {
|
1569
|
+
self.push_str("const _: () = {\n");
|
1570
|
+
let wt = self.gen.wasmtime_path();
|
1571
|
+
uwriteln!(
|
1572
|
+
self.src,
|
1573
|
+
"assert!({} == <{name} as {wt}::component::ComponentType>::SIZE32);",
|
1574
|
+
self.gen.sizes.size(&Type::Id(id)),
|
1575
|
+
);
|
1576
|
+
uwriteln!(
|
1577
|
+
self.src,
|
1578
|
+
"assert!({} == <{name} as {wt}::component::ComponentType>::ALIGN32);",
|
1579
|
+
self.gen.sizes.align(&Type::Id(id)),
|
1580
|
+
);
|
1581
|
+
self.push_str("};\n");
|
1582
|
+
}
|
1583
|
+
|
1584
|
+
fn print_rust_enum<'b>(
|
1585
|
+
&mut self,
|
1586
|
+
id: TypeId,
|
1587
|
+
cases: impl IntoIterator<Item = (String, Option<String>, &'b Docs, Option<&'b Type>)> + Clone,
|
1588
|
+
docs: &Docs,
|
1589
|
+
derive_component: &str,
|
1590
|
+
) where
|
1591
|
+
Self: Sized,
|
1592
|
+
{
|
1593
|
+
let info = self.info(id);
|
1594
|
+
let wt = self.gen.wasmtime_path();
|
1595
|
+
|
1596
|
+
// We use a BTree set to make sure we don't have any duplicates and we have a stable order
|
1597
|
+
let additional_derives: BTreeSet<String> = self
|
1598
|
+
.gen
|
1599
|
+
.opts
|
1600
|
+
.additional_derive_attributes
|
1601
|
+
.iter()
|
1602
|
+
.cloned()
|
1603
|
+
.collect();
|
1604
|
+
|
1605
|
+
for (name, mode) in self.modes_of(id) {
|
1606
|
+
let name = to_rust_upper_camel_case(&name);
|
1607
|
+
|
1608
|
+
let mut derives = additional_derives.clone();
|
1609
|
+
|
1610
|
+
self.rustdoc(docs);
|
1611
|
+
let lt = self.lifetime_for(&info, mode);
|
1612
|
+
uwriteln!(self.src, "#[derive({wt}::component::ComponentType)]");
|
1613
|
+
if lt.is_none() {
|
1614
|
+
uwriteln!(self.src, "#[derive({wt}::component::Lift)]");
|
1615
|
+
}
|
1616
|
+
uwriteln!(self.src, "#[derive({wt}::component::Lower)]");
|
1617
|
+
self.push_str(&format!("#[component({})]\n", derive_component));
|
1618
|
+
if let Some(path) = &self.gen.opts.wasmtime_crate {
|
1619
|
+
uwriteln!(self.src, "#[component(wasmtime_crate = {path})]\n");
|
1620
|
+
}
|
1621
|
+
if info.is_copy() {
|
1622
|
+
derives.extend(["Copy", "Clone"].into_iter().map(|s| s.to_string()));
|
1623
|
+
} else if info.is_clone() {
|
1624
|
+
derives.insert("Clone".to_string());
|
1625
|
+
}
|
1626
|
+
|
1627
|
+
if !derives.is_empty() {
|
1628
|
+
self.push_str("#[derive(");
|
1629
|
+
self.push_str(&derives.into_iter().collect::<Vec<_>>().join(", "));
|
1630
|
+
self.push_str(")]\n")
|
1631
|
+
}
|
1632
|
+
|
1633
|
+
self.push_str(&format!("pub enum {name}"));
|
1634
|
+
self.print_generics(lt);
|
1635
|
+
self.push_str("{\n");
|
1636
|
+
for (case_name, component_name, docs, payload) in cases.clone() {
|
1637
|
+
self.rustdoc(docs);
|
1638
|
+
if let Some(n) = component_name {
|
1639
|
+
self.push_str(&format!("#[component(name = \"{}\")] ", n));
|
1640
|
+
}
|
1641
|
+
self.push_str(&case_name);
|
1642
|
+
if let Some(ty) = payload {
|
1643
|
+
self.push_str("(");
|
1644
|
+
self.print_ty(ty, mode);
|
1645
|
+
self.push_str(")")
|
1646
|
+
}
|
1647
|
+
self.push_str(",\n");
|
1648
|
+
}
|
1649
|
+
self.push_str("}\n");
|
1650
|
+
|
1651
|
+
self.print_rust_enum_debug(
|
1652
|
+
id,
|
1653
|
+
mode,
|
1654
|
+
&name,
|
1655
|
+
cases
|
1656
|
+
.clone()
|
1657
|
+
.into_iter()
|
1658
|
+
.map(|(name, _attr, _docs, ty)| (name, ty)),
|
1659
|
+
);
|
1660
|
+
|
1661
|
+
if info.error {
|
1662
|
+
self.push_str("impl");
|
1663
|
+
self.print_generics(lt);
|
1664
|
+
self.push_str(" core::fmt::Display for ");
|
1665
|
+
self.push_str(&name);
|
1666
|
+
self.print_generics(lt);
|
1667
|
+
self.push_str(" {\n");
|
1668
|
+
self.push_str(
|
1669
|
+
"fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {\n",
|
1670
|
+
);
|
1671
|
+
self.push_str("write!(f, \"{:?}\", self)");
|
1672
|
+
self.push_str("}\n");
|
1673
|
+
self.push_str("}\n");
|
1674
|
+
self.push_str("\n");
|
1675
|
+
|
1676
|
+
if cfg!(feature = "std") {
|
1677
|
+
self.push_str("impl");
|
1678
|
+
self.print_generics(lt);
|
1679
|
+
self.push_str(" std::error::Error for ");
|
1680
|
+
self.push_str(&name);
|
1681
|
+
self.print_generics(lt);
|
1682
|
+
self.push_str(" {}\n");
|
1683
|
+
}
|
1684
|
+
}
|
1685
|
+
|
1686
|
+
self.assert_type(id, &name);
|
1687
|
+
}
|
1688
|
+
}
|
1689
|
+
|
1690
|
+
fn print_rust_enum_debug<'b>(
|
1691
|
+
&mut self,
|
1692
|
+
id: TypeId,
|
1693
|
+
mode: TypeMode,
|
1694
|
+
name: &str,
|
1695
|
+
cases: impl IntoIterator<Item = (String, Option<&'b Type>)>,
|
1696
|
+
) where
|
1697
|
+
Self: Sized,
|
1698
|
+
{
|
1699
|
+
let info = self.info(id);
|
1700
|
+
let lt = self.lifetime_for(&info, mode);
|
1701
|
+
self.push_str("impl");
|
1702
|
+
self.print_generics(lt);
|
1703
|
+
self.push_str(" core::fmt::Debug for ");
|
1704
|
+
self.push_str(name);
|
1705
|
+
self.print_generics(lt);
|
1706
|
+
self.push_str(" {\n");
|
1707
|
+
self.push_str("fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {\n");
|
1708
|
+
self.push_str("match self {\n");
|
1709
|
+
for (case_name, payload) in cases {
|
1710
|
+
self.push_str(name);
|
1711
|
+
self.push_str("::");
|
1712
|
+
self.push_str(&case_name);
|
1713
|
+
if payload.is_some() {
|
1714
|
+
self.push_str("(e)");
|
1715
|
+
}
|
1716
|
+
self.push_str(" => {\n");
|
1717
|
+
self.push_str(&format!("f.debug_tuple(\"{}::{}\")", name, case_name));
|
1718
|
+
if payload.is_some() {
|
1719
|
+
self.push_str(".field(e)");
|
1720
|
+
}
|
1721
|
+
self.push_str(".finish()\n");
|
1722
|
+
self.push_str("}\n");
|
1723
|
+
}
|
1724
|
+
self.push_str("}\n");
|
1725
|
+
self.push_str("}\n");
|
1726
|
+
self.push_str("}\n");
|
1727
|
+
}
|
1728
|
+
|
1729
|
+
fn type_result(&mut self, id: TypeId, _name: &str, result: &Result_, docs: &Docs) {
|
1730
|
+
let info = self.info(id);
|
1731
|
+
|
1732
|
+
for (name, mode) in self.modes_of(id) {
|
1733
|
+
self.rustdoc(docs);
|
1734
|
+
let lt = self.lifetime_for(&info, mode);
|
1735
|
+
self.push_str(&format!("pub type {}", name));
|
1736
|
+
self.print_generics(lt);
|
1737
|
+
self.push_str("= Result<");
|
1738
|
+
self.print_optional_ty(result.ok.as_ref(), mode);
|
1739
|
+
self.push_str(",");
|
1740
|
+
self.print_optional_ty(result.err.as_ref(), mode);
|
1741
|
+
self.push_str(">;\n");
|
1742
|
+
self.assert_type(id, &name);
|
1743
|
+
}
|
1744
|
+
}
|
1745
|
+
|
1746
|
+
fn type_enum(&mut self, id: TypeId, name: &str, enum_: &Enum, docs: &Docs) {
|
1747
|
+
let info = self.info(id);
|
1748
|
+
let wt = self.gen.wasmtime_path();
|
1749
|
+
|
1750
|
+
// We use a BTree set to make sure we don't have any duplicates and have a stable order
|
1751
|
+
let mut derives: BTreeSet<String> = self
|
1752
|
+
.gen
|
1753
|
+
.opts
|
1754
|
+
.additional_derive_attributes
|
1755
|
+
.iter()
|
1756
|
+
.cloned()
|
1757
|
+
.collect();
|
1758
|
+
|
1759
|
+
derives.extend(
|
1760
|
+
["Clone", "Copy", "PartialEq", "Eq"]
|
1761
|
+
.into_iter()
|
1762
|
+
.map(|s| s.to_string()),
|
1763
|
+
);
|
1764
|
+
|
1765
|
+
let name = to_rust_upper_camel_case(name);
|
1766
|
+
self.rustdoc(docs);
|
1767
|
+
uwriteln!(self.src, "#[derive({wt}::component::ComponentType)]");
|
1768
|
+
uwriteln!(self.src, "#[derive({wt}::component::Lift)]");
|
1769
|
+
uwriteln!(self.src, "#[derive({wt}::component::Lower)]");
|
1770
|
+
self.push_str("#[component(enum)]\n");
|
1771
|
+
if let Some(path) = &self.gen.opts.wasmtime_crate {
|
1772
|
+
uwriteln!(self.src, "#[component(wasmtime_crate = {path})]\n");
|
1773
|
+
}
|
1774
|
+
|
1775
|
+
self.push_str("#[derive(");
|
1776
|
+
self.push_str(&derives.into_iter().collect::<Vec<_>>().join(", "));
|
1777
|
+
self.push_str(")]\n");
|
1778
|
+
|
1779
|
+
self.push_str(&format!("pub enum {} {{\n", name));
|
1780
|
+
for case in enum_.cases.iter() {
|
1781
|
+
self.rustdoc(&case.docs);
|
1782
|
+
self.push_str(&format!("#[component(name = \"{}\")]", case.name));
|
1783
|
+
self.push_str(&case.name.to_upper_camel_case());
|
1784
|
+
self.push_str(",\n");
|
1785
|
+
}
|
1786
|
+
self.push_str("}\n");
|
1787
|
+
|
1788
|
+
// Auto-synthesize an implementation of the standard `Error` trait for
|
1789
|
+
// error-looking types based on their name.
|
1790
|
+
if info.error {
|
1791
|
+
self.push_str("impl ");
|
1792
|
+
self.push_str(&name);
|
1793
|
+
self.push_str("{\n");
|
1794
|
+
|
1795
|
+
self.push_str("pub fn name(&self) -> &'static str {\n");
|
1796
|
+
self.push_str("match self {\n");
|
1797
|
+
for case in enum_.cases.iter() {
|
1798
|
+
self.push_str(&name);
|
1799
|
+
self.push_str("::");
|
1800
|
+
self.push_str(&case.name.to_upper_camel_case());
|
1801
|
+
self.push_str(" => \"");
|
1802
|
+
self.push_str(case.name.as_str());
|
1803
|
+
self.push_str("\",\n");
|
1804
|
+
}
|
1805
|
+
self.push_str("}\n");
|
1806
|
+
self.push_str("}\n");
|
1807
|
+
|
1808
|
+
self.push_str("pub fn message(&self) -> &'static str {\n");
|
1809
|
+
self.push_str("match self {\n");
|
1810
|
+
for case in enum_.cases.iter() {
|
1811
|
+
self.push_str(&name);
|
1812
|
+
self.push_str("::");
|
1813
|
+
self.push_str(&case.name.to_upper_camel_case());
|
1814
|
+
self.push_str(" => \"");
|
1815
|
+
if let Some(contents) = &case.docs.contents {
|
1816
|
+
self.push_str(contents.trim());
|
1817
|
+
}
|
1818
|
+
self.push_str("\",\n");
|
1819
|
+
}
|
1820
|
+
self.push_str("}\n");
|
1821
|
+
self.push_str("}\n");
|
1822
|
+
|
1823
|
+
self.push_str("}\n");
|
1824
|
+
|
1825
|
+
self.push_str("impl core::fmt::Debug for ");
|
1826
|
+
self.push_str(&name);
|
1827
|
+
self.push_str(
|
1828
|
+
"{\nfn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {\n",
|
1829
|
+
);
|
1830
|
+
self.push_str("f.debug_struct(\"");
|
1831
|
+
self.push_str(&name);
|
1832
|
+
self.push_str("\")\n");
|
1833
|
+
self.push_str(".field(\"code\", &(*self as i32))\n");
|
1834
|
+
self.push_str(".field(\"name\", &self.name())\n");
|
1835
|
+
self.push_str(".field(\"message\", &self.message())\n");
|
1836
|
+
self.push_str(".finish()\n");
|
1837
|
+
self.push_str("}\n");
|
1838
|
+
self.push_str("}\n");
|
1839
|
+
|
1840
|
+
self.push_str("impl core::fmt::Display for ");
|
1841
|
+
self.push_str(&name);
|
1842
|
+
self.push_str(
|
1843
|
+
"{\nfn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {\n",
|
1844
|
+
);
|
1845
|
+
self.push_str("write!(f, \"{} (error {})\", self.name(), *self as i32)");
|
1846
|
+
self.push_str("}\n");
|
1847
|
+
self.push_str("}\n");
|
1848
|
+
self.push_str("\n");
|
1849
|
+
if cfg!(feature = "std") {
|
1850
|
+
self.push_str("impl std::error::Error for ");
|
1851
|
+
self.push_str(&name);
|
1852
|
+
self.push_str("{}\n");
|
1853
|
+
}
|
1854
|
+
} else {
|
1855
|
+
self.print_rust_enum_debug(
|
1856
|
+
id,
|
1857
|
+
TypeMode::Owned,
|
1858
|
+
&name,
|
1859
|
+
enum_
|
1860
|
+
.cases
|
1861
|
+
.iter()
|
1862
|
+
.map(|c| (c.name.to_upper_camel_case(), None)),
|
1863
|
+
)
|
1864
|
+
}
|
1865
|
+
self.assert_type(id, &name);
|
1866
|
+
}
|
1867
|
+
|
1868
|
+
fn type_alias(&mut self, id: TypeId, _name: &str, ty: &Type, docs: &Docs) {
|
1869
|
+
let info = self.info(id);
|
1870
|
+
for (name, mode) in self.modes_of(id) {
|
1871
|
+
self.rustdoc(docs);
|
1872
|
+
self.push_str(&format!("pub type {}", name));
|
1873
|
+
let lt = self.lifetime_for(&info, mode);
|
1874
|
+
self.print_generics(lt);
|
1875
|
+
self.push_str(" = ");
|
1876
|
+
self.print_ty(ty, mode);
|
1877
|
+
self.push_str(";\n");
|
1878
|
+
let def_id = resolve_type_definition_id(self.resolve, id);
|
1879
|
+
if !matches!(self.resolve().types[def_id].kind, TypeDefKind::Resource) {
|
1880
|
+
self.assert_type(id, &name);
|
1881
|
+
}
|
1882
|
+
}
|
1883
|
+
}
|
1884
|
+
|
1885
|
+
fn type_list(&mut self, id: TypeId, _name: &str, ty: &Type, docs: &Docs) {
|
1886
|
+
let info = self.info(id);
|
1887
|
+
for (name, mode) in self.modes_of(id) {
|
1888
|
+
let lt = self.lifetime_for(&info, mode);
|
1889
|
+
self.rustdoc(docs);
|
1890
|
+
self.push_str(&format!("pub type {}", name));
|
1891
|
+
self.print_generics(lt);
|
1892
|
+
self.push_str(" = ");
|
1893
|
+
self.print_list(ty, mode);
|
1894
|
+
self.push_str(";\n");
|
1895
|
+
self.assert_type(id, &name);
|
1896
|
+
}
|
1897
|
+
}
|
1898
|
+
|
1899
|
+
fn print_result_ty(&mut self, results: &Results, mode: TypeMode) {
|
1900
|
+
match results {
|
1901
|
+
Results::Named(rs) => match rs.len() {
|
1902
|
+
0 => self.push_str("()"),
|
1903
|
+
1 => self.print_ty(&rs[0].1, mode),
|
1904
|
+
_ => {
|
1905
|
+
self.push_str("(");
|
1906
|
+
for (i, (_, ty)) in rs.iter().enumerate() {
|
1907
|
+
if i > 0 {
|
1908
|
+
self.push_str(", ")
|
1909
|
+
}
|
1910
|
+
self.print_ty(ty, mode)
|
1911
|
+
}
|
1912
|
+
self.push_str(")");
|
1913
|
+
}
|
1914
|
+
},
|
1915
|
+
Results::Anon(ty) => self.print_ty(ty, mode),
|
1916
|
+
}
|
1917
|
+
}
|
1918
|
+
|
1919
|
+
fn special_case_trappable_error(
|
1920
|
+
&self,
|
1921
|
+
results: &Results,
|
1922
|
+
) -> Option<(&'a Result_, TypeId, String)> {
|
1923
|
+
// We fillin a special trappable error type in the case when a function has just one
|
1924
|
+
// result, which is itself a `result<a, e>`, and the `e` is *not* a primitive
|
1925
|
+
// (i.e. defined in std) type, and matches the typename given by the user.
|
1926
|
+
let mut i = results.iter_types();
|
1927
|
+
let id = match i.next()? {
|
1928
|
+
Type::Id(id) => id,
|
1929
|
+
_ => return None,
|
1930
|
+
};
|
1931
|
+
if i.next().is_some() {
|
1932
|
+
return None;
|
1933
|
+
}
|
1934
|
+
let result = match &self.resolve.types[*id].kind {
|
1935
|
+
TypeDefKind::Result(r) => r,
|
1936
|
+
_ => return None,
|
1937
|
+
};
|
1938
|
+
let error_typeid = match result.err? {
|
1939
|
+
Type::Id(id) => resolve_type_definition_id(&self.resolve, id),
|
1940
|
+
_ => return None,
|
1941
|
+
};
|
1942
|
+
|
1943
|
+
let name = self.gen.trappable_errors.get(&error_typeid)?;
|
1944
|
+
|
1945
|
+
let mut path = self.path_to_root();
|
1946
|
+
uwrite!(path, "{name}");
|
1947
|
+
Some((result, error_typeid, path))
|
1948
|
+
}
|
1949
|
+
|
1950
|
+
fn generate_add_to_linker(&mut self, id: InterfaceId, name: &str) {
|
1951
|
+
let iface = &self.resolve.interfaces[id];
|
1952
|
+
let owner = TypeOwner::Interface(id);
|
1953
|
+
let wt = self.gen.wasmtime_path();
|
1954
|
+
|
1955
|
+
let is_maybe_async = self.gen.opts.async_.maybe_async();
|
1956
|
+
if is_maybe_async {
|
1957
|
+
uwriteln!(self.src, "#[{wt}::component::__internal::async_trait]")
|
1958
|
+
}
|
1959
|
+
// Generate the `pub trait` which represents the host functionality for
|
1960
|
+
// this import which additionally inherits from all resource traits
|
1961
|
+
// for this interface defined by `type_resource`.
|
1962
|
+
uwrite!(self.src, "pub trait Host");
|
1963
|
+
let mut host_supertraits = vec![];
|
1964
|
+
if is_maybe_async {
|
1965
|
+
host_supertraits.push("Send".to_string());
|
1966
|
+
}
|
1967
|
+
for resource in get_resources(self.resolve, id) {
|
1968
|
+
host_supertraits.push(format!("Host{}", resource.to_upper_camel_case()));
|
1969
|
+
}
|
1970
|
+
if !host_supertraits.is_empty() {
|
1971
|
+
uwrite!(self.src, ": {}", host_supertraits.join(" + "));
|
1972
|
+
}
|
1973
|
+
uwriteln!(self.src, " {{");
|
1974
|
+
for (_, func) in iface.functions.iter() {
|
1975
|
+
match func.kind {
|
1976
|
+
FunctionKind::Freestanding => {}
|
1977
|
+
_ => continue,
|
1978
|
+
}
|
1979
|
+
self.generate_function_trait_sig(func);
|
1980
|
+
self.push_str(";\n");
|
1981
|
+
}
|
1982
|
+
|
1983
|
+
// Generate `convert_*` functions to convert custom trappable errors
|
1984
|
+
// into the representation required by Wasmtime's component API.
|
1985
|
+
let mut required_conversion_traits = IndexSet::new();
|
1986
|
+
let mut errors_converted = IndexMap::new();
|
1987
|
+
let my_error_types = iface
|
1988
|
+
.types
|
1989
|
+
.iter()
|
1990
|
+
.filter(|(_, id)| self.gen.trappable_errors.contains_key(*id))
|
1991
|
+
.map(|(_, id)| *id);
|
1992
|
+
let used_error_types = iface
|
1993
|
+
.functions
|
1994
|
+
.iter()
|
1995
|
+
.filter_map(|(_, func)| self.special_case_trappable_error(&func.results))
|
1996
|
+
.map(|(_, id, _)| id);
|
1997
|
+
let root = self.path_to_root();
|
1998
|
+
for err_id in my_error_types.chain(used_error_types).collect::<Vec<_>>() {
|
1999
|
+
let custom_name = &self.gen.trappable_errors[&err_id];
|
2000
|
+
let err = &self.resolve.types[resolve_type_definition_id(self.resolve, err_id)];
|
2001
|
+
let err_name = err.name.as_ref().unwrap();
|
2002
|
+
let err_snake = err_name.to_snake_case();
|
2003
|
+
let err_camel = err_name.to_upper_camel_case();
|
2004
|
+
let owner = match err.owner {
|
2005
|
+
TypeOwner::Interface(i) => i,
|
2006
|
+
_ => unimplemented!(),
|
2007
|
+
};
|
2008
|
+
match self.path_to_interface(owner) {
|
2009
|
+
Some(path) => {
|
2010
|
+
required_conversion_traits.insert(format!("{path}::Host"));
|
2011
|
+
}
|
2012
|
+
None => {
|
2013
|
+
if errors_converted.insert(err_name, err_id).is_none() {
|
2014
|
+
uwriteln!(
|
2015
|
+
self.src,
|
2016
|
+
"fn convert_{err_snake}(&mut self, err: {root}{custom_name}) -> {wt}::Result<{err_camel}>;"
|
2017
|
+
);
|
2018
|
+
}
|
2019
|
+
}
|
2020
|
+
}
|
2021
|
+
}
|
2022
|
+
uwriteln!(self.src, "}}");
|
2023
|
+
|
2024
|
+
let (data_bounds, mut host_bounds) = if self.gen.opts.is_store_data_send() {
|
2025
|
+
("T: Send,", "Host + Send".to_string())
|
2026
|
+
} else {
|
2027
|
+
("", "Host".to_string())
|
2028
|
+
};
|
2029
|
+
for ty in required_conversion_traits {
|
2030
|
+
uwrite!(host_bounds, " + {ty}");
|
2031
|
+
}
|
2032
|
+
|
2033
|
+
uwriteln!(
|
2034
|
+
self.src,
|
2035
|
+
"
|
2036
|
+
pub trait GetHost<T>:
|
2037
|
+
Fn(T) -> <Self as GetHost<T>>::Host
|
2038
|
+
+ Send
|
2039
|
+
+ Sync
|
2040
|
+
+ Copy
|
2041
|
+
+ 'static
|
2042
|
+
{{
|
2043
|
+
type Host: {host_bounds};
|
2044
|
+
}}
|
2045
|
+
|
2046
|
+
impl<F, T, O> GetHost<T> for F
|
2047
|
+
where
|
2048
|
+
F: Fn(T) -> O + Send + Sync + Copy + 'static,
|
2049
|
+
O: {host_bounds},
|
2050
|
+
{{
|
2051
|
+
type Host = O;
|
2052
|
+
}}
|
2053
|
+
|
2054
|
+
pub fn add_to_linker_get_host<T>(
|
2055
|
+
linker: &mut {wt}::component::Linker<T>,
|
2056
|
+
host_getter: impl for<'a> GetHost<&'a mut T>,
|
2057
|
+
) -> {wt}::Result<()>
|
2058
|
+
where {data_bounds}
|
2059
|
+
{{
|
2060
|
+
"
|
2061
|
+
);
|
2062
|
+
uwriteln!(self.src, "let mut inst = linker.instance(\"{name}\")?;");
|
2063
|
+
|
2064
|
+
for name in get_resources(self.resolve, id) {
|
2065
|
+
let camel = name.to_upper_camel_case();
|
2066
|
+
uwriteln!(
|
2067
|
+
self.src,
|
2068
|
+
"inst.resource(
|
2069
|
+
\"{name}\",
|
2070
|
+
{wt}::component::ResourceType::host::<{camel}>(),
|
2071
|
+
move |mut store, rep| -> {wt}::Result<()> {{
|
2072
|
+
Host{camel}::drop(&mut host_getter(store.data_mut()), {wt}::component::Resource::new_own(rep))
|
2073
|
+
}},
|
2074
|
+
)?;"
|
2075
|
+
)
|
2076
|
+
}
|
2077
|
+
|
2078
|
+
for (_, func) in iface.functions.iter() {
|
2079
|
+
self.generate_add_function_to_linker(owner, func, "inst");
|
2080
|
+
}
|
2081
|
+
uwriteln!(self.src, "Ok(())");
|
2082
|
+
uwriteln!(self.src, "}}");
|
2083
|
+
|
2084
|
+
if !self.gen.opts.skip_mut_forwarding_impls {
|
2085
|
+
// Generate add_to_linker (with closure)
|
2086
|
+
uwriteln!(
|
2087
|
+
self.src,
|
2088
|
+
"
|
2089
|
+
pub fn add_to_linker<T, U>(
|
2090
|
+
linker: &mut {wt}::component::Linker<T>,
|
2091
|
+
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
|
2092
|
+
) -> {wt}::Result<()>
|
2093
|
+
where
|
2094
|
+
U: {host_bounds}, {data_bounds}
|
2095
|
+
{{
|
2096
|
+
add_to_linker_get_host(linker, get)
|
2097
|
+
}}
|
2098
|
+
"
|
2099
|
+
);
|
2100
|
+
|
2101
|
+
// Generate impl Host for &mut Host
|
2102
|
+
let (async_trait, maybe_send) = if is_maybe_async {
|
2103
|
+
(
|
2104
|
+
format!("#[{wt}::component::__internal::async_trait]"),
|
2105
|
+
"+ Send",
|
2106
|
+
)
|
2107
|
+
} else {
|
2108
|
+
(String::new(), "")
|
2109
|
+
};
|
2110
|
+
|
2111
|
+
uwriteln!(
|
2112
|
+
self.src,
|
2113
|
+
"{async_trait}impl<_T: Host + ?Sized {maybe_send}> Host for &mut _T {{"
|
2114
|
+
);
|
2115
|
+
// Forward each method call to &mut T
|
2116
|
+
for (_, func) in iface.functions.iter() {
|
2117
|
+
match func.kind {
|
2118
|
+
FunctionKind::Freestanding => {}
|
2119
|
+
_ => continue,
|
2120
|
+
}
|
2121
|
+
self.generate_function_trait_sig(func);
|
2122
|
+
uwrite!(self.src, "{{ Host::{}(*self,", rust_function_name(func));
|
2123
|
+
for (name, _) in func.params.iter() {
|
2124
|
+
uwrite!(self.src, "{},", to_rust_ident(name));
|
2125
|
+
}
|
2126
|
+
uwrite!(self.src, ")");
|
2127
|
+
if self.gen.opts.async_.is_import_async(&func.name) {
|
2128
|
+
uwrite!(self.src, ".await");
|
2129
|
+
}
|
2130
|
+
uwriteln!(self.src, "}}");
|
2131
|
+
}
|
2132
|
+
for (err_name, err_id) in errors_converted {
|
2133
|
+
uwriteln!(
|
2134
|
+
self.src,
|
2135
|
+
"fn convert_{err_snake}(&mut self, err: {root}{custom_name}) -> {wt}::Result<{err_camel}> {{
|
2136
|
+
Host::convert_{err_snake}(*self, err)
|
2137
|
+
}}",
|
2138
|
+
custom_name = self.gen.trappable_errors[&err_id],
|
2139
|
+
err_snake = err_name.to_snake_case(),
|
2140
|
+
err_camel = err_name.to_upper_camel_case(),
|
2141
|
+
);
|
2142
|
+
}
|
2143
|
+
uwriteln!(self.src, "}}");
|
2144
|
+
}
|
2145
|
+
}
|
2146
|
+
|
2147
|
+
fn generate_add_function_to_linker(&mut self, owner: TypeOwner, func: &Function, linker: &str) {
|
2148
|
+
uwrite!(
|
2149
|
+
self.src,
|
2150
|
+
"{linker}.{}(\"{}\", ",
|
2151
|
+
if self.gen.opts.async_.is_import_async(&func.name) {
|
2152
|
+
"func_wrap_async"
|
2153
|
+
} else {
|
2154
|
+
"func_wrap"
|
2155
|
+
},
|
2156
|
+
func.name
|
2157
|
+
);
|
2158
|
+
self.generate_guest_import_closure(owner, func);
|
2159
|
+
uwriteln!(self.src, ")?;")
|
2160
|
+
}
|
2161
|
+
|
2162
|
+
fn generate_guest_import_closure(&mut self, owner: TypeOwner, func: &Function) {
|
2163
|
+
// Generate the closure that's passed to a `Linker`, the final piece of
|
2164
|
+
// codegen here.
|
2165
|
+
|
2166
|
+
let wt = self.gen.wasmtime_path();
|
2167
|
+
uwrite!(
|
2168
|
+
self.src,
|
2169
|
+
"move |mut caller: {wt}::StoreContextMut<'_, T>, ("
|
2170
|
+
);
|
2171
|
+
for (i, _param) in func.params.iter().enumerate() {
|
2172
|
+
uwrite!(self.src, "arg{},", i);
|
2173
|
+
}
|
2174
|
+
self.src.push_str(") : (");
|
2175
|
+
|
2176
|
+
for (_, ty) in func.params.iter() {
|
2177
|
+
// Lift is required to be impled for this type, so we can't use
|
2178
|
+
// a borrowed type:
|
2179
|
+
self.print_ty(ty, TypeMode::Owned);
|
2180
|
+
self.src.push_str(", ");
|
2181
|
+
}
|
2182
|
+
self.src.push_str(") |");
|
2183
|
+
if self.gen.opts.async_.is_import_async(&func.name) {
|
2184
|
+
uwriteln!(
|
2185
|
+
self.src,
|
2186
|
+
" {wt}::component::__internal::Box::new(async move {{ "
|
2187
|
+
);
|
2188
|
+
} else {
|
2189
|
+
self.src.push_str(" { \n");
|
2190
|
+
}
|
2191
|
+
|
2192
|
+
if self.gen.opts.tracing {
|
2193
|
+
uwrite!(
|
2194
|
+
self.src,
|
2195
|
+
"
|
2196
|
+
let span = tracing::span!(
|
2197
|
+
tracing::Level::TRACE,
|
2198
|
+
\"wit-bindgen import\",
|
2199
|
+
module = \"{}\",
|
2200
|
+
function = \"{}\",
|
2201
|
+
);
|
2202
|
+
let _enter = span.enter();
|
2203
|
+
",
|
2204
|
+
match owner {
|
2205
|
+
TypeOwner::Interface(id) => self.resolve.interfaces[id]
|
2206
|
+
.name
|
2207
|
+
.as_deref()
|
2208
|
+
.unwrap_or("<no module>"),
|
2209
|
+
TypeOwner::World(id) => &self.resolve.worlds[id].name,
|
2210
|
+
TypeOwner::None => "<no owner>",
|
2211
|
+
},
|
2212
|
+
func.name,
|
2213
|
+
);
|
2214
|
+
let mut event_fields = func
|
2215
|
+
.params
|
2216
|
+
.iter()
|
2217
|
+
.enumerate()
|
2218
|
+
.map(|(i, (name, _ty))| {
|
2219
|
+
let name = to_rust_ident(&name);
|
2220
|
+
format!("{name} = tracing::field::debug(&arg{i})")
|
2221
|
+
})
|
2222
|
+
.collect::<Vec<String>>();
|
2223
|
+
event_fields.push(format!("\"call\""));
|
2224
|
+
uwrite!(
|
2225
|
+
self.src,
|
2226
|
+
"tracing::event!(tracing::Level::TRACE, {});\n",
|
2227
|
+
event_fields.join(", ")
|
2228
|
+
);
|
2229
|
+
}
|
2230
|
+
|
2231
|
+
self.src
|
2232
|
+
.push_str("let host = &mut host_getter(caller.data_mut());\n");
|
2233
|
+
let func_name = rust_function_name(func);
|
2234
|
+
let host_trait = match func.kind {
|
2235
|
+
FunctionKind::Freestanding => match owner {
|
2236
|
+
TypeOwner::World(id) => format!(
|
2237
|
+
"{}Imports",
|
2238
|
+
self.resolve.worlds[id].name.to_upper_camel_case()
|
2239
|
+
),
|
2240
|
+
_ => "Host".to_string(),
|
2241
|
+
},
|
2242
|
+
FunctionKind::Method(id) | FunctionKind::Static(id) | FunctionKind::Constructor(id) => {
|
2243
|
+
let resource = self.resolve.types[id]
|
2244
|
+
.name
|
2245
|
+
.as_ref()
|
2246
|
+
.unwrap()
|
2247
|
+
.to_upper_camel_case();
|
2248
|
+
format!("Host{resource}")
|
2249
|
+
}
|
2250
|
+
};
|
2251
|
+
uwrite!(self.src, "let r = {host_trait}::{func_name}(host, ");
|
2252
|
+
|
2253
|
+
for (i, _) in func.params.iter().enumerate() {
|
2254
|
+
uwrite!(self.src, "arg{},", i);
|
2255
|
+
}
|
2256
|
+
if self.gen.opts.async_.is_import_async(&func.name) {
|
2257
|
+
uwrite!(self.src, ").await;\n");
|
2258
|
+
} else {
|
2259
|
+
uwrite!(self.src, ");\n");
|
2260
|
+
}
|
2261
|
+
|
2262
|
+
if self.gen.opts.tracing {
|
2263
|
+
uwrite!(
|
2264
|
+
self.src,
|
2265
|
+
"tracing::event!(tracing::Level::TRACE, result = tracing::field::debug(&r), \"return\");"
|
2266
|
+
);
|
2267
|
+
}
|
2268
|
+
|
2269
|
+
if !self.gen.opts.trappable_imports.can_trap(&func) {
|
2270
|
+
if func.results.iter_types().len() == 1 {
|
2271
|
+
uwrite!(self.src, "Ok((r,))\n");
|
2272
|
+
} else {
|
2273
|
+
uwrite!(self.src, "Ok(r)\n");
|
2274
|
+
}
|
2275
|
+
} else if let Some((_, err, _)) = self.special_case_trappable_error(&func.results) {
|
2276
|
+
let err = &self.resolve.types[resolve_type_definition_id(self.resolve, err)];
|
2277
|
+
let err_name = err.name.as_ref().unwrap();
|
2278
|
+
let owner = match err.owner {
|
2279
|
+
TypeOwner::Interface(i) => i,
|
2280
|
+
_ => unimplemented!(),
|
2281
|
+
};
|
2282
|
+
let convert_trait = match self.path_to_interface(owner) {
|
2283
|
+
Some(path) => format!("{path}::Host"),
|
2284
|
+
None => format!("Host"),
|
2285
|
+
};
|
2286
|
+
let convert = format!("{}::convert_{}", convert_trait, err_name.to_snake_case());
|
2287
|
+
uwrite!(
|
2288
|
+
self.src,
|
2289
|
+
"Ok((match r {{
|
2290
|
+
Ok(a) => Ok(a),
|
2291
|
+
Err(e) => Err({convert}(host, e)?),
|
2292
|
+
}},))"
|
2293
|
+
);
|
2294
|
+
} else if func.results.iter_types().len() == 1 {
|
2295
|
+
uwrite!(self.src, "Ok((r?,))\n");
|
2296
|
+
} else {
|
2297
|
+
uwrite!(self.src, "r\n");
|
2298
|
+
}
|
2299
|
+
|
2300
|
+
if self.gen.opts.async_.is_import_async(&func.name) {
|
2301
|
+
// Need to close Box::new and async block
|
2302
|
+
self.src.push_str("})");
|
2303
|
+
} else {
|
2304
|
+
self.src.push_str("}");
|
2305
|
+
}
|
2306
|
+
}
|
2307
|
+
|
2308
|
+
fn generate_function_trait_sig(&mut self, func: &Function) {
|
2309
|
+
let wt = self.gen.wasmtime_path();
|
2310
|
+
self.rustdoc(&func.docs);
|
2311
|
+
|
2312
|
+
if self.gen.opts.async_.is_import_async(&func.name) {
|
2313
|
+
self.push_str("async ");
|
2314
|
+
}
|
2315
|
+
self.push_str("fn ");
|
2316
|
+
self.push_str(&rust_function_name(func));
|
2317
|
+
self.push_str("(&mut self, ");
|
2318
|
+
for (name, param) in func.params.iter() {
|
2319
|
+
let name = to_rust_ident(name);
|
2320
|
+
self.push_str(&name);
|
2321
|
+
self.push_str(": ");
|
2322
|
+
self.print_ty(param, TypeMode::Owned);
|
2323
|
+
self.push_str(",");
|
2324
|
+
}
|
2325
|
+
self.push_str(")");
|
2326
|
+
self.push_str(" -> ");
|
2327
|
+
|
2328
|
+
if !self.gen.opts.trappable_imports.can_trap(func) {
|
2329
|
+
self.print_result_ty(&func.results, TypeMode::Owned);
|
2330
|
+
} else if let Some((r, _id, error_typename)) =
|
2331
|
+
self.special_case_trappable_error(&func.results)
|
2332
|
+
{
|
2333
|
+
// Functions which have a single result `result<ok,err>` get special
|
2334
|
+
// cased to use the host_wasmtime_rust::Error<err>, making it possible
|
2335
|
+
// for them to trap or use `?` to propagate their errors
|
2336
|
+
self.push_str("Result<");
|
2337
|
+
if let Some(ok) = r.ok {
|
2338
|
+
self.print_ty(&ok, TypeMode::Owned);
|
2339
|
+
} else {
|
2340
|
+
self.push_str("()");
|
2341
|
+
}
|
2342
|
+
self.push_str(",");
|
2343
|
+
self.push_str(&error_typename);
|
2344
|
+
self.push_str(">");
|
2345
|
+
} else {
|
2346
|
+
// All other functions get their return values wrapped in an wasmtime::Result.
|
2347
|
+
// Returning the anyhow::Error case can be used to trap.
|
2348
|
+
uwrite!(self.src, "{wt}::Result<");
|
2349
|
+
self.print_result_ty(&func.results, TypeMode::Owned);
|
2350
|
+
self.push_str(">");
|
2351
|
+
}
|
2352
|
+
}
|
2353
|
+
|
2354
|
+
fn extract_typed_function(&mut self, func: &Function) -> (String, String) {
|
2355
|
+
let prev = mem::take(&mut self.src);
|
2356
|
+
let snake = func_field_name(self.resolve, func);
|
2357
|
+
uwrite!(self.src, "*__exports.typed_func::<(");
|
2358
|
+
for (_, ty) in func.params.iter() {
|
2359
|
+
self.print_ty(ty, TypeMode::AllBorrowed("'_"));
|
2360
|
+
self.push_str(", ");
|
2361
|
+
}
|
2362
|
+
self.src.push_str("), (");
|
2363
|
+
for ty in func.results.iter_types() {
|
2364
|
+
self.print_ty(ty, TypeMode::Owned);
|
2365
|
+
self.push_str(", ");
|
2366
|
+
}
|
2367
|
+
self.src.push_str(")>(\"");
|
2368
|
+
self.src.push_str(&func.name);
|
2369
|
+
self.src.push_str("\")?.func()");
|
2370
|
+
|
2371
|
+
let ret = (snake, mem::take(&mut self.src).to_string());
|
2372
|
+
self.src = prev;
|
2373
|
+
ret
|
2374
|
+
}
|
2375
|
+
|
2376
|
+
fn define_rust_guest_export(
|
2377
|
+
&mut self,
|
2378
|
+
resolve: &Resolve,
|
2379
|
+
ns: Option<&WorldKey>,
|
2380
|
+
func: &Function,
|
2381
|
+
) {
|
2382
|
+
// Exports must be async if anything could be async, it's just imports
|
2383
|
+
// that get to be optionally async/sync.
|
2384
|
+
let is_async = self.gen.opts.async_.maybe_async();
|
2385
|
+
|
2386
|
+
let (async_, async__, await_) = if is_async {
|
2387
|
+
("async", "_async", ".await")
|
2388
|
+
} else {
|
2389
|
+
("", "", "")
|
2390
|
+
};
|
2391
|
+
|
2392
|
+
self.rustdoc(&func.docs);
|
2393
|
+
let wt = self.gen.wasmtime_path();
|
2394
|
+
|
2395
|
+
uwrite!(
|
2396
|
+
self.src,
|
2397
|
+
"pub {async_} fn call_{}<S: {wt}::AsContextMut>(&self, mut store: S, ",
|
2398
|
+
func.item_name().to_snake_case(),
|
2399
|
+
);
|
2400
|
+
|
2401
|
+
for (i, param) in func.params.iter().enumerate() {
|
2402
|
+
uwrite!(self.src, "arg{}: ", i);
|
2403
|
+
self.print_ty(¶m.1, TypeMode::AllBorrowed("'_"));
|
2404
|
+
self.push_str(",");
|
2405
|
+
}
|
2406
|
+
|
2407
|
+
uwrite!(self.src, ") -> {wt}::Result<");
|
2408
|
+
self.print_result_ty(&func.results, TypeMode::Owned);
|
2409
|
+
|
2410
|
+
if is_async {
|
2411
|
+
uwriteln!(self.src, "> where <S as {wt}::AsContext>::Data: Send {{");
|
2412
|
+
} else {
|
2413
|
+
self.src.push_str("> {\n");
|
2414
|
+
}
|
2415
|
+
|
2416
|
+
if self.gen.opts.tracing {
|
2417
|
+
let ns = match ns {
|
2418
|
+
Some(key) => resolve.name_world_key(key),
|
2419
|
+
None => "default".to_string(),
|
2420
|
+
};
|
2421
|
+
self.src.push_str(&format!(
|
2422
|
+
"
|
2423
|
+
let span = tracing::span!(
|
2424
|
+
tracing::Level::TRACE,
|
2425
|
+
\"wit-bindgen export\",
|
2426
|
+
module = \"{ns}\",
|
2427
|
+
function = \"{}\",
|
2428
|
+
);
|
2429
|
+
let _enter = span.enter();
|
2430
|
+
",
|
2431
|
+
func.name,
|
2432
|
+
));
|
2433
|
+
}
|
2434
|
+
|
2435
|
+
self.src.push_str("let callee = unsafe {\n");
|
2436
|
+
uwrite!(self.src, "{wt}::component::TypedFunc::<(");
|
2437
|
+
for (_, ty) in func.params.iter() {
|
2438
|
+
self.print_ty(ty, TypeMode::AllBorrowed("'_"));
|
2439
|
+
self.push_str(", ");
|
2440
|
+
}
|
2441
|
+
self.src.push_str("), (");
|
2442
|
+
for ty in func.results.iter_types() {
|
2443
|
+
self.print_ty(ty, TypeMode::Owned);
|
2444
|
+
self.push_str(", ");
|
2445
|
+
}
|
2446
|
+
let projection_to_func = match &func.kind {
|
2447
|
+
FunctionKind::Freestanding => "",
|
2448
|
+
_ => ".funcs",
|
2449
|
+
};
|
2450
|
+
uwriteln!(
|
2451
|
+
self.src,
|
2452
|
+
")>::new_unchecked(self{projection_to_func}.{})",
|
2453
|
+
func_field_name(self.resolve, func),
|
2454
|
+
);
|
2455
|
+
self.src.push_str("};\n");
|
2456
|
+
self.src.push_str("let (");
|
2457
|
+
for (i, _) in func.results.iter_types().enumerate() {
|
2458
|
+
uwrite!(self.src, "ret{},", i);
|
2459
|
+
}
|
2460
|
+
uwrite!(
|
2461
|
+
self.src,
|
2462
|
+
") = callee.call{async__}(store.as_context_mut(), ("
|
2463
|
+
);
|
2464
|
+
for (i, _) in func.params.iter().enumerate() {
|
2465
|
+
uwrite!(self.src, "arg{}, ", i);
|
2466
|
+
}
|
2467
|
+
uwriteln!(self.src, ")){await_}?;");
|
2468
|
+
|
2469
|
+
uwriteln!(
|
2470
|
+
self.src,
|
2471
|
+
"callee.post_return{async__}(store.as_context_mut()){await_}?;"
|
2472
|
+
);
|
2473
|
+
|
2474
|
+
self.src.push_str("Ok(");
|
2475
|
+
if func.results.iter_types().len() == 1 {
|
2476
|
+
self.src.push_str("ret0");
|
2477
|
+
} else {
|
2478
|
+
self.src.push_str("(");
|
2479
|
+
for (i, _) in func.results.iter_types().enumerate() {
|
2480
|
+
uwrite!(self.src, "ret{},", i);
|
2481
|
+
}
|
2482
|
+
self.src.push_str(")");
|
2483
|
+
}
|
2484
|
+
self.src.push_str(")\n");
|
2485
|
+
|
2486
|
+
// End function body
|
2487
|
+
self.src.push_str("}\n");
|
2488
|
+
}
|
2489
|
+
|
2490
|
+
fn rustdoc(&mut self, docs: &Docs) {
|
2491
|
+
let docs = match &docs.contents {
|
2492
|
+
Some(docs) => docs,
|
2493
|
+
None => return,
|
2494
|
+
};
|
2495
|
+
for line in docs.trim().lines() {
|
2496
|
+
self.push_str("/// ");
|
2497
|
+
self.push_str(line);
|
2498
|
+
self.push_str("\n");
|
2499
|
+
}
|
2500
|
+
}
|
2501
|
+
|
2502
|
+
fn path_to_root(&self) -> String {
|
2503
|
+
let mut path_to_root = String::new();
|
2504
|
+
if let Some((_, key, is_export)) = self.current_interface {
|
2505
|
+
match key {
|
2506
|
+
WorldKey::Name(_) => {
|
2507
|
+
path_to_root.push_str("super::");
|
2508
|
+
}
|
2509
|
+
WorldKey::Interface(_) => {
|
2510
|
+
path_to_root.push_str("super::super::super::");
|
2511
|
+
}
|
2512
|
+
}
|
2513
|
+
if is_export {
|
2514
|
+
path_to_root.push_str("super::");
|
2515
|
+
}
|
2516
|
+
}
|
2517
|
+
path_to_root
|
2518
|
+
}
|
2519
|
+
}
|
2520
|
+
|
2521
|
+
impl<'a> RustGenerator<'a> for InterfaceGenerator<'a> {
|
2522
|
+
fn resolve(&self) -> &'a Resolve {
|
2523
|
+
self.resolve
|
2524
|
+
}
|
2525
|
+
|
2526
|
+
fn ownership(&self) -> Ownership {
|
2527
|
+
self.gen.opts.ownership
|
2528
|
+
}
|
2529
|
+
|
2530
|
+
fn path_to_interface(&self, interface: InterfaceId) -> Option<String> {
|
2531
|
+
if let Some((cur, _, _)) = self.current_interface {
|
2532
|
+
if cur == interface {
|
2533
|
+
return None;
|
2534
|
+
}
|
2535
|
+
}
|
2536
|
+
let mut path_to_root = self.path_to_root();
|
2537
|
+
match &self.gen.interface_names[&interface] {
|
2538
|
+
InterfaceName::Remapped { name_at_root, .. } => path_to_root.push_str(name_at_root),
|
2539
|
+
InterfaceName::Path(path) => {
|
2540
|
+
for (i, name) in path.iter().enumerate() {
|
2541
|
+
if i > 0 {
|
2542
|
+
path_to_root.push_str("::");
|
2543
|
+
}
|
2544
|
+
path_to_root.push_str(name);
|
2545
|
+
}
|
2546
|
+
}
|
2547
|
+
}
|
2548
|
+
Some(path_to_root)
|
2549
|
+
}
|
2550
|
+
|
2551
|
+
fn push_str(&mut self, s: &str) {
|
2552
|
+
self.src.push_str(s);
|
2553
|
+
}
|
2554
|
+
|
2555
|
+
fn info(&self, ty: TypeId) -> TypeInfo {
|
2556
|
+
self.gen.types.get(ty)
|
2557
|
+
}
|
2558
|
+
|
2559
|
+
fn is_imported_interface(&self, interface: InterfaceId) -> bool {
|
2560
|
+
self.gen.interface_last_seen_as_import[&interface]
|
2561
|
+
}
|
2562
|
+
|
2563
|
+
fn wasmtime_path(&self) -> String {
|
2564
|
+
self.gen.wasmtime_path()
|
2565
|
+
}
|
2566
|
+
}
|
2567
|
+
|
2568
|
+
/// When an interface `use`s a type from another interface, it creates a new TypeId
|
2569
|
+
/// referring to the definition TypeId. Chase this chain of references down to
|
2570
|
+
/// a TypeId for type's definition.
|
2571
|
+
fn resolve_type_definition_id(resolve: &Resolve, mut id: TypeId) -> TypeId {
|
2572
|
+
loop {
|
2573
|
+
match resolve.types[id].kind {
|
2574
|
+
TypeDefKind::Type(Type::Id(def_id)) => id = def_id,
|
2575
|
+
_ => return id,
|
2576
|
+
}
|
2577
|
+
}
|
2578
|
+
}
|
2579
|
+
|
2580
|
+
fn rust_function_name(func: &Function) -> String {
|
2581
|
+
match func.kind {
|
2582
|
+
FunctionKind::Method(_) | FunctionKind::Static(_) => to_rust_ident(func.item_name()),
|
2583
|
+
FunctionKind::Constructor(_) => "new".to_string(),
|
2584
|
+
FunctionKind::Freestanding => to_rust_ident(&func.name),
|
2585
|
+
}
|
2586
|
+
}
|
2587
|
+
|
2588
|
+
fn func_field_name(resolve: &Resolve, func: &Function) -> String {
|
2589
|
+
let mut name = String::new();
|
2590
|
+
match func.kind {
|
2591
|
+
FunctionKind::Method(id) => {
|
2592
|
+
name.push_str("method-");
|
2593
|
+
name.push_str(resolve.types[id].name.as_ref().unwrap());
|
2594
|
+
name.push_str("-");
|
2595
|
+
}
|
2596
|
+
FunctionKind::Static(id) => {
|
2597
|
+
name.push_str("static-");
|
2598
|
+
name.push_str(resolve.types[id].name.as_ref().unwrap());
|
2599
|
+
name.push_str("-");
|
2600
|
+
}
|
2601
|
+
FunctionKind::Constructor(id) => {
|
2602
|
+
name.push_str("constructor-");
|
2603
|
+
name.push_str(resolve.types[id].name.as_ref().unwrap());
|
2604
|
+
name.push_str("-");
|
2605
|
+
}
|
2606
|
+
FunctionKind::Freestanding => {}
|
2607
|
+
}
|
2608
|
+
name.push_str(func.item_name());
|
2609
|
+
name.to_snake_case()
|
2610
|
+
}
|
2611
|
+
|
2612
|
+
fn get_resources<'a>(resolve: &'a Resolve, id: InterfaceId) -> impl Iterator<Item = &'a str> + 'a {
|
2613
|
+
resolve.interfaces[id]
|
2614
|
+
.types
|
2615
|
+
.iter()
|
2616
|
+
.filter_map(move |(name, ty)| match resolve.types[*ty].kind {
|
2617
|
+
TypeDefKind::Resource => Some(name.as_str()),
|
2618
|
+
_ => None,
|
2619
|
+
})
|
2620
|
+
}
|
2621
|
+
|
2622
|
+
fn get_world_resources<'a>(
|
2623
|
+
resolve: &'a Resolve,
|
2624
|
+
id: WorldId,
|
2625
|
+
) -> impl Iterator<Item = &'a str> + 'a {
|
2626
|
+
resolve.worlds[id]
|
2627
|
+
.imports
|
2628
|
+
.iter()
|
2629
|
+
.filter_map(move |(name, item)| match item {
|
2630
|
+
WorldItem::Type(id) => match resolve.types[*id].kind {
|
2631
|
+
TypeDefKind::Resource => Some(match name {
|
2632
|
+
WorldKey::Name(s) => s.as_str(),
|
2633
|
+
WorldKey::Interface(_) => unreachable!(),
|
2634
|
+
}),
|
2635
|
+
_ => None,
|
2636
|
+
},
|
2637
|
+
_ => None,
|
2638
|
+
})
|
2639
|
+
}
|