wasmtime 19.0.2 → 20.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 +116 -120
- data/ext/Cargo.toml +6 -6
- data/ext/cargo-vendor/anyhow-1.0.83/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/anyhow-1.0.83/Cargo.toml +130 -0
- data/ext/cargo-vendor/anyhow-1.0.83/README.md +181 -0
- data/ext/cargo-vendor/anyhow-1.0.83/build.rs +179 -0
- data/ext/cargo-vendor/anyhow-1.0.83/src/backtrace.rs +406 -0
- data/ext/cargo-vendor/anyhow-1.0.83/src/chain.rs +102 -0
- data/ext/cargo-vendor/anyhow-1.0.83/src/fmt.rs +158 -0
- data/ext/cargo-vendor/anyhow-1.0.83/src/kind.rs +121 -0
- data/ext/cargo-vendor/anyhow-1.0.83/src/lib.rs +702 -0
- data/ext/cargo-vendor/anyhow-1.0.83/src/macros.rs +241 -0
- data/ext/cargo-vendor/anyhow-1.0.83/src/wrapper.rs +84 -0
- data/ext/cargo-vendor/anyhow-1.0.83/tests/test_ensure.rs +724 -0
- data/ext/cargo-vendor/anyhow-1.0.83/tests/test_macros.rs +81 -0
- data/ext/cargo-vendor/anyhow-1.0.83/tests/test_repr.rs +30 -0
- data/ext/cargo-vendor/anyhow-1.0.83/tests/ui/no-impl.stderr +32 -0
- data/ext/cargo-vendor/cranelift-bforest-0.107.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-bforest-0.107.2/Cargo.toml +40 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/Cargo.toml +178 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/build.rs +396 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/alias_analysis.rs +403 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/binemit/mod.rs +171 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/bitset.rs +187 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/context.rs +386 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/egraph/elaborate.rs +835 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/egraph.rs +838 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/inst_predicates.rs +236 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ir/constant.rs +462 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ir/dfg.rs +1777 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ir/entities.rs +562 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ir/function.rs +490 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ir/instructions.rs +1019 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ir/memflags.rs +452 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ir/mod.rs +108 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ir/trapcode.rs +149 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/ir/types.rs +629 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/abi.rs +1707 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/emit.rs +3932 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst/mod.rs +3083 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/inst.isle +4218 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/lower/isle.rs +884 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/lower.isle +2933 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/mod.rs +242 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/aarch64/pcc.rs +565 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/call_conv.rs +127 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/abi.rs +1109 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/args.rs +1968 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/emit.rs +3466 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst/encode.rs +654 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/inst.isle +2944 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/lower/isle.rs +625 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/riscv64/lower.isle +2872 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/abi.rs +1047 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/args.rs +347 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst/emit.rs +3646 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/inst.isle +5033 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/s390x/lower.isle +3995 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/abi.rs +1369 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/encoding/evex.rs +748 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/encoding/rex.rs +596 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/encoding/vex.rs +491 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/args.rs +2289 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/emit.rs +4383 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/emit_state.rs +74 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst/mod.rs +2798 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/inst.isle +5304 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/lower/isle.rs +1066 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/lower.isle +4809 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/lower.rs +339 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/mod.rs +234 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/isa/x64/pcc.rs +1003 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/legalizer/mod.rs +348 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/abi.rs +2594 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/buffer.rs +2512 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/inst_common.rs +75 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/isle.rs +914 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/lower.rs +1452 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/mod.rs +555 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/pcc.rs +169 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/machinst/vcode.rs +1807 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/nan_canonicalization.rs +110 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/opts/cprop.isle +281 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/opts/spectre.isle +14 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/opts.rs +295 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/prelude.isle +646 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/result.rs +111 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/settings.rs +591 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/verifier/mod.rs +1957 -0
- data/ext/cargo-vendor/cranelift-codegen-0.107.2/src/write.rs +631 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/Cargo.toml +35 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/shared/entities.rs +101 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/shared/formats.rs +205 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.107.2/src/shared/instructions.rs +3791 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.107.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.107.2/Cargo.toml +22 -0
- data/ext/cargo-vendor/cranelift-control-0.107.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-control-0.107.2/Cargo.toml +30 -0
- data/ext/cargo-vendor/cranelift-entity-0.107.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-entity-0.107.2/Cargo.toml +50 -0
- data/ext/cargo-vendor/cranelift-frontend-0.107.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-frontend-0.107.2/Cargo.toml +69 -0
- data/ext/cargo-vendor/cranelift-isle-0.107.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-isle-0.107.2/Cargo.toml +46 -0
- data/ext/cargo-vendor/cranelift-native-0.107.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-native-0.107.2/Cargo.toml +45 -0
- data/ext/cargo-vendor/cranelift-wasm-0.107.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-wasm-0.107.2/Cargo.toml +107 -0
- data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/code_translator.rs +3683 -0
- data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/environ/dummy.rs +912 -0
- data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/environ/mod.rs +8 -0
- data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/environ/spec.rs +945 -0
- data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/func_translator.rs +296 -0
- data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/lib.rs +58 -0
- data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/state.rs +522 -0
- data/ext/cargo-vendor/cranelift-wasm-0.107.2/src/table.rs +104 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.21/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.21/Cargo.toml +48 -0
- data/ext/cargo-vendor/mach2-0.4.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/mach2-0.4.2/Cargo.toml +49 -0
- data/ext/cargo-vendor/mach2-0.4.2/LICENSE-APACHE +176 -0
- data/ext/cargo-vendor/mach2-0.4.2/LICENSE-BSD +23 -0
- data/ext/cargo-vendor/mach2-0.4.2/LICENSE-MIT +25 -0
- data/ext/cargo-vendor/mach2-0.4.2/README.md +116 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/exc.rs +73 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/kern_return.rs +59 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/lib.rs +59 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/mach_port.rs +50 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/message.rs +345 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/ndr.rs +19 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/port.rs +67 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs +22 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/structs.rs +66 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/sync_policy.rs +9 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/task.rs +46 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/task_info.rs +49 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/thread_act.rs +36 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/thread_policy.rs +121 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/thread_status.rs +53 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/traps.rs +37 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/vm.rs +248 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/vm_attributes.rs +18 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/vm_page_size.rs +40 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/vm_prot.rs +13 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/vm_purgable.rs +42 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/vm_region.rs +238 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/vm_statistics.rs +58 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/vm_sync.rs +11 -0
- data/ext/cargo-vendor/mach2-0.4.2/src/vm_types.rs +19 -0
- data/ext/cargo-vendor/object-0.33.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/object-0.33.0/CHANGELOG.md +797 -0
- data/ext/cargo-vendor/object-0.33.0/Cargo.toml +179 -0
- data/ext/cargo-vendor/object-0.33.0/LICENSE-APACHE +201 -0
- data/ext/cargo-vendor/object-0.33.0/LICENSE-MIT +25 -0
- data/ext/cargo-vendor/object-0.33.0/README.md +56 -0
- data/ext/cargo-vendor/object-0.33.0/src/archive.rs +91 -0
- data/ext/cargo-vendor/object-0.33.0/src/build/bytes.rs +141 -0
- data/ext/cargo-vendor/object-0.33.0/src/build/elf.rs +3033 -0
- data/ext/cargo-vendor/object-0.33.0/src/build/error.rs +41 -0
- data/ext/cargo-vendor/object-0.33.0/src/build/mod.rs +18 -0
- data/ext/cargo-vendor/object-0.33.0/src/build/table.rs +128 -0
- data/ext/cargo-vendor/object-0.33.0/src/common.rs +568 -0
- data/ext/cargo-vendor/object-0.33.0/src/elf.rs +6291 -0
- data/ext/cargo-vendor/object-0.33.0/src/endian.rs +831 -0
- data/ext/cargo-vendor/object-0.33.0/src/lib.rs +107 -0
- data/ext/cargo-vendor/object-0.33.0/src/macho.rs +3309 -0
- data/ext/cargo-vendor/object-0.33.0/src/pe.rs +3056 -0
- data/ext/cargo-vendor/object-0.33.0/src/pod.rs +239 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/any.rs +1328 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/archive.rs +759 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/comdat.rs +211 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/file.rs +383 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/import.rs +223 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/mod.rs +66 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/relocation.rs +108 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/section.rs +585 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/coff/symbol.rs +635 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/attributes.rs +306 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/comdat.rs +162 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/compression.rs +56 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/dynamic.rs +117 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/file.rs +918 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/hash.rs +224 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/mod.rs +78 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/note.rs +271 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/relocation.rs +629 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/section.rs +1150 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/segment.rs +356 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/symbol.rs +595 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/elf/version.rs +424 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/dyld_cache.rs +345 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/fat.rs +140 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/file.rs +783 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/load_command.rs +386 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/mod.rs +72 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/relocation.rs +149 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/section.rs +389 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/segment.rs +303 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/macho/symbol.rs +492 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/mod.rs +880 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/data_directory.rs +214 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/export.rs +334 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/file.rs +1053 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/import.rs +339 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/mod.rs +68 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/relocation.rs +92 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/resource.rs +210 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/rich.rs +92 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/pe/section.rs +440 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/read_cache.rs +213 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/read_ref.rs +149 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/traits.rs +551 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/util.rs +425 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/wasm.rs +966 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/xcoff/comdat.rs +134 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/xcoff/file.rs +697 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/xcoff/mod.rs +63 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/xcoff/relocation.rs +134 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/xcoff/section.rs +433 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/xcoff/segment.rs +117 -0
- data/ext/cargo-vendor/object-0.33.0/src/read/xcoff/symbol.rs +784 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/coff/mod.rs +10 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/coff/object.rs +678 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/coff/writer.rs +518 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/elf/mod.rs +9 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/elf/object.rs +885 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/elf/writer.rs +2309 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/macho.rs +1107 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/mod.rs +990 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/pe.rs +847 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/string.rs +186 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/util.rs +261 -0
- data/ext/cargo-vendor/object-0.33.0/src/write/xcoff.rs +589 -0
- data/ext/cargo-vendor/object-0.33.0/src/xcoff.rs +905 -0
- data/ext/cargo-vendor/object-0.33.0/tests/integration.rs +2 -0
- data/ext/cargo-vendor/object-0.33.0/tests/parse_self.rs +25 -0
- data/ext/cargo-vendor/object-0.33.0/tests/read/coff.rs +23 -0
- data/ext/cargo-vendor/object-0.33.0/tests/read/elf.rs +47 -0
- data/ext/cargo-vendor/object-0.33.0/tests/read/mod.rs +4 -0
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/bss.rs +255 -0
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/coff.rs +58 -0
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/comdat.rs +225 -0
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/common.rs +245 -0
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/elf.rs +289 -0
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/macho.rs +64 -0
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/mod.rs +704 -0
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/section_flags.rs +90 -0
- data/ext/cargo-vendor/object-0.33.0/tests/round_trip/tls.rs +316 -0
- data/ext/cargo-vendor/wasi-common-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasi-common-20.0.0/Cargo.toml +220 -0
- data/ext/cargo-vendor/wasi-common-20.0.0/src/ctx.rs +128 -0
- data/ext/cargo-vendor/wasi-common-20.0.0/src/lib.rs +193 -0
- data/ext/cargo-vendor/wasi-common-20.0.0/src/snapshots/preview_1.rs +1497 -0
- data/ext/cargo-vendor/wasi-common-20.0.0/tests/all/async_.rs +293 -0
- data/ext/cargo-vendor/wasi-common-20.0.0/tests/all/sync.rs +279 -0
- data/ext/cargo-vendor/wasm-encoder-0.202.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasm-encoder-0.202.0/Cargo.toml +43 -0
- data/ext/cargo-vendor/wasm-encoder-0.202.0/src/component/types.rs +792 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/Cargo.toml +46 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/README.md +80 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component/aliases.rs +160 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component/builder.rs +455 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component/canonicals.rs +159 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component/components.rs +29 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component/exports.rs +124 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component/imports.rs +175 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component/instances.rs +200 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component/modules.rs +29 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component/names.rs +149 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component/start.rs +52 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component/types.rs +792 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/component.rs +168 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/code.rs +3595 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/custom.rs +73 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/data.rs +186 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/dump.rs +627 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/elements.rs +221 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/exports.rs +98 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/functions.rs +63 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/globals.rs +112 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/imports.rs +157 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/linking.rs +263 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/memories.rs +128 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/names.rs +298 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/producers.rs +181 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/start.rs +39 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/tables.rs +134 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/tags.rs +104 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core/types.rs +678 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/core.rs +168 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/lib.rs +215 -0
- data/ext/cargo-vendor/wasm-encoder-0.208.1/src/raw.rs +30 -0
- data/ext/cargo-vendor/wasmparser-0.202.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmparser-0.202.0/Cargo.lock +744 -0
- data/ext/cargo-vendor/wasmparser-0.202.0/Cargo.toml +66 -0
- data/ext/cargo-vendor/wasmparser-0.202.0/src/readers/component/types.rs +549 -0
- data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/operators.rs +4076 -0
- data/ext/cargo-vendor/wasmparser-0.202.0/src/validator/types.rs +4449 -0
- data/ext/cargo-vendor/wasmprinter-0.202.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmprinter-0.202.0/Cargo.toml +45 -0
- data/ext/cargo-vendor/wasmprinter-0.202.0/src/lib.rs +3202 -0
- data/ext/cargo-vendor/wasmprinter-0.202.0/src/operator.rs +1131 -0
- data/ext/cargo-vendor/wasmprinter-0.202.0/tests/all.rs +279 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/Cargo.toml +268 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/compile/code_builder.rs +201 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/compile/runtime.rs +175 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/compile.rs +897 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/config.rs +2695 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/engine/serialization.rs +849 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/engine.rs +741 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/lib.rs +303 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/code_memory.rs +335 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/component.rs +661 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/func/host.rs +439 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/func/options.rs +554 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/func/typed.rs +2484 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/func.rs +747 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/instance.rs +804 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/linker.rs +786 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/matching.rs +217 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/mod.rs +756 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/resources.rs +1133 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/types.rs +892 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/component/values.rs +978 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/coredump.rs +336 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/externals/global.rs +300 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/externals/table.rs +480 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/func/typed.rs +898 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/func.rs +2633 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/gc/disabled/anyref.rs +46 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/gc/disabled/externref.rs +50 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/gc/disabled/i31.rs +14 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/gc/disabled/rooting.rs +222 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/gc/disabled.rs +17 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/gc/enabled/anyref.rs +472 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/gc/enabled/externref.rs +644 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/gc/enabled/i31.rs +345 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/gc/enabled/rooting.rs +1543 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/gc/enabled.rs +12 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/gc.rs +87 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/instance.rs +992 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/instantiate.rs +345 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/linker.rs +1521 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/memory.rs +999 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/module/registry.rs +354 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/module.rs +1295 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/profiling.rs +224 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/store/data.rs +289 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/store.rs +2796 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/trampoline/func.rs +138 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/trampoline/global.rs +68 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/trampoline/memory.rs +286 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/trampoline/table.rs +34 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/trap.rs +641 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/type_registry.rs +632 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/types/matching.rs +367 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/types.rs +1378 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/v128.rs +131 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime/values.rs +945 -0
- data/ext/cargo-vendor/wasmtime-20.0.0/src/runtime.rs +112 -0
- data/ext/cargo-vendor/wasmtime-asm-macros-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-asm-macros-20.0.0/Cargo.toml +22 -0
- data/ext/cargo-vendor/wasmtime-cache-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cache-20.0.0/Cargo.toml +81 -0
- data/ext/cargo-vendor/wasmtime-component-macro-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-component-macro-20.0.0/Cargo.toml +67 -0
- data/ext/cargo-vendor/wasmtime-component-macro-20.0.0/src/component.rs +1295 -0
- data/ext/cargo-vendor/wasmtime-component-macro-20.0.0/tests/codegen/dead-code.wit +27 -0
- data/ext/cargo-vendor/wasmtime-component-macro-20.0.0/tests/codegen.rs +342 -0
- data/ext/cargo-vendor/wasmtime-component-util-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-component-util-20.0.0/Cargo.toml +25 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/Cargo.toml +114 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/builder.rs +127 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/compiled_function.rs +225 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/compiler/component.rs +962 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/compiler.rs +1369 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/debug/transform/address_transform.rs +783 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/debug/transform/expression.rs +1252 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/func_environ.rs +2672 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/gc/disabled.rs +116 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/gc/enabled.rs +649 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/gc.rs +198 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/lib.rs +505 -0
- data/ext/cargo-vendor/wasmtime-cranelift-20.0.0/src/obj.rs +545 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/Cargo.lock +782 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/Cargo.toml +144 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/address_map.rs +125 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/builtin.rs +184 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/compile/address_map.rs +72 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/compile/mod.rs +389 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/compile/module_artifacts.rs +300 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/compile/trap_encoding.rs +69 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/component/artifacts.rs +72 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/component/compiler.rs +19 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/component/info.rs +672 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/component/translate/adapt.rs +459 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/component/translate/inline.rs +1332 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/component/types.rs +1972 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/component.rs +103 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/fact/trampoline.rs +3233 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/fact/transcode.rs +89 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/fact.rs +711 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/gc.rs +60 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/lib.rs +70 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/module.rs +780 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/module_artifacts.rs +145 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/module_environ.rs +1288 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/obj.rs +173 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/trap_encoding.rs +188 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/tunables.rs +158 -0
- data/ext/cargo-vendor/wasmtime-environ-20.0.0/src/vmoffsets.rs +952 -0
- data/ext/cargo-vendor/wasmtime-fiber-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-fiber-20.0.0/Cargo.toml +63 -0
- data/ext/cargo-vendor/wasmtime-fiber-20.0.0/src/unix.rs +265 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-20.0.0/Cargo.toml +67 -0
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-20.0.0/Cargo.toml +47 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/Cargo.toml +147 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/build.rs +24 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/arch/aarch64.rs +76 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/arch/riscv64.rs +41 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/arch/s390x.S +70 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/arch/s390x.rs +34 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/arch/x86_64.rs +41 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/async_yield.rs +35 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/component/libcalls.rs +571 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/component.rs +860 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/export.rs +108 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/gc/disabled.rs +23 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/gc/enabled/drc.rs +963 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/gc/enabled/externref.rs +115 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/gc/enabled/free_list.rs +767 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/gc/enabled.rs +18 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/gc/gc_ref.rs +486 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/gc/gc_runtime.rs +503 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/gc/host_data.rs +81 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/gc/i31.rs +86 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/gc.rs +244 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/instance/allocator/on_demand.rs +217 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/instance/allocator/pooling/gc_heap_pool.rs +92 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/instance/allocator/pooling/table_pool.rs +231 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/instance/allocator/pooling.rs +699 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/instance/allocator.rs +780 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/instance.rs +1566 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/lib.rs +289 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/libcalls.rs +777 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/memory.rs +751 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/send_sync_ptr.rs +106 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/sys/custom/mmap.rs +111 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/sys/custom/traphandlers.rs +55 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/sys/miri/mmap.rs +94 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/sys/unix/machports.rs +416 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/sys/unix/mmap.rs +151 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/sys/unix/signals.rs +401 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/sys/windows/traphandlers.rs +104 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/table.rs +851 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/threads/mod.rs +12 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/threads/shared_memory.rs +230 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/threads/shared_memory_disabled.rs +100 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/traphandlers/coredump_disabled.rs +16 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/traphandlers/coredump_enabled.rs +40 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/traphandlers.rs +785 -0
- data/ext/cargo-vendor/wasmtime-runtime-20.0.0/src/vmcontext.rs +1293 -0
- data/ext/cargo-vendor/wasmtime-slab-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-slab-20.0.0/Cargo.toml +21 -0
- data/ext/cargo-vendor/wasmtime-slab-20.0.0/src/lib.rs +493 -0
- data/ext/cargo-vendor/wasmtime-types-20.0.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-types-20.0.2/Cargo.toml +36 -0
- data/ext/cargo-vendor/wasmtime-types-20.0.2/src/lib.rs +832 -0
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-20.0.0/Cargo.toml +32 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/Cargo.toml +194 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/bindings.rs +283 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/ctx.rs +659 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/filesystem.rs +433 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/host/filesystem/sync.rs +518 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/host/filesystem.rs +1079 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/host/io.rs +367 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/host/network.rs +539 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/host/tcp.rs +306 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/ip_name_lookup.rs +126 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/lib.rs +404 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/network.rs +107 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/pipe.rs +826 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/poll.rs +233 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/preview0.rs +879 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/preview1.rs +2601 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/runtime.rs +175 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/stdio/worker_thread_stdin.rs +177 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/stdio.rs +507 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/tcp.rs +847 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/udp.rs +125 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/src/write_stream.rs +203 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/tests/all/api.rs +194 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/tests/all/async_.rs +397 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/tests/all/main.rs +91 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/tests/all/preview1.rs +251 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/tests/all/sync.rs +333 -0
- data/ext/cargo-vendor/wasmtime-wasi-20.0.0/wit/deps/io/poll.wit +41 -0
- data/ext/cargo-vendor/wasmtime-winch-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-winch-20.0.0/Cargo.toml +81 -0
- data/ext/cargo-vendor/wasmtime-winch-20.0.0/src/builder.rs +85 -0
- data/ext/cargo-vendor/wasmtime-winch-20.0.0/src/compiler.rs +257 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.0/Cargo.toml +41 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.0/src/lib.rs +2213 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.0/src/rust.rs +421 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-20.0.0/src/types.rs +202 -0
- data/ext/cargo-vendor/wast-208.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wast-208.0.1/Cargo.toml +60 -0
- data/ext/cargo-vendor/wast-208.0.1/src/component/binary.rs +1000 -0
- data/ext/cargo-vendor/wast-208.0.1/src/component/resolve.rs +1007 -0
- data/ext/cargo-vendor/wast-208.0.1/src/component/types.rs +999 -0
- data/ext/cargo-vendor/wast-208.0.1/src/component/wast.rs +160 -0
- data/ext/cargo-vendor/wast-208.0.1/src/core/binary.rs +1396 -0
- data/ext/cargo-vendor/wast-208.0.1/src/core/expr.rs +2016 -0
- data/ext/cargo-vendor/wast-208.0.1/src/core/func.rs +136 -0
- data/ext/cargo-vendor/wast-208.0.1/src/core/memory.rs +284 -0
- data/ext/cargo-vendor/wast-208.0.1/src/core/resolve/deinline_import_export.rs +235 -0
- data/ext/cargo-vendor/wast-208.0.1/src/core/resolve/names.rs +751 -0
- data/ext/cargo-vendor/wast-208.0.1/src/core/resolve/types.rs +267 -0
- data/ext/cargo-vendor/wast-208.0.1/src/core/table.rs +302 -0
- data/ext/cargo-vendor/wast-208.0.1/src/core/types.rs +901 -0
- data/ext/cargo-vendor/wast-208.0.1/src/core/wast.rs +256 -0
- data/ext/cargo-vendor/wast-208.0.1/src/lib.rs +551 -0
- data/ext/cargo-vendor/wast-208.0.1/src/names.rs +67 -0
- data/ext/cargo-vendor/wast-208.0.1/src/parser.rs +1377 -0
- data/ext/cargo-vendor/wast-208.0.1/src/token.rs +737 -0
- data/ext/cargo-vendor/wast-208.0.1/src/wast.rs +459 -0
- data/ext/cargo-vendor/wast-208.0.1/src/wat.rs +71 -0
- data/ext/cargo-vendor/wast-208.0.1/tests/annotations.rs +200 -0
- data/ext/cargo-vendor/wast-208.0.1/tests/parse-fail.rs +80 -0
- data/ext/cargo-vendor/wat-1.208.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wat-1.208.1/Cargo.toml +34 -0
- data/ext/cargo-vendor/wiggle-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-20.0.0/Cargo.toml +122 -0
- data/ext/cargo-vendor/wiggle-20.0.0/src/borrow.rs +113 -0
- data/ext/cargo-vendor/wiggle-20.0.0/src/guest_type.rs +237 -0
- data/ext/cargo-vendor/wiggle-20.0.0/src/lib.rs +1184 -0
- data/ext/cargo-vendor/wiggle-20.0.0/src/wasmtime.rs +97 -0
- data/ext/cargo-vendor/wiggle-generate-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-generate-20.0.0/Cargo.toml +65 -0
- data/ext/cargo-vendor/wiggle-macro-20.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-macro-20.0.0/Cargo.toml +55 -0
- data/ext/cargo-vendor/wiggle-macro-20.0.0/LICENSE +220 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/Cargo.toml +81 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/abi/mod.rs +671 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/codegen/bounds.rs +220 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/codegen/builtin.rs +263 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/codegen/call.rs +413 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/codegen/env.rs +435 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/codegen/mod.rs +756 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/isa/aarch64/abi.rs +291 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/isa/aarch64/asm.rs +252 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/isa/aarch64/masm.rs +573 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/isa/aarch64/mod.rs +154 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/isa/aarch64/regs.rs +149 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/isa/mod.rs +223 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/isa/x64/abi.rs +517 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/isa/x64/asm.rs +1423 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/isa/x64/masm.rs +1256 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/isa/x64/mod.rs +169 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/lib.rs +19 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/masm.rs +947 -0
- data/ext/cargo-vendor/winch-codegen-0.18.0/src/visitor.rs +2149 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/Cargo.toml +101 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/src/abi.rs +309 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/src/ast/lex.rs +747 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/src/ast/resolve.rs +1443 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/src/ast.rs +1348 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/src/decoding.rs +1764 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/src/lib.rs +765 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/src/resolve.rs +2240 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/src/serde_.rs +108 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/src/sizealign.rs +179 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/tests/all.rs +153 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/functions.wit +14 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/functions.wit.json +166 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/resources-multiple.wit +20 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/resources-multiple.wit.json +281 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/types.wit +60 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/types.wit.json +774 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/union-fuzz-2.wit +12 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/union-fuzz-2.wit.json +72 -0
- data/ext/cargo-vendor/wit-parser-0.202.0/tests/ui/wasi.wit +178 -0
- data/ext/src/ruby_api/convert.rs +15 -7
- data/ext/src/ruby_api/func.rs +2 -2
- data/ext/src/ruby_api/global.rs +2 -2
- data/ext/src/ruby_api/params.rs +5 -5
- data/ext/src/ruby_api/table.rs +3 -3
- data/lib/wasmtime/version.rb +1 -1
- metadata +1737 -1630
- data/ext/cargo-vendor/anyhow-1.0.79/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/anyhow-1.0.79/Cargo.toml +0 -67
- data/ext/cargo-vendor/anyhow-1.0.79/README.md +0 -179
- data/ext/cargo-vendor/anyhow-1.0.79/build.rs +0 -167
- data/ext/cargo-vendor/anyhow-1.0.79/src/backtrace.rs +0 -405
- data/ext/cargo-vendor/anyhow-1.0.79/src/chain.rs +0 -102
- data/ext/cargo-vendor/anyhow-1.0.79/src/fmt.rs +0 -156
- data/ext/cargo-vendor/anyhow-1.0.79/src/kind.rs +0 -119
- data/ext/cargo-vendor/anyhow-1.0.79/src/lib.rs +0 -698
- data/ext/cargo-vendor/anyhow-1.0.79/src/macros.rs +0 -231
- data/ext/cargo-vendor/anyhow-1.0.79/src/wrapper.rs +0 -81
- data/ext/cargo-vendor/anyhow-1.0.79/tests/test_ensure.rs +0 -722
- data/ext/cargo-vendor/anyhow-1.0.79/tests/test_macros.rs +0 -80
- data/ext/cargo-vendor/anyhow-1.0.79/tests/test_repr.rs +0 -31
- data/ext/cargo-vendor/anyhow-1.0.79/tests/ui/no-impl.stderr +0 -31
- data/ext/cargo-vendor/cranelift-bforest-0.106.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-bforest-0.106.2/Cargo.toml +0 -40
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/Cargo.toml +0 -175
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/build.rs +0 -395
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/alias_analysis.rs +0 -409
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/binemit/mod.rs +0 -171
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/bitset.rs +0 -165
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/context.rs +0 -384
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/egraph/elaborate.rs +0 -836
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/egraph.rs +0 -702
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/inst_predicates.rs +0 -217
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/ir/constant.rs +0 -462
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/ir/dfg.rs +0 -1734
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/ir/entities.rs +0 -598
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/ir/function.rs +0 -500
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/ir/instructions.rs +0 -1000
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/ir/memflags.rs +0 -310
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/ir/mod.rs +0 -110
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/ir/table.rs +0 -40
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/ir/trapcode.rs +0 -144
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/ir/types.rs +0 -629
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/aarch64/abi.rs +0 -1707
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/aarch64/inst/emit.rs +0 -3958
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/aarch64/inst/mod.rs +0 -3082
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/aarch64/inst.isle +0 -4197
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/aarch64/lower/isle.rs +0 -879
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/aarch64/lower.isle +0 -2917
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/aarch64/mod.rs +0 -241
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/aarch64/pcc.rs +0 -565
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/call_conv.rs +0 -119
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/riscv64/abi.rs +0 -1097
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/riscv64/inst/args.rs +0 -1974
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/riscv64/inst/emit.rs +0 -3485
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/riscv64/inst/encode.rs +0 -654
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/riscv64/inst.isle +0 -2928
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/riscv64/lower/isle.rs +0 -620
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/riscv64/lower.isle +0 -2864
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/s390x/abi.rs +0 -1041
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/s390x/inst/args.rs +0 -355
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/s390x/inst/emit.rs +0 -3663
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/s390x/inst.isle +0 -5031
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/s390x/lower.isle +0 -3979
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/abi.rs +0 -1303
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/encoding/evex.rs +0 -749
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/encoding/rex.rs +0 -598
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/encoding/vex.rs +0 -492
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/inst/args.rs +0 -2269
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/inst/emit.rs +0 -4390
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/inst/emit_state.rs +0 -72
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/inst/mod.rs +0 -2852
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/inst.isle +0 -5232
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/lower/isle.rs +0 -1065
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/lower.isle +0 -4770
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/lower.rs +0 -353
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/mod.rs +0 -233
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/isa/x64/pcc.rs +0 -939
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/legalizer/mod.rs +0 -356
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/legalizer/table.rs +0 -114
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/machinst/abi.rs +0 -2657
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/machinst/buffer.rs +0 -2509
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/machinst/inst_common.rs +0 -74
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/machinst/isle.rs +0 -914
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/machinst/lower.rs +0 -1443
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/machinst/mod.rs +0 -558
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/machinst/pcc.rs +0 -159
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/machinst/vcode.rs +0 -1809
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/nan_canonicalization.rs +0 -106
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/opts/cprop.isle +0 -266
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/opts.rs +0 -284
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/prelude.isle +0 -641
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/result.rs +0 -108
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/settings.rs +0 -602
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/verifier/mod.rs +0 -2033
- data/ext/cargo-vendor/cranelift-codegen-0.106.2/src/write.rs +0 -647
- data/ext/cargo-vendor/cranelift-codegen-meta-0.106.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-meta-0.106.2/Cargo.toml +0 -35
- data/ext/cargo-vendor/cranelift-codegen-meta-0.106.2/src/shared/entities.rs +0 -106
- data/ext/cargo-vendor/cranelift-codegen-meta-0.106.2/src/shared/formats.rs +0 -213
- data/ext/cargo-vendor/cranelift-codegen-meta-0.106.2/src/shared/instructions.rs +0 -3810
- data/ext/cargo-vendor/cranelift-codegen-shared-0.106.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-shared-0.106.2/Cargo.toml +0 -22
- data/ext/cargo-vendor/cranelift-control-0.106.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-control-0.106.2/Cargo.toml +0 -30
- data/ext/cargo-vendor/cranelift-entity-0.106.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-entity-0.106.2/Cargo.toml +0 -50
- data/ext/cargo-vendor/cranelift-frontend-0.106.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-frontend-0.106.2/Cargo.toml +0 -68
- data/ext/cargo-vendor/cranelift-isle-0.106.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-isle-0.106.2/Cargo.toml +0 -46
- data/ext/cargo-vendor/cranelift-native-0.106.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-native-0.106.2/Cargo.toml +0 -43
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/Cargo.toml +0 -106
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/src/code_translator.rs +0 -3680
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/src/environ/dummy.rs +0 -952
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/src/environ/mod.rs +0 -12
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/src/environ/spec.rs +0 -952
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/src/func_translator.rs +0 -432
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/src/lib.rs +0 -62
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/src/state.rs +0 -542
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/tests/wasm_testsuite.rs +0 -153
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/arith.wat +0 -13
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/br_table.wat +0 -30
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/call-simd.wat +0 -14
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/call.wat +0 -10
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/embenchen_fannkuch.wat +0 -12180
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/embenchen_fasta.wat +0 -12056
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/embenchen_ifs.wat +0 -11505
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/embenchen_primes.wat +0 -11185
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/fac-multi-value.wat +0 -19
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/fibonacci.wat +0 -22
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/globals.wat +0 -8
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/icall-simd.wat +0 -7
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/icall.wat +0 -7
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/if-reachability-translation-0.wat +0 -12
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/if-reachability-translation-1.wat +0 -12
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/if-reachability-translation-2.wat +0 -12
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/if-reachability-translation-3.wat +0 -12
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/if-reachability-translation-4.wat +0 -12
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/if-reachability-translation-5.wat +0 -14
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/if-reachability-translation-6.wat +0 -14
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/if-unreachable-else-params-2.wat +0 -18
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/if-unreachable-else-params.wat +0 -41
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/issue-1306-name-section-with-u32-max-function-index.wasm +0 -0
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/memory.wat +0 -11
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-0.wat +0 -3
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-1.wat +0 -6
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-10.wat +0 -10
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-11.wat +0 -7
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-12.wat +0 -9
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-13.wat +0 -10
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-14.wat +0 -10
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-15.wat +0 -22
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-16.wat +0 -9
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-17.wat +0 -26
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-2.wat +0 -6
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-3.wat +0 -13
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-4.wat +0 -13
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-5.wat +0 -11
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-6.wat +0 -11
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-7.wat +0 -9
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-8.wat +0 -12
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/multi-9.wat +0 -15
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/nullref.wat +0 -11
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/passive-data.wat +0 -12
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/pr2303.wat +0 -15
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/pr2559.wat +0 -51
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/ref-func-0.wat +0 -12
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/rust_fannkuch.wat +0 -1723
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/select.wat +0 -19
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/simd-store.wat +0 -83
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/simd.wat +0 -29
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/table-copy.wat +0 -22
- data/ext/cargo-vendor/cranelift-wasm-0.106.2/wasmtests/unreachable_code.wat +0 -77
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.20/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/deterministic-wasi-ctx-0.1.20/Cargo.toml +0 -49
- data/ext/cargo-vendor/mach-0.3.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/mach-0.3.2/Cargo.toml +0 -46
- data/ext/cargo-vendor/mach-0.3.2/LICENSE.md +0 -23
- data/ext/cargo-vendor/mach-0.3.2/README.md +0 -55
- data/ext/cargo-vendor/mach-0.3.2/ci/build_fail.sh +0 -7
- data/ext/cargo-vendor/mach-0.3.2/ci/deploy_and_run_on_ios_simulator.rs +0 -175
- data/ext/cargo-vendor/mach-0.3.2/ci/run.sh +0 -57
- data/ext/cargo-vendor/mach-0.3.2/examples/dump_process_registers.rs +0 -136
- data/ext/cargo-vendor/mach-0.3.2/src/exc.rs +0 -44
- data/ext/cargo-vendor/mach-0.3.2/src/kern_return.rs +0 -58
- data/ext/cargo-vendor/mach-0.3.2/src/lib.rs +0 -60
- data/ext/cargo-vendor/mach-0.3.2/src/mach_port.rs +0 -29
- data/ext/cargo-vendor/mach-0.3.2/src/message.rs +0 -248
- data/ext/cargo-vendor/mach-0.3.2/src/port.rs +0 -26
- data/ext/cargo-vendor/mach-0.3.2/src/structs.rs +0 -62
- data/ext/cargo-vendor/mach-0.3.2/src/task.rs +0 -41
- data/ext/cargo-vendor/mach-0.3.2/src/task_info.rs +0 -44
- data/ext/cargo-vendor/mach-0.3.2/src/thread_act.rs +0 -23
- data/ext/cargo-vendor/mach-0.3.2/src/thread_status.rs +0 -23
- data/ext/cargo-vendor/mach-0.3.2/src/traps.rs +0 -35
- data/ext/cargo-vendor/mach-0.3.2/src/vm.rs +0 -247
- data/ext/cargo-vendor/mach-0.3.2/src/vm_attributes.rs +0 -18
- data/ext/cargo-vendor/mach-0.3.2/src/vm_page_size.rs +0 -33
- data/ext/cargo-vendor/mach-0.3.2/src/vm_prot.rs +0 -14
- data/ext/cargo-vendor/mach-0.3.2/src/vm_purgable.rs +0 -42
- data/ext/cargo-vendor/mach-0.3.2/src/vm_region.rs +0 -238
- data/ext/cargo-vendor/mach-0.3.2/src/vm_statistics.rs +0 -78
- data/ext/cargo-vendor/mach-0.3.2/src/vm_sync.rs +0 -11
- data/ext/cargo-vendor/mach-0.3.2/src/vm_types.rs +0 -19
- data/ext/cargo-vendor/wasi-common-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasi-common-19.0.2/Cargo.toml +0 -221
- data/ext/cargo-vendor/wasi-common-19.0.2/src/ctx.rs +0 -128
- data/ext/cargo-vendor/wasi-common-19.0.2/src/lib.rs +0 -189
- data/ext/cargo-vendor/wasi-common-19.0.2/src/snapshots/preview_1.rs +0 -1491
- data/ext/cargo-vendor/wasi-common-19.0.2/tests/all/async_.rs +0 -289
- data/ext/cargo-vendor/wasi-common-19.0.2/tests/all/sync.rs +0 -275
- data/ext/cargo-vendor/wasm-encoder-0.201.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasm-encoder-0.201.0/Cargo.toml +0 -43
- data/ext/cargo-vendor/wasm-encoder-0.201.0/src/component/types.rs +0 -792
- data/ext/cargo-vendor/wasmparser-0.201.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmparser-0.201.0/Cargo.lock +0 -744
- data/ext/cargo-vendor/wasmparser-0.201.0/Cargo.toml +0 -66
- data/ext/cargo-vendor/wasmparser-0.201.0/src/readers/component/types.rs +0 -549
- data/ext/cargo-vendor/wasmparser-0.201.0/src/validator/operators.rs +0 -4074
- data/ext/cargo-vendor/wasmparser-0.201.0/src/validator/types.rs +0 -4449
- data/ext/cargo-vendor/wasmprinter-0.201.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmprinter-0.201.0/Cargo.toml +0 -45
- data/ext/cargo-vendor/wasmprinter-0.201.0/src/lib.rs +0 -3143
- data/ext/cargo-vendor/wasmprinter-0.201.0/src/operator.rs +0 -1110
- data/ext/cargo-vendor/wasmprinter-0.201.0/tests/all.rs +0 -279
- data/ext/cargo-vendor/wasmtime-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-19.0.2/Cargo.toml +0 -261
- data/ext/cargo-vendor/wasmtime-19.0.2/src/compile.rs +0 -835
- data/ext/cargo-vendor/wasmtime-19.0.2/src/config.rs +0 -2649
- data/ext/cargo-vendor/wasmtime-19.0.2/src/engine/serialization.rs +0 -809
- data/ext/cargo-vendor/wasmtime-19.0.2/src/engine.rs +0 -735
- data/ext/cargo-vendor/wasmtime-19.0.2/src/lib.rs +0 -293
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/code_memory.rs +0 -335
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/component.rs +0 -586
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/func/host.rs +0 -456
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/func/options.rs +0 -541
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/func/typed.rs +0 -2484
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/func.rs +0 -752
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/instance.rs +0 -818
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/linker.rs +0 -788
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/matching.rs +0 -212
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/mod.rs +0 -678
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/resources.rs +0 -1169
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/types.rs +0 -961
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/component/values.rs +0 -1388
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/coredump.rs +0 -321
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/externals/global.rs +0 -249
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/externals/table.rs +0 -416
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/func/typed.rs +0 -985
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/func.rs +0 -2585
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/instance.rs +0 -981
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/instantiate.rs +0 -423
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/linker.rs +0 -1518
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/memory.rs +0 -997
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/module/registry.rs +0 -360
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/module.rs +0 -1367
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/profiling.rs +0 -222
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/ref/gc_ref.rs +0 -110
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/ref/no_gc_ref.rs +0 -60
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/ref.rs +0 -9
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/store/data.rs +0 -289
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/store.rs +0 -2445
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/trampoline/func.rs +0 -144
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/trampoline/global.rs +0 -70
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/trampoline/memory.rs +0 -268
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/trampoline/table.rs +0 -20
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/trap.rs +0 -641
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/type_registry.rs +0 -640
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/types/matching.rs +0 -334
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/types.rs +0 -1236
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/v128.rs +0 -131
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime/values.rs +0 -771
- data/ext/cargo-vendor/wasmtime-19.0.2/src/runtime.rs +0 -112
- data/ext/cargo-vendor/wasmtime-asm-macros-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-asm-macros-19.0.2/Cargo.toml +0 -22
- data/ext/cargo-vendor/wasmtime-cache-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cache-19.0.2/Cargo.toml +0 -81
- data/ext/cargo-vendor/wasmtime-component-macro-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-component-macro-19.0.2/Cargo.toml +0 -67
- data/ext/cargo-vendor/wasmtime-component-macro-19.0.2/src/component.rs +0 -1295
- data/ext/cargo-vendor/wasmtime-component-macro-19.0.2/tests/codegen.rs +0 -191
- data/ext/cargo-vendor/wasmtime-component-util-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-component-util-19.0.2/Cargo.toml +0 -25
- data/ext/cargo-vendor/wasmtime-cranelift-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cranelift-19.0.2/Cargo.toml +0 -114
- data/ext/cargo-vendor/wasmtime-cranelift-19.0.2/src/builder.rs +0 -127
- data/ext/cargo-vendor/wasmtime-cranelift-19.0.2/src/compiler/component.rs +0 -960
- data/ext/cargo-vendor/wasmtime-cranelift-19.0.2/src/compiler.rs +0 -1316
- data/ext/cargo-vendor/wasmtime-cranelift-19.0.2/src/debug/transform/address_transform.rs +0 -784
- data/ext/cargo-vendor/wasmtime-cranelift-19.0.2/src/debug/transform/expression.rs +0 -1252
- data/ext/cargo-vendor/wasmtime-cranelift-19.0.2/src/func_environ.rs +0 -2846
- data/ext/cargo-vendor/wasmtime-cranelift-19.0.2/src/lib.rs +0 -186
- data/ext/cargo-vendor/wasmtime-cranelift-shared-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cranelift-shared-19.0.2/Cargo.toml +0 -71
- data/ext/cargo-vendor/wasmtime-cranelift-shared-19.0.2/src/compiled_function.rs +0 -231
- data/ext/cargo-vendor/wasmtime-cranelift-shared-19.0.2/src/lib.rs +0 -130
- data/ext/cargo-vendor/wasmtime-cranelift-shared-19.0.2/src/obj.rs +0 -564
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/Cargo.lock +0 -782
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/Cargo.toml +0 -141
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/address_map.rs +0 -191
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/builtin.rs +0 -155
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/compilation.rs +0 -402
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/component/artifacts.rs +0 -45
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/component/compiler.rs +0 -47
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/component/info.rs +0 -594
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/component/translate/adapt.rs +0 -457
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/component/translate/inline.rs +0 -1332
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/component/types.rs +0 -1933
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/component.rs +0 -97
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/fact/trampoline.rs +0 -3229
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/fact/transcode.rs +0 -168
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/fact.rs +0 -713
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/lib.rs +0 -66
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/module.rs +0 -1117
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/module_artifacts.rs +0 -377
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/module_environ.rs +0 -903
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/obj.rs +0 -172
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/trap_encoding.rs +0 -245
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/tunables.rs +0 -154
- data/ext/cargo-vendor/wasmtime-environ-19.0.2/src/vmoffsets.rs +0 -918
- data/ext/cargo-vendor/wasmtime-fiber-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-fiber-19.0.2/Cargo.toml +0 -63
- data/ext/cargo-vendor/wasmtime-fiber-19.0.2/src/unix.rs +0 -265
- data/ext/cargo-vendor/wasmtime-jit-debug-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-debug-19.0.2/Cargo.toml +0 -67
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-19.0.2/Cargo.toml +0 -46
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/Cargo.toml +0 -140
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/build.rs +0 -28
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/arch/aarch64.rs +0 -120
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/arch/riscv64.rs +0 -88
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/arch/s390x.S +0 -70
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/arch/s390x.rs +0 -61
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/arch/x86_64.rs +0 -104
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/component/libcalls.rs +0 -572
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/component.rs +0 -864
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/export.rs +0 -105
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/externref/gc.rs +0 -1058
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/externref/no_gc.rs +0 -125
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/externref.rs +0 -24
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/instance/allocator/on_demand.rs +0 -196
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/instance/allocator/pooling/table_pool.rs +0 -227
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/instance/allocator/pooling.rs +0 -658
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/instance/allocator.rs +0 -730
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/instance.rs +0 -1527
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/lib.rs +0 -264
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/libcalls.rs +0 -776
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/memory.rs +0 -972
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/send_sync_ptr.rs +0 -93
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/sys/custom/mmap.rs +0 -111
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/sys/custom/traphandlers.rs +0 -51
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/sys/miri/mmap.rs +0 -94
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/sys/unix/machports.rs +0 -488
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/sys/unix/mmap.rs +0 -151
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/sys/unix/signals.rs +0 -402
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/sys/windows/traphandlers.rs +0 -105
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/table.rs +0 -643
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/traphandlers/coredump.rs +0 -38
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/traphandlers.rs +0 -736
- data/ext/cargo-vendor/wasmtime-runtime-19.0.2/src/vmcontext.rs +0 -1215
- data/ext/cargo-vendor/wasmtime-slab-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-slab-19.0.2/Cargo.toml +0 -21
- data/ext/cargo-vendor/wasmtime-slab-19.0.2/src/lib.rs +0 -450
- data/ext/cargo-vendor/wasmtime-types-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-types-19.0.2/Cargo.toml +0 -36
- data/ext/cargo-vendor/wasmtime-types-19.0.2/src/lib.rs +0 -640
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-19.0.2/Cargo.toml +0 -32
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/Cargo.toml +0 -194
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/command.rs +0 -122
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/ctx.rs +0 -353
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/filesystem.rs +0 -373
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/host/filesystem/sync.rs +0 -517
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/host/filesystem.rs +0 -1081
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/host/io.rs +0 -366
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/host/network.rs +0 -519
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/host/tcp.rs +0 -677
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/ip_name_lookup.rs +0 -123
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/lib.rs +0 -323
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/network.rs +0 -108
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/p1ctx.rs +0 -37
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/pipe.rs +0 -826
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/poll.rs +0 -179
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/preview0.rs +0 -872
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/preview1.rs +0 -2361
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/stdio/worker_thread_stdin.rs +0 -173
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/stdio.rs +0 -443
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/tcp.rs +0 -350
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/udp.rs +0 -125
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/src/write_stream.rs +0 -203
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/tests/all/api.rs +0 -210
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/tests/all/async_.rs +0 -380
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/tests/all/main.rs +0 -106
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/tests/all/preview1.rs +0 -243
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/tests/all/sync.rs +0 -315
- data/ext/cargo-vendor/wasmtime-wasi-19.0.2/wit/deps/io/poll.wit +0 -42
- data/ext/cargo-vendor/wasmtime-winch-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-winch-19.0.2/Cargo.toml +0 -77
- data/ext/cargo-vendor/wasmtime-winch-19.0.2/src/builder.rs +0 -65
- data/ext/cargo-vendor/wasmtime-winch-19.0.2/src/compiler.rs +0 -283
- data/ext/cargo-vendor/wasmtime-wit-bindgen-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wit-bindgen-19.0.2/Cargo.toml +0 -41
- data/ext/cargo-vendor/wasmtime-wit-bindgen-19.0.2/src/lib.rs +0 -2104
- data/ext/cargo-vendor/wasmtime-wit-bindgen-19.0.2/src/rust.rs +0 -421
- data/ext/cargo-vendor/wasmtime-wit-bindgen-19.0.2/src/types.rs +0 -194
- data/ext/cargo-vendor/wasmtime-wmemcheck-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wmemcheck-19.0.2/Cargo.toml +0 -29
- data/ext/cargo-vendor/wasmtime-wmemcheck-19.0.2/src/lib.rs +0 -404
- data/ext/cargo-vendor/wast-201.0.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wast-201.0.0/Cargo.toml +0 -59
- data/ext/cargo-vendor/wast-201.0.0/src/component/binary.rs +0 -1004
- data/ext/cargo-vendor/wast-201.0.0/src/component/resolve.rs +0 -1006
- data/ext/cargo-vendor/wast-201.0.0/src/component/types.rs +0 -991
- data/ext/cargo-vendor/wast-201.0.0/src/component/wast.rs +0 -160
- data/ext/cargo-vendor/wast-201.0.0/src/core/binary.rs +0 -1365
- data/ext/cargo-vendor/wast-201.0.0/src/core/expr.rs +0 -1993
- data/ext/cargo-vendor/wast-201.0.0/src/core/func.rs +0 -136
- data/ext/cargo-vendor/wast-201.0.0/src/core/memory.rs +0 -281
- data/ext/cargo-vendor/wast-201.0.0/src/core/resolve/deinline_import_export.rs +0 -233
- data/ext/cargo-vendor/wast-201.0.0/src/core/resolve/names.rs +0 -763
- data/ext/cargo-vendor/wast-201.0.0/src/core/resolve/types.rs +0 -271
- data/ext/cargo-vendor/wast-201.0.0/src/core/table.rs +0 -289
- data/ext/cargo-vendor/wast-201.0.0/src/core/types.rs +0 -861
- data/ext/cargo-vendor/wast-201.0.0/src/core/wast.rs +0 -256
- data/ext/cargo-vendor/wast-201.0.0/src/lib.rs +0 -542
- data/ext/cargo-vendor/wast-201.0.0/src/names.rs +0 -89
- data/ext/cargo-vendor/wast-201.0.0/src/parser.rs +0 -1374
- data/ext/cargo-vendor/wast-201.0.0/src/token.rs +0 -718
- data/ext/cargo-vendor/wast-201.0.0/src/wast.rs +0 -420
- data/ext/cargo-vendor/wast-201.0.0/src/wat.rs +0 -63
- data/ext/cargo-vendor/wast-201.0.0/tests/annotations.rs +0 -200
- data/ext/cargo-vendor/wast-201.0.0/tests/parse-fail.rs +0 -98
- data/ext/cargo-vendor/wat-1.201.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wat-1.201.0/Cargo.toml +0 -33
- data/ext/cargo-vendor/wiggle-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-19.0.2/Cargo.toml +0 -122
- data/ext/cargo-vendor/wiggle-19.0.2/src/borrow.rs +0 -259
- data/ext/cargo-vendor/wiggle-19.0.2/src/guest_type.rs +0 -237
- data/ext/cargo-vendor/wiggle-19.0.2/src/lib.rs +0 -1199
- data/ext/cargo-vendor/wiggle-19.0.2/src/wasmtime.rs +0 -101
- data/ext/cargo-vendor/wiggle-generate-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-generate-19.0.2/Cargo.toml +0 -65
- data/ext/cargo-vendor/wiggle-macro-19.0.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-macro-19.0.2/Cargo.toml +0 -55
- data/ext/cargo-vendor/winch-codegen-0.17.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/winch-codegen-0.17.2/Cargo.toml +0 -77
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/abi/mod.rs +0 -737
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/codegen/bounds.rs +0 -220
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/codegen/builtin.rs +0 -272
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/codegen/call.rs +0 -413
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/codegen/env.rs +0 -399
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/codegen/mod.rs +0 -672
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/isa/aarch64/abi.rs +0 -309
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/isa/aarch64/asm.rs +0 -247
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/isa/aarch64/masm.rs +0 -557
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/isa/aarch64/mod.rs +0 -152
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/isa/aarch64/regs.rs +0 -183
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/isa/mod.rs +0 -232
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/isa/x64/abi.rs +0 -543
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/isa/x64/asm.rs +0 -1418
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/isa/x64/masm.rs +0 -1300
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/isa/x64/mod.rs +0 -192
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/lib.rs +0 -21
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/masm.rs +0 -955
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/trampoline.rs +0 -626
- data/ext/cargo-vendor/winch-codegen-0.17.2/src/visitor.rs +0 -2101
- data/ext/cargo-vendor/wit-parser-0.201.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wit-parser-0.201.0/Cargo.toml +0 -101
- data/ext/cargo-vendor/wit-parser-0.201.0/src/abi.rs +0 -295
- data/ext/cargo-vendor/wit-parser-0.201.0/src/ast/lex.rs +0 -747
- data/ext/cargo-vendor/wit-parser-0.201.0/src/ast/resolve.rs +0 -1427
- data/ext/cargo-vendor/wit-parser-0.201.0/src/ast.rs +0 -1348
- data/ext/cargo-vendor/wit-parser-0.201.0/src/decoding.rs +0 -1764
- data/ext/cargo-vendor/wit-parser-0.201.0/src/lib.rs +0 -747
- data/ext/cargo-vendor/wit-parser-0.201.0/src/resolve.rs +0 -2239
- data/ext/cargo-vendor/wit-parser-0.201.0/src/serde_.rs +0 -108
- data/ext/cargo-vendor/wit-parser-0.201.0/src/sizealign.rs +0 -144
- data/ext/cargo-vendor/wit-parser-0.201.0/tests/all.rs +0 -185
- data/ext/cargo-vendor/wit-parser-0.201.0/tests/ui/functions.wit +0 -14
- data/ext/cargo-vendor/wit-parser-0.201.0/tests/ui/functions.wit.json +0 -166
- data/ext/cargo-vendor/wit-parser-0.201.0/tests/ui/resources-multiple.wit +0 -20
- data/ext/cargo-vendor/wit-parser-0.201.0/tests/ui/resources-multiple.wit.json +0 -281
- data/ext/cargo-vendor/wit-parser-0.201.0/tests/ui/types.wit +0 -60
- data/ext/cargo-vendor/wit-parser-0.201.0/tests/ui/types.wit.json +0 -774
- data/ext/cargo-vendor/wit-parser-0.201.0/tests/ui/union-fuzz-2.wit +0 -12
- data/ext/cargo-vendor/wit-parser-0.201.0/tests/ui/union-fuzz-2.wit.json +0 -72
- data/ext/cargo-vendor/wit-parser-0.201.0/tests/ui/wasi.wit +0 -178
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/build/probe.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/rust-toolchain.toml +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/src/context.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/src/ensure.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/src/ptr.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/common/mod.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/compiletest.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/drop/mod.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/test_autotrait.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/test_backtrace.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/test_boxed.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/test_chain.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/test_context.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/test_convert.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/test_downcast.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/test_ffi.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/test_fmt.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/test_source.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/ui/chained-comparison.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/ui/chained-comparison.stderr +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/ui/empty-ensure.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/ui/empty-ensure.stderr +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/ui/must-use.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/ui/must-use.stderr +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/ui/no-impl.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/ui/temporary-value.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/ui/temporary-value.stderr +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/ui/wrong-interpolation.rs +0 -0
- /data/ext/cargo-vendor/{anyhow-1.0.79 → anyhow-1.0.83}/tests/ui/wrong-interpolation.stderr +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.106.2 → cranelift-bforest-0.107.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.106.2 → cranelift-bforest-0.107.2}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.106.2 → cranelift-bforest-0.107.2}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.106.2 → cranelift-bforest-0.107.2}/src/map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.106.2 → cranelift-bforest-0.107.2}/src/node.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.106.2 → cranelift-bforest-0.107.2}/src/path.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.106.2 → cranelift-bforest-0.107.2}/src/pool.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.106.2 → cranelift-bforest-0.107.2}/src/set.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/benches/x64-evex-encoding.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/binemit/stack_map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/cfg_printer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ctxhash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/cursor.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/data_value.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/dbg.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/dce.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/dominator_tree.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/egraph/cost.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/flowgraph.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/fx.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/incremental_cache.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/atomic_rmw_op.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/builder.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/condcodes.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/dynamic_type.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/extfunc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/extname.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/globalvalue.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/immediates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/jumptable.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/known_symbol.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/layout.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/libcall.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/memtype.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/pcc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/progpoint.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/sourceloc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/ir/stackslot.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/aarch64/inst/args.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/aarch64/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/aarch64/inst/imms.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/aarch64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/aarch64/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/aarch64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/aarch64/inst_neon.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/aarch64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/aarch64/lower_dynamic_neon.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/aarch64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/inst/imms.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/inst/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/inst/vector.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/inst_vector.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/riscv64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/s390x/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/s390x/inst/imms.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/s390x/inst/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/s390x/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/s390x/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/s390x/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/s390x/lower/isle.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/s390x/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/s390x/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/s390x/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/unwind/winx64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/x64/encoding/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/x64/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/x64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/x64/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/x64/inst/unwind/winx64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/x64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/x64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isa/x64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/isle_prelude.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/iterators.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/legalizer/globalvalue.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/loop_analysis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/machinst/blockorder.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/machinst/compile.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/machinst/helpers.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/machinst/reg.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/machinst/valueregs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/opts/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/opts/arithmetic.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/opts/bitops.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/opts/extends.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/opts/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/opts/icmp.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/opts/remat.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/opts/selects.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/opts/shifts.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/opts/spaceship.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/opts/vector.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/prelude_lower.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/prelude_opt.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/print_errors.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/remove_constant_phis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/scoped_hash_map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/souper_harvest.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/timing.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/unionfind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/unreachable_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.106.2 → cranelift-codegen-0.107.2}/src/value_label.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/cdsl/formats.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/cdsl/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/cdsl/isa.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/cdsl/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/cdsl/operands.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/cdsl/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/cdsl/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/cdsl/typevar.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/gen_inst.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/gen_settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/gen_types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/isa/arm64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/isa/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/isa/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/isa/s390x.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/isa/x86.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/shared/immediates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/shared/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/shared/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/shared/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/srcgen.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.106.2 → cranelift-codegen-meta-0.107.2}/src/unique_table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.106.2 → cranelift-codegen-shared-0.107.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.106.2 → cranelift-codegen-shared-0.107.2}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.106.2 → cranelift-codegen-shared-0.107.2}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.106.2 → cranelift-codegen-shared-0.107.2}/src/constants.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.106.2 → cranelift-codegen-shared-0.107.2}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.106.2 → cranelift-control-0.107.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.106.2 → cranelift-control-0.107.2}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.106.2 → cranelift-control-0.107.2}/src/chaos.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.106.2 → cranelift-control-0.107.2}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.106.2 → cranelift-control-0.107.2}/src/zero_sized.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/src/boxed_slice.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/src/iter.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/src/keys.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/src/list.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/src/map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/src/packed_option.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/src/primary.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/src/set.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/src/sparse.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.106.2 → cranelift-entity-0.107.2}/src/unsigned.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.106.2 → cranelift-frontend-0.107.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.106.2 → cranelift-frontend-0.107.2}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.106.2 → cranelift-frontend-0.107.2}/src/frontend.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.106.2 → cranelift-frontend-0.107.2}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.106.2 → cranelift-frontend-0.107.2}/src/ssa.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.106.2 → cranelift-frontend-0.107.2}/src/switch.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.106.2 → cranelift-frontend-0.107.2}/src/variable.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/build.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/fail/bad_converters.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/fail/error1.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/fail/extra_parens.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/fail/impure_expression.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/fail/impure_rhs.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/fail/multi_internal_etor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/fail/multi_prio.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/link/borrows.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/link/borrows_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/link/iflets.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/link/iflets_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/link/multi_constructor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/link/multi_constructor_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/link/multi_extractor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/link/multi_extractor_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/link/test.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/link/test_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/pass/bound_var.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/pass/construct_and_extract.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/pass/conversions.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/pass/conversions_extern.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/pass/let.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/pass/nodebug.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/pass/prio_trie_bug.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/pass/test2.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/pass/test3.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/pass/test4.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/pass/tutorial.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/run/iconst.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/run/iconst_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/run/let_shadowing.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/isle_examples/run/let_shadowing_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/ast.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/codegen.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/compile.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/lexer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/log.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/overlap.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/parser.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/sema.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/serialize.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/src/trie_again.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.106.2 → cranelift-isle-0.107.2}/tests/run_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.106.2 → cranelift-native-0.107.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.106.2 → cranelift-native-0.107.2}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.106.2 → cranelift-native-0.107.2}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.106.2 → cranelift-native-0.107.2}/src/riscv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.106.2 → cranelift-wasm-0.107.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.106.2 → cranelift-wasm-0.107.2}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.106.2 → cranelift-wasm-0.107.2}/src/code_translator/bounds_checks.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.106.2 → cranelift-wasm-0.107.2}/src/heap.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.106.2 → cranelift-wasm-0.107.2}/src/module_translator.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.106.2 → cranelift-wasm-0.107.2}/src/sections_translator.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.106.2 → cranelift-wasm-0.107.2}/src/translation_utils.rs +0 -0
- /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.20 → deterministic-wasi-ctx-0.1.21}/README.md +0 -0
- /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.20 → deterministic-wasi-ctx-0.1.21}/src/clocks.rs +0 -0
- /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.20 → deterministic-wasi-ctx-0.1.21}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.20 → deterministic-wasi-ctx-0.1.21}/src/noop_scheduler.rs +0 -0
- /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.20 → deterministic-wasi-ctx-0.1.21}/tests/clocks.rs +0 -0
- /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.20 → deterministic-wasi-ctx-0.1.21}/tests/common/mod.rs +0 -0
- /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.20 → deterministic-wasi-ctx-0.1.21}/tests/random.rs +0 -0
- /data/ext/cargo-vendor/{deterministic-wasi-ctx-0.1.20 → deterministic-wasi-ctx-0.1.21}/tests/scheduler.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/boolean.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/bootstrap.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/clock.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/clock_priv.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/clock_reply.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/clock_types.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/dyld_kernel.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/exception_types.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/mach_init.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/mach_time.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/mach_types.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/memory_object_types.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/vm_behavior.rs +0 -0
- /data/ext/cargo-vendor/{mach-0.3.2 → mach2-0.4.2}/src/vm_inherit.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/dir.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/file.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/pipe.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/random.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/sched/subscription.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/snapshots/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/snapshots/preview_0.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/snapshots/preview_1/error.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/string_array.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/sync/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/sync/dir.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/sync/file.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/sync/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/sync/net.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/sync/sched/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/sync/sched/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/sync/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/sync/stdio.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/table.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/tokio/dir.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/tokio/file.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/tokio/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/tokio/net.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/tokio/sched/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/tokio/sched/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/tokio/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/src/tokio/stdio.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/tests/all/main.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/witx/preview0/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/witx/preview0/wasi_unstable.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/witx/preview1/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-19.0.2 → wasi-common-20.0.0}/witx/preview1/wasi_snapshot_preview1.witx +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/component/aliases.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/component/builder.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/component/canonicals.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/component/components.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/component/exports.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/component/imports.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/component/instances.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/component/modules.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/component/names.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/component/start.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/component.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/code.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/custom.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/data.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/dump.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/elements.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/exports.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/functions.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/globals.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/imports.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/linking.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/memories.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/names.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/producers.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/start.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/tables.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/tags.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core/types.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/core.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.201.0 → wasm-encoder-0.202.0}/src/raw.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasm-encoder-0.208.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmprinter-0.201.0 → wasmparser-0.202.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/benches/benchmark.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/examples/simple.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/binary_reader.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/limits.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/parser.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/component/aliases.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/component/canonicals.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/component/exports.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/component/imports.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/component/instances.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/component/names.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/component/start.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/branch_hinting.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/code.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/coredumps.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/custom.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/data.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/dylink0.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/elements.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/exports.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/functions.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/globals.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/imports.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/init.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/linking.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/memories.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/names.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/operators.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/producers.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/tables.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/tags.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/types/matches.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core/types.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers/core.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/readers.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/validator/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/validator/core/canonical.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/validator/core.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/validator/func.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/validator/names.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/src/validator.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.201.0 → wasmparser-0.202.0}/tests/big-module.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmprinter-0.202.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmprinter-0.201.0 → wasmprinter-0.202.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-19.0.2 → wasmtime-20.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/profiling_agent/jitdump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/profiling_agent/perfmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/profiling_agent/vtune.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/profiling_agent.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/code.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/component/resource_table.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/component/storage.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/component/store.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/debug.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/externals.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/limits.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/signatures.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/stack.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/store/context.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/store/func_refs.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/trampoline.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/uninhabited.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-19.0.2 → wasmtime-20.0.0}/src/runtime/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-asm-macros-19.0.2 → wasmtime-asm-macros-20.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cache-20.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-19.0.2 → wasmtime-cache-20.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-19.0.2 → wasmtime-cache-20.0.0}/src/config/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-19.0.2 → wasmtime-cache-20.0.0}/src/config.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-19.0.2 → wasmtime-cache-20.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-19.0.2 → wasmtime-cache-20.0.0}/src/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-19.0.2 → wasmtime-cache-20.0.0}/src/worker/tests/system_time_stub.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-19.0.2 → wasmtime-cache-20.0.0}/src/worker/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-19.0.2 → wasmtime-cache-20.0.0}/src/worker.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-19.0.2 → wasmtime-cache-20.0.0}/tests/cache_write_default_config.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/src/bindgen.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/char.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/conventions.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/direct-import.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/empty.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/flags.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/floats.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/function-new.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/integers.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/lists.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/many-arguments.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/multi-return.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/multiversion/deps/v1/root.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/multiversion/deps/v2/root.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/multiversion/root.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/records.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/rename.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/resources-export.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/resources-import.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/share-types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/simple-functions.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/simple-lists.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/simple-wasi.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/small-anonymous.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/smoke-default.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/smoke-export.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/smoke.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/strings.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/unversioned-foo.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/use-paths.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/variants.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/wat.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-19.0.2 → wasmtime-component-macro-20.0.0}/tests/codegen/worlds-with-types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-util-19.0.2 → wasmtime-component-util-20.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-cranelift-20.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/SECURITY.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/src/debug/gc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/src/debug/transform/attr.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/src/debug/transform/line_program.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/src/debug/transform/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/src/debug/transform/range_info_builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/src/debug/transform/refs.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/src/debug/transform/simulate.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/src/debug/transform/unit.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/src/debug/transform/utils.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/src/debug/write_debuginfo.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-19.0.2 → wasmtime-cranelift-20.0.0}/src/debug.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-19.0.2 → wasmtime-cranelift-20.0.0}/src/isa_builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-19.0.2 → wasmtime-environ-20.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/examples/factc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/component/dfg.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/component/translate.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/component/types/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/component/vmcomponent_offsets.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/demangling.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/fact/core_types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/fact/signature.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/fact/traps.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/module_types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/ref_bits.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/scopevec.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-19.0.2 → wasmtime-environ-20.0.0}/src/stack_map.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-fiber-20.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-19.0.2 → wasmtime-fiber-20.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-19.0.2 → wasmtime-fiber-20.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-19.0.2 → wasmtime-fiber-20.0.0}/src/unix/aarch64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-19.0.2 → wasmtime-fiber-20.0.0}/src/unix/arm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-19.0.2 → wasmtime-fiber-20.0.0}/src/unix/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-19.0.2 → wasmtime-fiber-20.0.0}/src/unix/s390x.S +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-19.0.2 → wasmtime-fiber-20.0.0}/src/unix/x86.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-19.0.2 → wasmtime-fiber-20.0.0}/src/unix/x86_64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-19.0.2 → wasmtime-fiber-20.0.0}/src/windows.c +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-19.0.2 → wasmtime-fiber-20.0.0}/src/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-19.0.2 → wasmtime-jit-debug-20.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-19.0.2 → wasmtime-jit-debug-20.0.0}/src/gdb_jit_int.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-19.0.2 → wasmtime-jit-debug-20.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-19.0.2 → wasmtime-jit-debug-20.0.0}/src/perf_jitdump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-19.0.2 → wasmtime-jit-icache-coherence-20.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-19.0.2 → wasmtime-jit-icache-coherence-20.0.0}/src/libc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-19.0.2 → wasmtime-jit-icache-coherence-20.0.0}/src/miri.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-19.0.2 → wasmtime-jit-icache-coherence-20.0.0}/src/win.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-types-19.0.2 → wasmtime-runtime-20.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/proptest-regressions/instance/allocator/pooling/memory_pool.txt +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/arch/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/component/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/cow.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/debug_builtins.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/helpers.c +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/imports.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/instance/allocator/pooling/index_allocator.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/instance/allocator/pooling/memory_pool.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/instance/allocator/pooling/stack_pool.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/mmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/mmap_vec.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/module_id.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/mpk/disabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/mpk/enabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/mpk/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/mpk/pkru.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/mpk/sys.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/store_box.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/custom/capi.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/custom/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/custom/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/custom/vm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/miri/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/miri/traphandlers.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/miri/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/miri/vm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/unix/macos_traphandlers.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/unix/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/unix/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/unix/vm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/windows/mmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/windows/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/windows/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/sys/windows/vm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2/src → wasmtime-runtime-20.0.0/src/threads}/parking_spot.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/traphandlers/backtrace.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-19.0.2 → wasmtime-runtime-20.0.0}/src/vmcontext/vm_host_func_context.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-types-20.0.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-types-19.0.2 → wasmtime-types-20.0.2}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-versioned-export-macros-19.0.2 → wasmtime-versioned-export-macros-20.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wasmtime-wasi-20.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/clocks/host.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/host/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/host/env.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/host/exit.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/host/instance_network.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/host/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/host/random.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/host/tcp_create_socket.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/host/udp.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/host/udp_create_socket.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/random.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/src/stream.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/tests/process_stdin.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/command-extended.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/cli/command.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/cli/environment.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/cli/exit.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/cli/imports.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/cli/run.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/cli/stdio.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/cli/terminal.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/clocks/monotonic-clock.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/clocks/wall-clock.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/clocks/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/filesystem/preopens.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/filesystem/types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/filesystem/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/http/handler.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/http/proxy.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/http/types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/io/error.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/io/streams.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/io/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/random/insecure-seed.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/random/insecure.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/random/random.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/random/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/sockets/instance-network.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/sockets/ip-name-lookup.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/sockets/network.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/sockets/tcp-create-socket.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/sockets/tcp.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/sockets/udp-create-socket.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/sockets/udp.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/deps/sockets/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/wit/test.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/witx/preview0/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/witx/preview0/wasi_unstable.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/witx/preview1/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-19.0.2 → wasmtime-wasi-20.0.0}/witx/preview1/wasi_snapshot_preview1.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-19.0.2 → wasmtime-winch-20.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-19.0.2 → wasmtime-winch-20.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wit-bindgen-19.0.2 → wasmtime-wit-bindgen-20.0.0}/src/source.rs +0 -0
- /data/ext/cargo-vendor/{wat-1.201.0 → wast-208.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/README.md +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/component/alias.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/component/component.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/component/custom.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/component/expand.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/component/export.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/component/func.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/component/import.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/component/instance.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/component/item_ref.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/component/module.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/component.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/core/custom.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/core/export.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/core/global.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/core/import.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/core/module.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/core/resolve/mod.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/core/tag.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/core.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/encode.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/gensym.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/src/lexer.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/comments.rs +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-core-func-alias.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-core-func-alias.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-func-alias.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-func-alias.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-index.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-index.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-name.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-name.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-name2.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-name2.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-name3.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/bad-name3.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/block1.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/block1.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/block2.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/block2.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/block3.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/block3.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment0.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment0.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment1.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment1.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment2.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment2.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment3.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment3.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment4.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment4.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment5.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment5.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment6.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment6.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment7.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment7.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment8.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-block-comment8.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment0.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment0.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment1.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment1.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment2.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment2.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment3.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment3.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment4.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment4.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment5.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment5.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment6.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment6.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment7.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment7.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment8.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-line-comment8.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string0.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string0.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string1.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string1.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string2.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string2.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string3.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string3.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string4.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string4.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string5.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string5.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string6.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string6.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string7.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string7.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string8.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/confusing-string8.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/inline1.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/inline1.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/newline-in-string.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/newline-in-string.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string1.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string1.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string10.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string10.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string11.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string11.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string12.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string12.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string13.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string13.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string14.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string14.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string15.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string15.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string16.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string16.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string2.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string2.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string3.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string3.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string4.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string4.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string5.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string5.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string6.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string6.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string7.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string7.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string8.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string8.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string9.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/string9.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/unbalanced.wat +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/parse-fail/unbalanced.wat.err +0 -0
- /data/ext/cargo-vendor/{wast-201.0.0 → wast-208.0.1}/tests/recursive.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-19.0.2 → wat-1.208.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wat-1.201.0 → wat-1.208.1}/README.md +0 -0
- /data/ext/cargo-vendor/{wat-1.201.0 → wat-1.208.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-20.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wiggle-19.0.2 → wiggle-20.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wiggle-19.0.2 → wiggle-20.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-19.0.2 → wiggle-20.0.0}/src/region.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-macro-19.0.2 → wiggle-generate-20.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/codegen_settings.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/config.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/funcs.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/lifetimes.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/module_trait.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/names.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/types/error.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/types/flags.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/types/handle.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/types/mod.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/types/record.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/types/variant.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-19.0.2 → wiggle-generate-20.0.0}/src/wasmtime.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-macro-19.0.2 → wiggle-macro-20.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/src/abi/local.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/src/codegen/context.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/src/codegen/control.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/src/frame/mod.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/src/isa/aarch64/address.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/src/isa/reg.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/src/isa/x64/address.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/src/isa/x64/regs.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/src/regalloc.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/src/regset.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.17.2 → winch-codegen-0.18.0}/src/stack.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/src/ast/toposort.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/src/docs.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/src/live.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/comments.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/comments.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/complex-include/deps/bar/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/complex-include/deps/baz/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/complex-include/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/complex-include.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/cross-package-resource/deps/foo/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/cross-package-resource/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/cross-package-resource.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/diamond1/deps/dep1/types.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/diamond1/deps/dep2/types.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/diamond1/join.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/diamond1.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/disambiguate-diamond/shared1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/disambiguate-diamond/shared2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/disambiguate-diamond/world.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/disambiguate-diamond.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/empty.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/empty.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps/deps/another-pkg/other-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps/deps/corp/saas.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps/deps/different-pkg/the-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps/deps/foreign-pkg/the-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps/deps/some-pkg/some-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps/deps/wasi/clocks.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps/deps/wasi/filesystem.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps-union/deps/another-pkg/other-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps-union/deps/corp/saas.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps-union/deps/different-pkg/the-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps-union/deps/foreign-pkg/the-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps-union/deps/some-pkg/some-doc.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps-union/deps/wasi/clocks.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps-union/deps/wasi/filesystem.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps-union/deps/wasi/wasi.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps-union/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps-union.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/foreign-deps.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/ignore-files-deps/deps/bar/types.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/ignore-files-deps/deps/ignore-me.txt +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/ignore-files-deps/world.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/ignore-files-deps.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/import-export-overlap1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/import-export-overlap1.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/import-export-overlap2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/import-export-overlap2.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/include-reps.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/include-reps.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/kebab-name-include-with.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/kebab-name-include-with.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/kinds-of-deps/a.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/kinds-of-deps/deps/b/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/kinds-of-deps/deps/c.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/kinds-of-deps/deps/d.wat +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/kinds-of-deps/deps/e.wasm +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/kinds-of-deps.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/many-names/a.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/many-names/b.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/many-names.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/multi-file/bar.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/multi-file/cycle-a.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/multi-file/cycle-b.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/multi-file/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/multi-file.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/name-both-resource-and-type/deps/dep/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/name-both-resource-and-type/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/name-both-resource-and-type.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/package-syntax1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/package-syntax1.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/package-syntax3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/package-syntax3.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/package-syntax4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/package-syntax4.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/alias-no-type.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/alias-no-type.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/async.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/async1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-function.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-function.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-function2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-function2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-include1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-include1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-include2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-include2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-include3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-include3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-list.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-list.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg1/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg2/deps/bar/empty.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg2/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg3/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg3/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg4/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg4/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg5/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg5/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg5.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg6/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg6/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-pkg6.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource10.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource10.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource11.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource11.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource12.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource12.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource13.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource13.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource14.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource14.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource15/deps/foo/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource15/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource15.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource5.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource5.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource6.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource6.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource7.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource7.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource8.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource8.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource9.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-resource9.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-world-type1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/bad-world-type1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/conflicting-package/a.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/conflicting-package/b.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/conflicting-package.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/cycle.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/cycle.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/cycle2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/cycle2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/cycle3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/cycle3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/cycle4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/cycle4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/cycle5.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/cycle5.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/dangling-type.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/dangling-type.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/duplicate-function-params.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/duplicate-function-params.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/duplicate-functions.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/duplicate-functions.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/duplicate-interface.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/duplicate-interface.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/duplicate-interface2/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/duplicate-interface2/foo2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/duplicate-interface2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/duplicate-type.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/duplicate-type.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/empty-enum.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/empty-enum.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/empty-variant1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/empty-variant1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/export-twice.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/export-twice.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-and-export1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-and-export1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-and-export2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-and-export2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-and-export3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-and-export3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-and-export4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-and-export4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-and-export5.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-and-export5.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-twice.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/import-twice.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/include-cycle.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/include-cycle.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/include-foreign/deps/bar/empty.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/include-foreign/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/include-foreign.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/include-with-id.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/include-with-id.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/include-with-on-id.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/include-with-on-id.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/invalid-toplevel.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/invalid-toplevel.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/invalid-type-reference.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/invalid-type-reference.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/invalid-type-reference2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/invalid-type-reference2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/kebab-name-include-not-found.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/kebab-name-include-not-found.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/kebab-name-include.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/kebab-name-include.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/keyword.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/keyword.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/missing-package.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/missing-package.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/multiple-package-docs/a.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/multiple-package-docs/b.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/multiple-package-docs.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/no-access-to-sibling-use/bar.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/no-access-to-sibling-use/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/no-access-to-sibling-use.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/non-existance-world-include/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/non-existance-world-include/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/non-existance-world-include.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/pkg-cycle/deps/a1/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/pkg-cycle/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/pkg-cycle.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/pkg-cycle2/deps/a1/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/pkg-cycle2/deps/a2/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/pkg-cycle2/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/pkg-cycle2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/type-and-resource-same-name/deps/dep/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/type-and-resource-same-name/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/type-and-resource-same-name.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/undefined-typed.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/undefined-typed.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unknown-interface.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unknown-interface.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-interface1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-interface1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-interface2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-interface2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-interface3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-interface3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-interface4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-interface4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use10/bar.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use10/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use10.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use7.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use7.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use8.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use8.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use9.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unresolved-use9.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/unterminated-string.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-and-include-world/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-and-include-world/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-and-include-world.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-conflict.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-conflict.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-conflict2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-conflict2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-conflict3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-conflict3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-cycle1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-cycle1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-cycle4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-cycle4.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-shadow1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-shadow1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-world/deps/bar/baz.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-world/root.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/use-world.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/world-interface-clash.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/world-interface-clash.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/world-same-fields2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/world-same-fields2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/world-same-fields3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/world-same-fields3.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/world-top-level-func.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/world-top-level-func.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/world-top-level-func2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/parse-fail/world-top-level-func2.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/random.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/random.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources-empty.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources-empty.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources-multiple-returns-borrow.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources-multiple-returns-borrow.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources-multiple-returns-own.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources-multiple-returns-own.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources-return-borrow.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources-return-borrow.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources-return-own.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources-return-own.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/resources1.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/same-name-import-export.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/same-name-import-export.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/shared-types.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/shared-types.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/simple-wasm-text.wat +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/simple-wasm-text.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/stress-export-elaborate.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/stress-export-elaborate.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/type-then-eof.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/type-then-eof.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/union-fuzz-1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/union-fuzz-1.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/use-chain.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/use-chain.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/use.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/use.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/versions/deps/a1/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/versions/deps/a2/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/versions/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/versions.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/wasi.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-diamond.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-diamond.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-iface-no-collide.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-iface-no-collide.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-implicit-import1.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-implicit-import1.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-implicit-import2.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-implicit-import2.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-implicit-import3.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-implicit-import3.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-same-fields4.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-same-fields4.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-top-level-funcs.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-top-level-funcs.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-top-level-resources.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/world-top-level-resources.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/worlds-union-dedup.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/worlds-union-dedup.wit.json +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/worlds-with-types.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.201.0 → wit-parser-0.202.0}/tests/ui/worlds-with-types.wit.json +0 -0
@@ -0,0 +1,3202 @@
|
|
1
|
+
//! A crate to convert a WebAssembly binary to its textual representation in the
|
2
|
+
//! WebAssembly Text Format (WAT).
|
3
|
+
//!
|
4
|
+
//! This crate is intended for developer toolchains and debugging, supporting
|
5
|
+
//! human-readable versions of a wasm binary. This can also be useful when
|
6
|
+
//! developing wasm toolchain support in Rust for various purposes like testing
|
7
|
+
//! and debugging and such.
|
8
|
+
|
9
|
+
#![deny(missing_docs)]
|
10
|
+
|
11
|
+
use anyhow::{bail, Context, Result};
|
12
|
+
use std::collections::{HashMap, HashSet};
|
13
|
+
use std::fmt::{self, Write};
|
14
|
+
use std::marker;
|
15
|
+
use std::mem;
|
16
|
+
use std::path::Path;
|
17
|
+
use wasmparser::*;
|
18
|
+
|
19
|
+
const MAX_LOCALS: u32 = 50000;
|
20
|
+
const MAX_NESTING_TO_PRINT: u32 = 50;
|
21
|
+
const MAX_WASM_FUNCTIONS: u32 = 1_000_000;
|
22
|
+
const MAX_WASM_FUNCTION_SIZE: u32 = 128 * 1024;
|
23
|
+
|
24
|
+
mod operator;
|
25
|
+
|
26
|
+
/// Reads a WebAssembly `file` from the filesystem and then prints it into an
|
27
|
+
/// in-memory `String`.
|
28
|
+
pub fn print_file(file: impl AsRef<Path>) -> Result<String> {
|
29
|
+
let file = file.as_ref();
|
30
|
+
let contents = std::fs::read(file).context(format!("failed to read `{}`", file.display()))?;
|
31
|
+
Printer::new().print(&contents)
|
32
|
+
}
|
33
|
+
|
34
|
+
/// Prints an in-memory `wasm` binary blob into an in-memory `String` which is
|
35
|
+
/// its textual representation.
|
36
|
+
pub fn print_bytes(wasm: impl AsRef<[u8]>) -> Result<String> {
|
37
|
+
Printer::new().print(wasm.as_ref())
|
38
|
+
}
|
39
|
+
|
40
|
+
/// Context used for printing a WebAssembly binary.
|
41
|
+
///
|
42
|
+
/// This is largely only required if you'd like to register custom printers for
|
43
|
+
/// custom sections in a wasm binary.
|
44
|
+
#[derive(Default)]
|
45
|
+
pub struct Printer {
|
46
|
+
print_offsets: bool,
|
47
|
+
print_skeleton: bool,
|
48
|
+
printers: HashMap<String, Box<dyn FnMut(&mut Printer, usize, &[u8]) -> Result<()>>>,
|
49
|
+
result: String,
|
50
|
+
/// The `i`th line in `result` is at offset `lines[i]`.
|
51
|
+
lines: Vec<usize>,
|
52
|
+
/// The binary offset for the `i`th line is `line_offsets[i]`.
|
53
|
+
line_offsets: Vec<Option<usize>>,
|
54
|
+
nesting: u32,
|
55
|
+
line: usize,
|
56
|
+
group_lines: Vec<usize>,
|
57
|
+
code_section_hints: Vec<(u32, Vec<(usize, BranchHint)>)>,
|
58
|
+
name_unnamed: bool,
|
59
|
+
}
|
60
|
+
|
61
|
+
#[derive(Default)]
|
62
|
+
struct CoreState {
|
63
|
+
types: Vec<Option<SubType>>,
|
64
|
+
funcs: u32,
|
65
|
+
memories: u32,
|
66
|
+
tags: u32,
|
67
|
+
globals: u32,
|
68
|
+
tables: u32,
|
69
|
+
modules: u32,
|
70
|
+
instances: u32,
|
71
|
+
func_names: NamingMap<u32, NameFunc>,
|
72
|
+
local_names: NamingMap<(u32, u32), NameLocal>,
|
73
|
+
label_names: NamingMap<(u32, u32), NameLabel>,
|
74
|
+
type_names: NamingMap<u32, NameType>,
|
75
|
+
tag_names: NamingMap<u32, NameTag>,
|
76
|
+
table_names: NamingMap<u32, NameTable>,
|
77
|
+
memory_names: NamingMap<u32, NameMemory>,
|
78
|
+
global_names: NamingMap<u32, NameGlobal>,
|
79
|
+
element_names: NamingMap<u32, NameElem>,
|
80
|
+
data_names: NamingMap<u32, NameData>,
|
81
|
+
module_names: NamingMap<u32, NameModule>,
|
82
|
+
instance_names: NamingMap<u32, NameInstance>,
|
83
|
+
}
|
84
|
+
|
85
|
+
/// A map of index-to-name for tracking what are the contents of the name
|
86
|
+
/// section.
|
87
|
+
///
|
88
|
+
/// The type parameter `T` is either `u32` for most index-based maps or a `(u32,
|
89
|
+
/// u32)` for label/local maps where there are two levels of indices.
|
90
|
+
///
|
91
|
+
/// The type parameter `K` is a static description/namespace for what kind of
|
92
|
+
/// item is contained within this map. That's used by some helper methods to
|
93
|
+
/// synthesize reasonable names automatically.
|
94
|
+
struct NamingMap<T, K> {
|
95
|
+
index_to_name: HashMap<T, Naming>,
|
96
|
+
_marker: marker::PhantomData<K>,
|
97
|
+
}
|
98
|
+
|
99
|
+
impl<T, K> Default for NamingMap<T, K> {
|
100
|
+
fn default() -> NamingMap<T, K> {
|
101
|
+
NamingMap {
|
102
|
+
index_to_name: HashMap::new(),
|
103
|
+
_marker: marker::PhantomData,
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
#[derive(Default)]
|
109
|
+
struct ComponentState {
|
110
|
+
types: u32,
|
111
|
+
funcs: u32,
|
112
|
+
instances: u32,
|
113
|
+
components: u32,
|
114
|
+
values: u32,
|
115
|
+
type_names: NamingMap<u32, NameType>,
|
116
|
+
func_names: NamingMap<u32, NameFunc>,
|
117
|
+
component_names: NamingMap<u32, NameComponent>,
|
118
|
+
instance_names: NamingMap<u32, NameInstance>,
|
119
|
+
value_names: NamingMap<u32, NameValue>,
|
120
|
+
}
|
121
|
+
|
122
|
+
struct State {
|
123
|
+
encoding: Encoding,
|
124
|
+
name: Option<Naming>,
|
125
|
+
core: CoreState,
|
126
|
+
component: ComponentState,
|
127
|
+
custom_section_place: Option<&'static str>,
|
128
|
+
}
|
129
|
+
|
130
|
+
impl State {
|
131
|
+
fn new(encoding: Encoding) -> Self {
|
132
|
+
Self {
|
133
|
+
encoding,
|
134
|
+
name: None,
|
135
|
+
core: CoreState::default(),
|
136
|
+
component: ComponentState::default(),
|
137
|
+
custom_section_place: None,
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
struct Naming {
|
143
|
+
identifier: Option<String>,
|
144
|
+
name: String,
|
145
|
+
}
|
146
|
+
|
147
|
+
impl Printer {
|
148
|
+
/// Creates a new `Printer` object that's ready to start printing wasm
|
149
|
+
/// binaries to strings.
|
150
|
+
pub fn new() -> Self {
|
151
|
+
Self::default()
|
152
|
+
}
|
153
|
+
|
154
|
+
/// Whether or not to print binary offsets of each item as comments in the
|
155
|
+
/// text format whenever a newline is printed.
|
156
|
+
pub fn print_offsets(&mut self, print: bool) {
|
157
|
+
self.print_offsets = print;
|
158
|
+
}
|
159
|
+
|
160
|
+
/// Whether or not to print only a "skeleton" which skips function bodies,
|
161
|
+
/// data segment contents, element segment contents, etc.
|
162
|
+
pub fn print_skeleton(&mut self, print: bool) {
|
163
|
+
self.print_skeleton = print;
|
164
|
+
}
|
165
|
+
|
166
|
+
/// Assign names to all unnamed items.
|
167
|
+
///
|
168
|
+
/// If enabled then any previously unnamed item will have a name synthesized
|
169
|
+
/// that looks like `$#func10` for example. The leading `#` indicates that
|
170
|
+
/// it's `wasmprinter`-generated. The `func` is the namespace of the name
|
171
|
+
/// and provides extra context about the item when referenced. The 10 is the
|
172
|
+
/// local index of the item.
|
173
|
+
///
|
174
|
+
/// Note that if the resulting text output is converted back to binary the
|
175
|
+
/// resulting `name` custom section will not be the same as before.
|
176
|
+
pub fn name_unnamed(&mut self, enable: bool) {
|
177
|
+
self.name_unnamed = enable;
|
178
|
+
}
|
179
|
+
|
180
|
+
/// Registers a custom `printer` function to get invoked whenever a custom
|
181
|
+
/// section of name `section` is seen.
|
182
|
+
///
|
183
|
+
/// This can be used to register printers into a textual format for custom
|
184
|
+
/// sections, such as by emitting annotations and/or other textual
|
185
|
+
/// references (maybe comments!)
|
186
|
+
///
|
187
|
+
/// By default all custom sections are ignored for the text format.
|
188
|
+
///
|
189
|
+
/// The `printer` function provided takes three arguments:
|
190
|
+
///
|
191
|
+
/// * A `&mut Printer`, or where to print results to
|
192
|
+
/// * A `usize` offset which is the start of the offset for the custom
|
193
|
+
/// section
|
194
|
+
/// * A byte slice which is the actual contents of the custom section.
|
195
|
+
pub fn add_custom_section_printer(
|
196
|
+
&mut self,
|
197
|
+
section: &str,
|
198
|
+
printer: impl FnMut(&mut Printer, usize, &[u8]) -> Result<()> + 'static,
|
199
|
+
) {
|
200
|
+
self.printers.insert(section.to_string(), Box::new(printer));
|
201
|
+
}
|
202
|
+
|
203
|
+
/// Gets the output result of this `Printer`, or where all output is going.
|
204
|
+
pub fn result_mut(&mut self) -> &mut String {
|
205
|
+
&mut self.result
|
206
|
+
}
|
207
|
+
|
208
|
+
/// Prints a WebAssembly binary into a `String`
|
209
|
+
///
|
210
|
+
/// This function takes an entire `wasm` binary blob and will print it to
|
211
|
+
/// the WebAssembly Text Format and return the result as a `String`.
|
212
|
+
pub fn print(&mut self, wasm: &[u8]) -> Result<String> {
|
213
|
+
self.print_contents(wasm)?;
|
214
|
+
Ok(mem::take(&mut self.result))
|
215
|
+
}
|
216
|
+
|
217
|
+
/// Get the line-by-line WAT disassembly for the given Wasm, along with the
|
218
|
+
/// binary offsets for each line.
|
219
|
+
pub fn offsets_and_lines<'a>(
|
220
|
+
&'a mut self,
|
221
|
+
wasm: &[u8],
|
222
|
+
) -> Result<impl Iterator<Item = (Option<usize>, &'a str)> + 'a> {
|
223
|
+
self.print_contents(wasm)?;
|
224
|
+
|
225
|
+
let end = self.result.len();
|
226
|
+
let result = &self.result;
|
227
|
+
|
228
|
+
let mut offsets = self.line_offsets.iter().copied();
|
229
|
+
let mut lines = self.lines.iter().copied().peekable();
|
230
|
+
|
231
|
+
Ok(std::iter::from_fn(move || {
|
232
|
+
let offset = offsets.next()?;
|
233
|
+
let i = lines.next()?;
|
234
|
+
let j = lines.peek().copied().unwrap_or(end);
|
235
|
+
let line = &result[i..j];
|
236
|
+
Some((offset, line))
|
237
|
+
}))
|
238
|
+
}
|
239
|
+
|
240
|
+
fn read_names_and_code<'a>(
|
241
|
+
&mut self,
|
242
|
+
mut bytes: &'a [u8],
|
243
|
+
mut parser: Parser,
|
244
|
+
state: &mut State,
|
245
|
+
code: &mut Vec<FunctionBody<'a>>,
|
246
|
+
) -> Result<()> {
|
247
|
+
loop {
|
248
|
+
let payload = match parser.parse(bytes, true)? {
|
249
|
+
Chunk::NeedMoreData(_) => unreachable!(),
|
250
|
+
Chunk::Parsed { payload, consumed } => {
|
251
|
+
bytes = &bytes[consumed..];
|
252
|
+
payload
|
253
|
+
}
|
254
|
+
};
|
255
|
+
|
256
|
+
match payload {
|
257
|
+
Payload::FunctionSection(s) => {
|
258
|
+
if s.count() > MAX_WASM_FUNCTIONS {
|
259
|
+
bail!(
|
260
|
+
"module contains {} functions which exceeds the limit of {}",
|
261
|
+
s.count(),
|
262
|
+
MAX_WASM_FUNCTIONS
|
263
|
+
);
|
264
|
+
}
|
265
|
+
code.reserve(s.count() as usize);
|
266
|
+
}
|
267
|
+
Payload::CodeSectionEntry(f) => {
|
268
|
+
code.push(f);
|
269
|
+
}
|
270
|
+
Payload::ModuleSection { range, .. } | Payload::ComponentSection { range, .. } => {
|
271
|
+
let offset = range.end - range.start;
|
272
|
+
if offset > bytes.len() {
|
273
|
+
bail!("invalid module or component section range");
|
274
|
+
}
|
275
|
+
bytes = &bytes[offset..];
|
276
|
+
}
|
277
|
+
|
278
|
+
// Ignore any error associated with the name sections.
|
279
|
+
Payload::CustomSection(c) if c.name() == "name" => {
|
280
|
+
let reader = NameSectionReader::new(c.data(), c.data_offset());
|
281
|
+
drop(self.register_names(state, reader));
|
282
|
+
}
|
283
|
+
Payload::CustomSection(c) if c.name() == "component-name" => {
|
284
|
+
let reader = ComponentNameSectionReader::new(c.data(), c.data_offset());
|
285
|
+
drop(self.register_component_names(state, reader));
|
286
|
+
}
|
287
|
+
|
288
|
+
Payload::CustomSection(c) if c.name() == "metadata.code.branch_hint" => {
|
289
|
+
drop(
|
290
|
+
self.register_branch_hint_section(BranchHintSectionReader::new(
|
291
|
+
c.data(),
|
292
|
+
c.data_offset(),
|
293
|
+
)?),
|
294
|
+
);
|
295
|
+
}
|
296
|
+
|
297
|
+
Payload::End(_) => break,
|
298
|
+
_ => {}
|
299
|
+
}
|
300
|
+
}
|
301
|
+
|
302
|
+
Ok(())
|
303
|
+
}
|
304
|
+
|
305
|
+
fn ensure_module(states: &[State]) -> Result<()> {
|
306
|
+
if !matches!(states.last().unwrap().encoding, Encoding::Module) {
|
307
|
+
bail!("a module section was encountered when parsing a component");
|
308
|
+
}
|
309
|
+
|
310
|
+
Ok(())
|
311
|
+
}
|
312
|
+
|
313
|
+
fn ensure_component(states: &[State]) -> Result<()> {
|
314
|
+
if !matches!(states.last().unwrap().encoding, Encoding::Component) {
|
315
|
+
bail!("a component section was encountered when parsing a module");
|
316
|
+
}
|
317
|
+
|
318
|
+
Ok(())
|
319
|
+
}
|
320
|
+
|
321
|
+
fn print_contents(&mut self, mut bytes: &[u8]) -> Result<()> {
|
322
|
+
self.lines.clear();
|
323
|
+
self.lines.push(0);
|
324
|
+
self.line_offsets.clear();
|
325
|
+
self.line_offsets.push(Some(0));
|
326
|
+
|
327
|
+
let mut expected = None;
|
328
|
+
let mut states: Vec<State> = Vec::new();
|
329
|
+
let mut parser = Parser::new(0);
|
330
|
+
let mut parsers = Vec::new();
|
331
|
+
let mut code = Vec::new();
|
332
|
+
let mut code_printed = false;
|
333
|
+
|
334
|
+
loop {
|
335
|
+
let payload = match parser.parse(bytes, true)? {
|
336
|
+
Chunk::NeedMoreData(_) => unreachable!(),
|
337
|
+
Chunk::Parsed { payload, consumed } => {
|
338
|
+
bytes = &bytes[consumed..];
|
339
|
+
payload
|
340
|
+
}
|
341
|
+
};
|
342
|
+
match payload {
|
343
|
+
Payload::Version { encoding, .. } => {
|
344
|
+
if let Some(e) = expected {
|
345
|
+
if encoding != e {
|
346
|
+
bail!("incorrect encoding for nested module or component");
|
347
|
+
}
|
348
|
+
expected = None;
|
349
|
+
}
|
350
|
+
|
351
|
+
assert!(states.last().map(|s| s.encoding) != Some(Encoding::Module));
|
352
|
+
|
353
|
+
match encoding {
|
354
|
+
Encoding::Module => {
|
355
|
+
states.push(State::new(Encoding::Module));
|
356
|
+
states.last_mut().unwrap().custom_section_place = Some("before first");
|
357
|
+
if states.len() > 1 {
|
358
|
+
self.start_group("core module");
|
359
|
+
} else {
|
360
|
+
self.start_group("module");
|
361
|
+
}
|
362
|
+
|
363
|
+
if states.len() > 1 {
|
364
|
+
let parent = &states[states.len() - 2];
|
365
|
+
self.result.push(' ');
|
366
|
+
self.print_name(&parent.core.module_names, parent.core.modules)?;
|
367
|
+
}
|
368
|
+
}
|
369
|
+
Encoding::Component => {
|
370
|
+
states.push(State::new(Encoding::Component));
|
371
|
+
self.start_group("component");
|
372
|
+
|
373
|
+
if states.len() > 1 {
|
374
|
+
let parent = &states[states.len() - 2];
|
375
|
+
self.result.push(' ');
|
376
|
+
self.print_name(
|
377
|
+
&parent.component.component_names,
|
378
|
+
parent.component.components,
|
379
|
+
)?;
|
380
|
+
}
|
381
|
+
}
|
382
|
+
}
|
383
|
+
|
384
|
+
let len = states.len();
|
385
|
+
let state = states.last_mut().unwrap();
|
386
|
+
|
387
|
+
// First up try to find the `name` subsection which we'll use to print
|
388
|
+
// pretty names everywhere. Also look for the `code` section so we can
|
389
|
+
// print out functions as soon as we hit the function section.
|
390
|
+
code.clear();
|
391
|
+
code_printed = false;
|
392
|
+
self.read_names_and_code(bytes, parser.clone(), state, &mut code)?;
|
393
|
+
|
394
|
+
if len == 1 {
|
395
|
+
if let Some(name) = state.name.as_ref() {
|
396
|
+
self.result.push(' ');
|
397
|
+
name.write(&mut self.result);
|
398
|
+
}
|
399
|
+
}
|
400
|
+
}
|
401
|
+
Payload::CustomSection(c) => {
|
402
|
+
let mut printed = false;
|
403
|
+
let mut printers = mem::take(&mut self.printers);
|
404
|
+
if let Some(printer) = printers.get_mut(c.name()) {
|
405
|
+
printer(self, c.data_offset(), c.data())?;
|
406
|
+
printed = true;
|
407
|
+
}
|
408
|
+
self.printers = printers;
|
409
|
+
|
410
|
+
// Attempt to print this custom section if it wasn't already
|
411
|
+
// handled specifically above. Note that custom sections are
|
412
|
+
// allowed to be invalid, so any parse error here is ignored
|
413
|
+
// and resets the output to what it was when this started.
|
414
|
+
// Otherwise I/O errors and other things are plumbed through
|
415
|
+
// in case they happen.
|
416
|
+
if printed {
|
417
|
+
continue;
|
418
|
+
}
|
419
|
+
let cur = self.result.len();
|
420
|
+
let state = states.last().unwrap();
|
421
|
+
let err = match self.print_custom_section(state, c.clone()) {
|
422
|
+
Ok(()) => continue,
|
423
|
+
Err(e) => e,
|
424
|
+
};
|
425
|
+
if !err.is::<BinaryReaderError>() {
|
426
|
+
return Err(err);
|
427
|
+
}
|
428
|
+
self.result.truncate(cur);
|
429
|
+
let msg = format!("failed to parse custom section `{}`: {err}", c.name());
|
430
|
+
for line in msg.lines() {
|
431
|
+
self.newline(c.data_offset());
|
432
|
+
self.result.push_str(";; ");
|
433
|
+
self.result.push_str(line);
|
434
|
+
}
|
435
|
+
self.newline(c.range().end);
|
436
|
+
self.print_raw_custom_section(state, c)?;
|
437
|
+
}
|
438
|
+
Payload::TypeSection(s) => {
|
439
|
+
self.update_custom_section_place(&mut states, "after type");
|
440
|
+
self.print_types(states.last_mut().unwrap(), s)?;
|
441
|
+
}
|
442
|
+
Payload::ImportSection(s) => {
|
443
|
+
self.update_custom_section_place(&mut states, "after import");
|
444
|
+
Self::ensure_module(&states)?;
|
445
|
+
self.print_imports(states.last_mut().unwrap(), s)?
|
446
|
+
}
|
447
|
+
Payload::FunctionSection(reader) => {
|
448
|
+
self.update_custom_section_place(&mut states, "after func");
|
449
|
+
Self::ensure_module(&states)?;
|
450
|
+
if mem::replace(&mut code_printed, true) {
|
451
|
+
bail!("function section appeared twice in module");
|
452
|
+
}
|
453
|
+
if reader.count() == 0 {
|
454
|
+
continue;
|
455
|
+
}
|
456
|
+
self.print_code(states.last_mut().unwrap(), &code, reader)?;
|
457
|
+
}
|
458
|
+
Payload::TableSection(s) => {
|
459
|
+
self.update_custom_section_place(&mut states, "after table");
|
460
|
+
Self::ensure_module(&states)?;
|
461
|
+
self.print_tables(states.last_mut().unwrap(), s)?
|
462
|
+
}
|
463
|
+
Payload::MemorySection(s) => {
|
464
|
+
self.update_custom_section_place(&mut states, "after memory");
|
465
|
+
Self::ensure_module(&states)?;
|
466
|
+
self.print_memories(states.last_mut().unwrap(), s)?
|
467
|
+
}
|
468
|
+
Payload::TagSection(s) => {
|
469
|
+
self.update_custom_section_place(&mut states, "after tag");
|
470
|
+
Self::ensure_module(&states)?;
|
471
|
+
self.print_tags(states.last_mut().unwrap(), s)?
|
472
|
+
}
|
473
|
+
Payload::GlobalSection(s) => {
|
474
|
+
self.update_custom_section_place(&mut states, "after global");
|
475
|
+
Self::ensure_module(&states)?;
|
476
|
+
self.print_globals(states.last_mut().unwrap(), s)?
|
477
|
+
}
|
478
|
+
Payload::ExportSection(s) => {
|
479
|
+
self.update_custom_section_place(&mut states, "after export");
|
480
|
+
Self::ensure_module(&states)?;
|
481
|
+
self.print_exports(states.last().unwrap(), s)?
|
482
|
+
}
|
483
|
+
Payload::StartSection { func, range } => {
|
484
|
+
self.update_custom_section_place(&mut states, "after start");
|
485
|
+
Self::ensure_module(&states)?;
|
486
|
+
self.newline(range.start);
|
487
|
+
self.start_group("start ");
|
488
|
+
self.print_idx(&states.last().unwrap().core.func_names, func)?;
|
489
|
+
self.end_group();
|
490
|
+
}
|
491
|
+
Payload::ElementSection(s) => {
|
492
|
+
self.update_custom_section_place(&mut states, "after element");
|
493
|
+
Self::ensure_module(&states)?;
|
494
|
+
self.print_elems(states.last_mut().unwrap(), s)?;
|
495
|
+
}
|
496
|
+
// printed with the `Function` section, so we
|
497
|
+
// skip this section
|
498
|
+
Payload::CodeSectionStart { size, .. } => {
|
499
|
+
self.update_custom_section_place(&mut states, "after code");
|
500
|
+
Self::ensure_module(&states)?;
|
501
|
+
bytes = &bytes[size as usize..];
|
502
|
+
parser.skip_section();
|
503
|
+
}
|
504
|
+
Payload::CodeSectionEntry(_) => unreachable!(),
|
505
|
+
Payload::DataCountSection { .. } => {
|
506
|
+
Self::ensure_module(&states)?;
|
507
|
+
// not part of the text format
|
508
|
+
}
|
509
|
+
Payload::DataSection(s) => {
|
510
|
+
self.update_custom_section_place(&mut states, "after data");
|
511
|
+
Self::ensure_module(&states)?;
|
512
|
+
self.print_data(states.last_mut().unwrap(), s)?;
|
513
|
+
}
|
514
|
+
|
515
|
+
Payload::ModuleSection {
|
516
|
+
parser: inner,
|
517
|
+
range,
|
518
|
+
} => {
|
519
|
+
Self::ensure_component(&states)?;
|
520
|
+
expected = Some(Encoding::Module);
|
521
|
+
parsers.push(parser);
|
522
|
+
parser = inner;
|
523
|
+
self.newline(range.start);
|
524
|
+
}
|
525
|
+
Payload::InstanceSection(s) => {
|
526
|
+
Self::ensure_component(&states)?;
|
527
|
+
self.print_instances(states.last_mut().unwrap(), s)?;
|
528
|
+
}
|
529
|
+
Payload::CoreTypeSection(s) => self.print_core_types(&mut states, s)?,
|
530
|
+
Payload::ComponentSection {
|
531
|
+
parser: inner,
|
532
|
+
range,
|
533
|
+
} => {
|
534
|
+
Self::ensure_component(&states)?;
|
535
|
+
expected = Some(Encoding::Component);
|
536
|
+
parsers.push(parser);
|
537
|
+
parser = inner;
|
538
|
+
self.newline(range.start);
|
539
|
+
}
|
540
|
+
Payload::ComponentInstanceSection(s) => {
|
541
|
+
Self::ensure_component(&states)?;
|
542
|
+
self.print_component_instances(states.last_mut().unwrap(), s)?;
|
543
|
+
}
|
544
|
+
Payload::ComponentAliasSection(s) => {
|
545
|
+
Self::ensure_component(&states)?;
|
546
|
+
self.print_component_aliases(&mut states, s)?;
|
547
|
+
}
|
548
|
+
Payload::ComponentTypeSection(s) => {
|
549
|
+
Self::ensure_component(&states)?;
|
550
|
+
self.print_component_types(&mut states, s)?;
|
551
|
+
}
|
552
|
+
Payload::ComponentCanonicalSection(s) => {
|
553
|
+
Self::ensure_component(&states)?;
|
554
|
+
self.print_canonical_functions(states.last_mut().unwrap(), s)?;
|
555
|
+
}
|
556
|
+
Payload::ComponentStartSection { start, range } => {
|
557
|
+
Self::ensure_component(&states)?;
|
558
|
+
self.print_component_start(states.last_mut().unwrap(), range.start, start)?;
|
559
|
+
}
|
560
|
+
Payload::ComponentImportSection(s) => {
|
561
|
+
Self::ensure_component(&states)?;
|
562
|
+
self.print_component_imports(states.last_mut().unwrap(), s)?;
|
563
|
+
}
|
564
|
+
Payload::ComponentExportSection(s) => {
|
565
|
+
Self::ensure_component(&states)?;
|
566
|
+
self.print_component_exports(states.last_mut().unwrap(), s)?;
|
567
|
+
}
|
568
|
+
|
569
|
+
Payload::End(offset) => {
|
570
|
+
self.end_group(); // close the `module` or `component` group
|
571
|
+
|
572
|
+
let state = states.pop().unwrap();
|
573
|
+
if let Some(parent) = states.last_mut() {
|
574
|
+
match state.encoding {
|
575
|
+
Encoding::Module => {
|
576
|
+
parent.core.modules += 1;
|
577
|
+
}
|
578
|
+
Encoding::Component => {
|
579
|
+
parent.component.components += 1;
|
580
|
+
}
|
581
|
+
}
|
582
|
+
parser = parsers.pop().unwrap();
|
583
|
+
} else {
|
584
|
+
self.newline(offset);
|
585
|
+
if self.print_offsets {
|
586
|
+
self.result.push('\n');
|
587
|
+
}
|
588
|
+
break;
|
589
|
+
}
|
590
|
+
}
|
591
|
+
|
592
|
+
Payload::UnknownSection { id, .. } => bail!("found unknown section `{}`", id),
|
593
|
+
}
|
594
|
+
}
|
595
|
+
|
596
|
+
Ok(())
|
597
|
+
}
|
598
|
+
|
599
|
+
fn update_custom_section_place(&self, states: &mut Vec<State>, place: &'static str) {
|
600
|
+
if let Some(last) = states.last_mut() {
|
601
|
+
if let Some(prev) = &mut last.custom_section_place {
|
602
|
+
*prev = place;
|
603
|
+
}
|
604
|
+
}
|
605
|
+
}
|
606
|
+
|
607
|
+
fn start_group(&mut self, name: &str) {
|
608
|
+
self.result.push('(');
|
609
|
+
self.result.push_str(name);
|
610
|
+
self.nesting += 1;
|
611
|
+
self.group_lines.push(self.line);
|
612
|
+
}
|
613
|
+
|
614
|
+
fn end_group(&mut self) {
|
615
|
+
self.nesting -= 1;
|
616
|
+
if let Some(line) = self.group_lines.pop() {
|
617
|
+
if line != self.line {
|
618
|
+
self.newline_unknown_pos();
|
619
|
+
}
|
620
|
+
}
|
621
|
+
self.result.push(')');
|
622
|
+
}
|
623
|
+
|
624
|
+
fn register_names(&mut self, state: &mut State, names: NameSectionReader<'_>) -> Result<()> {
|
625
|
+
fn indirect_name_map<K>(
|
626
|
+
into: &mut NamingMap<(u32, u32), K>,
|
627
|
+
names: IndirectNameMap<'_>,
|
628
|
+
name: &str,
|
629
|
+
) -> Result<()> {
|
630
|
+
for indirect in names {
|
631
|
+
let indirect = indirect?;
|
632
|
+
let mut used = match name {
|
633
|
+
// labels can be shadowed, so maintaining the used names is not useful.
|
634
|
+
"label" => None,
|
635
|
+
"local" => Some(HashSet::new()),
|
636
|
+
_ => unimplemented!("{name} is an unknown type of indirect names"),
|
637
|
+
};
|
638
|
+
for naming in indirect.names {
|
639
|
+
let naming = naming?;
|
640
|
+
into.index_to_name.insert(
|
641
|
+
(indirect.index, naming.index),
|
642
|
+
Naming::new(naming.name, naming.index, name, used.as_mut()),
|
643
|
+
);
|
644
|
+
}
|
645
|
+
}
|
646
|
+
Ok(())
|
647
|
+
}
|
648
|
+
|
649
|
+
for section in names {
|
650
|
+
match section? {
|
651
|
+
Name::Module { name, .. } => {
|
652
|
+
let name = Naming::new(name, 0, "module", None);
|
653
|
+
state.name = Some(name);
|
654
|
+
}
|
655
|
+
Name::Function(n) => name_map(&mut state.core.func_names, n, "func")?,
|
656
|
+
Name::Local(n) => indirect_name_map(&mut state.core.local_names, n, "local")?,
|
657
|
+
Name::Label(n) => indirect_name_map(&mut state.core.label_names, n, "label")?,
|
658
|
+
Name::Type(n) => name_map(&mut state.core.type_names, n, "type")?,
|
659
|
+
Name::Table(n) => name_map(&mut state.core.table_names, n, "table")?,
|
660
|
+
Name::Memory(n) => name_map(&mut state.core.memory_names, n, "memory")?,
|
661
|
+
Name::Global(n) => name_map(&mut state.core.global_names, n, "global")?,
|
662
|
+
Name::Element(n) => name_map(&mut state.core.element_names, n, "elem")?,
|
663
|
+
Name::Data(n) => name_map(&mut state.core.data_names, n, "data")?,
|
664
|
+
Name::Tag(n) => name_map(&mut state.core.tag_names, n, "tag")?,
|
665
|
+
Name::Unknown { .. } => (),
|
666
|
+
}
|
667
|
+
}
|
668
|
+
Ok(())
|
669
|
+
}
|
670
|
+
|
671
|
+
fn register_component_names(
|
672
|
+
&mut self,
|
673
|
+
state: &mut State,
|
674
|
+
names: ComponentNameSectionReader<'_>,
|
675
|
+
) -> Result<()> {
|
676
|
+
for section in names {
|
677
|
+
match section? {
|
678
|
+
ComponentName::Component { name, .. } => {
|
679
|
+
let name = Naming::new(name, 0, "component", None);
|
680
|
+
state.name = Some(name);
|
681
|
+
}
|
682
|
+
ComponentName::CoreFuncs(n) => {
|
683
|
+
name_map(&mut state.core.func_names, n, "core-func")?
|
684
|
+
}
|
685
|
+
ComponentName::CoreTypes(n) => {
|
686
|
+
name_map(&mut state.core.type_names, n, "core-type")?
|
687
|
+
}
|
688
|
+
ComponentName::CoreTables(n) => {
|
689
|
+
name_map(&mut state.core.table_names, n, "core-table")?
|
690
|
+
}
|
691
|
+
ComponentName::CoreMemories(n) => {
|
692
|
+
name_map(&mut state.core.memory_names, n, "core-memory")?
|
693
|
+
}
|
694
|
+
ComponentName::CoreGlobals(n) => {
|
695
|
+
name_map(&mut state.core.global_names, n, "core-global")?
|
696
|
+
}
|
697
|
+
ComponentName::CoreModules(n) => {
|
698
|
+
name_map(&mut state.core.module_names, n, "core-module")?
|
699
|
+
}
|
700
|
+
ComponentName::CoreInstances(n) => {
|
701
|
+
name_map(&mut state.core.instance_names, n, "core-instance")?
|
702
|
+
}
|
703
|
+
ComponentName::Types(n) => name_map(&mut state.component.type_names, n, "type")?,
|
704
|
+
ComponentName::Instances(n) => {
|
705
|
+
name_map(&mut state.component.instance_names, n, "instance")?
|
706
|
+
}
|
707
|
+
ComponentName::Components(n) => {
|
708
|
+
name_map(&mut state.component.component_names, n, "component")?
|
709
|
+
}
|
710
|
+
ComponentName::Funcs(n) => name_map(&mut state.component.func_names, n, "func")?,
|
711
|
+
ComponentName::Values(n) => name_map(&mut state.component.value_names, n, "value")?,
|
712
|
+
ComponentName::Unknown { .. } => (),
|
713
|
+
}
|
714
|
+
}
|
715
|
+
Ok(())
|
716
|
+
}
|
717
|
+
|
718
|
+
fn print_core_type(&mut self, states: &mut Vec<State>, ty: CoreType) -> Result<()> {
|
719
|
+
self.start_group("core type ");
|
720
|
+
self.print_name(
|
721
|
+
&states.last().unwrap().core.type_names,
|
722
|
+
states.last().unwrap().core.types.len() as u32,
|
723
|
+
)?;
|
724
|
+
let ty = match ty {
|
725
|
+
CoreType::Sub(ty) => {
|
726
|
+
let ty = match &ty.composite_type {
|
727
|
+
CompositeType::Func(f) => f,
|
728
|
+
CompositeType::Array(_) | CompositeType::Struct(_) => {
|
729
|
+
unreachable!("Wasm GC types cannot appear in components yet")
|
730
|
+
}
|
731
|
+
};
|
732
|
+
self.result.push(' ');
|
733
|
+
self.start_group("func");
|
734
|
+
self.print_func_type(states.last().unwrap(), &ty, None)?;
|
735
|
+
self.end_group();
|
736
|
+
Some(SubType {
|
737
|
+
is_final: true,
|
738
|
+
supertype_idx: None,
|
739
|
+
composite_type: CompositeType::Func(ty.clone()),
|
740
|
+
})
|
741
|
+
}
|
742
|
+
CoreType::Module(decls) => {
|
743
|
+
self.print_module_type(states, decls.into_vec())?;
|
744
|
+
None
|
745
|
+
}
|
746
|
+
};
|
747
|
+
self.end_group(); // `core type` itself
|
748
|
+
|
749
|
+
states.last_mut().unwrap().core.types.push(ty);
|
750
|
+
Ok(())
|
751
|
+
}
|
752
|
+
|
753
|
+
fn print_rec(
|
754
|
+
&mut self,
|
755
|
+
state: &mut State,
|
756
|
+
offset: usize,
|
757
|
+
types: impl Iterator<Item = SubType>,
|
758
|
+
) -> Result<()> {
|
759
|
+
self.start_group("rec");
|
760
|
+
for ty in types {
|
761
|
+
self.newline(offset + 2);
|
762
|
+
self.print_type(state, ty)?;
|
763
|
+
}
|
764
|
+
self.end_group(); // `rec`
|
765
|
+
Ok(())
|
766
|
+
}
|
767
|
+
|
768
|
+
fn print_type(&mut self, state: &mut State, ty: SubType) -> Result<()> {
|
769
|
+
self.start_group("type ");
|
770
|
+
self.print_name(&state.core.type_names, state.core.types.len() as u32)?;
|
771
|
+
self.result.push(' ');
|
772
|
+
self.print_sub(state, &ty, None)?;
|
773
|
+
self.end_group(); // `type`
|
774
|
+
state.core.types.push(Some(ty));
|
775
|
+
Ok(())
|
776
|
+
}
|
777
|
+
|
778
|
+
fn print_sub(&mut self, state: &State, ty: &SubType, names_for: Option<u32>) -> Result<u32> {
|
779
|
+
let r = if !ty.is_final || !ty.supertype_idx.is_none() {
|
780
|
+
self.start_group("sub");
|
781
|
+
self.print_sub_type(state, ty)?;
|
782
|
+
let r = self.print_composite(state, &ty.composite_type, names_for)?;
|
783
|
+
self.end_group(); // `sub`
|
784
|
+
r
|
785
|
+
} else {
|
786
|
+
self.print_composite(state, &ty.composite_type, names_for)?
|
787
|
+
};
|
788
|
+
Ok(r)
|
789
|
+
}
|
790
|
+
|
791
|
+
fn print_composite(
|
792
|
+
&mut self,
|
793
|
+
state: &State,
|
794
|
+
ty: &CompositeType,
|
795
|
+
names_for: Option<u32>,
|
796
|
+
) -> Result<u32> {
|
797
|
+
let r = match &ty {
|
798
|
+
CompositeType::Func(ty) => {
|
799
|
+
self.start_group("func");
|
800
|
+
let r = self.print_func_type(state, ty, names_for)?;
|
801
|
+
self.end_group(); // `func`
|
802
|
+
r
|
803
|
+
}
|
804
|
+
CompositeType::Array(ty) => {
|
805
|
+
self.start_group("array");
|
806
|
+
let r = self.print_array_type(state, ty)?;
|
807
|
+
self.end_group(); // `array`
|
808
|
+
r
|
809
|
+
}
|
810
|
+
CompositeType::Struct(ty) => {
|
811
|
+
self.start_group("struct");
|
812
|
+
let r = self.print_struct_type(state, ty)?;
|
813
|
+
self.end_group(); // `struct`
|
814
|
+
r
|
815
|
+
}
|
816
|
+
};
|
817
|
+
Ok(r)
|
818
|
+
}
|
819
|
+
|
820
|
+
fn print_core_types(
|
821
|
+
&mut self,
|
822
|
+
states: &mut Vec<State>,
|
823
|
+
parser: CoreTypeSectionReader<'_>,
|
824
|
+
) -> Result<()> {
|
825
|
+
for ty in parser.into_iter_with_offsets() {
|
826
|
+
let (offset, ty) = ty?;
|
827
|
+
self.newline(offset);
|
828
|
+
self.print_core_type(states, ty)?;
|
829
|
+
}
|
830
|
+
|
831
|
+
Ok(())
|
832
|
+
}
|
833
|
+
|
834
|
+
fn print_types(&mut self, state: &mut State, parser: TypeSectionReader<'_>) -> Result<()> {
|
835
|
+
for ty in parser.into_iter_with_offsets() {
|
836
|
+
let (offset, rec_group) = ty?;
|
837
|
+
self.newline(offset);
|
838
|
+
if rec_group.is_explicit_rec_group() {
|
839
|
+
self.print_rec(state, offset, rec_group.into_types())?
|
840
|
+
} else {
|
841
|
+
assert_eq!(rec_group.types().len(), 1);
|
842
|
+
let ty = rec_group.into_types().next().unwrap();
|
843
|
+
self.print_type(state, ty)?;
|
844
|
+
}
|
845
|
+
}
|
846
|
+
|
847
|
+
Ok(())
|
848
|
+
}
|
849
|
+
|
850
|
+
fn print_core_functype_idx(
|
851
|
+
&mut self,
|
852
|
+
state: &State,
|
853
|
+
idx: u32,
|
854
|
+
names_for: Option<u32>,
|
855
|
+
) -> Result<Option<u32>> {
|
856
|
+
self.print_core_type_ref(state, idx)?;
|
857
|
+
|
858
|
+
match state.core.types.get(idx as usize) {
|
859
|
+
Some(Some(SubType {
|
860
|
+
composite_type: CompositeType::Func(ty),
|
861
|
+
..
|
862
|
+
})) => self.print_func_type(state, ty, names_for).map(Some),
|
863
|
+
Some(Some(_)) | Some(None) | None => Ok(None),
|
864
|
+
}
|
865
|
+
}
|
866
|
+
|
867
|
+
/// Returns the number of parameters, useful for local index calculations
|
868
|
+
/// later.
|
869
|
+
fn print_func_type(
|
870
|
+
&mut self,
|
871
|
+
state: &State,
|
872
|
+
ty: &FuncType,
|
873
|
+
names_for: Option<u32>,
|
874
|
+
) -> Result<u32> {
|
875
|
+
if !ty.params().is_empty() {
|
876
|
+
self.result.push(' ');
|
877
|
+
}
|
878
|
+
|
879
|
+
let mut params = NamedLocalPrinter::new("param");
|
880
|
+
// Note that named parameters must be alone in a `param` block, so
|
881
|
+
// we need to be careful to terminate previous param blocks and open
|
882
|
+
// a new one if that's the case with a named parameter.
|
883
|
+
for (i, param) in ty.params().iter().enumerate() {
|
884
|
+
params.start_local(names_for.unwrap_or(u32::MAX), i as u32, self, state);
|
885
|
+
self.print_valtype(state, *param)?;
|
886
|
+
params.end_local(&mut self.result);
|
887
|
+
}
|
888
|
+
params.finish(&mut self.result);
|
889
|
+
if !ty.results().is_empty() {
|
890
|
+
self.result.push_str(" (result");
|
891
|
+
for result in ty.results().iter() {
|
892
|
+
self.result.push(' ');
|
893
|
+
self.print_valtype(state, *result)?;
|
894
|
+
}
|
895
|
+
self.result.push(')');
|
896
|
+
}
|
897
|
+
Ok(ty.params().len() as u32)
|
898
|
+
}
|
899
|
+
|
900
|
+
fn print_field_type(&mut self, state: &State, ty: &FieldType) -> Result<u32> {
|
901
|
+
self.result.push(' ');
|
902
|
+
if ty.mutable {
|
903
|
+
self.result.push_str("(mut ");
|
904
|
+
}
|
905
|
+
self.print_storage_type(state, ty.element_type)?;
|
906
|
+
if ty.mutable {
|
907
|
+
self.result.push_str(")");
|
908
|
+
}
|
909
|
+
Ok(0)
|
910
|
+
}
|
911
|
+
|
912
|
+
fn print_array_type(&mut self, state: &State, ty: &ArrayType) -> Result<u32> {
|
913
|
+
self.print_field_type(state, &ty.0)
|
914
|
+
}
|
915
|
+
|
916
|
+
fn print_struct_type(&mut self, state: &State, ty: &StructType) -> Result<u32> {
|
917
|
+
for field in ty.fields.iter() {
|
918
|
+
self.result.push_str(" (field");
|
919
|
+
self.print_field_type(state, field)?;
|
920
|
+
self.result.push(')');
|
921
|
+
}
|
922
|
+
Ok(0)
|
923
|
+
}
|
924
|
+
|
925
|
+
fn print_sub_type(&mut self, state: &State, ty: &SubType) -> Result<u32> {
|
926
|
+
self.result.push(' ');
|
927
|
+
if ty.is_final {
|
928
|
+
self.result.push_str("final ");
|
929
|
+
}
|
930
|
+
for idx in &ty.supertype_idx {
|
931
|
+
self.print_idx(&state.core.type_names, idx.as_module_index().unwrap())?;
|
932
|
+
self.result.push(' ');
|
933
|
+
}
|
934
|
+
Ok(0)
|
935
|
+
}
|
936
|
+
|
937
|
+
fn print_storage_type(&mut self, state: &State, ty: StorageType) -> Result<()> {
|
938
|
+
match ty {
|
939
|
+
StorageType::I8 => self.result.push_str("i8"),
|
940
|
+
StorageType::I16 => self.result.push_str("i16"),
|
941
|
+
StorageType::Val(val_type) => self.print_valtype(state, val_type)?,
|
942
|
+
}
|
943
|
+
Ok(())
|
944
|
+
}
|
945
|
+
|
946
|
+
fn print_valtype(&mut self, state: &State, ty: ValType) -> Result<()> {
|
947
|
+
match ty {
|
948
|
+
ValType::I32 => self.result.push_str("i32"),
|
949
|
+
ValType::I64 => self.result.push_str("i64"),
|
950
|
+
ValType::F32 => self.result.push_str("f32"),
|
951
|
+
ValType::F64 => self.result.push_str("f64"),
|
952
|
+
ValType::V128 => self.result.push_str("v128"),
|
953
|
+
ValType::Ref(rt) => self.print_reftype(state, rt)?,
|
954
|
+
}
|
955
|
+
Ok(())
|
956
|
+
}
|
957
|
+
|
958
|
+
fn print_reftype(&mut self, state: &State, ty: RefType) -> Result<()> {
|
959
|
+
if ty.is_nullable() {
|
960
|
+
match ty.as_non_null() {
|
961
|
+
RefType::FUNC => self.result.push_str("funcref"),
|
962
|
+
RefType::EXTERN => self.result.push_str("externref"),
|
963
|
+
RefType::I31 => self.result.push_str("i31ref"),
|
964
|
+
RefType::ANY => self.result.push_str("anyref"),
|
965
|
+
RefType::NONE => self.result.push_str("nullref"),
|
966
|
+
RefType::NOEXTERN => self.result.push_str("nullexternref"),
|
967
|
+
RefType::NOFUNC => self.result.push_str("nullfuncref"),
|
968
|
+
RefType::EQ => self.result.push_str("eqref"),
|
969
|
+
RefType::STRUCT => self.result.push_str("structref"),
|
970
|
+
RefType::ARRAY => self.result.push_str("arrayref"),
|
971
|
+
RefType::EXN => self.result.push_str("exnref"),
|
972
|
+
_ => {
|
973
|
+
self.result.push_str("(ref null ");
|
974
|
+
self.print_heaptype(state, ty.heap_type())?;
|
975
|
+
self.result.push_str(")");
|
976
|
+
}
|
977
|
+
}
|
978
|
+
} else {
|
979
|
+
self.result.push_str("(ref ");
|
980
|
+
self.print_heaptype(state, ty.heap_type())?;
|
981
|
+
self.result.push_str(")");
|
982
|
+
}
|
983
|
+
Ok(())
|
984
|
+
}
|
985
|
+
|
986
|
+
fn print_heaptype(&mut self, state: &State, ty: HeapType) -> Result<()> {
|
987
|
+
match ty {
|
988
|
+
HeapType::Func => self.result.push_str("func"),
|
989
|
+
HeapType::Extern => self.result.push_str("extern"),
|
990
|
+
HeapType::Any => self.result.push_str("any"),
|
991
|
+
HeapType::None => self.result.push_str("none"),
|
992
|
+
HeapType::NoExtern => self.result.push_str("noextern"),
|
993
|
+
HeapType::NoFunc => self.result.push_str("nofunc"),
|
994
|
+
HeapType::Eq => self.result.push_str("eq"),
|
995
|
+
HeapType::Struct => self.result.push_str("struct"),
|
996
|
+
HeapType::Array => self.result.push_str("array"),
|
997
|
+
HeapType::I31 => self.result.push_str("i31"),
|
998
|
+
HeapType::Exn => self.result.push_str("exn"),
|
999
|
+
HeapType::Concrete(i) => {
|
1000
|
+
self.print_idx(&state.core.type_names, i.as_module_index().unwrap())?;
|
1001
|
+
}
|
1002
|
+
}
|
1003
|
+
Ok(())
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
fn print_imports(&mut self, state: &mut State, parser: ImportSectionReader<'_>) -> Result<()> {
|
1007
|
+
for import in parser.into_iter_with_offsets() {
|
1008
|
+
let (offset, import) = import?;
|
1009
|
+
self.newline(offset);
|
1010
|
+
self.print_import(state, &import, true)?;
|
1011
|
+
match import.ty {
|
1012
|
+
TypeRef::Func(_) => state.core.funcs += 1,
|
1013
|
+
TypeRef::Table(_) => state.core.tables += 1,
|
1014
|
+
TypeRef::Memory(_) => state.core.memories += 1,
|
1015
|
+
TypeRef::Tag(_) => state.core.tags += 1,
|
1016
|
+
TypeRef::Global(_) => state.core.globals += 1,
|
1017
|
+
}
|
1018
|
+
}
|
1019
|
+
Ok(())
|
1020
|
+
}
|
1021
|
+
|
1022
|
+
fn print_import(&mut self, state: &State, import: &Import<'_>, index: bool) -> Result<()> {
|
1023
|
+
self.start_group("import ");
|
1024
|
+
self.print_str(import.module)?;
|
1025
|
+
self.result.push(' ');
|
1026
|
+
self.print_str(import.name)?;
|
1027
|
+
self.result.push(' ');
|
1028
|
+
self.print_import_ty(state, &import.ty, index)?;
|
1029
|
+
self.end_group();
|
1030
|
+
Ok(())
|
1031
|
+
}
|
1032
|
+
|
1033
|
+
fn print_import_ty(&mut self, state: &State, ty: &TypeRef, index: bool) -> Result<()> {
|
1034
|
+
match ty {
|
1035
|
+
TypeRef::Func(f) => {
|
1036
|
+
self.start_group("func ");
|
1037
|
+
if index {
|
1038
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
1039
|
+
self.result.push(' ');
|
1040
|
+
}
|
1041
|
+
self.print_core_type_ref(state, *f)?;
|
1042
|
+
}
|
1043
|
+
TypeRef::Table(f) => self.print_table_type(state, f, index)?,
|
1044
|
+
TypeRef::Memory(f) => self.print_memory_type(state, f, index)?,
|
1045
|
+
TypeRef::Tag(f) => self.print_tag_type(state, f, index)?,
|
1046
|
+
TypeRef::Global(f) => self.print_global_type(state, f, index)?,
|
1047
|
+
}
|
1048
|
+
self.end_group();
|
1049
|
+
Ok(())
|
1050
|
+
}
|
1051
|
+
|
1052
|
+
fn print_table_type(&mut self, state: &State, ty: &TableType, index: bool) -> Result<()> {
|
1053
|
+
self.start_group("table ");
|
1054
|
+
if index {
|
1055
|
+
self.print_name(&state.core.table_names, state.core.tables)?;
|
1056
|
+
self.result.push(' ');
|
1057
|
+
}
|
1058
|
+
self.print_limits(ty.initial, ty.maximum)?;
|
1059
|
+
self.result.push(' ');
|
1060
|
+
self.print_reftype(state, ty.element_type)?;
|
1061
|
+
Ok(())
|
1062
|
+
}
|
1063
|
+
|
1064
|
+
fn print_memory_type(&mut self, state: &State, ty: &MemoryType, index: bool) -> Result<()> {
|
1065
|
+
self.start_group("memory ");
|
1066
|
+
if index {
|
1067
|
+
self.print_name(&state.core.memory_names, state.core.memories)?;
|
1068
|
+
self.result.push(' ');
|
1069
|
+
}
|
1070
|
+
if ty.memory64 {
|
1071
|
+
self.result.push_str("i64 ");
|
1072
|
+
}
|
1073
|
+
self.print_limits(ty.initial, ty.maximum)?;
|
1074
|
+
if ty.shared {
|
1075
|
+
self.result.push_str(" shared");
|
1076
|
+
}
|
1077
|
+
Ok(())
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
fn print_tag_type(&mut self, state: &State, ty: &TagType, index: bool) -> Result<()> {
|
1081
|
+
self.start_group("tag ");
|
1082
|
+
if index {
|
1083
|
+
self.print_name(&state.core.tag_names, state.core.tags)?;
|
1084
|
+
self.result.push(' ');
|
1085
|
+
}
|
1086
|
+
self.print_core_functype_idx(state, ty.func_type_idx, None)?;
|
1087
|
+
Ok(())
|
1088
|
+
}
|
1089
|
+
|
1090
|
+
fn print_limits<T>(&mut self, initial: T, maximum: Option<T>) -> Result<()>
|
1091
|
+
where
|
1092
|
+
T: fmt::Display,
|
1093
|
+
{
|
1094
|
+
write!(self.result, "{}", initial)?;
|
1095
|
+
if let Some(max) = maximum {
|
1096
|
+
write!(self.result, " {}", max)?;
|
1097
|
+
}
|
1098
|
+
Ok(())
|
1099
|
+
}
|
1100
|
+
|
1101
|
+
fn print_global_type(&mut self, state: &State, ty: &GlobalType, index: bool) -> Result<()> {
|
1102
|
+
self.start_group("global ");
|
1103
|
+
if index {
|
1104
|
+
self.print_name(&state.core.global_names, state.core.globals)?;
|
1105
|
+
self.result.push(' ');
|
1106
|
+
}
|
1107
|
+
if ty.mutable {
|
1108
|
+
self.result.push_str("(mut ");
|
1109
|
+
self.print_valtype(state, ty.content_type)?;
|
1110
|
+
self.result.push(')');
|
1111
|
+
} else {
|
1112
|
+
self.print_valtype(state, ty.content_type)?;
|
1113
|
+
}
|
1114
|
+
Ok(())
|
1115
|
+
}
|
1116
|
+
|
1117
|
+
fn print_tables(&mut self, state: &mut State, parser: TableSectionReader<'_>) -> Result<()> {
|
1118
|
+
for table in parser.into_iter_with_offsets() {
|
1119
|
+
let (offset, table) = table?;
|
1120
|
+
self.newline(offset);
|
1121
|
+
self.print_table_type(state, &table.ty, true)?;
|
1122
|
+
match &table.init {
|
1123
|
+
TableInit::RefNull => {}
|
1124
|
+
TableInit::Expr(expr) => {
|
1125
|
+
self.result.push_str(" ");
|
1126
|
+
self.print_const_expr(state, expr)?;
|
1127
|
+
}
|
1128
|
+
}
|
1129
|
+
self.end_group();
|
1130
|
+
state.core.tables += 1;
|
1131
|
+
}
|
1132
|
+
Ok(())
|
1133
|
+
}
|
1134
|
+
|
1135
|
+
fn print_memories(&mut self, state: &mut State, parser: MemorySectionReader<'_>) -> Result<()> {
|
1136
|
+
for memory in parser.into_iter_with_offsets() {
|
1137
|
+
let (offset, memory) = memory?;
|
1138
|
+
self.newline(offset);
|
1139
|
+
self.print_memory_type(state, &memory, true)?;
|
1140
|
+
self.end_group();
|
1141
|
+
state.core.memories += 1;
|
1142
|
+
}
|
1143
|
+
Ok(())
|
1144
|
+
}
|
1145
|
+
|
1146
|
+
fn print_tags(&mut self, state: &mut State, parser: TagSectionReader<'_>) -> Result<()> {
|
1147
|
+
for tag in parser.into_iter_with_offsets() {
|
1148
|
+
let (offset, tag) = tag?;
|
1149
|
+
self.newline(offset);
|
1150
|
+
self.print_tag_type(state, &tag, true)?;
|
1151
|
+
self.end_group();
|
1152
|
+
state.core.tags += 1;
|
1153
|
+
}
|
1154
|
+
Ok(())
|
1155
|
+
}
|
1156
|
+
|
1157
|
+
fn print_globals(&mut self, state: &mut State, parser: GlobalSectionReader<'_>) -> Result<()> {
|
1158
|
+
for global in parser.into_iter_with_offsets() {
|
1159
|
+
let (offset, global) = global?;
|
1160
|
+
self.newline(offset);
|
1161
|
+
self.print_global_type(state, &global.ty, true)?;
|
1162
|
+
self.result.push(' ');
|
1163
|
+
self.print_const_expr(state, &global.init_expr)?;
|
1164
|
+
self.end_group();
|
1165
|
+
state.core.globals += 1;
|
1166
|
+
}
|
1167
|
+
Ok(())
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
fn print_code(
|
1171
|
+
&mut self,
|
1172
|
+
state: &mut State,
|
1173
|
+
code: &[FunctionBody<'_>],
|
1174
|
+
funcs: FunctionSectionReader<'_>,
|
1175
|
+
) -> Result<()> {
|
1176
|
+
if funcs.count() != code.len() as u32 {
|
1177
|
+
bail!("mismatch in function and code section counts");
|
1178
|
+
}
|
1179
|
+
for (body, ty) in code.iter().zip(funcs) {
|
1180
|
+
let mut body = body.get_binary_reader();
|
1181
|
+
let offset = body.original_position();
|
1182
|
+
let ty = ty?;
|
1183
|
+
self.newline(offset);
|
1184
|
+
self.start_group("func ");
|
1185
|
+
let func_idx = state.core.funcs;
|
1186
|
+
self.print_name(&state.core.func_names, func_idx)?;
|
1187
|
+
self.result.push(' ');
|
1188
|
+
let params = self
|
1189
|
+
.print_core_functype_idx(state, ty, Some(func_idx))?
|
1190
|
+
.unwrap_or(0);
|
1191
|
+
|
1192
|
+
// Hints are stored on `self` in reverse order of function index so
|
1193
|
+
// check the last one and see if it matches this function.
|
1194
|
+
let hints = match self.code_section_hints.last() {
|
1195
|
+
Some((f, _)) if *f == func_idx => {
|
1196
|
+
let (_, hints) = self.code_section_hints.pop().unwrap();
|
1197
|
+
hints
|
1198
|
+
}
|
1199
|
+
_ => Vec::new(),
|
1200
|
+
};
|
1201
|
+
|
1202
|
+
if self.print_skeleton {
|
1203
|
+
self.result.push_str(" ...");
|
1204
|
+
} else {
|
1205
|
+
self.print_func_body(state, func_idx, params, &mut body, &hints)?;
|
1206
|
+
}
|
1207
|
+
|
1208
|
+
self.end_group();
|
1209
|
+
|
1210
|
+
state.core.funcs += 1;
|
1211
|
+
}
|
1212
|
+
Ok(())
|
1213
|
+
}
|
1214
|
+
|
1215
|
+
fn print_func_body(
|
1216
|
+
&mut self,
|
1217
|
+
state: &mut State,
|
1218
|
+
func_idx: u32,
|
1219
|
+
params: u32,
|
1220
|
+
body: &mut BinaryReader<'_>,
|
1221
|
+
mut branch_hints: &[(usize, BranchHint)],
|
1222
|
+
) -> Result<()> {
|
1223
|
+
let mut first = true;
|
1224
|
+
let mut local_idx = 0;
|
1225
|
+
let mut locals = NamedLocalPrinter::new("local");
|
1226
|
+
let func_start = body.original_position();
|
1227
|
+
for _ in 0..body.read_var_u32()? {
|
1228
|
+
let offset = body.original_position();
|
1229
|
+
let cnt = body.read_var_u32()?;
|
1230
|
+
let ty = body.read()?;
|
1231
|
+
if MAX_LOCALS
|
1232
|
+
.checked_sub(local_idx)
|
1233
|
+
.and_then(|s| s.checked_sub(cnt))
|
1234
|
+
.is_none()
|
1235
|
+
{
|
1236
|
+
bail!("function exceeds the maximum number of locals that can be printed");
|
1237
|
+
}
|
1238
|
+
for _ in 0..cnt {
|
1239
|
+
if first {
|
1240
|
+
self.newline(offset);
|
1241
|
+
first = false;
|
1242
|
+
}
|
1243
|
+
locals.start_local(func_idx, params + local_idx, self, state);
|
1244
|
+
self.print_valtype(state, ty)?;
|
1245
|
+
locals.end_local(&mut self.result);
|
1246
|
+
local_idx += 1;
|
1247
|
+
}
|
1248
|
+
}
|
1249
|
+
locals.finish(&mut self.result);
|
1250
|
+
|
1251
|
+
let nesting_start = self.nesting;
|
1252
|
+
body.allow_memarg64(true);
|
1253
|
+
|
1254
|
+
let mut buf = String::new();
|
1255
|
+
let mut op_printer = operator::PrintOperator::new(self, state);
|
1256
|
+
while !body.eof() {
|
1257
|
+
// Branch hints are stored in increasing order of their body offset
|
1258
|
+
// so print them whenever their instruction comes up.
|
1259
|
+
if let Some(((hint_offset, hint), rest)) = branch_hints.split_first() {
|
1260
|
+
if hint.func_offset == (body.original_position() - func_start) as u32 {
|
1261
|
+
branch_hints = rest;
|
1262
|
+
op_printer.printer.newline(*hint_offset);
|
1263
|
+
let desc = if hint.taken { "\"\\01\"" } else { "\"\\00\"" };
|
1264
|
+
write!(
|
1265
|
+
op_printer.printer.result,
|
1266
|
+
"(@metadata.code.branch_hint {})",
|
1267
|
+
desc
|
1268
|
+
)?;
|
1269
|
+
}
|
1270
|
+
}
|
1271
|
+
|
1272
|
+
let offset = body.original_position();
|
1273
|
+
mem::swap(&mut buf, &mut op_printer.printer.result);
|
1274
|
+
let op_kind = body.visit_operator(&mut op_printer)??;
|
1275
|
+
mem::swap(&mut buf, &mut op_printer.printer.result);
|
1276
|
+
|
1277
|
+
match op_kind {
|
1278
|
+
// The final `end` in a reader is not printed, it's implied
|
1279
|
+
// in the text format.
|
1280
|
+
operator::OpKind::End if body.eof() => break,
|
1281
|
+
|
1282
|
+
// When we start a block we newline to the current
|
1283
|
+
// indentation, then we increase the indentation so further
|
1284
|
+
// instructions are tabbed over.
|
1285
|
+
operator::OpKind::BlockStart => {
|
1286
|
+
op_printer.printer.newline(offset);
|
1287
|
+
op_printer.printer.nesting += 1;
|
1288
|
+
}
|
1289
|
+
|
1290
|
+
// `else`/`catch` are special in that it's printed at
|
1291
|
+
// the previous indentation, but it doesn't actually change
|
1292
|
+
// our nesting level.
|
1293
|
+
operator::OpKind::BlockMid => {
|
1294
|
+
op_printer.printer.nesting -= 1;
|
1295
|
+
op_printer.printer.newline(offset);
|
1296
|
+
op_printer.printer.nesting += 1;
|
1297
|
+
}
|
1298
|
+
|
1299
|
+
// Exiting a block prints `end` at the previous indentation
|
1300
|
+
// level.
|
1301
|
+
operator::OpKind::End | operator::OpKind::Delegate
|
1302
|
+
if op_printer.printer.nesting > nesting_start =>
|
1303
|
+
{
|
1304
|
+
op_printer.printer.nesting -= 1;
|
1305
|
+
op_printer.printer.newline(offset);
|
1306
|
+
}
|
1307
|
+
|
1308
|
+
// .. otherwise everything else just has a normal newline
|
1309
|
+
// out in front.
|
1310
|
+
_ => op_printer.printer.newline(offset),
|
1311
|
+
}
|
1312
|
+
op_printer.printer.result.push_str(&buf);
|
1313
|
+
buf.truncate(0);
|
1314
|
+
}
|
1315
|
+
|
1316
|
+
// If this was an invalid function body then the nesting may not
|
1317
|
+
// have reset back to normal. Fix that up here and forcibly insert
|
1318
|
+
// a newline as well in case the last instruction was something
|
1319
|
+
// like an `if` which has a comment after it which could interfere
|
1320
|
+
// with the closing paren printed for the func.
|
1321
|
+
if self.nesting != nesting_start {
|
1322
|
+
self.nesting = nesting_start;
|
1323
|
+
self.newline(body.original_position());
|
1324
|
+
}
|
1325
|
+
|
1326
|
+
Ok(())
|
1327
|
+
}
|
1328
|
+
|
1329
|
+
fn newline(&mut self, offset: usize) {
|
1330
|
+
self.print_newline(Some(offset))
|
1331
|
+
}
|
1332
|
+
|
1333
|
+
fn newline_unknown_pos(&mut self) {
|
1334
|
+
self.print_newline(None)
|
1335
|
+
}
|
1336
|
+
|
1337
|
+
fn print_newline(&mut self, offset: Option<usize>) {
|
1338
|
+
self.result.push('\n');
|
1339
|
+
|
1340
|
+
self.lines.push(self.result.len());
|
1341
|
+
self.line_offsets.push(offset);
|
1342
|
+
|
1343
|
+
if self.print_offsets {
|
1344
|
+
match offset {
|
1345
|
+
Some(offset) => write!(self.result, "(;@{offset:<6x};)").unwrap(),
|
1346
|
+
None => self.result.push_str(" "),
|
1347
|
+
}
|
1348
|
+
}
|
1349
|
+
self.line += 1;
|
1350
|
+
|
1351
|
+
// Clamp the maximum nesting size that we print at something somewhat
|
1352
|
+
// reasonable to avoid generating hundreds of megabytes of whitespace
|
1353
|
+
// for small-ish modules that have deep-ish nesting.
|
1354
|
+
for _ in 0..self.nesting.min(MAX_NESTING_TO_PRINT) {
|
1355
|
+
self.result.push_str(" ");
|
1356
|
+
}
|
1357
|
+
}
|
1358
|
+
|
1359
|
+
fn print_exports(&mut self, state: &State, data: ExportSectionReader) -> Result<()> {
|
1360
|
+
for export in data.into_iter_with_offsets() {
|
1361
|
+
let (offset, export) = export?;
|
1362
|
+
self.newline(offset);
|
1363
|
+
self.print_export(state, &export)?;
|
1364
|
+
}
|
1365
|
+
Ok(())
|
1366
|
+
}
|
1367
|
+
|
1368
|
+
fn print_export(&mut self, state: &State, export: &Export) -> Result<()> {
|
1369
|
+
self.start_group("export ");
|
1370
|
+
self.print_str(export.name)?;
|
1371
|
+
self.result.push(' ');
|
1372
|
+
self.print_external_kind(state, export.kind, export.index)?;
|
1373
|
+
self.end_group(); // export
|
1374
|
+
Ok(())
|
1375
|
+
}
|
1376
|
+
|
1377
|
+
fn print_external_kind(&mut self, state: &State, kind: ExternalKind, index: u32) -> Result<()> {
|
1378
|
+
self.result.push('(');
|
1379
|
+
match kind {
|
1380
|
+
ExternalKind::Func => {
|
1381
|
+
self.result.push_str("func ");
|
1382
|
+
self.print_idx(&state.core.func_names, index)?;
|
1383
|
+
}
|
1384
|
+
ExternalKind::Table => {
|
1385
|
+
self.result.push_str("table ");
|
1386
|
+
self.print_idx(&state.core.table_names, index)?;
|
1387
|
+
}
|
1388
|
+
ExternalKind::Global => {
|
1389
|
+
self.result.push_str("global ");
|
1390
|
+
self.print_idx(&state.core.global_names, index)?;
|
1391
|
+
}
|
1392
|
+
ExternalKind::Memory => {
|
1393
|
+
self.result.push_str("memory ");
|
1394
|
+
self.print_idx(&state.core.memory_names, index)?;
|
1395
|
+
}
|
1396
|
+
ExternalKind::Tag => write!(self.result, "tag {}", index)?,
|
1397
|
+
}
|
1398
|
+
self.result.push(')');
|
1399
|
+
Ok(())
|
1400
|
+
}
|
1401
|
+
|
1402
|
+
fn print_core_type_ref(&mut self, state: &State, idx: u32) -> Result<()> {
|
1403
|
+
self.result.push_str("(type ");
|
1404
|
+
self.print_idx(&state.core.type_names, idx)?;
|
1405
|
+
self.result.push(')');
|
1406
|
+
Ok(())
|
1407
|
+
}
|
1408
|
+
|
1409
|
+
fn print_component_type_ref(&mut self, state: &State, idx: u32) -> Result<()> {
|
1410
|
+
self.result.push_str("(type ");
|
1411
|
+
self.print_idx(&state.component.type_names, idx)?;
|
1412
|
+
self.result.push(')');
|
1413
|
+
Ok(())
|
1414
|
+
}
|
1415
|
+
|
1416
|
+
fn print_idx<K>(&mut self, names: &NamingMap<u32, K>, idx: u32) -> Result<()>
|
1417
|
+
where
|
1418
|
+
K: NamingNamespace,
|
1419
|
+
{
|
1420
|
+
self._print_idx(&names.index_to_name, idx, K::desc())
|
1421
|
+
}
|
1422
|
+
|
1423
|
+
fn _print_idx(&mut self, names: &HashMap<u32, Naming>, idx: u32, desc: &str) -> Result<()> {
|
1424
|
+
match names.get(&idx) {
|
1425
|
+
Some(name) => write!(self.result, "${}", name.identifier())?,
|
1426
|
+
None if self.name_unnamed => write!(self.result, "$#{desc}{idx}")?,
|
1427
|
+
None => write!(self.result, "{idx}")?,
|
1428
|
+
}
|
1429
|
+
Ok(())
|
1430
|
+
}
|
1431
|
+
|
1432
|
+
fn print_local_idx(&mut self, state: &State, func: u32, idx: u32) -> Result<()> {
|
1433
|
+
match state.core.local_names.index_to_name.get(&(func, idx)) {
|
1434
|
+
Some(name) => write!(self.result, "${}", name.identifier())?,
|
1435
|
+
None if self.name_unnamed => write!(self.result, "$#local{idx}")?,
|
1436
|
+
None => write!(self.result, "{}", idx)?,
|
1437
|
+
}
|
1438
|
+
Ok(())
|
1439
|
+
}
|
1440
|
+
|
1441
|
+
fn print_name<K>(&mut self, names: &NamingMap<u32, K>, cur_idx: u32) -> Result<()>
|
1442
|
+
where
|
1443
|
+
K: NamingNamespace,
|
1444
|
+
{
|
1445
|
+
self._print_name(&names.index_to_name, cur_idx, K::desc())
|
1446
|
+
}
|
1447
|
+
|
1448
|
+
fn _print_name(
|
1449
|
+
&mut self,
|
1450
|
+
names: &HashMap<u32, Naming>,
|
1451
|
+
cur_idx: u32,
|
1452
|
+
desc: &str,
|
1453
|
+
) -> Result<()> {
|
1454
|
+
match names.get(&cur_idx) {
|
1455
|
+
Some(name) => {
|
1456
|
+
name.write(&mut self.result);
|
1457
|
+
self.result.push(' ');
|
1458
|
+
}
|
1459
|
+
None if self.name_unnamed => {
|
1460
|
+
write!(self.result, "$#{desc}{cur_idx} ")?;
|
1461
|
+
}
|
1462
|
+
None => {}
|
1463
|
+
}
|
1464
|
+
write!(self.result, "(;{cur_idx};)")?;
|
1465
|
+
Ok(())
|
1466
|
+
}
|
1467
|
+
|
1468
|
+
fn print_elems(&mut self, state: &mut State, data: ElementSectionReader) -> Result<()> {
|
1469
|
+
for (i, elem) in data.into_iter_with_offsets().enumerate() {
|
1470
|
+
let (offset, mut elem) = elem?;
|
1471
|
+
self.newline(offset);
|
1472
|
+
self.start_group("elem ");
|
1473
|
+
self.print_name(&state.core.element_names, i as u32)?;
|
1474
|
+
match &mut elem.kind {
|
1475
|
+
ElementKind::Passive => {}
|
1476
|
+
ElementKind::Declared => write!(self.result, " declare")?,
|
1477
|
+
ElementKind::Active {
|
1478
|
+
table_index,
|
1479
|
+
offset_expr,
|
1480
|
+
} => {
|
1481
|
+
let table_index = table_index.unwrap_or(0);
|
1482
|
+
if table_index != 0 {
|
1483
|
+
self.result.push_str(" (table ");
|
1484
|
+
self.print_idx(&state.core.table_names, table_index)?;
|
1485
|
+
self.result.push(')');
|
1486
|
+
}
|
1487
|
+
self.result.push(' ');
|
1488
|
+
self.print_const_expr_sugar(state, offset_expr, "offset")?;
|
1489
|
+
}
|
1490
|
+
}
|
1491
|
+
self.result.push(' ');
|
1492
|
+
|
1493
|
+
if self.print_skeleton {
|
1494
|
+
self.result.push_str("...");
|
1495
|
+
} else {
|
1496
|
+
match elem.items {
|
1497
|
+
ElementItems::Functions(reader) => {
|
1498
|
+
self.result.push_str("func");
|
1499
|
+
for idx in reader {
|
1500
|
+
self.result.push(' ');
|
1501
|
+
self.print_idx(&state.core.func_names, idx?)?
|
1502
|
+
}
|
1503
|
+
}
|
1504
|
+
ElementItems::Expressions(ty, reader) => {
|
1505
|
+
self.print_reftype(state, ty)?;
|
1506
|
+
for expr in reader {
|
1507
|
+
self.result.push(' ');
|
1508
|
+
self.print_const_expr_sugar(state, &expr?, "item")?
|
1509
|
+
}
|
1510
|
+
}
|
1511
|
+
}
|
1512
|
+
}
|
1513
|
+
self.end_group();
|
1514
|
+
}
|
1515
|
+
Ok(())
|
1516
|
+
}
|
1517
|
+
|
1518
|
+
fn print_data(&mut self, state: &mut State, data: DataSectionReader) -> Result<()> {
|
1519
|
+
for (i, data) in data.into_iter_with_offsets().enumerate() {
|
1520
|
+
let (offset, data) = data?;
|
1521
|
+
self.newline(offset);
|
1522
|
+
self.start_group("data ");
|
1523
|
+
self.print_name(&state.core.data_names, i as u32)?;
|
1524
|
+
self.result.push(' ');
|
1525
|
+
match &data.kind {
|
1526
|
+
DataKind::Passive => {}
|
1527
|
+
DataKind::Active {
|
1528
|
+
memory_index,
|
1529
|
+
offset_expr,
|
1530
|
+
} => {
|
1531
|
+
if *memory_index != 0 {
|
1532
|
+
self.result.push_str("(memory ");
|
1533
|
+
self.print_idx(&state.core.memory_names, *memory_index)?;
|
1534
|
+
self.result.push_str(") ");
|
1535
|
+
}
|
1536
|
+
self.print_const_expr_sugar(state, offset_expr, "offset")?;
|
1537
|
+
self.result.push(' ');
|
1538
|
+
}
|
1539
|
+
}
|
1540
|
+
if self.print_skeleton {
|
1541
|
+
self.result.push_str("...");
|
1542
|
+
} else {
|
1543
|
+
self.print_bytes(data.data)?;
|
1544
|
+
}
|
1545
|
+
self.end_group();
|
1546
|
+
}
|
1547
|
+
Ok(())
|
1548
|
+
}
|
1549
|
+
|
1550
|
+
/// Prints the operators of `expr` space-separated, taking into account that
|
1551
|
+
/// if there's only one operator in `expr` then instead of `(explicit ...)`
|
1552
|
+
/// the printing can be `(...)`.
|
1553
|
+
fn print_const_expr_sugar(
|
1554
|
+
&mut self,
|
1555
|
+
state: &mut State,
|
1556
|
+
expr: &ConstExpr,
|
1557
|
+
explicit: &str,
|
1558
|
+
) -> Result<()> {
|
1559
|
+
self.start_group("");
|
1560
|
+
let mut prev = mem::take(&mut self.result);
|
1561
|
+
let mut reader = expr.get_operators_reader();
|
1562
|
+
let mut op_printer = operator::PrintOperator::new(self, state);
|
1563
|
+
let mut first_op = None;
|
1564
|
+
for i in 0.. {
|
1565
|
+
if reader.eof() {
|
1566
|
+
break;
|
1567
|
+
}
|
1568
|
+
match reader.visit_operator(&mut op_printer)?? {
|
1569
|
+
operator::OpKind::End if reader.eof() => {}
|
1570
|
+
|
1571
|
+
_ if i == 0 => first_op = Some(mem::take(&mut op_printer.printer.result)),
|
1572
|
+
|
1573
|
+
_ => {
|
1574
|
+
if i == 1 {
|
1575
|
+
prev.push_str(explicit);
|
1576
|
+
prev.push(' ');
|
1577
|
+
prev.push_str(&first_op.take().unwrap());
|
1578
|
+
}
|
1579
|
+
prev.push(' ');
|
1580
|
+
prev.push_str(&op_printer.printer.result);
|
1581
|
+
}
|
1582
|
+
}
|
1583
|
+
|
1584
|
+
op_printer.printer.result.truncate(0);
|
1585
|
+
}
|
1586
|
+
|
1587
|
+
// If `first_op` is still set here then it means we don't need to print
|
1588
|
+
// an expression with `explicit` as the leading token, instead we can
|
1589
|
+
// print the single operator.
|
1590
|
+
if let Some(op) = first_op {
|
1591
|
+
prev.push_str(&op);
|
1592
|
+
}
|
1593
|
+
self.result = prev;
|
1594
|
+
self.end_group();
|
1595
|
+
Ok(())
|
1596
|
+
}
|
1597
|
+
|
1598
|
+
/// Prints the operators of `expr` space-separated.
|
1599
|
+
fn print_const_expr(&mut self, state: &mut State, expr: &ConstExpr) -> Result<()> {
|
1600
|
+
let mut reader = expr.get_operators_reader();
|
1601
|
+
let mut first = true;
|
1602
|
+
|
1603
|
+
let mut result = mem::take(&mut self.result);
|
1604
|
+
let mut op_printer = operator::PrintOperator::new(self, state);
|
1605
|
+
while !reader.eof() {
|
1606
|
+
if first {
|
1607
|
+
first = false;
|
1608
|
+
} else {
|
1609
|
+
op_printer.printer.result.push(' ');
|
1610
|
+
}
|
1611
|
+
match reader.visit_operator(&mut op_printer)?? {
|
1612
|
+
operator::OpKind::End if reader.eof() => {}
|
1613
|
+
_ => {
|
1614
|
+
result.push_str(&op_printer.printer.result);
|
1615
|
+
op_printer.printer.result.truncate(0);
|
1616
|
+
}
|
1617
|
+
}
|
1618
|
+
}
|
1619
|
+
self.result = result;
|
1620
|
+
Ok(())
|
1621
|
+
}
|
1622
|
+
|
1623
|
+
fn print_primitive_val_type(&mut self, ty: &PrimitiveValType) {
|
1624
|
+
match ty {
|
1625
|
+
PrimitiveValType::Bool => self.result.push_str("bool"),
|
1626
|
+
PrimitiveValType::S8 => self.result.push_str("s8"),
|
1627
|
+
PrimitiveValType::U8 => self.result.push_str("u8"),
|
1628
|
+
PrimitiveValType::S16 => self.result.push_str("s16"),
|
1629
|
+
PrimitiveValType::U16 => self.result.push_str("u16"),
|
1630
|
+
PrimitiveValType::S32 => self.result.push_str("s32"),
|
1631
|
+
PrimitiveValType::U32 => self.result.push_str("u32"),
|
1632
|
+
PrimitiveValType::S64 => self.result.push_str("s64"),
|
1633
|
+
PrimitiveValType::U64 => self.result.push_str("u64"),
|
1634
|
+
PrimitiveValType::F32 => self.result.push_str("f32"),
|
1635
|
+
PrimitiveValType::F64 => self.result.push_str("f64"),
|
1636
|
+
PrimitiveValType::Char => self.result.push_str("char"),
|
1637
|
+
PrimitiveValType::String => self.result.push_str("string"),
|
1638
|
+
}
|
1639
|
+
}
|
1640
|
+
|
1641
|
+
fn print_record_type(
|
1642
|
+
&mut self,
|
1643
|
+
state: &State,
|
1644
|
+
fields: &[(&str, ComponentValType)],
|
1645
|
+
) -> Result<()> {
|
1646
|
+
self.start_group("record");
|
1647
|
+
for (name, ty) in fields.iter() {
|
1648
|
+
self.result.push(' ');
|
1649
|
+
self.start_group("field ");
|
1650
|
+
self.print_str(name)?;
|
1651
|
+
self.result.push(' ');
|
1652
|
+
self.print_component_val_type(state, ty)?;
|
1653
|
+
self.end_group()
|
1654
|
+
}
|
1655
|
+
self.end_group();
|
1656
|
+
Ok(())
|
1657
|
+
}
|
1658
|
+
|
1659
|
+
fn print_variant_type(&mut self, state: &State, cases: &[VariantCase]) -> Result<()> {
|
1660
|
+
self.start_group("variant");
|
1661
|
+
for case in cases {
|
1662
|
+
self.result.push(' ');
|
1663
|
+
self.start_group("case ");
|
1664
|
+
self.print_str(case.name)?;
|
1665
|
+
|
1666
|
+
if let Some(ty) = case.ty {
|
1667
|
+
self.result.push(' ');
|
1668
|
+
self.print_component_val_type(state, &ty)?;
|
1669
|
+
}
|
1670
|
+
|
1671
|
+
if let Some(refines) = case.refines {
|
1672
|
+
self.result.push(' ');
|
1673
|
+
self.start_group("refines ");
|
1674
|
+
write!(&mut self.result, "{}", refines)?;
|
1675
|
+
self.end_group();
|
1676
|
+
}
|
1677
|
+
self.end_group()
|
1678
|
+
}
|
1679
|
+
self.end_group();
|
1680
|
+
|
1681
|
+
Ok(())
|
1682
|
+
}
|
1683
|
+
|
1684
|
+
fn print_list_type(&mut self, state: &State, element_ty: &ComponentValType) -> Result<()> {
|
1685
|
+
self.start_group("list ");
|
1686
|
+
self.print_component_val_type(state, element_ty)?;
|
1687
|
+
self.end_group();
|
1688
|
+
Ok(())
|
1689
|
+
}
|
1690
|
+
|
1691
|
+
fn print_tuple_type(&mut self, state: &State, tys: &[ComponentValType]) -> Result<()> {
|
1692
|
+
self.start_group("tuple");
|
1693
|
+
for ty in tys {
|
1694
|
+
self.result.push(' ');
|
1695
|
+
self.print_component_val_type(state, ty)?;
|
1696
|
+
}
|
1697
|
+
self.end_group();
|
1698
|
+
Ok(())
|
1699
|
+
}
|
1700
|
+
|
1701
|
+
fn print_flag_or_enum_type(&mut self, ty: &str, names: &[&str]) -> Result<()> {
|
1702
|
+
self.start_group(ty);
|
1703
|
+
for name in names {
|
1704
|
+
self.result.push(' ');
|
1705
|
+
self.print_str(name)?;
|
1706
|
+
}
|
1707
|
+
self.end_group();
|
1708
|
+
Ok(())
|
1709
|
+
}
|
1710
|
+
|
1711
|
+
fn print_option_type(&mut self, state: &State, inner: &ComponentValType) -> Result<()> {
|
1712
|
+
self.start_group("option ");
|
1713
|
+
self.print_component_val_type(state, inner)?;
|
1714
|
+
self.end_group();
|
1715
|
+
Ok(())
|
1716
|
+
}
|
1717
|
+
|
1718
|
+
fn print_result_type(
|
1719
|
+
&mut self,
|
1720
|
+
state: &State,
|
1721
|
+
ok: Option<ComponentValType>,
|
1722
|
+
err: Option<ComponentValType>,
|
1723
|
+
) -> Result<()> {
|
1724
|
+
self.start_group("result");
|
1725
|
+
|
1726
|
+
if let Some(ok) = ok {
|
1727
|
+
self.result.push(' ');
|
1728
|
+
self.print_component_val_type(state, &ok)?;
|
1729
|
+
}
|
1730
|
+
|
1731
|
+
if let Some(err) = err {
|
1732
|
+
self.result.push(' ');
|
1733
|
+
self.start_group("error ");
|
1734
|
+
self.print_component_val_type(state, &err)?;
|
1735
|
+
self.end_group();
|
1736
|
+
}
|
1737
|
+
|
1738
|
+
self.end_group();
|
1739
|
+
|
1740
|
+
Ok(())
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
fn print_defined_type(&mut self, state: &State, ty: &ComponentDefinedType) -> Result<()> {
|
1744
|
+
match ty {
|
1745
|
+
ComponentDefinedType::Primitive(ty) => self.print_primitive_val_type(ty),
|
1746
|
+
ComponentDefinedType::Record(fields) => self.print_record_type(state, fields)?,
|
1747
|
+
ComponentDefinedType::Variant(cases) => self.print_variant_type(state, cases)?,
|
1748
|
+
ComponentDefinedType::List(ty) => self.print_list_type(state, ty)?,
|
1749
|
+
ComponentDefinedType::Tuple(tys) => self.print_tuple_type(state, tys)?,
|
1750
|
+
ComponentDefinedType::Flags(names) => self.print_flag_or_enum_type("flags", names)?,
|
1751
|
+
ComponentDefinedType::Enum(cases) => self.print_flag_or_enum_type("enum", cases)?,
|
1752
|
+
ComponentDefinedType::Option(ty) => self.print_option_type(state, ty)?,
|
1753
|
+
ComponentDefinedType::Result { ok, err } => self.print_result_type(state, *ok, *err)?,
|
1754
|
+
ComponentDefinedType::Own(idx) => {
|
1755
|
+
self.start_group("own ");
|
1756
|
+
self.print_idx(&state.component.type_names, *idx)?;
|
1757
|
+
self.end_group();
|
1758
|
+
}
|
1759
|
+
ComponentDefinedType::Borrow(idx) => {
|
1760
|
+
self.start_group("borrow ");
|
1761
|
+
self.print_idx(&state.component.type_names, *idx)?;
|
1762
|
+
self.end_group();
|
1763
|
+
}
|
1764
|
+
}
|
1765
|
+
|
1766
|
+
Ok(())
|
1767
|
+
}
|
1768
|
+
|
1769
|
+
fn print_component_val_type(&mut self, state: &State, ty: &ComponentValType) -> Result<()> {
|
1770
|
+
match ty {
|
1771
|
+
ComponentValType::Primitive(ty) => self.print_primitive_val_type(ty),
|
1772
|
+
ComponentValType::Type(idx) => {
|
1773
|
+
self.print_idx(&state.component.type_names, *idx)?;
|
1774
|
+
}
|
1775
|
+
}
|
1776
|
+
|
1777
|
+
Ok(())
|
1778
|
+
}
|
1779
|
+
|
1780
|
+
fn print_module_type(
|
1781
|
+
&mut self,
|
1782
|
+
states: &mut Vec<State>,
|
1783
|
+
decls: Vec<ModuleTypeDeclaration>,
|
1784
|
+
) -> Result<()> {
|
1785
|
+
states.push(State::new(Encoding::Module));
|
1786
|
+
self.newline_unknown_pos();
|
1787
|
+
self.start_group("module");
|
1788
|
+
for decl in decls {
|
1789
|
+
self.newline_unknown_pos();
|
1790
|
+
match decl {
|
1791
|
+
ModuleTypeDeclaration::Type(ty) => {
|
1792
|
+
self.print_type(states.last_mut().unwrap(), ty)?
|
1793
|
+
}
|
1794
|
+
ModuleTypeDeclaration::OuterAlias { kind, count, index } => {
|
1795
|
+
self.print_outer_alias(states, kind, count, index)?;
|
1796
|
+
}
|
1797
|
+
ModuleTypeDeclaration::Export { name, ty } => {
|
1798
|
+
self.start_group("export ");
|
1799
|
+
self.print_str(name)?;
|
1800
|
+
self.result.push(' ');
|
1801
|
+
self.print_import_ty(states.last_mut().unwrap(), &ty, false)?;
|
1802
|
+
self.end_group();
|
1803
|
+
}
|
1804
|
+
ModuleTypeDeclaration::Import(import) => {
|
1805
|
+
self.print_import(states.last_mut().unwrap(), &import, false)?;
|
1806
|
+
}
|
1807
|
+
}
|
1808
|
+
}
|
1809
|
+
self.end_group();
|
1810
|
+
states.pop();
|
1811
|
+
Ok(())
|
1812
|
+
}
|
1813
|
+
|
1814
|
+
fn print_component_type<'a>(
|
1815
|
+
&mut self,
|
1816
|
+
states: &mut Vec<State>,
|
1817
|
+
decls: Vec<ComponentTypeDeclaration<'a>>,
|
1818
|
+
) -> Result<()> {
|
1819
|
+
states.push(State::new(Encoding::Component));
|
1820
|
+
self.newline_unknown_pos();
|
1821
|
+
self.start_group("component");
|
1822
|
+
for decl in decls {
|
1823
|
+
self.newline_unknown_pos();
|
1824
|
+
match decl {
|
1825
|
+
ComponentTypeDeclaration::CoreType(ty) => self.print_core_type(states, ty)?,
|
1826
|
+
ComponentTypeDeclaration::Type(ty) => self.print_component_type_def(states, ty)?,
|
1827
|
+
ComponentTypeDeclaration::Alias(alias) => {
|
1828
|
+
self.print_component_alias(states, alias)?;
|
1829
|
+
}
|
1830
|
+
ComponentTypeDeclaration::Export { name, ty } => {
|
1831
|
+
self.start_group("export ");
|
1832
|
+
self.print_component_kind_name(states.last_mut().unwrap(), ty.kind())?;
|
1833
|
+
self.print_str(name.0)?;
|
1834
|
+
self.result.push(' ');
|
1835
|
+
self.print_component_import_ty(states.last_mut().unwrap(), &ty, false)?;
|
1836
|
+
self.end_group();
|
1837
|
+
}
|
1838
|
+
ComponentTypeDeclaration::Import(import) => {
|
1839
|
+
self.print_component_import(states.last_mut().unwrap(), &import, true)?
|
1840
|
+
}
|
1841
|
+
}
|
1842
|
+
}
|
1843
|
+
self.end_group();
|
1844
|
+
states.pop().unwrap();
|
1845
|
+
Ok(())
|
1846
|
+
}
|
1847
|
+
|
1848
|
+
fn print_instance_type<'a>(
|
1849
|
+
&mut self,
|
1850
|
+
states: &mut Vec<State>,
|
1851
|
+
decls: Vec<InstanceTypeDeclaration<'a>>,
|
1852
|
+
) -> Result<()> {
|
1853
|
+
states.push(State::new(Encoding::Component));
|
1854
|
+
self.newline_unknown_pos();
|
1855
|
+
self.start_group("instance");
|
1856
|
+
for decl in decls {
|
1857
|
+
self.newline_unknown_pos();
|
1858
|
+
match decl {
|
1859
|
+
InstanceTypeDeclaration::CoreType(ty) => self.print_core_type(states, ty)?,
|
1860
|
+
InstanceTypeDeclaration::Type(ty) => self.print_component_type_def(states, ty)?,
|
1861
|
+
InstanceTypeDeclaration::Alias(alias) => {
|
1862
|
+
self.print_component_alias(states, alias)?;
|
1863
|
+
}
|
1864
|
+
InstanceTypeDeclaration::Export { name, ty } => {
|
1865
|
+
self.start_group("export ");
|
1866
|
+
self.print_component_kind_name(states.last_mut().unwrap(), ty.kind())?;
|
1867
|
+
self.print_str(name.0)?;
|
1868
|
+
self.result.push(' ');
|
1869
|
+
self.print_component_import_ty(states.last_mut().unwrap(), &ty, false)?;
|
1870
|
+
self.end_group();
|
1871
|
+
}
|
1872
|
+
}
|
1873
|
+
}
|
1874
|
+
self.end_group();
|
1875
|
+
states.pop().unwrap();
|
1876
|
+
Ok(())
|
1877
|
+
}
|
1878
|
+
|
1879
|
+
fn outer_state(states: &[State], count: u32) -> Result<&State> {
|
1880
|
+
let count = count as usize;
|
1881
|
+
if count >= states.len() {
|
1882
|
+
bail!("invalid outer alias count of {}", count);
|
1883
|
+
}
|
1884
|
+
|
1885
|
+
Ok(&states[states.len() - count - 1])
|
1886
|
+
}
|
1887
|
+
|
1888
|
+
fn print_outer_alias(
|
1889
|
+
&mut self,
|
1890
|
+
states: &mut [State],
|
1891
|
+
kind: OuterAliasKind,
|
1892
|
+
count: u32,
|
1893
|
+
index: u32,
|
1894
|
+
) -> Result<()> {
|
1895
|
+
let state = states.last().unwrap();
|
1896
|
+
let outer = Self::outer_state(states, count)?;
|
1897
|
+
self.start_group("alias outer ");
|
1898
|
+
if let Some(name) = outer.name.as_ref() {
|
1899
|
+
name.write(&mut self.result);
|
1900
|
+
} else {
|
1901
|
+
self.result.push_str(count.to_string().as_str());
|
1902
|
+
}
|
1903
|
+
self.result.push(' ');
|
1904
|
+
match kind {
|
1905
|
+
OuterAliasKind::Type => {
|
1906
|
+
self.print_idx(&outer.core.type_names, index)?;
|
1907
|
+
self.result.push(' ');
|
1908
|
+
self.start_group("type ");
|
1909
|
+
self.print_name(&state.core.type_names, state.core.types.len() as u32)?;
|
1910
|
+
}
|
1911
|
+
}
|
1912
|
+
self.end_group(); // kind
|
1913
|
+
self.end_group(); // alias
|
1914
|
+
|
1915
|
+
let state = states.last_mut().unwrap();
|
1916
|
+
match kind {
|
1917
|
+
OuterAliasKind::Type => state.core.types.push(None),
|
1918
|
+
}
|
1919
|
+
|
1920
|
+
Ok(())
|
1921
|
+
}
|
1922
|
+
|
1923
|
+
fn print_component_func_type(&mut self, state: &State, ty: &ComponentFuncType) -> Result<()> {
|
1924
|
+
self.start_group("func");
|
1925
|
+
for (name, ty) in ty.params.iter() {
|
1926
|
+
self.result.push(' ');
|
1927
|
+
self.start_group("param ");
|
1928
|
+
self.print_str(name)?;
|
1929
|
+
self.result.push(' ');
|
1930
|
+
self.print_component_val_type(state, ty)?;
|
1931
|
+
self.end_group()
|
1932
|
+
}
|
1933
|
+
|
1934
|
+
for (name, ty) in ty.results.iter() {
|
1935
|
+
self.result.push(' ');
|
1936
|
+
self.start_group("result ");
|
1937
|
+
if let Some(name) = name {
|
1938
|
+
self.print_str(name)?;
|
1939
|
+
self.result.push(' ');
|
1940
|
+
}
|
1941
|
+
self.print_component_val_type(state, ty)?;
|
1942
|
+
self.end_group()
|
1943
|
+
}
|
1944
|
+
|
1945
|
+
self.end_group();
|
1946
|
+
|
1947
|
+
Ok(())
|
1948
|
+
}
|
1949
|
+
|
1950
|
+
fn print_component_type_def<'a>(
|
1951
|
+
&mut self,
|
1952
|
+
states: &mut Vec<State>,
|
1953
|
+
ty: ComponentType<'a>,
|
1954
|
+
) -> Result<()> {
|
1955
|
+
self.start_group("type ");
|
1956
|
+
{
|
1957
|
+
let state = states.last_mut().unwrap();
|
1958
|
+
self.print_name(&state.component.type_names, state.component.types)?;
|
1959
|
+
}
|
1960
|
+
match ty {
|
1961
|
+
ComponentType::Defined(ty) => {
|
1962
|
+
self.result.push(' ');
|
1963
|
+
self.print_defined_type(states.last_mut().unwrap(), &ty)?;
|
1964
|
+
}
|
1965
|
+
ComponentType::Func(ty) => {
|
1966
|
+
self.result.push(' ');
|
1967
|
+
self.print_component_func_type(states.last_mut().unwrap(), &ty)?;
|
1968
|
+
}
|
1969
|
+
ComponentType::Component(decls) => {
|
1970
|
+
self.print_component_type(states, decls.into_vec())?;
|
1971
|
+
}
|
1972
|
+
ComponentType::Instance(decls) => {
|
1973
|
+
self.print_instance_type(states, decls.into_vec())?;
|
1974
|
+
}
|
1975
|
+
ComponentType::Resource { rep, dtor } => {
|
1976
|
+
self.result.push_str(" ");
|
1977
|
+
self.start_group("resource");
|
1978
|
+
self.result.push_str(" (rep ");
|
1979
|
+
self.print_valtype(states.last().unwrap(), rep)?;
|
1980
|
+
self.result.push_str(")");
|
1981
|
+
if let Some(dtor) = dtor {
|
1982
|
+
self.result.push_str(" (dtor (func ");
|
1983
|
+
self.print_idx(&states.last().unwrap().core.func_names, dtor)?;
|
1984
|
+
self.result.push_str("))");
|
1985
|
+
}
|
1986
|
+
self.end_group();
|
1987
|
+
}
|
1988
|
+
}
|
1989
|
+
self.end_group();
|
1990
|
+
|
1991
|
+
states.last_mut().unwrap().component.types += 1;
|
1992
|
+
|
1993
|
+
Ok(())
|
1994
|
+
}
|
1995
|
+
|
1996
|
+
fn print_component_types<'a>(
|
1997
|
+
&mut self,
|
1998
|
+
states: &mut Vec<State>,
|
1999
|
+
parser: ComponentTypeSectionReader<'a>,
|
2000
|
+
) -> Result<()> {
|
2001
|
+
for ty in parser.into_iter_with_offsets() {
|
2002
|
+
let (offset, ty) = ty?;
|
2003
|
+
self.newline(offset);
|
2004
|
+
self.print_component_type_def(states, ty)?;
|
2005
|
+
}
|
2006
|
+
|
2007
|
+
Ok(())
|
2008
|
+
}
|
2009
|
+
|
2010
|
+
fn print_component_imports(
|
2011
|
+
&mut self,
|
2012
|
+
state: &mut State,
|
2013
|
+
parser: ComponentImportSectionReader,
|
2014
|
+
) -> Result<()> {
|
2015
|
+
for import in parser.into_iter_with_offsets() {
|
2016
|
+
let (offset, import) = import?;
|
2017
|
+
self.newline(offset);
|
2018
|
+
self.print_component_import(state, &import, true)?;
|
2019
|
+
}
|
2020
|
+
|
2021
|
+
Ok(())
|
2022
|
+
}
|
2023
|
+
|
2024
|
+
fn print_component_import(
|
2025
|
+
&mut self,
|
2026
|
+
state: &mut State,
|
2027
|
+
import: &ComponentImport,
|
2028
|
+
index: bool,
|
2029
|
+
) -> Result<()> {
|
2030
|
+
self.start_group("import ");
|
2031
|
+
self.print_str(import.name.0)?;
|
2032
|
+
self.result.push(' ');
|
2033
|
+
self.print_component_import_ty(state, &import.ty, index)?;
|
2034
|
+
self.end_group();
|
2035
|
+
Ok(())
|
2036
|
+
}
|
2037
|
+
|
2038
|
+
fn print_component_import_ty(
|
2039
|
+
&mut self,
|
2040
|
+
state: &mut State,
|
2041
|
+
ty: &ComponentTypeRef,
|
2042
|
+
index: bool,
|
2043
|
+
) -> Result<()> {
|
2044
|
+
match ty {
|
2045
|
+
ComponentTypeRef::Module(idx) => {
|
2046
|
+
self.start_group("core module ");
|
2047
|
+
if index {
|
2048
|
+
self.print_name(&state.core.module_names, state.core.modules as u32)?;
|
2049
|
+
self.result.push(' ');
|
2050
|
+
state.core.modules += 1;
|
2051
|
+
}
|
2052
|
+
self.print_component_type_ref(state, *idx)?;
|
2053
|
+
self.end_group();
|
2054
|
+
}
|
2055
|
+
ComponentTypeRef::Func(idx) => {
|
2056
|
+
self.start_group("func ");
|
2057
|
+
if index {
|
2058
|
+
self.print_name(&state.component.func_names, state.component.funcs)?;
|
2059
|
+
self.result.push(' ');
|
2060
|
+
state.component.funcs += 1;
|
2061
|
+
}
|
2062
|
+
self.print_component_type_ref(state, *idx)?;
|
2063
|
+
self.end_group();
|
2064
|
+
}
|
2065
|
+
ComponentTypeRef::Value(ty) => {
|
2066
|
+
self.start_group("value ");
|
2067
|
+
if index {
|
2068
|
+
self.print_name(&state.component.value_names, state.component.values)?;
|
2069
|
+
self.result.push(' ');
|
2070
|
+
state.component.values += 1;
|
2071
|
+
}
|
2072
|
+
match ty {
|
2073
|
+
ComponentValType::Primitive(ty) => self.print_primitive_val_type(ty),
|
2074
|
+
ComponentValType::Type(idx) => {
|
2075
|
+
self.print_component_type_ref(state, *idx)?;
|
2076
|
+
}
|
2077
|
+
}
|
2078
|
+
self.end_group();
|
2079
|
+
}
|
2080
|
+
ComponentTypeRef::Type(bounds) => {
|
2081
|
+
self.result.push_str("(type ");
|
2082
|
+
if index {
|
2083
|
+
self.print_name(&state.component.type_names, state.component.types)?;
|
2084
|
+
self.result.push(' ');
|
2085
|
+
state.component.types += 1;
|
2086
|
+
}
|
2087
|
+
match bounds {
|
2088
|
+
TypeBounds::Eq(idx) => {
|
2089
|
+
self.result.push_str("(eq ");
|
2090
|
+
self.print_idx(&state.component.type_names, *idx)?;
|
2091
|
+
self.result.push(')');
|
2092
|
+
}
|
2093
|
+
TypeBounds::SubResource => {
|
2094
|
+
self.result.push_str("(sub resource)");
|
2095
|
+
}
|
2096
|
+
};
|
2097
|
+
self.result.push(')');
|
2098
|
+
}
|
2099
|
+
ComponentTypeRef::Instance(idx) => {
|
2100
|
+
self.start_group("instance ");
|
2101
|
+
if index {
|
2102
|
+
self.print_name(&state.component.instance_names, state.component.instances)?;
|
2103
|
+
self.result.push(' ');
|
2104
|
+
state.component.instances += 1;
|
2105
|
+
}
|
2106
|
+
self.print_component_type_ref(state, *idx)?;
|
2107
|
+
self.end_group();
|
2108
|
+
}
|
2109
|
+
ComponentTypeRef::Component(idx) => {
|
2110
|
+
self.start_group("component ");
|
2111
|
+
if index {
|
2112
|
+
self.print_name(&state.component.component_names, state.component.components)?;
|
2113
|
+
self.result.push(' ');
|
2114
|
+
state.component.components += 1;
|
2115
|
+
}
|
2116
|
+
self.print_component_type_ref(state, *idx)?;
|
2117
|
+
self.end_group();
|
2118
|
+
}
|
2119
|
+
}
|
2120
|
+
Ok(())
|
2121
|
+
}
|
2122
|
+
|
2123
|
+
fn print_component_exports(
|
2124
|
+
&mut self,
|
2125
|
+
state: &mut State,
|
2126
|
+
parser: ComponentExportSectionReader,
|
2127
|
+
) -> Result<()> {
|
2128
|
+
for export in parser.into_iter_with_offsets() {
|
2129
|
+
let (offset, export) = export?;
|
2130
|
+
self.newline(offset);
|
2131
|
+
self.print_component_export(state, &export, true)?;
|
2132
|
+
}
|
2133
|
+
Ok(())
|
2134
|
+
}
|
2135
|
+
|
2136
|
+
fn print_component_export(
|
2137
|
+
&mut self,
|
2138
|
+
state: &mut State,
|
2139
|
+
export: &ComponentExport,
|
2140
|
+
named: bool,
|
2141
|
+
) -> Result<()> {
|
2142
|
+
self.start_group("export ");
|
2143
|
+
if named {
|
2144
|
+
self.print_component_kind_name(state, export.kind)?;
|
2145
|
+
}
|
2146
|
+
self.print_str(export.name.0)?;
|
2147
|
+
self.result.push(' ');
|
2148
|
+
self.print_component_external_kind(state, export.kind, export.index)?;
|
2149
|
+
if let Some(ty) = &export.ty {
|
2150
|
+
self.result.push(' ');
|
2151
|
+
self.print_component_import_ty(state, &ty, false)?;
|
2152
|
+
}
|
2153
|
+
self.end_group();
|
2154
|
+
Ok(())
|
2155
|
+
}
|
2156
|
+
|
2157
|
+
fn print_component_kind_name(
|
2158
|
+
&mut self,
|
2159
|
+
state: &mut State,
|
2160
|
+
kind: ComponentExternalKind,
|
2161
|
+
) -> Result<()> {
|
2162
|
+
match kind {
|
2163
|
+
ComponentExternalKind::Func => {
|
2164
|
+
self.print_name(&state.component.func_names, state.component.funcs)?;
|
2165
|
+
state.component.funcs += 1;
|
2166
|
+
}
|
2167
|
+
ComponentExternalKind::Module => {
|
2168
|
+
self.print_name(&state.core.module_names, state.core.modules)?;
|
2169
|
+
state.core.modules += 1;
|
2170
|
+
}
|
2171
|
+
ComponentExternalKind::Value => {
|
2172
|
+
self.print_name(&state.component.value_names, state.component.values)?;
|
2173
|
+
state.component.values += 1;
|
2174
|
+
}
|
2175
|
+
ComponentExternalKind::Type => {
|
2176
|
+
self.print_name(&state.component.type_names, state.component.types)?;
|
2177
|
+
state.component.types += 1;
|
2178
|
+
}
|
2179
|
+
ComponentExternalKind::Instance => {
|
2180
|
+
self.print_name(&state.component.instance_names, state.component.instances)?;
|
2181
|
+
state.component.instances += 1;
|
2182
|
+
}
|
2183
|
+
ComponentExternalKind::Component => {
|
2184
|
+
self.print_name(&state.component.component_names, state.component.components)?;
|
2185
|
+
state.component.components += 1;
|
2186
|
+
}
|
2187
|
+
}
|
2188
|
+
self.result.push(' ');
|
2189
|
+
Ok(())
|
2190
|
+
}
|
2191
|
+
|
2192
|
+
fn print_component_external_kind(
|
2193
|
+
&mut self,
|
2194
|
+
state: &State,
|
2195
|
+
kind: ComponentExternalKind,
|
2196
|
+
index: u32,
|
2197
|
+
) -> Result<()> {
|
2198
|
+
match kind {
|
2199
|
+
ComponentExternalKind::Module => {
|
2200
|
+
self.start_group("core module ");
|
2201
|
+
self.print_idx(&state.core.module_names, index)?;
|
2202
|
+
}
|
2203
|
+
ComponentExternalKind::Component => {
|
2204
|
+
self.start_group("component ");
|
2205
|
+
self.print_idx(&state.component.component_names, index)?;
|
2206
|
+
}
|
2207
|
+
ComponentExternalKind::Instance => {
|
2208
|
+
self.start_group("instance ");
|
2209
|
+
self.print_idx(&state.component.instance_names, index)?;
|
2210
|
+
}
|
2211
|
+
ComponentExternalKind::Func => {
|
2212
|
+
self.start_group("func ");
|
2213
|
+
self.print_idx(&state.component.func_names, index)?;
|
2214
|
+
}
|
2215
|
+
ComponentExternalKind::Value => {
|
2216
|
+
self.start_group("value ");
|
2217
|
+
self.print_idx(&state.component.value_names, index)?;
|
2218
|
+
}
|
2219
|
+
ComponentExternalKind::Type => {
|
2220
|
+
self.start_group("type ");
|
2221
|
+
self.print_idx(&state.component.type_names, index)?;
|
2222
|
+
}
|
2223
|
+
}
|
2224
|
+
self.end_group();
|
2225
|
+
Ok(())
|
2226
|
+
}
|
2227
|
+
|
2228
|
+
fn print_canonical_options(
|
2229
|
+
&mut self,
|
2230
|
+
state: &State,
|
2231
|
+
options: &[CanonicalOption],
|
2232
|
+
) -> Result<()> {
|
2233
|
+
for option in options {
|
2234
|
+
self.result.push(' ');
|
2235
|
+
match option {
|
2236
|
+
CanonicalOption::UTF8 => self.result.push_str("string-encoding=utf8"),
|
2237
|
+
CanonicalOption::UTF16 => self.result.push_str("string-encoding=utf16"),
|
2238
|
+
CanonicalOption::CompactUTF16 => {
|
2239
|
+
self.result.push_str("string-encoding=latin1+utf16")
|
2240
|
+
}
|
2241
|
+
CanonicalOption::Memory(idx) => {
|
2242
|
+
self.start_group("memory ");
|
2243
|
+
self.print_idx(&state.core.memory_names, *idx)?;
|
2244
|
+
self.end_group();
|
2245
|
+
}
|
2246
|
+
CanonicalOption::Realloc(idx) => {
|
2247
|
+
self.start_group("realloc ");
|
2248
|
+
self.print_idx(&state.core.func_names, *idx)?;
|
2249
|
+
self.end_group();
|
2250
|
+
}
|
2251
|
+
CanonicalOption::PostReturn(idx) => {
|
2252
|
+
self.start_group("post-return ");
|
2253
|
+
self.print_idx(&state.core.func_names, *idx)?;
|
2254
|
+
self.end_group();
|
2255
|
+
}
|
2256
|
+
}
|
2257
|
+
}
|
2258
|
+
Ok(())
|
2259
|
+
}
|
2260
|
+
|
2261
|
+
fn print_canonical_functions(
|
2262
|
+
&mut self,
|
2263
|
+
state: &mut State,
|
2264
|
+
parser: ComponentCanonicalSectionReader,
|
2265
|
+
) -> Result<()> {
|
2266
|
+
for func in parser.into_iter_with_offsets() {
|
2267
|
+
let (offset, func) = func?;
|
2268
|
+
self.newline(offset);
|
2269
|
+
match func {
|
2270
|
+
CanonicalFunction::Lift {
|
2271
|
+
core_func_index,
|
2272
|
+
type_index,
|
2273
|
+
options,
|
2274
|
+
} => {
|
2275
|
+
self.start_group("func ");
|
2276
|
+
self.print_name(&state.component.func_names, state.component.funcs)?;
|
2277
|
+
self.result.push(' ');
|
2278
|
+
self.start_group("type ");
|
2279
|
+
self.print_idx(&state.component.type_names, type_index)?;
|
2280
|
+
self.end_group();
|
2281
|
+
self.result.push(' ');
|
2282
|
+
self.start_group("canon lift ");
|
2283
|
+
self.start_group("core func ");
|
2284
|
+
self.print_idx(&state.core.func_names, core_func_index)?;
|
2285
|
+
self.end_group();
|
2286
|
+
self.print_canonical_options(state, &options)?;
|
2287
|
+
self.end_group();
|
2288
|
+
self.end_group();
|
2289
|
+
state.component.funcs += 1;
|
2290
|
+
}
|
2291
|
+
CanonicalFunction::Lower {
|
2292
|
+
func_index,
|
2293
|
+
options,
|
2294
|
+
} => {
|
2295
|
+
self.start_group("core func ");
|
2296
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
2297
|
+
self.result.push(' ');
|
2298
|
+
self.start_group("canon lower ");
|
2299
|
+
self.start_group("func ");
|
2300
|
+
self.print_idx(&state.component.func_names, func_index)?;
|
2301
|
+
self.end_group();
|
2302
|
+
self.print_canonical_options(state, &options)?;
|
2303
|
+
self.end_group();
|
2304
|
+
self.end_group();
|
2305
|
+
state.core.funcs += 1;
|
2306
|
+
}
|
2307
|
+
CanonicalFunction::ResourceNew { resource } => {
|
2308
|
+
self.start_group("core func ");
|
2309
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
2310
|
+
self.result.push(' ');
|
2311
|
+
self.start_group("canon resource.new ");
|
2312
|
+
self.print_idx(&state.component.type_names, resource)?;
|
2313
|
+
self.end_group();
|
2314
|
+
self.end_group();
|
2315
|
+
state.core.funcs += 1;
|
2316
|
+
}
|
2317
|
+
CanonicalFunction::ResourceDrop { resource } => {
|
2318
|
+
self.start_group("core func ");
|
2319
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
2320
|
+
self.result.push(' ');
|
2321
|
+
self.start_group("canon resource.drop ");
|
2322
|
+
self.print_idx(&state.component.type_names, resource)?;
|
2323
|
+
self.end_group();
|
2324
|
+
self.end_group();
|
2325
|
+
state.core.funcs += 1;
|
2326
|
+
}
|
2327
|
+
CanonicalFunction::ResourceRep { resource } => {
|
2328
|
+
self.start_group("core func ");
|
2329
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
2330
|
+
self.result.push(' ');
|
2331
|
+
self.start_group("canon resource.rep ");
|
2332
|
+
self.print_idx(&state.component.type_names, resource)?;
|
2333
|
+
self.end_group();
|
2334
|
+
self.end_group();
|
2335
|
+
state.core.funcs += 1;
|
2336
|
+
}
|
2337
|
+
}
|
2338
|
+
}
|
2339
|
+
|
2340
|
+
Ok(())
|
2341
|
+
}
|
2342
|
+
|
2343
|
+
fn print_instances(&mut self, state: &mut State, parser: InstanceSectionReader) -> Result<()> {
|
2344
|
+
for instance in parser.into_iter_with_offsets() {
|
2345
|
+
let (offset, instance) = instance?;
|
2346
|
+
self.newline(offset);
|
2347
|
+
self.start_group("core instance ");
|
2348
|
+
self.print_name(&state.core.instance_names, state.core.instances)?;
|
2349
|
+
match instance {
|
2350
|
+
Instance::Instantiate { module_index, args } => {
|
2351
|
+
self.result.push(' ');
|
2352
|
+
self.start_group("instantiate ");
|
2353
|
+
self.print_idx(&state.core.module_names, module_index)?;
|
2354
|
+
for arg in args.iter() {
|
2355
|
+
self.newline(offset);
|
2356
|
+
self.print_instantiation_arg(state, arg)?;
|
2357
|
+
}
|
2358
|
+
self.end_group();
|
2359
|
+
state.core.instances += 1;
|
2360
|
+
}
|
2361
|
+
Instance::FromExports(exports) => {
|
2362
|
+
for export in exports.iter() {
|
2363
|
+
self.newline(offset);
|
2364
|
+
self.print_export(state, export)?;
|
2365
|
+
}
|
2366
|
+
state.core.instances += 1;
|
2367
|
+
}
|
2368
|
+
}
|
2369
|
+
self.end_group();
|
2370
|
+
}
|
2371
|
+
Ok(())
|
2372
|
+
}
|
2373
|
+
|
2374
|
+
fn print_component_instances(
|
2375
|
+
&mut self,
|
2376
|
+
state: &mut State,
|
2377
|
+
parser: ComponentInstanceSectionReader,
|
2378
|
+
) -> Result<()> {
|
2379
|
+
for instance in parser.into_iter_with_offsets() {
|
2380
|
+
let (offset, instance) = instance?;
|
2381
|
+
self.newline(offset);
|
2382
|
+
self.start_group("instance ");
|
2383
|
+
self.print_name(&state.component.instance_names, state.component.instances)?;
|
2384
|
+
state.component.instances += 1;
|
2385
|
+
match instance {
|
2386
|
+
ComponentInstance::Instantiate {
|
2387
|
+
component_index,
|
2388
|
+
args,
|
2389
|
+
} => {
|
2390
|
+
self.result.push(' ');
|
2391
|
+
self.start_group("instantiate ");
|
2392
|
+
self.print_idx(&state.component.component_names, component_index)?;
|
2393
|
+
for arg in args.iter() {
|
2394
|
+
self.newline(offset);
|
2395
|
+
self.print_component_instantiation_arg(state, arg)?;
|
2396
|
+
}
|
2397
|
+
self.end_group();
|
2398
|
+
}
|
2399
|
+
ComponentInstance::FromExports(exports) => {
|
2400
|
+
for export in exports.iter() {
|
2401
|
+
self.newline(offset);
|
2402
|
+
self.print_component_export(state, export, false)?;
|
2403
|
+
}
|
2404
|
+
}
|
2405
|
+
}
|
2406
|
+
self.end_group();
|
2407
|
+
}
|
2408
|
+
Ok(())
|
2409
|
+
}
|
2410
|
+
|
2411
|
+
fn print_instantiation_arg(&mut self, state: &State, arg: &InstantiationArg) -> Result<()> {
|
2412
|
+
self.start_group("with ");
|
2413
|
+
self.print_str(arg.name)?;
|
2414
|
+
self.result.push(' ');
|
2415
|
+
match arg.kind {
|
2416
|
+
InstantiationArgKind::Instance => {
|
2417
|
+
self.start_group("instance ");
|
2418
|
+
self.print_idx(&state.core.instance_names, arg.index)?;
|
2419
|
+
self.end_group();
|
2420
|
+
}
|
2421
|
+
}
|
2422
|
+
self.end_group();
|
2423
|
+
Ok(())
|
2424
|
+
}
|
2425
|
+
|
2426
|
+
fn print_component_instantiation_arg(
|
2427
|
+
&mut self,
|
2428
|
+
state: &State,
|
2429
|
+
arg: &ComponentInstantiationArg,
|
2430
|
+
) -> Result<()> {
|
2431
|
+
self.start_group("with ");
|
2432
|
+
self.print_str(arg.name)?;
|
2433
|
+
self.result.push(' ');
|
2434
|
+
self.print_component_external_kind(state, arg.kind, arg.index)?;
|
2435
|
+
self.end_group();
|
2436
|
+
Ok(())
|
2437
|
+
}
|
2438
|
+
|
2439
|
+
fn print_component_start(
|
2440
|
+
&mut self,
|
2441
|
+
state: &mut State,
|
2442
|
+
pos: usize,
|
2443
|
+
start: ComponentStartFunction,
|
2444
|
+
) -> Result<()> {
|
2445
|
+
self.newline(pos);
|
2446
|
+
self.start_group("start ");
|
2447
|
+
self.print_idx(&state.component.func_names, start.func_index)?;
|
2448
|
+
|
2449
|
+
for arg in start.arguments.iter() {
|
2450
|
+
self.result.push(' ');
|
2451
|
+
self.start_group("value ");
|
2452
|
+
self.print_idx(&state.component.value_names, *arg)?;
|
2453
|
+
self.end_group();
|
2454
|
+
}
|
2455
|
+
|
2456
|
+
for _ in 0..start.results {
|
2457
|
+
self.result.push(' ');
|
2458
|
+
self.start_group("result ");
|
2459
|
+
self.start_group("value ");
|
2460
|
+
self.print_name(&state.component.value_names, state.component.values)?;
|
2461
|
+
self.end_group();
|
2462
|
+
self.end_group();
|
2463
|
+
state.component.values += 1;
|
2464
|
+
}
|
2465
|
+
|
2466
|
+
self.end_group(); // start
|
2467
|
+
|
2468
|
+
Ok(())
|
2469
|
+
}
|
2470
|
+
|
2471
|
+
fn print_component_aliases(
|
2472
|
+
&mut self,
|
2473
|
+
states: &mut [State],
|
2474
|
+
parser: ComponentAliasSectionReader,
|
2475
|
+
) -> Result<()> {
|
2476
|
+
for alias in parser.into_iter_with_offsets() {
|
2477
|
+
let (offset, alias) = alias?;
|
2478
|
+
self.newline(offset);
|
2479
|
+
self.print_component_alias(states, alias)?;
|
2480
|
+
}
|
2481
|
+
Ok(())
|
2482
|
+
}
|
2483
|
+
|
2484
|
+
fn print_component_alias(
|
2485
|
+
&mut self,
|
2486
|
+
states: &mut [State],
|
2487
|
+
alias: ComponentAlias<'_>,
|
2488
|
+
) -> Result<()> {
|
2489
|
+
match alias {
|
2490
|
+
ComponentAlias::InstanceExport {
|
2491
|
+
kind,
|
2492
|
+
instance_index,
|
2493
|
+
name,
|
2494
|
+
} => {
|
2495
|
+
let state = states.last_mut().unwrap();
|
2496
|
+
self.start_group("alias export ");
|
2497
|
+
self.print_idx(&state.component.instance_names, instance_index)?;
|
2498
|
+
self.result.push(' ');
|
2499
|
+
self.print_str(name)?;
|
2500
|
+
self.result.push(' ');
|
2501
|
+
match kind {
|
2502
|
+
ComponentExternalKind::Module => {
|
2503
|
+
self.start_group("core module ");
|
2504
|
+
self.print_name(&state.core.module_names, state.core.modules)?;
|
2505
|
+
self.end_group();
|
2506
|
+
state.core.modules += 1;
|
2507
|
+
}
|
2508
|
+
ComponentExternalKind::Component => {
|
2509
|
+
self.start_group("component ");
|
2510
|
+
self.print_name(
|
2511
|
+
&state.component.component_names,
|
2512
|
+
state.component.components,
|
2513
|
+
)?;
|
2514
|
+
self.end_group();
|
2515
|
+
state.component.components += 1;
|
2516
|
+
}
|
2517
|
+
ComponentExternalKind::Instance => {
|
2518
|
+
self.start_group("instance ");
|
2519
|
+
self.print_name(
|
2520
|
+
&state.component.instance_names,
|
2521
|
+
state.component.instances,
|
2522
|
+
)?;
|
2523
|
+
self.end_group();
|
2524
|
+
state.component.instances += 1;
|
2525
|
+
}
|
2526
|
+
ComponentExternalKind::Func => {
|
2527
|
+
self.start_group("func ");
|
2528
|
+
self.print_name(&state.component.func_names, state.component.funcs)?;
|
2529
|
+
self.end_group();
|
2530
|
+
state.component.funcs += 1;
|
2531
|
+
}
|
2532
|
+
ComponentExternalKind::Value => {
|
2533
|
+
self.start_group("value ");
|
2534
|
+
self.print_name(&state.component.value_names, state.component.values)?;
|
2535
|
+
self.end_group();
|
2536
|
+
state.component.values += 1;
|
2537
|
+
}
|
2538
|
+
ComponentExternalKind::Type => {
|
2539
|
+
self.start_group("type ");
|
2540
|
+
self.print_name(&state.component.type_names, state.component.types)?;
|
2541
|
+
self.end_group();
|
2542
|
+
state.component.types += 1;
|
2543
|
+
}
|
2544
|
+
}
|
2545
|
+
|
2546
|
+
self.end_group(); // alias export
|
2547
|
+
}
|
2548
|
+
ComponentAlias::CoreInstanceExport {
|
2549
|
+
instance_index,
|
2550
|
+
kind,
|
2551
|
+
name,
|
2552
|
+
} => {
|
2553
|
+
let state = states.last_mut().unwrap();
|
2554
|
+
self.start_group("alias core export ");
|
2555
|
+
self.print_idx(&state.core.instance_names, instance_index)?;
|
2556
|
+
self.result.push(' ');
|
2557
|
+
self.print_str(name)?;
|
2558
|
+
self.result.push(' ');
|
2559
|
+
match kind {
|
2560
|
+
ExternalKind::Func => {
|
2561
|
+
self.start_group("core func ");
|
2562
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
2563
|
+
self.end_group();
|
2564
|
+
state.core.funcs += 1;
|
2565
|
+
}
|
2566
|
+
ExternalKind::Table => {
|
2567
|
+
self.start_group("core table ");
|
2568
|
+
self.print_name(&state.core.table_names, state.core.tables)?;
|
2569
|
+
self.end_group();
|
2570
|
+
state.core.tables += 1;
|
2571
|
+
}
|
2572
|
+
ExternalKind::Memory => {
|
2573
|
+
self.start_group("core memory ");
|
2574
|
+
self.print_name(&state.core.memory_names, state.core.memories)?;
|
2575
|
+
self.end_group();
|
2576
|
+
state.core.memories += 1;
|
2577
|
+
}
|
2578
|
+
ExternalKind::Global => {
|
2579
|
+
self.start_group("core global ");
|
2580
|
+
self.print_name(&state.core.global_names, state.core.globals)?;
|
2581
|
+
self.end_group();
|
2582
|
+
state.core.globals += 1;
|
2583
|
+
}
|
2584
|
+
ExternalKind::Tag => {
|
2585
|
+
self.start_group("core tag ");
|
2586
|
+
self.print_name(&state.core.tag_names, state.core.tags)?;
|
2587
|
+
self.end_group();
|
2588
|
+
state.core.tags += 1;
|
2589
|
+
}
|
2590
|
+
}
|
2591
|
+
self.end_group(); // alias export
|
2592
|
+
}
|
2593
|
+
|
2594
|
+
ComponentAlias::Outer { kind, count, index } => {
|
2595
|
+
let state = states.last().unwrap();
|
2596
|
+
let outer = Self::outer_state(states, count)?;
|
2597
|
+
self.start_group("alias outer ");
|
2598
|
+
if let Some(name) = outer.name.as_ref() {
|
2599
|
+
name.write(&mut self.result);
|
2600
|
+
} else {
|
2601
|
+
self.result.push_str(count.to_string().as_str());
|
2602
|
+
}
|
2603
|
+
self.result.push(' ');
|
2604
|
+
match kind {
|
2605
|
+
ComponentOuterAliasKind::CoreModule => {
|
2606
|
+
self.print_idx(&outer.core.module_names, index)?;
|
2607
|
+
self.result.push(' ');
|
2608
|
+
self.start_group("core module ");
|
2609
|
+
self.print_name(&state.core.module_names, state.core.modules)?;
|
2610
|
+
}
|
2611
|
+
ComponentOuterAliasKind::CoreType => {
|
2612
|
+
self.print_idx(&outer.core.type_names, index)?;
|
2613
|
+
self.result.push(' ');
|
2614
|
+
self.start_group("core type ");
|
2615
|
+
self.print_name(&state.core.type_names, state.core.types.len() as u32)?;
|
2616
|
+
}
|
2617
|
+
ComponentOuterAliasKind::Type => {
|
2618
|
+
self.print_idx(&outer.component.type_names, index)?;
|
2619
|
+
self.result.push(' ');
|
2620
|
+
self.start_group("type ");
|
2621
|
+
self.print_name(&state.component.type_names, state.component.types)?;
|
2622
|
+
}
|
2623
|
+
ComponentOuterAliasKind::Component => {
|
2624
|
+
self.print_idx(&outer.component.component_names, index)?;
|
2625
|
+
self.result.push(' ');
|
2626
|
+
self.start_group("component ");
|
2627
|
+
self.print_name(
|
2628
|
+
&state.component.component_names,
|
2629
|
+
state.component.components,
|
2630
|
+
)?;
|
2631
|
+
}
|
2632
|
+
}
|
2633
|
+
self.end_group(); // kind
|
2634
|
+
self.end_group(); // alias
|
2635
|
+
|
2636
|
+
let state = states.last_mut().unwrap();
|
2637
|
+
match kind {
|
2638
|
+
ComponentOuterAliasKind::CoreModule => state.core.modules += 1,
|
2639
|
+
ComponentOuterAliasKind::CoreType => state.core.types.push(None),
|
2640
|
+
ComponentOuterAliasKind::Type => state.component.types += 1,
|
2641
|
+
ComponentOuterAliasKind::Component => state.component.components += 1,
|
2642
|
+
}
|
2643
|
+
}
|
2644
|
+
}
|
2645
|
+
Ok(())
|
2646
|
+
}
|
2647
|
+
|
2648
|
+
fn print_str(&mut self, name: &str) -> Result<()> {
|
2649
|
+
let mut bytes = [0; 4];
|
2650
|
+
self.result.push('"');
|
2651
|
+
for c in name.chars() {
|
2652
|
+
let v = c as u32;
|
2653
|
+
if (0x20..0x7f).contains(&v) && c != '"' && c != '\\' && v < 0xff {
|
2654
|
+
self.result.push(c);
|
2655
|
+
} else {
|
2656
|
+
for byte in c.encode_utf8(&mut bytes).as_bytes() {
|
2657
|
+
self.hex_byte(*byte);
|
2658
|
+
}
|
2659
|
+
}
|
2660
|
+
}
|
2661
|
+
self.result.push('"');
|
2662
|
+
Ok(())
|
2663
|
+
}
|
2664
|
+
|
2665
|
+
fn print_bytes(&mut self, bytes: &[u8]) -> Result<()> {
|
2666
|
+
self.result.push('"');
|
2667
|
+
for byte in bytes {
|
2668
|
+
if *byte >= 0x20 && *byte < 0x7f && *byte != b'"' && *byte != b'\\' {
|
2669
|
+
self.result.push(*byte as char);
|
2670
|
+
} else {
|
2671
|
+
self.hex_byte(*byte);
|
2672
|
+
}
|
2673
|
+
}
|
2674
|
+
self.result.push('"');
|
2675
|
+
Ok(())
|
2676
|
+
}
|
2677
|
+
|
2678
|
+
fn hex_byte(&mut self, byte: u8) {
|
2679
|
+
fn to_hex(b: u8) -> char {
|
2680
|
+
if b < 10 {
|
2681
|
+
(b'0' + b) as char
|
2682
|
+
} else {
|
2683
|
+
(b'a' + b - 10) as char
|
2684
|
+
}
|
2685
|
+
}
|
2686
|
+
self.result.push('\\');
|
2687
|
+
self.result.push(to_hex((byte >> 4) & 0xf));
|
2688
|
+
self.result.push(to_hex(byte & 0xf));
|
2689
|
+
}
|
2690
|
+
|
2691
|
+
fn print_custom_section(
|
2692
|
+
&mut self,
|
2693
|
+
state: &State,
|
2694
|
+
section: CustomSectionReader<'_>,
|
2695
|
+
) -> Result<()> {
|
2696
|
+
match section.name() {
|
2697
|
+
// For now `wasmprinter` has invented syntax for `producers` and
|
2698
|
+
// `dylink.0` below to use in tests. Note that this syntax is not
|
2699
|
+
// official at this time.
|
2700
|
+
"producers" => {
|
2701
|
+
self.newline(section.range().start);
|
2702
|
+
self.print_producers_section(ProducersSectionReader::new(
|
2703
|
+
section.data(),
|
2704
|
+
section.data_offset(),
|
2705
|
+
)?)
|
2706
|
+
}
|
2707
|
+
"dylink.0" => {
|
2708
|
+
self.newline(section.range().start);
|
2709
|
+
self.print_dylink0_section(Dylink0SectionReader::new(
|
2710
|
+
section.data(),
|
2711
|
+
section.data_offset(),
|
2712
|
+
))
|
2713
|
+
}
|
2714
|
+
|
2715
|
+
// These are parsed during `read_names_and_code` and are part of
|
2716
|
+
// printing elsewhere, so don't print them.
|
2717
|
+
"name" | "component-name" | "metadata.code.branch_hint" => Ok(()),
|
2718
|
+
|
2719
|
+
// Unknown custom sections get a `@custom` annotation printed.
|
2720
|
+
_ => self.print_raw_custom_section(state, section),
|
2721
|
+
}
|
2722
|
+
}
|
2723
|
+
|
2724
|
+
fn print_raw_custom_section(
|
2725
|
+
&mut self,
|
2726
|
+
state: &State,
|
2727
|
+
section: CustomSectionReader<'_>,
|
2728
|
+
) -> Result<()> {
|
2729
|
+
self.newline(section.range().start);
|
2730
|
+
self.start_group("@custom ");
|
2731
|
+
self.print_str(section.name())?;
|
2732
|
+
if let Some(place) = state.custom_section_place {
|
2733
|
+
self.result.push_str(" (");
|
2734
|
+
self.result.push_str(place);
|
2735
|
+
self.result.push_str(")");
|
2736
|
+
}
|
2737
|
+
self.result.push_str(" ");
|
2738
|
+
self.print_bytes(section.data())?;
|
2739
|
+
self.end_group();
|
2740
|
+
Ok(())
|
2741
|
+
}
|
2742
|
+
|
2743
|
+
fn print_producers_section(&mut self, section: ProducersSectionReader<'_>) -> Result<()> {
|
2744
|
+
self.start_group("@producers");
|
2745
|
+
for field in section {
|
2746
|
+
let field = field?;
|
2747
|
+
for value in field.values.into_iter_with_offsets() {
|
2748
|
+
let (offset, value) = value?;
|
2749
|
+
self.newline(offset);
|
2750
|
+
self.start_group(field.name);
|
2751
|
+
self.result.push_str(" ");
|
2752
|
+
self.print_str(value.name)?;
|
2753
|
+
self.result.push_str(" ");
|
2754
|
+
self.print_str(value.version)?;
|
2755
|
+
self.end_group();
|
2756
|
+
}
|
2757
|
+
}
|
2758
|
+
self.end_group();
|
2759
|
+
Ok(())
|
2760
|
+
}
|
2761
|
+
|
2762
|
+
fn print_dylink0_section(&mut self, mut section: Dylink0SectionReader<'_>) -> Result<()> {
|
2763
|
+
self.start_group("@dylink.0");
|
2764
|
+
loop {
|
2765
|
+
let start = section.original_position();
|
2766
|
+
let next = match section.next() {
|
2767
|
+
Some(Ok(next)) => next,
|
2768
|
+
Some(Err(e)) => return Err(e.into()),
|
2769
|
+
None => break,
|
2770
|
+
};
|
2771
|
+
match next {
|
2772
|
+
Dylink0Subsection::MemInfo(info) => {
|
2773
|
+
self.newline(start);
|
2774
|
+
self.start_group("mem-info");
|
2775
|
+
if info.memory_size > 0 || info.memory_alignment > 0 {
|
2776
|
+
write!(
|
2777
|
+
self.result,
|
2778
|
+
" (memory {} {})",
|
2779
|
+
info.memory_size, info.memory_alignment
|
2780
|
+
)?;
|
2781
|
+
}
|
2782
|
+
if info.table_size > 0 || info.table_alignment > 0 {
|
2783
|
+
write!(
|
2784
|
+
self.result,
|
2785
|
+
" (table {} {})",
|
2786
|
+
info.table_size, info.table_alignment
|
2787
|
+
)?;
|
2788
|
+
}
|
2789
|
+
self.end_group();
|
2790
|
+
}
|
2791
|
+
Dylink0Subsection::Needed(needed) => {
|
2792
|
+
self.newline(start);
|
2793
|
+
self.start_group("needed");
|
2794
|
+
for s in needed {
|
2795
|
+
self.result.push_str(" ");
|
2796
|
+
self.print_str(s)?;
|
2797
|
+
}
|
2798
|
+
self.end_group();
|
2799
|
+
}
|
2800
|
+
Dylink0Subsection::ExportInfo(info) => {
|
2801
|
+
for info in info {
|
2802
|
+
self.newline(start);
|
2803
|
+
self.start_group("export-info ");
|
2804
|
+
self.print_str(info.name)?;
|
2805
|
+
self.print_dylink0_flags(info.flags)?;
|
2806
|
+
self.end_group();
|
2807
|
+
}
|
2808
|
+
}
|
2809
|
+
Dylink0Subsection::ImportInfo(info) => {
|
2810
|
+
for info in info {
|
2811
|
+
self.newline(start);
|
2812
|
+
self.start_group("import-info ");
|
2813
|
+
self.print_str(info.module)?;
|
2814
|
+
self.result.push_str(" ");
|
2815
|
+
self.print_str(info.field)?;
|
2816
|
+
self.print_dylink0_flags(info.flags)?;
|
2817
|
+
self.end_group();
|
2818
|
+
}
|
2819
|
+
}
|
2820
|
+
Dylink0Subsection::Unknown { ty, .. } => {
|
2821
|
+
bail!("don't know how to print dylink.0 subsection id {ty}");
|
2822
|
+
}
|
2823
|
+
}
|
2824
|
+
}
|
2825
|
+
self.end_group();
|
2826
|
+
Ok(())
|
2827
|
+
}
|
2828
|
+
|
2829
|
+
fn print_dylink0_flags(&mut self, mut flags: SymbolFlags) -> Result<()> {
|
2830
|
+
macro_rules! print_flag {
|
2831
|
+
($($name:ident = $text:tt)*) => ({$(
|
2832
|
+
if flags.contains(SymbolFlags::$name) {
|
2833
|
+
flags.remove(SymbolFlags::$name);
|
2834
|
+
self.result.push_str(concat!(" ", $text));
|
2835
|
+
}
|
2836
|
+
)*})
|
2837
|
+
}
|
2838
|
+
// N.B.: Keep in sync with `parse_sym_flags` in `crates/wast/src/core/custom.rs`.
|
2839
|
+
print_flag! {
|
2840
|
+
BINDING_WEAK = "binding-weak"
|
2841
|
+
BINDING_LOCAL = "binding-local"
|
2842
|
+
VISIBILITY_HIDDEN = "visibility-hidden"
|
2843
|
+
UNDEFINED = "undefined"
|
2844
|
+
EXPORTED = "exported"
|
2845
|
+
EXPLICIT_NAME = "explicit-name"
|
2846
|
+
NO_STRIP = "no-strip"
|
2847
|
+
TLS = "tls"
|
2848
|
+
ABSOLUTE = "absolute"
|
2849
|
+
}
|
2850
|
+
if !flags.is_empty() {
|
2851
|
+
write!(self.result, " {:#x}", flags)?;
|
2852
|
+
}
|
2853
|
+
Ok(())
|
2854
|
+
}
|
2855
|
+
|
2856
|
+
fn register_branch_hint_section(&mut self, section: BranchHintSectionReader<'_>) -> Result<()> {
|
2857
|
+
self.code_section_hints.clear();
|
2858
|
+
for func in section {
|
2859
|
+
let func = func?;
|
2860
|
+
if self.code_section_hints.len() >= MAX_WASM_FUNCTIONS as usize {
|
2861
|
+
bail!("found too many hints");
|
2862
|
+
}
|
2863
|
+
if func.hints.count() >= MAX_WASM_FUNCTION_SIZE {
|
2864
|
+
bail!("found too many hints");
|
2865
|
+
}
|
2866
|
+
let hints = func
|
2867
|
+
.hints
|
2868
|
+
.into_iter_with_offsets()
|
2869
|
+
.collect::<wasmparser::Result<Vec<_>>>()?;
|
2870
|
+
self.code_section_hints.push((func.func, hints));
|
2871
|
+
}
|
2872
|
+
self.code_section_hints.reverse();
|
2873
|
+
Ok(())
|
2874
|
+
}
|
2875
|
+
}
|
2876
|
+
|
2877
|
+
struct NamedLocalPrinter {
|
2878
|
+
group_name: &'static str,
|
2879
|
+
in_group: bool,
|
2880
|
+
end_group_after_local: bool,
|
2881
|
+
first: bool,
|
2882
|
+
}
|
2883
|
+
|
2884
|
+
impl NamedLocalPrinter {
|
2885
|
+
fn new(group_name: &'static str) -> NamedLocalPrinter {
|
2886
|
+
NamedLocalPrinter {
|
2887
|
+
group_name,
|
2888
|
+
in_group: false,
|
2889
|
+
end_group_after_local: false,
|
2890
|
+
first: true,
|
2891
|
+
}
|
2892
|
+
}
|
2893
|
+
|
2894
|
+
fn start_local(&mut self, func: u32, local: u32, dst: &mut Printer, state: &State) {
|
2895
|
+
let name = state.core.local_names.index_to_name.get(&(func, local));
|
2896
|
+
|
2897
|
+
// Named locals must be in their own group, so if we have a name we need
|
2898
|
+
// to terminate the previous group.
|
2899
|
+
if name.is_some() && self.in_group {
|
2900
|
+
dst.result.push(')');
|
2901
|
+
self.in_group = false;
|
2902
|
+
}
|
2903
|
+
|
2904
|
+
if self.first {
|
2905
|
+
self.first = false;
|
2906
|
+
} else {
|
2907
|
+
dst.result.push(' ');
|
2908
|
+
}
|
2909
|
+
|
2910
|
+
// Next we either need a separator if we're already in a group or we
|
2911
|
+
// need to open a group for our new local.
|
2912
|
+
if !self.in_group {
|
2913
|
+
dst.result.push('(');
|
2914
|
+
dst.result.push_str(self.group_name);
|
2915
|
+
dst.result.push(' ');
|
2916
|
+
self.in_group = true;
|
2917
|
+
}
|
2918
|
+
|
2919
|
+
// Print the optional name if given...
|
2920
|
+
match name {
|
2921
|
+
Some(name) => {
|
2922
|
+
name.write(&mut dst.result);
|
2923
|
+
dst.result.push(' ');
|
2924
|
+
self.end_group_after_local = true;
|
2925
|
+
}
|
2926
|
+
None if dst.name_unnamed => {
|
2927
|
+
dst.result.push_str(&format!("$#local{local} "));
|
2928
|
+
self.end_group_after_local = true;
|
2929
|
+
}
|
2930
|
+
None => {
|
2931
|
+
self.end_group_after_local = false;
|
2932
|
+
}
|
2933
|
+
}
|
2934
|
+
}
|
2935
|
+
|
2936
|
+
fn end_local(&mut self, dst: &mut String) {
|
2937
|
+
if self.end_group_after_local {
|
2938
|
+
dst.push(')');
|
2939
|
+
self.end_group_after_local = false;
|
2940
|
+
self.in_group = false;
|
2941
|
+
}
|
2942
|
+
}
|
2943
|
+
fn finish(self, dst: &mut String) {
|
2944
|
+
if self.in_group {
|
2945
|
+
dst.push(')');
|
2946
|
+
}
|
2947
|
+
}
|
2948
|
+
}
|
2949
|
+
|
2950
|
+
macro_rules! print_float {
|
2951
|
+
($name:ident $float:ident $uint:ident $sint:ident $exp_bits:tt) => {
|
2952
|
+
fn $name(&mut self, mut bits: $uint) -> Result<()> {
|
2953
|
+
// Calculate a few constants
|
2954
|
+
let int_width = mem::size_of::<$uint>() * 8;
|
2955
|
+
let exp_width = $exp_bits;
|
2956
|
+
let mantissa_width = int_width - 1 - exp_width;
|
2957
|
+
let bias = (1 << (exp_width - 1)) - 1;
|
2958
|
+
let max_exp = (1 as $sint) << (exp_width - 1);
|
2959
|
+
let min_exp = -max_exp + 1;
|
2960
|
+
|
2961
|
+
// Handle `NaN` and infinity specially
|
2962
|
+
let f = $float::from_bits(bits);
|
2963
|
+
if bits >> (int_width - 1) != 0 {
|
2964
|
+
bits ^= 1 << (int_width - 1);
|
2965
|
+
self.result.push('-');
|
2966
|
+
}
|
2967
|
+
if f.is_infinite() {
|
2968
|
+
write!(self.result, "inf (;={};)", f)?;
|
2969
|
+
return Ok(());
|
2970
|
+
}
|
2971
|
+
if f.is_nan() {
|
2972
|
+
let payload = bits & ((1 << mantissa_width) - 1);
|
2973
|
+
if payload == 1 << (mantissa_width - 1) {
|
2974
|
+
write!(self.result, "nan (;={};)", f)?;
|
2975
|
+
} else {
|
2976
|
+
write!(self.result, "nan:{:#x} (;={};)", payload, f)?;
|
2977
|
+
}
|
2978
|
+
return Ok(());
|
2979
|
+
}
|
2980
|
+
|
2981
|
+
// Figure out our exponent, but keep in mine that it's in an
|
2982
|
+
// integer width that may not be supported. As a result we do a few
|
2983
|
+
// tricks here:
|
2984
|
+
//
|
2985
|
+
// * Make the MSB the top bit of the exponent, then shift the
|
2986
|
+
// exponent to the bottom. This means we now have a signed
|
2987
|
+
// integer in `$sint` width representing the whole exponent.
|
2988
|
+
// * Do the arithmetic for the exponent (subtract)
|
2989
|
+
// * Next we only care about the lowest `$exp_bits` bits of the
|
2990
|
+
// result, but we do care about the sign. Use sign-carrying of
|
2991
|
+
// the signed integer shifts to shift it left then shift it back.
|
2992
|
+
//
|
2993
|
+
// Overall this should do basic arithmetic for `$exp_bits` bit
|
2994
|
+
// numbers and get the result back as a signed integer with `$sint`
|
2995
|
+
// bits in `exponent` representing the same decimal value.
|
2996
|
+
let mut exponent = (((bits << 1) as $sint) >> (mantissa_width + 1)).wrapping_sub(bias);
|
2997
|
+
exponent = (exponent << (int_width - exp_width)) >> (int_width - exp_width);
|
2998
|
+
let mut fraction = bits & ((1 << mantissa_width) - 1);
|
2999
|
+
self.result.push_str("0x");
|
3000
|
+
if bits == 0 {
|
3001
|
+
self.result.push_str("0p+0");
|
3002
|
+
} else {
|
3003
|
+
self.result.push('1');
|
3004
|
+
if fraction > 0 {
|
3005
|
+
fraction <<= (int_width - mantissa_width);
|
3006
|
+
|
3007
|
+
// Apparently the subnormal is handled here. I don't know
|
3008
|
+
// what a subnormal is. If someone else does, please let me
|
3009
|
+
// know!
|
3010
|
+
if exponent == min_exp {
|
3011
|
+
let leading = fraction.leading_zeros();
|
3012
|
+
if (leading as usize) < int_width - 1 {
|
3013
|
+
fraction <<= leading + 1;
|
3014
|
+
} else {
|
3015
|
+
fraction = 0;
|
3016
|
+
}
|
3017
|
+
exponent -= leading as $sint;
|
3018
|
+
}
|
3019
|
+
|
3020
|
+
self.result.push('.');
|
3021
|
+
while fraction > 0 {
|
3022
|
+
write!(self.result, "{:x}", fraction >> (int_width - 4))?;
|
3023
|
+
fraction <<= 4;
|
3024
|
+
}
|
3025
|
+
}
|
3026
|
+
write!(self.result, "p{:+}", exponent)?;
|
3027
|
+
}
|
3028
|
+
write!(self.result, " (;={};)", f)?;
|
3029
|
+
Ok(())
|
3030
|
+
}
|
3031
|
+
};
|
3032
|
+
}
|
3033
|
+
|
3034
|
+
impl Printer {
|
3035
|
+
print_float!(print_f32 f32 u32 i32 8);
|
3036
|
+
print_float!(print_f64 f64 u64 i64 11);
|
3037
|
+
}
|
3038
|
+
|
3039
|
+
impl Naming {
|
3040
|
+
fn new<'a>(
|
3041
|
+
name: &'a str,
|
3042
|
+
index: u32,
|
3043
|
+
group: &str,
|
3044
|
+
used: Option<&mut HashSet<&'a str>>,
|
3045
|
+
) -> Naming {
|
3046
|
+
let mut identifier = None;
|
3047
|
+
|
3048
|
+
// If the `name` provided can't be used as the raw identifier for the
|
3049
|
+
// item that it's describing then a synthetic name must be made. The
|
3050
|
+
// rules here which generate a name are:
|
3051
|
+
//
|
3052
|
+
// * Empty identifiers are not allowed
|
3053
|
+
// * Identifiers have a fixed set of valid characters
|
3054
|
+
// * For wasmprinter's purposes we "reserve" identifiers with the `#`
|
3055
|
+
// prefix, which is in theory rare to encounter in practice.
|
3056
|
+
// * If the name has already been used for some other item and cannot
|
3057
|
+
// be reused (e.g. because shadowing in this context is not possible).
|
3058
|
+
//
|
3059
|
+
// If any of these conditions match then we generate a unique identifier
|
3060
|
+
// based on `name` but not it exactly. By factoring in the `group`,
|
3061
|
+
// `index`, and `name` we get a guaranteed unique identifier (due to the
|
3062
|
+
// leading `#` prefix that we reserve and factoring in of the item
|
3063
|
+
// index) while preserving human readability at least somewhat (the
|
3064
|
+
// valid identifier characters of `name` still appear in the returned
|
3065
|
+
// name).
|
3066
|
+
if name.is_empty()
|
3067
|
+
|| name.chars().any(|c| !is_idchar(c))
|
3068
|
+
|| name.starts_with('#')
|
3069
|
+
|| used.map(|set| !set.insert(name)).unwrap_or(false)
|
3070
|
+
{
|
3071
|
+
let mut id = String::new();
|
3072
|
+
id.push('#');
|
3073
|
+
id.push_str(group);
|
3074
|
+
write!(id, "{}", index).unwrap();
|
3075
|
+
id.push('<');
|
3076
|
+
id.extend(name.chars().map(|c| if is_idchar(c) { c } else { '_' }));
|
3077
|
+
id.push('>');
|
3078
|
+
identifier = Some(id);
|
3079
|
+
}
|
3080
|
+
return Naming {
|
3081
|
+
identifier,
|
3082
|
+
name: name.to_string(),
|
3083
|
+
};
|
3084
|
+
|
3085
|
+
// See https://webassembly.github.io/spec/core/text/values.html#text-id
|
3086
|
+
fn is_idchar(c: char) -> bool {
|
3087
|
+
matches!(
|
3088
|
+
c,
|
3089
|
+
'0'..='9'
|
3090
|
+
| 'a'..='z'
|
3091
|
+
| 'A'..='Z'
|
3092
|
+
| '!'
|
3093
|
+
| '#'
|
3094
|
+
| '$'
|
3095
|
+
| '%'
|
3096
|
+
| '&'
|
3097
|
+
| '\''
|
3098
|
+
| '*'
|
3099
|
+
| '+'
|
3100
|
+
| '-'
|
3101
|
+
| '.'
|
3102
|
+
| '/'
|
3103
|
+
| ':'
|
3104
|
+
| '<'
|
3105
|
+
| '='
|
3106
|
+
| '>'
|
3107
|
+
| '?'
|
3108
|
+
| '@'
|
3109
|
+
| '\\'
|
3110
|
+
| '^'
|
3111
|
+
| '_'
|
3112
|
+
| '`'
|
3113
|
+
| '|'
|
3114
|
+
| '~'
|
3115
|
+
)
|
3116
|
+
}
|
3117
|
+
}
|
3118
|
+
|
3119
|
+
fn identifier(&self) -> &str {
|
3120
|
+
match &self.identifier {
|
3121
|
+
Some(s) => s,
|
3122
|
+
None => &self.name,
|
3123
|
+
}
|
3124
|
+
}
|
3125
|
+
|
3126
|
+
fn write(&self, dst: &mut String) {
|
3127
|
+
match &self.identifier {
|
3128
|
+
Some(alternate) => {
|
3129
|
+
assert!(*alternate != self.name);
|
3130
|
+
dst.push('$');
|
3131
|
+
dst.push_str(alternate);
|
3132
|
+
dst.push_str(" (@name \"");
|
3133
|
+
// https://webassembly.github.io/spec/core/text/values.html#text-string
|
3134
|
+
for c in self.name.chars() {
|
3135
|
+
match c {
|
3136
|
+
'\t' => dst.push_str("\\t"),
|
3137
|
+
'\n' => dst.push_str("\\n"),
|
3138
|
+
'\r' => dst.push_str("\\r"),
|
3139
|
+
'"' => dst.push_str("\\\""),
|
3140
|
+
'\'' => dst.push_str("\\'"),
|
3141
|
+
'\\' => dst.push_str("\\\\"),
|
3142
|
+
c if (c as u32) < 0x20 || c as u32 == 0x7f => {
|
3143
|
+
dst.push_str("\\u{");
|
3144
|
+
write!(dst, "{:x}", c as u32).unwrap();
|
3145
|
+
dst.push('}');
|
3146
|
+
}
|
3147
|
+
other => dst.push(other),
|
3148
|
+
}
|
3149
|
+
}
|
3150
|
+
dst.push_str("\")");
|
3151
|
+
}
|
3152
|
+
None => {
|
3153
|
+
dst.push('$');
|
3154
|
+
dst.push_str(&self.name);
|
3155
|
+
}
|
3156
|
+
}
|
3157
|
+
}
|
3158
|
+
}
|
3159
|
+
|
3160
|
+
/// Helper trait for the `NamingMap` type's `K` type parameter.
|
3161
|
+
trait NamingNamespace {
|
3162
|
+
fn desc() -> &'static str;
|
3163
|
+
}
|
3164
|
+
|
3165
|
+
macro_rules! naming_namespaces {
|
3166
|
+
($(struct $name:ident => $desc:tt)*) => ($(
|
3167
|
+
struct $name;
|
3168
|
+
|
3169
|
+
impl NamingNamespace for $name {
|
3170
|
+
fn desc() -> &'static str { $desc }
|
3171
|
+
}
|
3172
|
+
)*)
|
3173
|
+
}
|
3174
|
+
|
3175
|
+
naming_namespaces! {
|
3176
|
+
struct NameFunc => "func"
|
3177
|
+
struct NameModule => "module"
|
3178
|
+
struct NameInstance => "instance"
|
3179
|
+
struct NameGlobal => "global"
|
3180
|
+
struct NameMemory => "memory"
|
3181
|
+
struct NameLocal => "local"
|
3182
|
+
struct NameLabel => "label"
|
3183
|
+
struct NameTable => "table"
|
3184
|
+
struct NameValue => "value"
|
3185
|
+
struct NameType => "type"
|
3186
|
+
struct NameData => "data"
|
3187
|
+
struct NameElem => "elem"
|
3188
|
+
struct NameComponent => "component"
|
3189
|
+
struct NameTag => "tag"
|
3190
|
+
}
|
3191
|
+
|
3192
|
+
fn name_map<K>(into: &mut NamingMap<u32, K>, names: NameMap<'_>, name: &str) -> Result<()> {
|
3193
|
+
let mut used = HashSet::new();
|
3194
|
+
for naming in names {
|
3195
|
+
let naming = naming?;
|
3196
|
+
into.index_to_name.insert(
|
3197
|
+
naming.index,
|
3198
|
+
Naming::new(naming.name, naming.index, name, Some(&mut used)),
|
3199
|
+
);
|
3200
|
+
}
|
3201
|
+
Ok(())
|
3202
|
+
}
|