wasmtime 15.0.1 → 16.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 +83 -103
- data/ext/Cargo.toml +6 -6
- data/ext/cargo-vendor/cranelift-bforest-0.103.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-bforest-0.103.0/Cargo.toml +40 -0
- data/ext/cargo-vendor/cranelift-bforest-0.103.0/src/lib.rs +183 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/Cargo.toml +175 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/binemit/mod.rs +171 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph/cost.rs +171 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph/elaborate.rs +750 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph.rs +703 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/ir/dfg.rs +1735 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/ir/pcc.rs +1682 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/aarch64/lower/isle.rs +874 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/inst/mod.rs +2041 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/inst.isle +2928 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/lower.isle +2864 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/s390x/lower/isle.rs +1029 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/x64/lower/isle.rs +1064 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/x64/pcc.rs +916 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isle_prelude.rs +977 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/lib.rs +106 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/machinst/isle.rs +896 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/arithmetic.isle +152 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/cprop.isle +237 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/icmp.isle +199 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/selects.isle +76 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts.rs +172 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/prelude.isle +649 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/timing.rs +297 -0
- data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/unionfind.rs +75 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.103.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.103.0/Cargo.toml +35 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/Cargo.toml +22 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/src/lib.rs +10 -0
- data/ext/cargo-vendor/cranelift-control-0.103.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-control-0.103.0/Cargo.toml +30 -0
- data/ext/cargo-vendor/cranelift-entity-0.103.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-entity-0.103.0/Cargo.toml +50 -0
- data/ext/cargo-vendor/cranelift-entity-0.103.0/src/lib.rs +317 -0
- data/ext/cargo-vendor/cranelift-entity-0.103.0/src/primary.rs +516 -0
- data/ext/cargo-vendor/cranelift-entity-0.103.0/src/unsigned.rs +71 -0
- data/ext/cargo-vendor/cranelift-frontend-0.103.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-frontend-0.103.0/Cargo.toml +68 -0
- data/ext/cargo-vendor/cranelift-frontend-0.103.0/src/lib.rs +189 -0
- data/ext/cargo-vendor/cranelift-isle-0.103.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-isle-0.103.0/Cargo.toml +46 -0
- data/ext/cargo-vendor/cranelift-isle-0.103.0/isle_examples/link/multi_constructor_main.rs +88 -0
- data/ext/cargo-vendor/cranelift-isle-0.103.0/isle_examples/link/multi_extractor_main.rs +63 -0
- data/ext/cargo-vendor/cranelift-isle-0.103.0/src/codegen.rs +886 -0
- data/ext/cargo-vendor/cranelift-native-0.103.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-native-0.103.0/Cargo.toml +43 -0
- data/ext/cargo-vendor/cranelift-native-0.103.0/src/lib.rs +184 -0
- data/ext/cargo-vendor/cranelift-wasm-0.103.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-wasm-0.103.0/Cargo.toml +106 -0
- data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/environ/dummy.rs +953 -0
- data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/lib.rs +62 -0
- data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/translation_utils.rs +89 -0
- data/ext/cargo-vendor/wasi-cap-std-sync-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasi-cap-std-sync-16.0.0/Cargo.toml +102 -0
- data/ext/cargo-vendor/wasi-common-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasi-common-16.0.0/Cargo.toml +131 -0
- data/ext/cargo-vendor/wasi-common-16.0.0/src/lib.rs +76 -0
- data/ext/cargo-vendor/wasi-common-16.0.0/src/snapshots/preview_1.rs +1492 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/Cargo.toml +211 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/src/compiler.rs +682 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/src/component/component.rs +505 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/src/component/func/typed.rs +2400 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/src/config.rs +2422 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/src/func.rs +2391 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/src/lib.rs +520 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/src/memory.rs +998 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/src/module.rs +1370 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/src/stack.rs +73 -0
- data/ext/cargo-vendor/wasmtime-16.0.0/src/v128.rs +122 -0
- data/ext/cargo-vendor/wasmtime-asm-macros-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-asm-macros-16.0.0/Cargo.toml +22 -0
- data/ext/cargo-vendor/wasmtime-cache-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cache-16.0.0/Cargo.toml +81 -0
- data/ext/cargo-vendor/wasmtime-cache-16.0.0/src/lib.rs +235 -0
- data/ext/cargo-vendor/wasmtime-cache-16.0.0/src/worker.rs +890 -0
- data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/Cargo.toml +67 -0
- data/ext/cargo-vendor/wasmtime-component-util-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-component-util-16.0.0/Cargo.toml +25 -0
- data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/Cargo.toml +112 -0
- data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/compiler/component.rs +959 -0
- data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/compiler.rs +1317 -0
- data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug/transform/expression.rs +1252 -0
- data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug/transform/simulate.rs +410 -0
- data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug.rs +18 -0
- data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/func_environ.rs +2750 -0
- data/ext/cargo-vendor/wasmtime-cranelift-shared-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cranelift-shared-16.0.0/Cargo.toml +71 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/Cargo.lock +660 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/Cargo.toml +125 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/compilation.rs +402 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/compiler.rs +47 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/translate.rs +951 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/types.rs +1876 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/lib.rs +59 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module.rs +1075 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module_environ.rs +892 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module_types.rs +120 -0
- data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/scopevec.rs +78 -0
- data/ext/cargo-vendor/wasmtime-fiber-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-fiber-16.0.0/Cargo.toml +63 -0
- data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/lib.rs +328 -0
- data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/unix.rs +265 -0
- data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/windows.c +9 -0
- data/ext/cargo-vendor/wasmtime-jit-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-16.0.0/Cargo.toml +125 -0
- data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/code_memory.rs +319 -0
- data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/instantiate.rs +772 -0
- data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/lib.rs +21 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-16.0.0/Cargo.toml +67 -0
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-16.0.0/Cargo.toml +46 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/Cargo.toml +139 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/build.rs +28 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/proptest-regressions/instance/allocator/pooling/memory_pool.txt +9 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/aarch64.rs +120 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/mod.rs +32 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/riscv64.rs +88 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/s390x.rs +61 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/x86_64.rs +106 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/cow.rs +888 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/helpers.c +113 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/memory_pool.rs +1005 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/stack_pool.rs +242 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/table_pool.rs +227 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling.rs +698 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/lib.rs +264 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/libcalls.rs +776 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mmap.rs +214 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mpk/enabled.rs +204 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mpk/pkru.rs +102 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/mod.rs +10 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/traphandlers.rs +42 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/unwind.rs +17 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/vm.rs +63 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/mod.rs +30 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/machports.rs +487 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/macos_traphandlers.rs +28 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/mod.rs +21 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/signals.rs +402 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/unwind.rs +91 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/vm.rs +208 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/mod.rs +6 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/traphandlers.rs +105 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/unwind.rs +46 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/vm.rs +79 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/traphandlers/backtrace.rs +265 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/traphandlers.rs +733 -0
- data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/vmcontext.rs +1197 -0
- data/ext/cargo-vendor/wasmtime-types-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-types-16.0.0/Cargo.toml +36 -0
- data/ext/cargo-vendor/wasmtime-types-16.0.0/src/lib.rs +504 -0
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-16.0.0/Cargo.toml +32 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/Cargo.toml +261 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/lib.rs +137 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/io.rs +368 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/network.rs +570 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/tcp.rs +632 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/udp.rs +550 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/mod.rs +328 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/preview0.rs +870 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/preview1.rs +2348 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/stdio.rs +259 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/stream.rs +182 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/table.rs +337 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/api.rs +218 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/async_.rs +360 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/main.rs +113 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/preview1.rs +239 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/sync.rs +299 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/process_stdin.rs +165 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/command-extended.wit +6 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/command.wit +7 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/imports.wit +20 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/http/proxy.wit +32 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/http/types.wit +570 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/test.wit +22 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/witx/preview0/typenames.witx +746 -0
- data/ext/cargo-vendor/wasmtime-wasi-16.0.0/witx/preview0/wasi_unstable.witx +513 -0
- data/ext/cargo-vendor/wasmtime-winch-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-winch-16.0.0/Cargo.toml +77 -0
- data/ext/cargo-vendor/wasmtime-winch-16.0.0/src/compiler.rs +243 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-16.0.0/Cargo.toml +41 -0
- data/ext/cargo-vendor/wasmtime-wmemcheck-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wmemcheck-16.0.0/Cargo.toml +29 -0
- data/ext/cargo-vendor/wiggle-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-16.0.0/Cargo.toml +115 -0
- data/ext/cargo-vendor/wiggle-16.0.0/src/lib.rs +1198 -0
- data/ext/cargo-vendor/wiggle-generate-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-generate-16.0.0/Cargo.toml +65 -0
- data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/handle.rs +84 -0
- data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/record.rs +132 -0
- data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/variant.rs +191 -0
- data/ext/cargo-vendor/wiggle-macro-16.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-macro-16.0.0/Cargo.toml +55 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/Cargo.toml +76 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/abi/local.rs +81 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/abi/mod.rs +614 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/call.rs +345 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/context.rs +545 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/control.rs +497 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/env.rs +251 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/mod.rs +428 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/frame/mod.rs +221 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/abi.rs +313 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/masm.rs +444 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/mod.rs +137 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/mod.rs +225 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/abi.rs +524 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/asm.rs +1117 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/masm.rs +994 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/mod.rs +172 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/regs.rs +247 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/masm.rs +679 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/stack.rs +436 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/trampoline.rs +734 -0
- data/ext/cargo-vendor/winch-codegen-0.14.0/src/visitor.rs +1383 -0
- data/lib/wasmtime/version.rb +1 -1
- metadata +903 -977
- data/ext/cargo-vendor/cranelift-bforest-0.102.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-bforest-0.102.1/Cargo.toml +0 -31
- data/ext/cargo-vendor/cranelift-bforest-0.102.1/src/lib.rs +0 -184
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/Cargo.toml +0 -164
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/binemit/mod.rs +0 -171
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph/cost.rs +0 -91
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph/elaborate.rs +0 -731
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph.rs +0 -678
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/ir/dfg.rs +0 -1730
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/ir/pcc.rs +0 -1682
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/aarch64/lower/isle.rs +0 -875
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/inst/mod.rs +0 -2041
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/inst.isle +0 -2909
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/lower.isle +0 -2860
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/s390x/lower/isle.rs +0 -1029
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/x64/lower/isle.rs +0 -1070
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/x64/pcc.rs +0 -884
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isle_prelude.rs +0 -972
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/lib.rs +0 -108
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/machinst/isle.rs +0 -897
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/arithmetic.isle +0 -128
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/cprop.isle +0 -210
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/icmp.isle +0 -177
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/selects.isle +0 -59
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts.rs +0 -138
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/prelude.isle +0 -646
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/timing.rs +0 -271
- data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/unionfind.rs +0 -74
- data/ext/cargo-vendor/cranelift-codegen-meta-0.102.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-meta-0.102.1/Cargo.toml +0 -26
- data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/Cargo.toml +0 -22
- data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/src/lib.rs +0 -12
- data/ext/cargo-vendor/cranelift-control-0.102.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-control-0.102.1/Cargo.toml +0 -30
- data/ext/cargo-vendor/cranelift-entity-0.102.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-entity-0.102.1/Cargo.toml +0 -41
- data/ext/cargo-vendor/cranelift-entity-0.102.1/src/lib.rs +0 -316
- data/ext/cargo-vendor/cranelift-entity-0.102.1/src/primary.rs +0 -456
- data/ext/cargo-vendor/cranelift-frontend-0.102.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-frontend-0.102.1/Cargo.toml +0 -59
- data/ext/cargo-vendor/cranelift-frontend-0.102.1/src/lib.rs +0 -191
- data/ext/cargo-vendor/cranelift-isle-0.102.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-isle-0.102.1/Cargo.toml +0 -37
- data/ext/cargo-vendor/cranelift-isle-0.102.1/isle_examples/link/multi_constructor_main.rs +0 -71
- data/ext/cargo-vendor/cranelift-isle-0.102.1/isle_examples/link/multi_extractor_main.rs +0 -50
- data/ext/cargo-vendor/cranelift-isle-0.102.1/src/codegen.rs +0 -763
- data/ext/cargo-vendor/cranelift-native-0.102.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-native-0.102.1/Cargo.toml +0 -43
- data/ext/cargo-vendor/cranelift-native-0.102.1/src/lib.rs +0 -190
- data/ext/cargo-vendor/cranelift-wasm-0.102.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-wasm-0.102.1/Cargo.toml +0 -97
- data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/environ/dummy.rs +0 -953
- data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/lib.rs +0 -64
- data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/translation_utils.rs +0 -97
- data/ext/cargo-vendor/wasi-cap-std-sync-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasi-cap-std-sync-15.0.1/Cargo.toml +0 -93
- data/ext/cargo-vendor/wasi-common-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasi-common-15.0.1/Cargo.toml +0 -122
- data/ext/cargo-vendor/wasi-common-15.0.1/src/lib.rs +0 -73
- data/ext/cargo-vendor/wasi-common-15.0.1/src/snapshots/preview_1.rs +0 -1490
- data/ext/cargo-vendor/wasm-encoder-0.36.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasm-encoder-0.36.2/Cargo.toml +0 -37
- data/ext/cargo-vendor/wasm-encoder-0.36.2/README.md +0 -80
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/aliases.rs +0 -160
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/builder.rs +0 -455
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/canonicals.rs +0 -159
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/components.rs +0 -29
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/exports.rs +0 -124
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/imports.rs +0 -175
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/instances.rs +0 -200
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/modules.rs +0 -29
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/names.rs +0 -149
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/start.rs +0 -52
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/types.rs +0 -771
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component.rs +0 -168
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/code.rs +0 -2989
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/custom.rs +0 -73
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/data.rs +0 -185
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/dump.rs +0 -627
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/elements.rs +0 -220
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/exports.rs +0 -98
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/functions.rs +0 -63
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/globals.rs +0 -100
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/imports.rs +0 -155
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/linking.rs +0 -263
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/memories.rs +0 -111
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/names.rs +0 -265
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/producers.rs +0 -180
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/start.rs +0 -39
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/tables.rs +0 -115
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/tags.rs +0 -104
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/types.rs +0 -584
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core.rs +0 -168
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/lib.rs +0 -215
- data/ext/cargo-vendor/wasm-encoder-0.36.2/src/raw.rs +0 -30
- data/ext/cargo-vendor/wasmparser-0.116.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmparser-0.116.1/Cargo.lock +0 -674
- data/ext/cargo-vendor/wasmparser-0.116.1/Cargo.toml +0 -60
- data/ext/cargo-vendor/wasmparser-0.116.1/README.md +0 -36
- data/ext/cargo-vendor/wasmparser-0.116.1/benches/benchmark.rs +0 -370
- data/ext/cargo-vendor/wasmparser-0.116.1/examples/simple.rs +0 -37
- data/ext/cargo-vendor/wasmparser-0.116.1/src/binary_reader.rs +0 -1706
- data/ext/cargo-vendor/wasmparser-0.116.1/src/define_types.rs +0 -782
- data/ext/cargo-vendor/wasmparser-0.116.1/src/lib.rs +0 -729
- data/ext/cargo-vendor/wasmparser-0.116.1/src/limits.rs +0 -58
- data/ext/cargo-vendor/wasmparser-0.116.1/src/parser.rs +0 -1612
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/aliases.rs +0 -119
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/canonicals.rs +0 -120
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/exports.rs +0 -135
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/imports.rs +0 -129
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/instances.rs +0 -163
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/names.rs +0 -102
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/start.rs +0 -30
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/types.rs +0 -549
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component.rs +0 -17
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/code.rs +0 -146
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/coredumps.rs +0 -243
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/custom.rs +0 -63
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/data.rs +0 -96
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/dylink0.rs +0 -132
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/elements.rs +0 -152
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/exports.rs +0 -65
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/functions.rs +0 -17
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/globals.rs +0 -49
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/imports.rs +0 -76
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/init.rs +0 -51
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/memories.rs +0 -56
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/names.rs +0 -153
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/operators.rs +0 -354
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/producers.rs +0 -83
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/tables.rs +0 -87
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/tags.rs +0 -32
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/types.rs +0 -544
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core.rs +0 -37
- data/ext/cargo-vendor/wasmparser-0.116.1/src/readers.rs +0 -316
- data/ext/cargo-vendor/wasmparser-0.116.1/src/resources.rs +0 -398
- data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/component.rs +0 -3203
- data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/core.rs +0 -1341
- data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/func.rs +0 -348
- data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/names.rs +0 -859
- data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/operators.rs +0 -3466
- data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/types.rs +0 -4011
- data/ext/cargo-vendor/wasmparser-0.116.1/src/validator.rs +0 -1603
- data/ext/cargo-vendor/wasmparser-0.116.1/tests/big-module.rs +0 -33
- data/ext/cargo-vendor/wasmtime-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-15.0.1/Cargo.toml +0 -202
- data/ext/cargo-vendor/wasmtime-15.0.1/src/compiler.rs +0 -682
- data/ext/cargo-vendor/wasmtime-15.0.1/src/component/component.rs +0 -505
- data/ext/cargo-vendor/wasmtime-15.0.1/src/component/func/typed.rs +0 -2398
- data/ext/cargo-vendor/wasmtime-15.0.1/src/config.rs +0 -2422
- data/ext/cargo-vendor/wasmtime-15.0.1/src/func.rs +0 -2428
- data/ext/cargo-vendor/wasmtime-15.0.1/src/lib.rs +0 -518
- data/ext/cargo-vendor/wasmtime-15.0.1/src/memory.rs +0 -996
- data/ext/cargo-vendor/wasmtime-15.0.1/src/module.rs +0 -1370
- data/ext/cargo-vendor/wasmtime-15.0.1/src/stack.rs +0 -73
- data/ext/cargo-vendor/wasmtime-15.0.1/src/v128.rs +0 -151
- data/ext/cargo-vendor/wasmtime-asm-macros-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-asm-macros-15.0.1/Cargo.toml +0 -22
- data/ext/cargo-vendor/wasmtime-cache-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cache-15.0.1/Cargo.toml +0 -72
- data/ext/cargo-vendor/wasmtime-cache-15.0.1/src/lib.rs +0 -238
- data/ext/cargo-vendor/wasmtime-cache-15.0.1/src/worker.rs +0 -894
- data/ext/cargo-vendor/wasmtime-component-macro-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-component-macro-15.0.1/Cargo.toml +0 -58
- data/ext/cargo-vendor/wasmtime-component-util-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-component-util-15.0.1/Cargo.toml +0 -25
- data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/Cargo.toml +0 -103
- data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/compiler/component.rs +0 -959
- data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/compiler.rs +0 -1317
- data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug/transform/expression.rs +0 -1250
- data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug/transform/simulate.rs +0 -410
- data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug.rs +0 -18
- data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/func_environ.rs +0 -2746
- data/ext/cargo-vendor/wasmtime-cranelift-shared-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cranelift-shared-15.0.1/Cargo.toml +0 -62
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/Cargo.lock +0 -677
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/Cargo.toml +0 -116
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/compilation.rs +0 -402
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/compiler.rs +0 -47
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/translate.rs +0 -951
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/types.rs +0 -1870
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/lib.rs +0 -59
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module.rs +0 -1083
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module_environ.rs +0 -876
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module_types.rs +0 -78
- data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/scopevec.rs +0 -57
- data/ext/cargo-vendor/wasmtime-fiber-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-fiber-15.0.1/Cargo.toml +0 -54
- data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/lib.rs +0 -327
- data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/unix.rs +0 -265
- data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/windows.c +0 -9
- data/ext/cargo-vendor/wasmtime-jit-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-15.0.1/Cargo.toml +0 -115
- data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/code_memory.rs +0 -321
- data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/instantiate.rs +0 -766
- data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/lib.rs +0 -22
- data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/miri.rs +0 -15
- data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/systemv.rs +0 -90
- data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/winx64.rs +0 -44
- data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind.rs +0 -14
- data/ext/cargo-vendor/wasmtime-jit-debug-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-debug-15.0.1/Cargo.toml +0 -58
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-15.0.1/Cargo.toml +0 -37
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/Cargo.toml +0 -126
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/build.rs +0 -19
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/proptest-regressions/instance/allocator/pooling/memory_pool.txt +0 -8
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/cow.rs +0 -1060
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/helpers.c +0 -108
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/memory_pool.rs +0 -999
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/stack_pool.rs +0 -242
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/table_pool.rs +0 -225
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/unix.rs +0 -56
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/windows.rs +0 -38
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling.rs +0 -708
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/lib.rs +0 -279
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/libcalls.rs +0 -775
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mmap.rs +0 -226
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mpk/enabled.rs +0 -201
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mpk/pkru.rs +0 -93
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/aarch64.rs +0 -42
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/riscv64.rs +0 -45
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/s390x.rs +0 -25
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/x86_64.rs +0 -64
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines.rs +0 -19
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/aarch64.rs +0 -55
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/riscv64.rs +0 -18
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/s390x.rs +0 -22
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/x86_64.rs +0 -20
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace.rs +0 -291
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/macos.rs +0 -492
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/unix.rs +0 -402
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/windows.rs +0 -89
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers.rs +0 -815
- data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/vmcontext.rs +0 -1197
- data/ext/cargo-vendor/wasmtime-types-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-types-15.0.1/Cargo.toml +0 -36
- data/ext/cargo-vendor/wasmtime-types-15.0.1/src/lib.rs +0 -504
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-versioned-export-macros-15.0.1/Cargo.toml +0 -32
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/Cargo.toml +0 -248
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/lib.rs +0 -135
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/io.rs +0 -368
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/network.rs +0 -515
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/tcp.rs +0 -630
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/udp.rs +0 -543
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/mod.rs +0 -326
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/preview1.rs +0 -2342
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/stdio.rs +0 -450
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/stream.rs +0 -182
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/table.rs +0 -258
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/command-extended.wit +0 -6
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/cli/command.wit +0 -7
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/cli/reactor.wit +0 -31
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/http/proxy.wit +0 -33
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/http/types.wit +0 -559
- data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/test.wit +0 -22
- data/ext/cargo-vendor/wasmtime-winch-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-winch-15.0.1/Cargo.toml +0 -68
- data/ext/cargo-vendor/wasmtime-winch-15.0.1/src/compiler.rs +0 -242
- data/ext/cargo-vendor/wasmtime-wit-bindgen-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wit-bindgen-15.0.1/Cargo.toml +0 -32
- data/ext/cargo-vendor/wasmtime-wmemcheck-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wmemcheck-15.0.1/Cargo.toml +0 -22
- data/ext/cargo-vendor/wiggle-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-15.0.1/Cargo.toml +0 -106
- data/ext/cargo-vendor/wiggle-15.0.1/src/lib.rs +0 -1198
- data/ext/cargo-vendor/wiggle-generate-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-generate-15.0.1/Cargo.toml +0 -58
- data/ext/cargo-vendor/wiggle-generate-15.0.1/LICENSE +0 -220
- data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/handle.rs +0 -84
- data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/record.rs +0 -132
- data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/variant.rs +0 -191
- data/ext/cargo-vendor/wiggle-macro-15.0.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-macro-15.0.1/Cargo.toml +0 -55
- data/ext/cargo-vendor/wiggle-macro-15.0.1/LICENSE +0 -220
- data/ext/cargo-vendor/winch-codegen-0.13.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/winch-codegen-0.13.1/Cargo.toml +0 -67
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/abi/local.rs +0 -70
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/abi/mod.rs +0 -304
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/call.rs +0 -353
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/context.rs +0 -465
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/control.rs +0 -456
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/env.rs +0 -181
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/mod.rs +0 -436
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/frame/mod.rs +0 -189
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/abi.rs +0 -267
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/masm.rs +0 -436
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/mod.rs +0 -136
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/mod.rs +0 -218
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/abi.rs +0 -410
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/asm.rs +0 -1106
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/masm.rs +0 -953
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/mod.rs +0 -172
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/regs.rs +0 -247
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/masm.rs +0 -592
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/stack.rs +0 -366
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/trampoline.rs +0 -489
- data/ext/cargo-vendor/winch-codegen-0.13.1/src/visitor.rs +0 -1339
- /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/node.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/path.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/pool.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/set.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/benches/x64-evex-encoding.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/alias_analysis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/binemit/stack_map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/bitset.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/cfg_printer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/context.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ctxhash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/cursor.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/data_value.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dbg.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dce.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dominator_tree.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/egraph/domtree.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/flowgraph.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/fx.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/incremental_cache.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/inst_predicates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/atomic_rmw_op.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/builder.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/condcodes.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/constant.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/dynamic_type.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/entities.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/extfunc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/extname.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/function.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/globalvalue.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/immediates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/jumptable.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/known_symbol.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/layout.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/libcall.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/memflags.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/memtype.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/progpoint.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/sourceloc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/stackslot.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/trapcode.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/abi.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/args.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/emit.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/imms.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst_neon.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower_dynamic_neon.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/pcc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/call_conv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/abi.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/args.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/emit.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/encode.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/imms.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/vector.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst_vector.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower/isle.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/abi.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/args.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/emit.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/imms.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind/winx64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/abi.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/evex.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/rex.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/vex.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/args.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit_state.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind/winx64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/iterators.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/globalvalue.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/loop_analysis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/abi.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/blockorder.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/buffer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/compile.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/helpers.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/inst_common.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/pcc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/reg.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/valueregs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/vcode.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/nan_canonicalization.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/bitops.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/extends.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/remat.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/shifts.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/vector.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/prelude_lower.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/prelude_opt.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/print_errors.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/remove_constant_phis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/result.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/scoped_hash_map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/souper_harvest.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/unreachable_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/value_label.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/verifier/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/write.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/formats.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/isa.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/operands.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/typevar.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_inst.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/arm64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/s390x.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/x86.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/entities.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/formats.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/immediates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/srcgen.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/unique_table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/src/constants.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/chaos.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/zero_sized.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/boxed_slice.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/iter.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/keys.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/list.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/packed_option.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/set.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/sparse.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/frontend.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/ssa.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/switch.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/variable.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/bad_converters.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/error1.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/extra_parens.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/impure_expression.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/impure_rhs.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/multi_internal_etor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/multi_prio.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/borrows.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/borrows_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/iflets.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/iflets_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/multi_constructor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/multi_extractor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/test.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/test_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/bound_var.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/construct_and_extract.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/conversions.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/conversions_extern.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/let.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/nodebug.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/prio_trie_bug.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test2.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test3.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test4.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/tutorial.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/iconst.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/iconst_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/let_shadowing.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/let_shadowing_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/ast.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/compile.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/lexer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/log.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/overlap.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/parser.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/sema.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/serialize.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/trie_again.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/tests/run_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/src/riscv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/code_translator/bounds_checks.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/code_translator.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/environ/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/environ/spec.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/func_translator.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/heap.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/module_translator.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/sections_translator.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/state.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/tests/wasm_testsuite.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/arith.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/br_table.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/call-simd.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/call.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_fannkuch.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_fasta.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_ifs.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_primes.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/fac-multi-value.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/fibonacci.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/globals.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/icall-simd.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/icall.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-0.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-1.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-2.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-3.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-4.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-5.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-6.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-unreachable-else-params-2.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-unreachable-else-params.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/issue-1306-name-section-with-u32-max-function-index.wasm +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/memory.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-0.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-1.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-10.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-11.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-12.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-13.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-14.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-15.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-16.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-17.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-2.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-3.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-4.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-5.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-6.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-7.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-8.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-9.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/nullref.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/passive-data.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/pr2303.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/pr2559.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/ref-func-0.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/rust_fannkuch.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/select.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/simd-store.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/simd.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/table-copy.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/unreachable_code.wat +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/dir.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/file.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/net.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/stdio.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/docs/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/docs.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_clock.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_environ.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_fd.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_path.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_poll.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_proc.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sched.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/docs.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/witx/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/witx/wasi_unstable.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/docs.html +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/docs.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/witx/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/proposal-template/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/proposals/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/snapshots/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/standard/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/ctx.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/dir.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/file.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/pipe.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/random.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/sched/subscription.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/preview_0.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/preview_1/error.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/string_array.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/table.rs +0 -0
- /data/ext/cargo-vendor/{wasm-encoder-0.36.2 → wasmtime-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/code.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func/host.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func/options.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/instance.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/linker.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/matching.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/storage.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/store.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/values.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/coredump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/engine/serialization.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/engine.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals/global.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals/table.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/func/typed.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/instance.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/limits.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/linker.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/module/registry.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/profiling.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/ref.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/signatures.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/context.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/data.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/func_refs.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/func.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/global.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/memory.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/table.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/types/matching.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/values.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-asm-macros-15.0.1 → wasmtime-asm-macros-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.116.1 → wasmtime-cache-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/config/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/config.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/worker/tests/system_time_stub.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/worker/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/tests/cache_write_default_config.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/bindgen.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/char.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/conventions.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/direct-import.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/empty.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/flags.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/floats.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/function-new.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/integers.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/lists.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/many-arguments.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multi-return.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/deps/v1/root.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/deps/v2/root.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/root.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/records.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/rename.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/resources-export.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/resources-import.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/share-types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-functions.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-lists.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-wasi.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/small-anonymous.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke-default.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke-export.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/strings.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/use-paths.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/variants.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/worlds-with-types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-util-15.0.1 → wasmtime-component-util-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-cranelift-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/SECURITY.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/gc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/address_transform.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/attr.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/line_program.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/range_info_builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/refs.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/unit.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/utils.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/write_debuginfo.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/compiled_function.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/isa_builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/obj.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-environ-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/examples/factc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/address_map.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/builtin.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/dfg.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/info.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/translate/adapt.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/translate/inline.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/types/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/vmcomponent_offsets.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/core_types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/signature.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/trampoline.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/transcode.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/traps.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/obj.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/ref_bits.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/stack_map.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/trap_encoding.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/tunables.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/vmoffsets.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-fiber-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/aarch64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/arm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/s390x.S +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/x86.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/x86_64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-jit-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/debug.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/demangling.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/jitdump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/perfmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/vtune.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/gdb_jit_int.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/perf_jitdump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/libc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/miri.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/win.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-runtime-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/trampolines → wasmtime-runtime-16.0.0/src/arch}/s390x.S +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component/libcalls.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/debug_builtins.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/export.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/externref.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/imports.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator/on_demand.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator/pooling/index_allocator.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/memory.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mmap_vec.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/module_id.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/disabled.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/sys.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/parking_spot.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/send_sync_ptr.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/store_box.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/miri.rs → wasmtime-runtime-16.0.0/src/sys/miri/mmap.rs} +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/unix.rs → wasmtime-runtime-16.0.0/src/sys/unix/mmap.rs} +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/windows.rs → wasmtime-runtime-16.0.0/src/sys/windows/mmap.rs} +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/table.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/traphandlers/coredump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/vmcontext/vm_host_func_context.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-types-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-types-15.0.1 → wasmtime-types-16.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-versioned-export-macros-15.0.1 → wasmtime-versioned-export-macros-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-wasi-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/clocks/host.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/command.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/ctx.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/error.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/filesystem.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/env.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/exit.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/filesystem/sync.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/filesystem.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/instance_network.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/random.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/tcp_create_socket.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/udp_create_socket.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/ip_name_lookup.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/network.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/pipe.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/poll.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/random.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/stdio/worker_thread_stdin.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/tcp.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/udp.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/write_stream.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/environment.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/exit.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/run.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/stdio.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/terminal.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/monotonic-clock.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/wall-clock.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/preopens.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/types.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/http/handler.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/error.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/poll.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/streams.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/insecure-seed.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/insecure.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/random.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/instance-network.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/ip-name-lookup.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/network.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/tcp-create-socket.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/tcp.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/udp-create-socket.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/udp.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/world.wit +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1/witx → wasmtime-wasi-16.0.0/witx/preview1}/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1/witx → wasmtime-wasi-16.0.0/witx/preview1}/wasi_snapshot_preview1.witx +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/src/builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/rust.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/source.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wmemcheck-15.0.1 → wasmtime-wmemcheck-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-types-15.0.1 → wiggle-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/borrow.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/guest_type.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/region.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/wasmtime.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wiggle-generate-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/codegen_settings.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/config.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/funcs.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/lifetimes.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/module_trait.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/names.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/error.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/flags.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/mod.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/wasmtime.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-macro-16.0.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wiggle-macro-15.0.1 → wiggle-macro-16.0.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/build.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/codegen/builtin.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/address.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/asm.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/regs.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/reg.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/x64/address.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/regalloc.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/regset.rs +0 -0
@@ -1,1612 +0,0 @@
|
|
1
|
-
use crate::binary_reader::WASM_MAGIC_NUMBER;
|
2
|
-
use crate::CoreTypeSectionReader;
|
3
|
-
use crate::{
|
4
|
-
limits::MAX_WASM_MODULE_SIZE, BinaryReader, BinaryReaderError, ComponentCanonicalSectionReader,
|
5
|
-
ComponentExportSectionReader, ComponentImportSectionReader, ComponentInstanceSectionReader,
|
6
|
-
ComponentStartFunction, ComponentTypeSectionReader, CustomSectionReader, DataSectionReader,
|
7
|
-
ElementSectionReader, ExportSectionReader, FromReader, FunctionBody, FunctionSectionReader,
|
8
|
-
GlobalSectionReader, ImportSectionReader, InstanceSectionReader, MemorySectionReader, Result,
|
9
|
-
SectionLimited, TableSectionReader, TagSectionReader, TypeSectionReader,
|
10
|
-
};
|
11
|
-
use std::convert::TryInto;
|
12
|
-
use std::fmt;
|
13
|
-
use std::iter;
|
14
|
-
use std::ops::Range;
|
15
|
-
|
16
|
-
pub(crate) const WASM_MODULE_VERSION: u16 = 0x1;
|
17
|
-
|
18
|
-
// Note that this started at `0xa` and we're incrementing up from there. When
|
19
|
-
// the component model is stabilized this will become 0x1. The changes here are:
|
20
|
-
//
|
21
|
-
// * [????-??-??] 0xa - original version
|
22
|
-
// * [2023-01-05] 0xb - `export` introduces an alias
|
23
|
-
// * [2023-02-06] 0xc - `export` has an optional type ascribed to it
|
24
|
-
// * [2023-05-10] 0xd - imports/exports drop URLs, new discriminator byte which
|
25
|
-
// allows for `(import (interface "...") ...)` syntax.
|
26
|
-
pub(crate) const WASM_COMPONENT_VERSION: u16 = 0xd;
|
27
|
-
|
28
|
-
const KIND_MODULE: u16 = 0x00;
|
29
|
-
const KIND_COMPONENT: u16 = 0x01;
|
30
|
-
|
31
|
-
/// The supported encoding formats for the parser.
|
32
|
-
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
|
33
|
-
pub enum Encoding {
|
34
|
-
/// The encoding format is a WebAssembly module.
|
35
|
-
Module,
|
36
|
-
/// The encoding format is a WebAssembly component.
|
37
|
-
Component,
|
38
|
-
}
|
39
|
-
|
40
|
-
/// An incremental parser of a binary WebAssembly module or component.
|
41
|
-
///
|
42
|
-
/// This type is intended to be used to incrementally parse a WebAssembly module
|
43
|
-
/// or component as bytes become available for the module. This can also be used
|
44
|
-
/// to parse modules or components that are already entirely resident within memory.
|
45
|
-
///
|
46
|
-
/// This primary function for a parser is the [`Parser::parse`] function which
|
47
|
-
/// will incrementally consume input. You can also use the [`Parser::parse_all`]
|
48
|
-
/// function to parse a module or component that is entirely resident in memory.
|
49
|
-
#[derive(Debug, Clone)]
|
50
|
-
pub struct Parser {
|
51
|
-
state: State,
|
52
|
-
offset: u64,
|
53
|
-
max_size: u64,
|
54
|
-
encoding: Encoding,
|
55
|
-
}
|
56
|
-
|
57
|
-
#[derive(Debug, Clone)]
|
58
|
-
enum State {
|
59
|
-
Header,
|
60
|
-
SectionStart,
|
61
|
-
FunctionBody { remaining: u32, len: u32 },
|
62
|
-
}
|
63
|
-
|
64
|
-
/// A successful return payload from [`Parser::parse`].
|
65
|
-
///
|
66
|
-
/// On success one of two possible values can be returned, either that more data
|
67
|
-
/// is needed to continue parsing or a chunk of the input was parsed, indicating
|
68
|
-
/// how much of it was parsed.
|
69
|
-
#[derive(Debug)]
|
70
|
-
pub enum Chunk<'a> {
|
71
|
-
/// This can be returned at any time and indicates that more data is needed
|
72
|
-
/// to proceed with parsing. Zero bytes were consumed from the input to
|
73
|
-
/// [`Parser::parse`]. The `usize` value here is a hint as to how many more
|
74
|
-
/// bytes are needed to continue parsing.
|
75
|
-
NeedMoreData(u64),
|
76
|
-
|
77
|
-
/// A chunk was successfully parsed.
|
78
|
-
Parsed {
|
79
|
-
/// This many bytes of the `data` input to [`Parser::parse`] were
|
80
|
-
/// consumed to produce `payload`.
|
81
|
-
consumed: usize,
|
82
|
-
/// The value that we actually parsed.
|
83
|
-
payload: Payload<'a>,
|
84
|
-
},
|
85
|
-
}
|
86
|
-
|
87
|
-
/// Values that can be parsed from a WebAssembly module or component.
|
88
|
-
///
|
89
|
-
/// This enumeration is all possible chunks of pieces that can be parsed by a
|
90
|
-
/// [`Parser`] from a binary WebAssembly module or component. Note that for many
|
91
|
-
/// sections the entire section is parsed all at once, whereas other functions,
|
92
|
-
/// like the code section, are parsed incrementally. This is a distinction where some
|
93
|
-
/// sections, like the type section, are required to be fully resident in memory
|
94
|
-
/// (fully downloaded) before proceeding. Other sections, like the code section,
|
95
|
-
/// can be processed in a streaming fashion where each function is extracted
|
96
|
-
/// individually so it can possibly be shipped to another thread while you wait
|
97
|
-
/// for more functions to get downloaded.
|
98
|
-
///
|
99
|
-
/// Note that payloads, when returned, do not indicate that the module or component
|
100
|
-
/// is valid. For example when you receive a `Payload::TypeSection` the type
|
101
|
-
/// section itself has not yet actually been parsed. The reader returned will be
|
102
|
-
/// able to parse it, but you'll have to actually iterate the reader to do the
|
103
|
-
/// full parse. Each payload returned is intended to be a *window* into the
|
104
|
-
/// original `data` passed to [`Parser::parse`] which can be further processed
|
105
|
-
/// if necessary.
|
106
|
-
pub enum Payload<'a> {
|
107
|
-
/// Indicates the header of a WebAssembly module or component.
|
108
|
-
Version {
|
109
|
-
/// The version number found in the header.
|
110
|
-
num: u16,
|
111
|
-
/// The encoding format being parsed.
|
112
|
-
encoding: Encoding,
|
113
|
-
/// The range of bytes that were parsed to consume the header of the
|
114
|
-
/// module or component. Note that this range is relative to the start
|
115
|
-
/// of the byte stream.
|
116
|
-
range: Range<usize>,
|
117
|
-
},
|
118
|
-
|
119
|
-
/// A module type section was received and the provided reader can be
|
120
|
-
/// used to parse the contents of the type section.
|
121
|
-
TypeSection(TypeSectionReader<'a>),
|
122
|
-
/// A module import section was received and the provided reader can be
|
123
|
-
/// used to parse the contents of the import section.
|
124
|
-
ImportSection(ImportSectionReader<'a>),
|
125
|
-
/// A module function section was received and the provided reader can be
|
126
|
-
/// used to parse the contents of the function section.
|
127
|
-
FunctionSection(FunctionSectionReader<'a>),
|
128
|
-
/// A module table section was received and the provided reader can be
|
129
|
-
/// used to parse the contents of the table section.
|
130
|
-
TableSection(TableSectionReader<'a>),
|
131
|
-
/// A module memory section was received and the provided reader can be
|
132
|
-
/// used to parse the contents of the memory section.
|
133
|
-
MemorySection(MemorySectionReader<'a>),
|
134
|
-
/// A module tag section was received, and the provided reader can be
|
135
|
-
/// used to parse the contents of the tag section.
|
136
|
-
TagSection(TagSectionReader<'a>),
|
137
|
-
/// A module global section was received and the provided reader can be
|
138
|
-
/// used to parse the contents of the global section.
|
139
|
-
GlobalSection(GlobalSectionReader<'a>),
|
140
|
-
/// A module export section was received, and the provided reader can be
|
141
|
-
/// used to parse the contents of the export section.
|
142
|
-
ExportSection(ExportSectionReader<'a>),
|
143
|
-
/// A module start section was received.
|
144
|
-
StartSection {
|
145
|
-
/// The start function index
|
146
|
-
func: u32,
|
147
|
-
/// The range of bytes that specify the `func` field, specified in
|
148
|
-
/// offsets relative to the start of the byte stream.
|
149
|
-
range: Range<usize>,
|
150
|
-
},
|
151
|
-
/// A module element section was received and the provided reader can be
|
152
|
-
/// used to parse the contents of the element section.
|
153
|
-
ElementSection(ElementSectionReader<'a>),
|
154
|
-
/// A module data count section was received.
|
155
|
-
DataCountSection {
|
156
|
-
/// The number of data segments.
|
157
|
-
count: u32,
|
158
|
-
/// The range of bytes that specify the `count` field, specified in
|
159
|
-
/// offsets relative to the start of the byte stream.
|
160
|
-
range: Range<usize>,
|
161
|
-
},
|
162
|
-
/// A module data section was received and the provided reader can be
|
163
|
-
/// used to parse the contents of the data section.
|
164
|
-
DataSection(DataSectionReader<'a>),
|
165
|
-
/// Indicator of the start of the code section of a WebAssembly module.
|
166
|
-
///
|
167
|
-
/// This entry is returned whenever the code section starts. The `count`
|
168
|
-
/// field indicates how many entries are in this code section. After
|
169
|
-
/// receiving this start marker you're guaranteed that the next `count`
|
170
|
-
/// items will be either `CodeSectionEntry` or an error will be returned.
|
171
|
-
///
|
172
|
-
/// This, unlike other sections, is intended to be used for streaming the
|
173
|
-
/// contents of the code section. The code section is not required to be
|
174
|
-
/// fully resident in memory when we parse it. Instead a [`Parser`] is
|
175
|
-
/// capable of parsing piece-by-piece of a code section.
|
176
|
-
CodeSectionStart {
|
177
|
-
/// The number of functions in this section.
|
178
|
-
count: u32,
|
179
|
-
/// The range of bytes that represent this section, specified in
|
180
|
-
/// offsets relative to the start of the byte stream.
|
181
|
-
range: Range<usize>,
|
182
|
-
/// The size, in bytes, of the remaining contents of this section.
|
183
|
-
///
|
184
|
-
/// This can be used in combination with [`Parser::skip_section`]
|
185
|
-
/// where the caller will know how many bytes to skip before feeding
|
186
|
-
/// bytes into `Parser` again.
|
187
|
-
size: u32,
|
188
|
-
},
|
189
|
-
/// An entry of the code section, a function, was parsed from a WebAssembly
|
190
|
-
/// module.
|
191
|
-
///
|
192
|
-
/// This entry indicates that a function was successfully received from the
|
193
|
-
/// code section, and the payload here is the window into the original input
|
194
|
-
/// where the function resides. Note that the function itself has not been
|
195
|
-
/// parsed, it's only been outlined. You'll need to process the
|
196
|
-
/// `FunctionBody` provided to test whether it parses and/or is valid.
|
197
|
-
CodeSectionEntry(FunctionBody<'a>),
|
198
|
-
|
199
|
-
/// A core module section was received and the provided parser can be
|
200
|
-
/// used to parse the nested module.
|
201
|
-
///
|
202
|
-
/// This variant is special in that it returns a sub-`Parser`. Upon
|
203
|
-
/// receiving a `ModuleSection` it is expected that the returned
|
204
|
-
/// `Parser` will be used instead of the parent `Parser` until the parse has
|
205
|
-
/// finished. You'll need to feed data into the `Parser` returned until it
|
206
|
-
/// returns `Payload::End`. After that you'll switch back to the parent
|
207
|
-
/// parser to resume parsing the rest of the current component.
|
208
|
-
///
|
209
|
-
/// Note that binaries will not be parsed correctly if you feed the data for
|
210
|
-
/// a nested module into the parent [`Parser`].
|
211
|
-
ModuleSection {
|
212
|
-
/// The parser for the nested module.
|
213
|
-
parser: Parser,
|
214
|
-
/// The range of bytes that represent the nested module in the
|
215
|
-
/// original byte stream.
|
216
|
-
range: Range<usize>,
|
217
|
-
},
|
218
|
-
/// A core instance section was received and the provided parser can be
|
219
|
-
/// used to parse the contents of the core instance section.
|
220
|
-
///
|
221
|
-
/// Currently this section is only parsed in a component.
|
222
|
-
InstanceSection(InstanceSectionReader<'a>),
|
223
|
-
/// A core type section was received and the provided parser can be
|
224
|
-
/// used to parse the contents of the core type section.
|
225
|
-
///
|
226
|
-
/// Currently this section is only parsed in a component.
|
227
|
-
CoreTypeSection(CoreTypeSectionReader<'a>),
|
228
|
-
/// A component section from a WebAssembly component was received and the
|
229
|
-
/// provided parser can be used to parse the nested component.
|
230
|
-
///
|
231
|
-
/// This variant is special in that it returns a sub-`Parser`. Upon
|
232
|
-
/// receiving a `ComponentSection` it is expected that the returned
|
233
|
-
/// `Parser` will be used instead of the parent `Parser` until the parse has
|
234
|
-
/// finished. You'll need to feed data into the `Parser` returned until it
|
235
|
-
/// returns `Payload::End`. After that you'll switch back to the parent
|
236
|
-
/// parser to resume parsing the rest of the current component.
|
237
|
-
///
|
238
|
-
/// Note that binaries will not be parsed correctly if you feed the data for
|
239
|
-
/// a nested component into the parent [`Parser`].
|
240
|
-
ComponentSection {
|
241
|
-
/// The parser for the nested component.
|
242
|
-
parser: Parser,
|
243
|
-
/// The range of bytes that represent the nested component in the
|
244
|
-
/// original byte stream.
|
245
|
-
range: Range<usize>,
|
246
|
-
},
|
247
|
-
/// A component instance section was received and the provided reader can be
|
248
|
-
/// used to parse the contents of the component instance section.
|
249
|
-
ComponentInstanceSection(ComponentInstanceSectionReader<'a>),
|
250
|
-
/// A component alias section was received and the provided reader can be
|
251
|
-
/// used to parse the contents of the component alias section.
|
252
|
-
ComponentAliasSection(SectionLimited<'a, crate::ComponentAlias<'a>>),
|
253
|
-
/// A component type section was received and the provided reader can be
|
254
|
-
/// used to parse the contents of the component type section.
|
255
|
-
ComponentTypeSection(ComponentTypeSectionReader<'a>),
|
256
|
-
/// A component canonical section was received and the provided reader can be
|
257
|
-
/// used to parse the contents of the component canonical section.
|
258
|
-
ComponentCanonicalSection(ComponentCanonicalSectionReader<'a>),
|
259
|
-
/// A component start section was received.
|
260
|
-
ComponentStartSection {
|
261
|
-
/// The start function description.
|
262
|
-
start: ComponentStartFunction,
|
263
|
-
/// The range of bytes that specify the `start` field.
|
264
|
-
range: Range<usize>,
|
265
|
-
},
|
266
|
-
/// A component import section was received and the provided reader can be
|
267
|
-
/// used to parse the contents of the component import section.
|
268
|
-
ComponentImportSection(ComponentImportSectionReader<'a>),
|
269
|
-
/// A component export section was received, and the provided reader can be
|
270
|
-
/// used to parse the contents of the component export section.
|
271
|
-
ComponentExportSection(ComponentExportSectionReader<'a>),
|
272
|
-
|
273
|
-
/// A module or component custom section was received.
|
274
|
-
CustomSection(CustomSectionReader<'a>),
|
275
|
-
|
276
|
-
/// An unknown section was found.
|
277
|
-
///
|
278
|
-
/// This variant is returned for all unknown sections encountered. This
|
279
|
-
/// likely wants to be interpreted as an error by consumers of the parser,
|
280
|
-
/// but this can also be used to parse sections currently unsupported by
|
281
|
-
/// the parser.
|
282
|
-
UnknownSection {
|
283
|
-
/// The 8-bit identifier for this section.
|
284
|
-
id: u8,
|
285
|
-
/// The contents of this section.
|
286
|
-
contents: &'a [u8],
|
287
|
-
/// The range of bytes, relative to the start of the original data
|
288
|
-
/// stream, that the contents of this section reside in.
|
289
|
-
range: Range<usize>,
|
290
|
-
},
|
291
|
-
|
292
|
-
/// The end of the WebAssembly module or component was reached.
|
293
|
-
///
|
294
|
-
/// The value is the offset in the input byte stream where the end
|
295
|
-
/// was reached.
|
296
|
-
End(usize),
|
297
|
-
}
|
298
|
-
|
299
|
-
const CUSTOM_SECTION: u8 = 0;
|
300
|
-
const TYPE_SECTION: u8 = 1;
|
301
|
-
const IMPORT_SECTION: u8 = 2;
|
302
|
-
const FUNCTION_SECTION: u8 = 3;
|
303
|
-
const TABLE_SECTION: u8 = 4;
|
304
|
-
const MEMORY_SECTION: u8 = 5;
|
305
|
-
const GLOBAL_SECTION: u8 = 6;
|
306
|
-
const EXPORT_SECTION: u8 = 7;
|
307
|
-
const START_SECTION: u8 = 8;
|
308
|
-
const ELEMENT_SECTION: u8 = 9;
|
309
|
-
const CODE_SECTION: u8 = 10;
|
310
|
-
const DATA_SECTION: u8 = 11;
|
311
|
-
const DATA_COUNT_SECTION: u8 = 12;
|
312
|
-
const TAG_SECTION: u8 = 13;
|
313
|
-
|
314
|
-
const COMPONENT_MODULE_SECTION: u8 = 1;
|
315
|
-
const COMPONENT_CORE_INSTANCE_SECTION: u8 = 2;
|
316
|
-
const COMPONENT_CORE_TYPE_SECTION: u8 = 3;
|
317
|
-
const COMPONENT_SECTION: u8 = 4;
|
318
|
-
const COMPONENT_INSTANCE_SECTION: u8 = 5;
|
319
|
-
const COMPONENT_ALIAS_SECTION: u8 = 6;
|
320
|
-
const COMPONENT_TYPE_SECTION: u8 = 7;
|
321
|
-
const COMPONENT_CANONICAL_SECTION: u8 = 8;
|
322
|
-
const COMPONENT_START_SECTION: u8 = 9;
|
323
|
-
const COMPONENT_IMPORT_SECTION: u8 = 10;
|
324
|
-
const COMPONENT_EXPORT_SECTION: u8 = 11;
|
325
|
-
|
326
|
-
impl Parser {
|
327
|
-
/// Creates a new parser.
|
328
|
-
///
|
329
|
-
/// Reports errors and ranges relative to `offset` provided, where `offset`
|
330
|
-
/// is some logical offset within the input stream that we're parsing.
|
331
|
-
pub fn new(offset: u64) -> Parser {
|
332
|
-
Parser {
|
333
|
-
state: State::Header,
|
334
|
-
offset,
|
335
|
-
max_size: u64::MAX,
|
336
|
-
// Assume the encoding is a module until we know otherwise
|
337
|
-
encoding: Encoding::Module,
|
338
|
-
}
|
339
|
-
}
|
340
|
-
|
341
|
-
/// Tests whether `bytes` looks like a core WebAssembly module.
|
342
|
-
///
|
343
|
-
/// This will inspect the first 8 bytes of `bytes` and return `true` if it
|
344
|
-
/// starts with the standard core WebAssembly header.
|
345
|
-
pub fn is_core_wasm(bytes: &[u8]) -> bool {
|
346
|
-
const HEADER: [u8; 8] = [
|
347
|
-
WASM_MAGIC_NUMBER[0],
|
348
|
-
WASM_MAGIC_NUMBER[1],
|
349
|
-
WASM_MAGIC_NUMBER[2],
|
350
|
-
WASM_MAGIC_NUMBER[3],
|
351
|
-
WASM_MODULE_VERSION.to_le_bytes()[0],
|
352
|
-
WASM_MODULE_VERSION.to_le_bytes()[1],
|
353
|
-
KIND_MODULE.to_le_bytes()[0],
|
354
|
-
KIND_MODULE.to_le_bytes()[1],
|
355
|
-
];
|
356
|
-
bytes.starts_with(&HEADER)
|
357
|
-
}
|
358
|
-
|
359
|
-
/// Tests whether `bytes` looks like a WebAssembly component.
|
360
|
-
///
|
361
|
-
/// This will inspect the first 8 bytes of `bytes` and return `true` if it
|
362
|
-
/// starts with the standard WebAssembly component header.
|
363
|
-
pub fn is_component(bytes: &[u8]) -> bool {
|
364
|
-
const HEADER: [u8; 8] = [
|
365
|
-
WASM_MAGIC_NUMBER[0],
|
366
|
-
WASM_MAGIC_NUMBER[1],
|
367
|
-
WASM_MAGIC_NUMBER[2],
|
368
|
-
WASM_MAGIC_NUMBER[3],
|
369
|
-
WASM_COMPONENT_VERSION.to_le_bytes()[0],
|
370
|
-
WASM_COMPONENT_VERSION.to_le_bytes()[1],
|
371
|
-
KIND_COMPONENT.to_le_bytes()[0],
|
372
|
-
KIND_COMPONENT.to_le_bytes()[1],
|
373
|
-
];
|
374
|
-
bytes.starts_with(&HEADER)
|
375
|
-
}
|
376
|
-
|
377
|
-
/// Attempts to parse a chunk of data.
|
378
|
-
///
|
379
|
-
/// This method will attempt to parse the next incremental portion of a
|
380
|
-
/// WebAssembly binary. Data available for the module or component is
|
381
|
-
/// provided as `data`, and the data can be incomplete if more data has yet
|
382
|
-
/// to arrive. The `eof` flag indicates whether more data will ever be received.
|
383
|
-
///
|
384
|
-
/// There are two ways parsing can succeed with this method:
|
385
|
-
///
|
386
|
-
/// * `Chunk::NeedMoreData` - this indicates that there is not enough bytes
|
387
|
-
/// in `data` to parse a payload. The caller needs to wait for more data to
|
388
|
-
/// be available in this situation before calling this method again. It is
|
389
|
-
/// guaranteed that this is only returned if `eof` is `false`.
|
390
|
-
///
|
391
|
-
/// * `Chunk::Parsed` - this indicates that a chunk of the input was
|
392
|
-
/// successfully parsed. The payload is available in this variant of what
|
393
|
-
/// was parsed, and this also indicates how many bytes of `data` was
|
394
|
-
/// consumed. It's expected that the caller will not provide these bytes
|
395
|
-
/// back to the [`Parser`] again.
|
396
|
-
///
|
397
|
-
/// Note that all `Chunk` return values are connected, with a lifetime, to
|
398
|
-
/// the input buffer. Each parsed chunk borrows the input buffer and is a
|
399
|
-
/// view into it for successfully parsed chunks.
|
400
|
-
///
|
401
|
-
/// It is expected that you'll call this method until `Payload::End` is
|
402
|
-
/// reached, at which point you're guaranteed that the parse has completed.
|
403
|
-
/// Note that complete parsing, for the top-level module or component,
|
404
|
-
/// implies that `data` is empty and `eof` is `true`.
|
405
|
-
///
|
406
|
-
/// # Errors
|
407
|
-
///
|
408
|
-
/// Parse errors are returned as an `Err`. Errors can happen when the
|
409
|
-
/// structure of the data is unexpected or if sections are too large for
|
410
|
-
/// example. Note that errors are not returned for malformed *contents* of
|
411
|
-
/// sections here. Sections are generally not individually parsed and each
|
412
|
-
/// returned [`Payload`] needs to be iterated over further to detect all
|
413
|
-
/// errors.
|
414
|
-
///
|
415
|
-
/// # Examples
|
416
|
-
///
|
417
|
-
/// An example of reading a wasm file from a stream (`std::io::Read`) and
|
418
|
-
/// incrementally parsing it.
|
419
|
-
///
|
420
|
-
/// ```
|
421
|
-
/// use std::io::Read;
|
422
|
-
/// use anyhow::Result;
|
423
|
-
/// use wasmparser::{Parser, Chunk, Payload::*};
|
424
|
-
///
|
425
|
-
/// fn parse(mut reader: impl Read) -> Result<()> {
|
426
|
-
/// let mut buf = Vec::new();
|
427
|
-
/// let mut cur = Parser::new(0);
|
428
|
-
/// let mut eof = false;
|
429
|
-
/// let mut stack = Vec::new();
|
430
|
-
///
|
431
|
-
/// loop {
|
432
|
-
/// let (payload, consumed) = match cur.parse(&buf, eof)? {
|
433
|
-
/// Chunk::NeedMoreData(hint) => {
|
434
|
-
/// assert!(!eof); // otherwise an error would be returned
|
435
|
-
///
|
436
|
-
/// // Use the hint to preallocate more space, then read
|
437
|
-
/// // some more data into our buffer.
|
438
|
-
/// //
|
439
|
-
/// // Note that the buffer management here is not ideal,
|
440
|
-
/// // but it's compact enough to fit in an example!
|
441
|
-
/// let len = buf.len();
|
442
|
-
/// buf.extend((0..hint).map(|_| 0u8));
|
443
|
-
/// let n = reader.read(&mut buf[len..])?;
|
444
|
-
/// buf.truncate(len + n);
|
445
|
-
/// eof = n == 0;
|
446
|
-
/// continue;
|
447
|
-
/// }
|
448
|
-
///
|
449
|
-
/// Chunk::Parsed { consumed, payload } => (payload, consumed),
|
450
|
-
/// };
|
451
|
-
///
|
452
|
-
/// match payload {
|
453
|
-
/// // Sections for WebAssembly modules
|
454
|
-
/// Version { .. } => { /* ... */ }
|
455
|
-
/// TypeSection(_) => { /* ... */ }
|
456
|
-
/// ImportSection(_) => { /* ... */ }
|
457
|
-
/// FunctionSection(_) => { /* ... */ }
|
458
|
-
/// TableSection(_) => { /* ... */ }
|
459
|
-
/// MemorySection(_) => { /* ... */ }
|
460
|
-
/// TagSection(_) => { /* ... */ }
|
461
|
-
/// GlobalSection(_) => { /* ... */ }
|
462
|
-
/// ExportSection(_) => { /* ... */ }
|
463
|
-
/// StartSection { .. } => { /* ... */ }
|
464
|
-
/// ElementSection(_) => { /* ... */ }
|
465
|
-
/// DataCountSection { .. } => { /* ... */ }
|
466
|
-
/// DataSection(_) => { /* ... */ }
|
467
|
-
///
|
468
|
-
/// // Here we know how many functions we'll be receiving as
|
469
|
-
/// // `CodeSectionEntry`, so we can prepare for that, and
|
470
|
-
/// // afterwards we can parse and handle each function
|
471
|
-
/// // individually.
|
472
|
-
/// CodeSectionStart { .. } => { /* ... */ }
|
473
|
-
/// CodeSectionEntry(body) => {
|
474
|
-
/// // here we can iterate over `body` to parse the function
|
475
|
-
/// // and its locals
|
476
|
-
/// }
|
477
|
-
///
|
478
|
-
/// // Sections for WebAssembly components
|
479
|
-
/// InstanceSection(_) => { /* ... */ }
|
480
|
-
/// CoreTypeSection(_) => { /* ... */ }
|
481
|
-
/// ComponentInstanceSection(_) => { /* ... */ }
|
482
|
-
/// ComponentAliasSection(_) => { /* ... */ }
|
483
|
-
/// ComponentTypeSection(_) => { /* ... */ }
|
484
|
-
/// ComponentCanonicalSection(_) => { /* ... */ }
|
485
|
-
/// ComponentStartSection { .. } => { /* ... */ }
|
486
|
-
/// ComponentImportSection(_) => { /* ... */ }
|
487
|
-
/// ComponentExportSection(_) => { /* ... */ }
|
488
|
-
///
|
489
|
-
/// ModuleSection { parser, .. }
|
490
|
-
/// | ComponentSection { parser, .. } => {
|
491
|
-
/// stack.push(cur.clone());
|
492
|
-
/// cur = parser.clone();
|
493
|
-
/// }
|
494
|
-
///
|
495
|
-
/// CustomSection(_) => { /* ... */ }
|
496
|
-
///
|
497
|
-
/// // most likely you'd return an error here
|
498
|
-
/// UnknownSection { id, .. } => { /* ... */ }
|
499
|
-
///
|
500
|
-
/// // Once we've reached the end of a parser we either resume
|
501
|
-
/// // at the parent parser or we break out of the loop because
|
502
|
-
/// // we're done.
|
503
|
-
/// End(_) => {
|
504
|
-
/// if let Some(parent_parser) = stack.pop() {
|
505
|
-
/// cur = parent_parser;
|
506
|
-
/// } else {
|
507
|
-
/// break;
|
508
|
-
/// }
|
509
|
-
/// }
|
510
|
-
/// }
|
511
|
-
///
|
512
|
-
/// // once we're done processing the payload we can forget the
|
513
|
-
/// // original.
|
514
|
-
/// buf.drain(..consumed);
|
515
|
-
/// }
|
516
|
-
///
|
517
|
-
/// Ok(())
|
518
|
-
/// }
|
519
|
-
///
|
520
|
-
/// # parse(&b"\0asm\x01\0\0\0"[..]).unwrap();
|
521
|
-
/// ```
|
522
|
-
pub fn parse<'a>(&mut self, data: &'a [u8], eof: bool) -> Result<Chunk<'a>> {
|
523
|
-
let (data, eof) = if usize_to_u64(data.len()) > self.max_size {
|
524
|
-
(&data[..(self.max_size as usize)], true)
|
525
|
-
} else {
|
526
|
-
(data, eof)
|
527
|
-
};
|
528
|
-
// TODO: thread through `offset: u64` to `BinaryReader`, remove
|
529
|
-
// the cast here.
|
530
|
-
let mut reader = BinaryReader::new_with_offset(data, self.offset as usize);
|
531
|
-
match self.parse_reader(&mut reader, eof) {
|
532
|
-
Ok(payload) => {
|
533
|
-
// Be sure to update our offset with how far we got in the
|
534
|
-
// reader
|
535
|
-
self.offset += usize_to_u64(reader.position);
|
536
|
-
self.max_size -= usize_to_u64(reader.position);
|
537
|
-
Ok(Chunk::Parsed {
|
538
|
-
consumed: reader.position,
|
539
|
-
payload,
|
540
|
-
})
|
541
|
-
}
|
542
|
-
Err(e) => {
|
543
|
-
// If we're at EOF then there's no way we can recover from any
|
544
|
-
// error, so continue to propagate it.
|
545
|
-
if eof {
|
546
|
-
return Err(e);
|
547
|
-
}
|
548
|
-
|
549
|
-
// If our error doesn't look like it can be resolved with more
|
550
|
-
// data being pulled down, then propagate it, otherwise switch
|
551
|
-
// the error to "feed me please"
|
552
|
-
match e.inner.needed_hint {
|
553
|
-
Some(hint) => Ok(Chunk::NeedMoreData(usize_to_u64(hint))),
|
554
|
-
None => Err(e),
|
555
|
-
}
|
556
|
-
}
|
557
|
-
}
|
558
|
-
}
|
559
|
-
|
560
|
-
fn parse_reader<'a>(
|
561
|
-
&mut self,
|
562
|
-
reader: &mut BinaryReader<'a>,
|
563
|
-
eof: bool,
|
564
|
-
) -> Result<Payload<'a>> {
|
565
|
-
use Payload::*;
|
566
|
-
|
567
|
-
match self.state {
|
568
|
-
State::Header => {
|
569
|
-
let start = reader.original_position();
|
570
|
-
let header_version = reader.read_header_version()?;
|
571
|
-
self.encoding = match (header_version >> 16) as u16 {
|
572
|
-
KIND_MODULE => Encoding::Module,
|
573
|
-
KIND_COMPONENT => Encoding::Component,
|
574
|
-
_ => bail!(start + 4, "unknown binary version: {header_version:#10x}"),
|
575
|
-
};
|
576
|
-
let num = header_version as u16;
|
577
|
-
self.state = State::SectionStart;
|
578
|
-
Ok(Version {
|
579
|
-
num,
|
580
|
-
encoding: self.encoding,
|
581
|
-
range: start..reader.original_position(),
|
582
|
-
})
|
583
|
-
}
|
584
|
-
State::SectionStart => {
|
585
|
-
// If we're at eof and there are no bytes in our buffer, then
|
586
|
-
// that means we reached the end of the data since it's
|
587
|
-
// just a bunch of sections concatenated after the header.
|
588
|
-
if eof && reader.bytes_remaining() == 0 {
|
589
|
-
return Ok(Payload::End(reader.original_position()));
|
590
|
-
}
|
591
|
-
|
592
|
-
let id_pos = reader.position;
|
593
|
-
let id = reader.read_u8()?;
|
594
|
-
if id & 0x80 != 0 {
|
595
|
-
return Err(BinaryReaderError::new("malformed section id", id_pos));
|
596
|
-
}
|
597
|
-
let len_pos = reader.original_position();
|
598
|
-
let mut len = reader.read_var_u32()?;
|
599
|
-
|
600
|
-
// Test to make sure that this section actually fits within
|
601
|
-
// `Parser::max_size`. This doesn't matter for top-level modules
|
602
|
-
// but it is required for nested modules/components to correctly ensure
|
603
|
-
// that all sections live entirely within their section of the
|
604
|
-
// file.
|
605
|
-
let section_overflow = self
|
606
|
-
.max_size
|
607
|
-
.checked_sub(usize_to_u64(reader.position))
|
608
|
-
.and_then(|s| s.checked_sub(len.into()))
|
609
|
-
.is_none();
|
610
|
-
if section_overflow {
|
611
|
-
return Err(BinaryReaderError::new("section too large", len_pos));
|
612
|
-
}
|
613
|
-
|
614
|
-
match (self.encoding, id) {
|
615
|
-
// Sections for both modules and components.
|
616
|
-
(_, 0) => section(reader, len, CustomSectionReader::new, CustomSection),
|
617
|
-
|
618
|
-
// Module sections
|
619
|
-
(Encoding::Module, TYPE_SECTION) => {
|
620
|
-
section(reader, len, TypeSectionReader::new, TypeSection)
|
621
|
-
}
|
622
|
-
(Encoding::Module, IMPORT_SECTION) => {
|
623
|
-
section(reader, len, ImportSectionReader::new, ImportSection)
|
624
|
-
}
|
625
|
-
(Encoding::Module, FUNCTION_SECTION) => {
|
626
|
-
section(reader, len, FunctionSectionReader::new, FunctionSection)
|
627
|
-
}
|
628
|
-
(Encoding::Module, TABLE_SECTION) => {
|
629
|
-
section(reader, len, TableSectionReader::new, TableSection)
|
630
|
-
}
|
631
|
-
(Encoding::Module, MEMORY_SECTION) => {
|
632
|
-
section(reader, len, MemorySectionReader::new, MemorySection)
|
633
|
-
}
|
634
|
-
(Encoding::Module, GLOBAL_SECTION) => {
|
635
|
-
section(reader, len, GlobalSectionReader::new, GlobalSection)
|
636
|
-
}
|
637
|
-
(Encoding::Module, EXPORT_SECTION) => {
|
638
|
-
section(reader, len, ExportSectionReader::new, ExportSection)
|
639
|
-
}
|
640
|
-
(Encoding::Module, START_SECTION) => {
|
641
|
-
let (func, range) = single_item(reader, len, "start")?;
|
642
|
-
Ok(StartSection { func, range })
|
643
|
-
}
|
644
|
-
(Encoding::Module, ELEMENT_SECTION) => {
|
645
|
-
section(reader, len, ElementSectionReader::new, ElementSection)
|
646
|
-
}
|
647
|
-
(Encoding::Module, CODE_SECTION) => {
|
648
|
-
let start = reader.original_position();
|
649
|
-
let count = delimited(reader, &mut len, |r| r.read_var_u32())?;
|
650
|
-
let range = start..reader.original_position() + len as usize;
|
651
|
-
self.state = State::FunctionBody {
|
652
|
-
remaining: count,
|
653
|
-
len,
|
654
|
-
};
|
655
|
-
Ok(CodeSectionStart {
|
656
|
-
count,
|
657
|
-
range,
|
658
|
-
size: len,
|
659
|
-
})
|
660
|
-
}
|
661
|
-
(Encoding::Module, DATA_SECTION) => {
|
662
|
-
section(reader, len, DataSectionReader::new, DataSection)
|
663
|
-
}
|
664
|
-
(Encoding::Module, DATA_COUNT_SECTION) => {
|
665
|
-
let (count, range) = single_item(reader, len, "data count")?;
|
666
|
-
Ok(DataCountSection { count, range })
|
667
|
-
}
|
668
|
-
(Encoding::Module, TAG_SECTION) => {
|
669
|
-
section(reader, len, TagSectionReader::new, TagSection)
|
670
|
-
}
|
671
|
-
|
672
|
-
// Component sections
|
673
|
-
(Encoding::Component, COMPONENT_MODULE_SECTION)
|
674
|
-
| (Encoding::Component, COMPONENT_SECTION) => {
|
675
|
-
if len as usize > MAX_WASM_MODULE_SIZE {
|
676
|
-
bail!(
|
677
|
-
len_pos,
|
678
|
-
"{} section is too large",
|
679
|
-
if id == 1 { "module" } else { "component " }
|
680
|
-
);
|
681
|
-
}
|
682
|
-
|
683
|
-
let range =
|
684
|
-
reader.original_position()..reader.original_position() + len as usize;
|
685
|
-
self.max_size -= u64::from(len);
|
686
|
-
self.offset += u64::from(len);
|
687
|
-
let mut parser = Parser::new(usize_to_u64(reader.original_position()));
|
688
|
-
parser.max_size = len.into();
|
689
|
-
|
690
|
-
Ok(match id {
|
691
|
-
1 => ModuleSection { parser, range },
|
692
|
-
4 => ComponentSection { parser, range },
|
693
|
-
_ => unreachable!(),
|
694
|
-
})
|
695
|
-
}
|
696
|
-
(Encoding::Component, COMPONENT_CORE_INSTANCE_SECTION) => {
|
697
|
-
section(reader, len, InstanceSectionReader::new, InstanceSection)
|
698
|
-
}
|
699
|
-
(Encoding::Component, COMPONENT_CORE_TYPE_SECTION) => {
|
700
|
-
section(reader, len, CoreTypeSectionReader::new, CoreTypeSection)
|
701
|
-
}
|
702
|
-
(Encoding::Component, COMPONENT_INSTANCE_SECTION) => section(
|
703
|
-
reader,
|
704
|
-
len,
|
705
|
-
ComponentInstanceSectionReader::new,
|
706
|
-
ComponentInstanceSection,
|
707
|
-
),
|
708
|
-
(Encoding::Component, COMPONENT_ALIAS_SECTION) => {
|
709
|
-
section(reader, len, SectionLimited::new, ComponentAliasSection)
|
710
|
-
}
|
711
|
-
(Encoding::Component, COMPONENT_TYPE_SECTION) => section(
|
712
|
-
reader,
|
713
|
-
len,
|
714
|
-
ComponentTypeSectionReader::new,
|
715
|
-
ComponentTypeSection,
|
716
|
-
),
|
717
|
-
(Encoding::Component, COMPONENT_CANONICAL_SECTION) => section(
|
718
|
-
reader,
|
719
|
-
len,
|
720
|
-
ComponentCanonicalSectionReader::new,
|
721
|
-
ComponentCanonicalSection,
|
722
|
-
),
|
723
|
-
(Encoding::Component, COMPONENT_START_SECTION) => {
|
724
|
-
let (start, range) = single_item(reader, len, "component start")?;
|
725
|
-
Ok(ComponentStartSection { start, range })
|
726
|
-
}
|
727
|
-
(Encoding::Component, COMPONENT_IMPORT_SECTION) => section(
|
728
|
-
reader,
|
729
|
-
len,
|
730
|
-
ComponentImportSectionReader::new,
|
731
|
-
ComponentImportSection,
|
732
|
-
),
|
733
|
-
(Encoding::Component, COMPONENT_EXPORT_SECTION) => section(
|
734
|
-
reader,
|
735
|
-
len,
|
736
|
-
ComponentExportSectionReader::new,
|
737
|
-
ComponentExportSection,
|
738
|
-
),
|
739
|
-
(_, id) => {
|
740
|
-
let offset = reader.original_position();
|
741
|
-
let contents = reader.read_bytes(len as usize)?;
|
742
|
-
let range = offset..offset + len as usize;
|
743
|
-
Ok(UnknownSection {
|
744
|
-
id,
|
745
|
-
contents,
|
746
|
-
range,
|
747
|
-
})
|
748
|
-
}
|
749
|
-
}
|
750
|
-
}
|
751
|
-
|
752
|
-
// Once we hit 0 remaining incrementally parsed items, with 0
|
753
|
-
// remaining bytes in each section, we're done and can switch back
|
754
|
-
// to parsing sections.
|
755
|
-
State::FunctionBody {
|
756
|
-
remaining: 0,
|
757
|
-
len: 0,
|
758
|
-
} => {
|
759
|
-
self.state = State::SectionStart;
|
760
|
-
self.parse_reader(reader, eof)
|
761
|
-
}
|
762
|
-
|
763
|
-
// ... otherwise trailing bytes with no remaining entries in these
|
764
|
-
// sections indicates an error.
|
765
|
-
State::FunctionBody { remaining: 0, len } => {
|
766
|
-
debug_assert!(len > 0);
|
767
|
-
let offset = reader.original_position();
|
768
|
-
Err(BinaryReaderError::new(
|
769
|
-
"trailing bytes at end of section",
|
770
|
-
offset,
|
771
|
-
))
|
772
|
-
}
|
773
|
-
|
774
|
-
// Functions are relatively easy to parse when we know there's at
|
775
|
-
// least one remaining and at least one byte available to read
|
776
|
-
// things.
|
777
|
-
//
|
778
|
-
// We use the remaining length try to read a u32 size of the
|
779
|
-
// function, and using that size we require the entire function be
|
780
|
-
// resident in memory. This means that we're reading whole chunks of
|
781
|
-
// functions at a time.
|
782
|
-
//
|
783
|
-
// Limiting via `Parser::max_size` (nested parsing) happens above in
|
784
|
-
// `fn parse`, and limiting by our section size happens via
|
785
|
-
// `delimited`. Actual parsing of the function body is delegated to
|
786
|
-
// the caller to iterate over the `FunctionBody` structure.
|
787
|
-
State::FunctionBody { remaining, mut len } => {
|
788
|
-
let body = delimited(reader, &mut len, |r| {
|
789
|
-
let size = r.read_var_u32()?;
|
790
|
-
let offset = r.original_position();
|
791
|
-
Ok(FunctionBody::new(offset, r.read_bytes(size as usize)?))
|
792
|
-
})?;
|
793
|
-
self.state = State::FunctionBody {
|
794
|
-
remaining: remaining - 1,
|
795
|
-
len,
|
796
|
-
};
|
797
|
-
Ok(CodeSectionEntry(body))
|
798
|
-
}
|
799
|
-
}
|
800
|
-
}
|
801
|
-
|
802
|
-
/// Convenience function that can be used to parse a module or component
|
803
|
-
/// that is entirely resident in memory.
|
804
|
-
///
|
805
|
-
/// This function will parse the `data` provided as a WebAssembly module
|
806
|
-
/// or component.
|
807
|
-
///
|
808
|
-
/// Note that when this function yields sections that provide parsers,
|
809
|
-
/// no further action is required for those sections as payloads from
|
810
|
-
/// those parsers will be automatically returned.
|
811
|
-
///
|
812
|
-
/// # Examples
|
813
|
-
///
|
814
|
-
/// An example of reading a wasm file from a stream (`std::io::Read`) into
|
815
|
-
/// a buffer and then parsing it.
|
816
|
-
///
|
817
|
-
/// ```
|
818
|
-
/// use std::io::Read;
|
819
|
-
/// use anyhow::Result;
|
820
|
-
/// use wasmparser::{Parser, Chunk, Payload::*};
|
821
|
-
///
|
822
|
-
/// fn parse(mut reader: impl Read) -> Result<()> {
|
823
|
-
/// let mut buf = Vec::new();
|
824
|
-
/// reader.read_to_end(&mut buf)?;
|
825
|
-
/// let parser = Parser::new(0);
|
826
|
-
///
|
827
|
-
/// for payload in parser.parse_all(&buf) {
|
828
|
-
/// match payload? {
|
829
|
-
/// // Sections for WebAssembly modules
|
830
|
-
/// Version { .. } => { /* ... */ }
|
831
|
-
/// TypeSection(_) => { /* ... */ }
|
832
|
-
/// ImportSection(_) => { /* ... */ }
|
833
|
-
/// FunctionSection(_) => { /* ... */ }
|
834
|
-
/// TableSection(_) => { /* ... */ }
|
835
|
-
/// MemorySection(_) => { /* ... */ }
|
836
|
-
/// TagSection(_) => { /* ... */ }
|
837
|
-
/// GlobalSection(_) => { /* ... */ }
|
838
|
-
/// ExportSection(_) => { /* ... */ }
|
839
|
-
/// StartSection { .. } => { /* ... */ }
|
840
|
-
/// ElementSection(_) => { /* ... */ }
|
841
|
-
/// DataCountSection { .. } => { /* ... */ }
|
842
|
-
/// DataSection(_) => { /* ... */ }
|
843
|
-
///
|
844
|
-
/// // Here we know how many functions we'll be receiving as
|
845
|
-
/// // `CodeSectionEntry`, so we can prepare for that, and
|
846
|
-
/// // afterwards we can parse and handle each function
|
847
|
-
/// // individually.
|
848
|
-
/// CodeSectionStart { .. } => { /* ... */ }
|
849
|
-
/// CodeSectionEntry(body) => {
|
850
|
-
/// // here we can iterate over `body` to parse the function
|
851
|
-
/// // and its locals
|
852
|
-
/// }
|
853
|
-
///
|
854
|
-
/// // Sections for WebAssembly components
|
855
|
-
/// ModuleSection { .. } => { /* ... */ }
|
856
|
-
/// InstanceSection(_) => { /* ... */ }
|
857
|
-
/// CoreTypeSection(_) => { /* ... */ }
|
858
|
-
/// ComponentSection { .. } => { /* ... */ }
|
859
|
-
/// ComponentInstanceSection(_) => { /* ... */ }
|
860
|
-
/// ComponentAliasSection(_) => { /* ... */ }
|
861
|
-
/// ComponentTypeSection(_) => { /* ... */ }
|
862
|
-
/// ComponentCanonicalSection(_) => { /* ... */ }
|
863
|
-
/// ComponentStartSection { .. } => { /* ... */ }
|
864
|
-
/// ComponentImportSection(_) => { /* ... */ }
|
865
|
-
/// ComponentExportSection(_) => { /* ... */ }
|
866
|
-
///
|
867
|
-
/// CustomSection(_) => { /* ... */ }
|
868
|
-
///
|
869
|
-
/// // most likely you'd return an error here
|
870
|
-
/// UnknownSection { id, .. } => { /* ... */ }
|
871
|
-
///
|
872
|
-
/// // Once we've reached the end of a parser we either resume
|
873
|
-
/// // at the parent parser or the payload iterator is at its
|
874
|
-
/// // end and we're done.
|
875
|
-
/// End(_) => {}
|
876
|
-
/// }
|
877
|
-
/// }
|
878
|
-
///
|
879
|
-
/// Ok(())
|
880
|
-
/// }
|
881
|
-
///
|
882
|
-
/// # parse(&b"\0asm\x01\0\0\0"[..]).unwrap();
|
883
|
-
/// ```
|
884
|
-
pub fn parse_all(self, mut data: &[u8]) -> impl Iterator<Item = Result<Payload>> {
|
885
|
-
let mut stack = Vec::new();
|
886
|
-
let mut cur = self;
|
887
|
-
let mut done = false;
|
888
|
-
iter::from_fn(move || {
|
889
|
-
if done {
|
890
|
-
return None;
|
891
|
-
}
|
892
|
-
let payload = match cur.parse(data, true) {
|
893
|
-
// Propagate all errors
|
894
|
-
Err(e) => {
|
895
|
-
done = true;
|
896
|
-
return Some(Err(e));
|
897
|
-
}
|
898
|
-
|
899
|
-
// This isn't possible because `eof` is always true.
|
900
|
-
Ok(Chunk::NeedMoreData(_)) => unreachable!(),
|
901
|
-
|
902
|
-
Ok(Chunk::Parsed { payload, consumed }) => {
|
903
|
-
data = &data[consumed..];
|
904
|
-
payload
|
905
|
-
}
|
906
|
-
};
|
907
|
-
|
908
|
-
match &payload {
|
909
|
-
Payload::ModuleSection { parser, .. }
|
910
|
-
| Payload::ComponentSection { parser, .. } => {
|
911
|
-
stack.push(cur.clone());
|
912
|
-
cur = parser.clone();
|
913
|
-
}
|
914
|
-
Payload::End(_) => match stack.pop() {
|
915
|
-
Some(p) => cur = p,
|
916
|
-
None => done = true,
|
917
|
-
},
|
918
|
-
|
919
|
-
_ => {}
|
920
|
-
}
|
921
|
-
|
922
|
-
Some(Ok(payload))
|
923
|
-
})
|
924
|
-
}
|
925
|
-
|
926
|
-
/// Skip parsing the code section entirely.
|
927
|
-
///
|
928
|
-
/// This function can be used to indicate, after receiving
|
929
|
-
/// `CodeSectionStart`, that the section will not be parsed.
|
930
|
-
///
|
931
|
-
/// The caller will be responsible for skipping `size` bytes (found in the
|
932
|
-
/// `CodeSectionStart` payload). Bytes should only be fed into `parse`
|
933
|
-
/// after the `size` bytes have been skipped.
|
934
|
-
///
|
935
|
-
/// # Panics
|
936
|
-
///
|
937
|
-
/// This function will panic if the parser is not in a state where it's
|
938
|
-
/// parsing the code section.
|
939
|
-
///
|
940
|
-
/// # Examples
|
941
|
-
///
|
942
|
-
/// ```
|
943
|
-
/// use wasmparser::{Result, Parser, Chunk, Payload::*};
|
944
|
-
/// use std::ops::Range;
|
945
|
-
///
|
946
|
-
/// fn objdump_headers(mut wasm: &[u8]) -> Result<()> {
|
947
|
-
/// let mut parser = Parser::new(0);
|
948
|
-
/// loop {
|
949
|
-
/// let payload = match parser.parse(wasm, true)? {
|
950
|
-
/// Chunk::Parsed { consumed, payload } => {
|
951
|
-
/// wasm = &wasm[consumed..];
|
952
|
-
/// payload
|
953
|
-
/// }
|
954
|
-
/// // this state isn't possible with `eof = true`
|
955
|
-
/// Chunk::NeedMoreData(_) => unreachable!(),
|
956
|
-
/// };
|
957
|
-
/// match payload {
|
958
|
-
/// TypeSection(s) => print_range("type section", &s.range()),
|
959
|
-
/// ImportSection(s) => print_range("import section", &s.range()),
|
960
|
-
/// // .. other sections
|
961
|
-
///
|
962
|
-
/// // Print the range of the code section we see, but don't
|
963
|
-
/// // actually iterate over each individual function.
|
964
|
-
/// CodeSectionStart { range, size, .. } => {
|
965
|
-
/// print_range("code section", &range);
|
966
|
-
/// parser.skip_section();
|
967
|
-
/// wasm = &wasm[size as usize..];
|
968
|
-
/// }
|
969
|
-
/// End(_) => break,
|
970
|
-
/// _ => {}
|
971
|
-
/// }
|
972
|
-
/// }
|
973
|
-
/// Ok(())
|
974
|
-
/// }
|
975
|
-
///
|
976
|
-
/// fn print_range(section: &str, range: &Range<usize>) {
|
977
|
-
/// println!("{:>40}: {:#010x} - {:#010x}", section, range.start, range.end);
|
978
|
-
/// }
|
979
|
-
/// ```
|
980
|
-
pub fn skip_section(&mut self) {
|
981
|
-
let skip = match self.state {
|
982
|
-
State::FunctionBody { remaining: _, len } => len,
|
983
|
-
_ => panic!("wrong state to call `skip_section`"),
|
984
|
-
};
|
985
|
-
self.offset += u64::from(skip);
|
986
|
-
self.max_size -= u64::from(skip);
|
987
|
-
self.state = State::SectionStart;
|
988
|
-
}
|
989
|
-
}
|
990
|
-
|
991
|
-
fn usize_to_u64(a: usize) -> u64 {
|
992
|
-
a.try_into().unwrap()
|
993
|
-
}
|
994
|
-
|
995
|
-
/// Parses an entire section resident in memory into a `Payload`.
|
996
|
-
///
|
997
|
-
/// Requires that `len` bytes are resident in `reader` and uses `ctor`/`variant`
|
998
|
-
/// to construct the section to return.
|
999
|
-
fn section<'a, T>(
|
1000
|
-
reader: &mut BinaryReader<'a>,
|
1001
|
-
len: u32,
|
1002
|
-
ctor: fn(&'a [u8], usize) -> Result<T>,
|
1003
|
-
variant: fn(T) -> Payload<'a>,
|
1004
|
-
) -> Result<Payload<'a>> {
|
1005
|
-
let offset = reader.original_position();
|
1006
|
-
let payload = reader.read_bytes(len as usize)?;
|
1007
|
-
// clear the hint for "need this many more bytes" here because we already
|
1008
|
-
// read all the bytes, so it's not possible to read more bytes if this
|
1009
|
-
// fails.
|
1010
|
-
let reader = ctor(payload, offset).map_err(clear_hint)?;
|
1011
|
-
Ok(variant(reader))
|
1012
|
-
}
|
1013
|
-
|
1014
|
-
/// Reads a section that is represented by a single uleb-encoded `u32`.
|
1015
|
-
fn single_item<'a, T>(
|
1016
|
-
reader: &mut BinaryReader<'a>,
|
1017
|
-
len: u32,
|
1018
|
-
desc: &str,
|
1019
|
-
) -> Result<(T, Range<usize>)>
|
1020
|
-
where
|
1021
|
-
T: FromReader<'a>,
|
1022
|
-
{
|
1023
|
-
let range = reader.original_position()..reader.original_position() + len as usize;
|
1024
|
-
let mut content = BinaryReader::new_with_offset(reader.read_bytes(len as usize)?, range.start);
|
1025
|
-
// We can't recover from "unexpected eof" here because our entire section is
|
1026
|
-
// already resident in memory, so clear the hint for how many more bytes are
|
1027
|
-
// expected.
|
1028
|
-
let ret = content.read().map_err(clear_hint)?;
|
1029
|
-
if !content.eof() {
|
1030
|
-
bail!(
|
1031
|
-
content.original_position(),
|
1032
|
-
"unexpected content in the {desc} section",
|
1033
|
-
);
|
1034
|
-
}
|
1035
|
-
Ok((ret, range))
|
1036
|
-
}
|
1037
|
-
|
1038
|
-
/// Attempts to parse using `f`.
|
1039
|
-
///
|
1040
|
-
/// This will update `*len` with the number of bytes consumed, and it will cause
|
1041
|
-
/// a failure to be returned instead of the number of bytes consumed exceeds
|
1042
|
-
/// what `*len` currently is.
|
1043
|
-
fn delimited<'a, T>(
|
1044
|
-
reader: &mut BinaryReader<'a>,
|
1045
|
-
len: &mut u32,
|
1046
|
-
f: impl FnOnce(&mut BinaryReader<'a>) -> Result<T>,
|
1047
|
-
) -> Result<T> {
|
1048
|
-
let start = reader.position;
|
1049
|
-
let ret = f(reader)?;
|
1050
|
-
*len = match (reader.position - start)
|
1051
|
-
.try_into()
|
1052
|
-
.ok()
|
1053
|
-
.and_then(|i| len.checked_sub(i))
|
1054
|
-
{
|
1055
|
-
Some(i) => i,
|
1056
|
-
None => return Err(BinaryReaderError::new("unexpected end-of-file", start)),
|
1057
|
-
};
|
1058
|
-
Ok(ret)
|
1059
|
-
}
|
1060
|
-
|
1061
|
-
impl Default for Parser {
|
1062
|
-
fn default() -> Parser {
|
1063
|
-
Parser::new(0)
|
1064
|
-
}
|
1065
|
-
}
|
1066
|
-
|
1067
|
-
impl Payload<'_> {
|
1068
|
-
/// If this `Payload` represents a section in the original wasm module then
|
1069
|
-
/// the section's id and range within the original wasm binary are returned.
|
1070
|
-
///
|
1071
|
-
/// Not all payloads refer to entire sections, such as the `Version` and
|
1072
|
-
/// `CodeSectionEntry` variants. These variants will return `None` from this
|
1073
|
-
/// function.
|
1074
|
-
///
|
1075
|
-
/// Otherwise this function will return `Some` where the first element is
|
1076
|
-
/// the byte identifier for the section and the second element is the range
|
1077
|
-
/// of the contents of the section within the original wasm binary.
|
1078
|
-
///
|
1079
|
-
/// The purpose of this method is to enable tools to easily iterate over
|
1080
|
-
/// entire sections if necessary and handle sections uniformly, for example
|
1081
|
-
/// dropping custom sections while preserving all other sections.
|
1082
|
-
pub fn as_section(&self) -> Option<(u8, Range<usize>)> {
|
1083
|
-
use Payload::*;
|
1084
|
-
|
1085
|
-
match self {
|
1086
|
-
Version { .. } => None,
|
1087
|
-
TypeSection(s) => Some((TYPE_SECTION, s.range())),
|
1088
|
-
ImportSection(s) => Some((IMPORT_SECTION, s.range())),
|
1089
|
-
FunctionSection(s) => Some((FUNCTION_SECTION, s.range())),
|
1090
|
-
TableSection(s) => Some((TABLE_SECTION, s.range())),
|
1091
|
-
MemorySection(s) => Some((MEMORY_SECTION, s.range())),
|
1092
|
-
TagSection(s) => Some((TAG_SECTION, s.range())),
|
1093
|
-
GlobalSection(s) => Some((GLOBAL_SECTION, s.range())),
|
1094
|
-
ExportSection(s) => Some((EXPORT_SECTION, s.range())),
|
1095
|
-
ElementSection(s) => Some((ELEMENT_SECTION, s.range())),
|
1096
|
-
DataSection(s) => Some((DATA_SECTION, s.range())),
|
1097
|
-
StartSection { range, .. } => Some((START_SECTION, range.clone())),
|
1098
|
-
DataCountSection { range, .. } => Some((DATA_COUNT_SECTION, range.clone())),
|
1099
|
-
CodeSectionStart { range, .. } => Some((CODE_SECTION, range.clone())),
|
1100
|
-
CodeSectionEntry(_) => None,
|
1101
|
-
|
1102
|
-
ModuleSection { range, .. } => Some((COMPONENT_MODULE_SECTION, range.clone())),
|
1103
|
-
InstanceSection(s) => Some((COMPONENT_CORE_INSTANCE_SECTION, s.range())),
|
1104
|
-
CoreTypeSection(s) => Some((COMPONENT_CORE_TYPE_SECTION, s.range())),
|
1105
|
-
ComponentSection { range, .. } => Some((COMPONENT_SECTION, range.clone())),
|
1106
|
-
ComponentInstanceSection(s) => Some((COMPONENT_INSTANCE_SECTION, s.range())),
|
1107
|
-
ComponentAliasSection(s) => Some((COMPONENT_ALIAS_SECTION, s.range())),
|
1108
|
-
ComponentTypeSection(s) => Some((COMPONENT_TYPE_SECTION, s.range())),
|
1109
|
-
ComponentCanonicalSection(s) => Some((COMPONENT_CANONICAL_SECTION, s.range())),
|
1110
|
-
ComponentStartSection { range, .. } => Some((COMPONENT_START_SECTION, range.clone())),
|
1111
|
-
ComponentImportSection(s) => Some((COMPONENT_IMPORT_SECTION, s.range())),
|
1112
|
-
ComponentExportSection(s) => Some((COMPONENT_EXPORT_SECTION, s.range())),
|
1113
|
-
|
1114
|
-
CustomSection(c) => Some((CUSTOM_SECTION, c.range())),
|
1115
|
-
|
1116
|
-
UnknownSection { id, range, .. } => Some((*id, range.clone())),
|
1117
|
-
|
1118
|
-
End(_) => None,
|
1119
|
-
}
|
1120
|
-
}
|
1121
|
-
}
|
1122
|
-
|
1123
|
-
impl fmt::Debug for Payload<'_> {
|
1124
|
-
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
1125
|
-
use Payload::*;
|
1126
|
-
match self {
|
1127
|
-
Version {
|
1128
|
-
num,
|
1129
|
-
encoding,
|
1130
|
-
range,
|
1131
|
-
} => f
|
1132
|
-
.debug_struct("Version")
|
1133
|
-
.field("num", num)
|
1134
|
-
.field("encoding", encoding)
|
1135
|
-
.field("range", range)
|
1136
|
-
.finish(),
|
1137
|
-
|
1138
|
-
// Module sections
|
1139
|
-
TypeSection(_) => f.debug_tuple("TypeSection").field(&"...").finish(),
|
1140
|
-
ImportSection(_) => f.debug_tuple("ImportSection").field(&"...").finish(),
|
1141
|
-
FunctionSection(_) => f.debug_tuple("FunctionSection").field(&"...").finish(),
|
1142
|
-
TableSection(_) => f.debug_tuple("TableSection").field(&"...").finish(),
|
1143
|
-
MemorySection(_) => f.debug_tuple("MemorySection").field(&"...").finish(),
|
1144
|
-
TagSection(_) => f.debug_tuple("TagSection").field(&"...").finish(),
|
1145
|
-
GlobalSection(_) => f.debug_tuple("GlobalSection").field(&"...").finish(),
|
1146
|
-
ExportSection(_) => f.debug_tuple("ExportSection").field(&"...").finish(),
|
1147
|
-
ElementSection(_) => f.debug_tuple("ElementSection").field(&"...").finish(),
|
1148
|
-
DataSection(_) => f.debug_tuple("DataSection").field(&"...").finish(),
|
1149
|
-
StartSection { func, range } => f
|
1150
|
-
.debug_struct("StartSection")
|
1151
|
-
.field("func", func)
|
1152
|
-
.field("range", range)
|
1153
|
-
.finish(),
|
1154
|
-
DataCountSection { count, range } => f
|
1155
|
-
.debug_struct("DataCountSection")
|
1156
|
-
.field("count", count)
|
1157
|
-
.field("range", range)
|
1158
|
-
.finish(),
|
1159
|
-
CodeSectionStart { count, range, size } => f
|
1160
|
-
.debug_struct("CodeSectionStart")
|
1161
|
-
.field("count", count)
|
1162
|
-
.field("range", range)
|
1163
|
-
.field("size", size)
|
1164
|
-
.finish(),
|
1165
|
-
CodeSectionEntry(_) => f.debug_tuple("CodeSectionEntry").field(&"...").finish(),
|
1166
|
-
|
1167
|
-
// Component sections
|
1168
|
-
ModuleSection { parser: _, range } => f
|
1169
|
-
.debug_struct("ModuleSection")
|
1170
|
-
.field("range", range)
|
1171
|
-
.finish(),
|
1172
|
-
InstanceSection(_) => f.debug_tuple("InstanceSection").field(&"...").finish(),
|
1173
|
-
CoreTypeSection(_) => f.debug_tuple("CoreTypeSection").field(&"...").finish(),
|
1174
|
-
ComponentSection { parser: _, range } => f
|
1175
|
-
.debug_struct("ComponentSection")
|
1176
|
-
.field("range", range)
|
1177
|
-
.finish(),
|
1178
|
-
ComponentInstanceSection(_) => f
|
1179
|
-
.debug_tuple("ComponentInstanceSection")
|
1180
|
-
.field(&"...")
|
1181
|
-
.finish(),
|
1182
|
-
ComponentAliasSection(_) => f
|
1183
|
-
.debug_tuple("ComponentAliasSection")
|
1184
|
-
.field(&"...")
|
1185
|
-
.finish(),
|
1186
|
-
ComponentTypeSection(_) => f.debug_tuple("ComponentTypeSection").field(&"...").finish(),
|
1187
|
-
ComponentCanonicalSection(_) => f
|
1188
|
-
.debug_tuple("ComponentCanonicalSection")
|
1189
|
-
.field(&"...")
|
1190
|
-
.finish(),
|
1191
|
-
ComponentStartSection { .. } => f
|
1192
|
-
.debug_tuple("ComponentStartSection")
|
1193
|
-
.field(&"...")
|
1194
|
-
.finish(),
|
1195
|
-
ComponentImportSection(_) => f
|
1196
|
-
.debug_tuple("ComponentImportSection")
|
1197
|
-
.field(&"...")
|
1198
|
-
.finish(),
|
1199
|
-
ComponentExportSection(_) => f
|
1200
|
-
.debug_tuple("ComponentExportSection")
|
1201
|
-
.field(&"...")
|
1202
|
-
.finish(),
|
1203
|
-
|
1204
|
-
CustomSection(c) => f.debug_tuple("CustomSection").field(c).finish(),
|
1205
|
-
|
1206
|
-
UnknownSection { id, range, .. } => f
|
1207
|
-
.debug_struct("UnknownSection")
|
1208
|
-
.field("id", id)
|
1209
|
-
.field("range", range)
|
1210
|
-
.finish(),
|
1211
|
-
|
1212
|
-
End(offset) => f.debug_tuple("End").field(offset).finish(),
|
1213
|
-
}
|
1214
|
-
}
|
1215
|
-
}
|
1216
|
-
|
1217
|
-
fn clear_hint(mut err: BinaryReaderError) -> BinaryReaderError {
|
1218
|
-
err.inner.needed_hint = None;
|
1219
|
-
err
|
1220
|
-
}
|
1221
|
-
|
1222
|
-
#[cfg(test)]
|
1223
|
-
mod tests {
|
1224
|
-
use super::*;
|
1225
|
-
|
1226
|
-
macro_rules! assert_matches {
|
1227
|
-
($a:expr, $b:pat $(,)?) => {
|
1228
|
-
match $a {
|
1229
|
-
$b => {}
|
1230
|
-
a => panic!("`{:?}` doesn't match `{}`", a, stringify!($b)),
|
1231
|
-
}
|
1232
|
-
};
|
1233
|
-
}
|
1234
|
-
|
1235
|
-
#[test]
|
1236
|
-
fn header() {
|
1237
|
-
assert!(Parser::default().parse(&[], true).is_err());
|
1238
|
-
assert_matches!(
|
1239
|
-
Parser::default().parse(&[], false),
|
1240
|
-
Ok(Chunk::NeedMoreData(4)),
|
1241
|
-
);
|
1242
|
-
assert_matches!(
|
1243
|
-
Parser::default().parse(b"\0", false),
|
1244
|
-
Ok(Chunk::NeedMoreData(3)),
|
1245
|
-
);
|
1246
|
-
assert_matches!(
|
1247
|
-
Parser::default().parse(b"\0asm", false),
|
1248
|
-
Ok(Chunk::NeedMoreData(4)),
|
1249
|
-
);
|
1250
|
-
assert_matches!(
|
1251
|
-
Parser::default().parse(b"\0asm\x01\0\0\0", false),
|
1252
|
-
Ok(Chunk::Parsed {
|
1253
|
-
consumed: 8,
|
1254
|
-
payload: Payload::Version { num: 1, .. },
|
1255
|
-
}),
|
1256
|
-
);
|
1257
|
-
}
|
1258
|
-
|
1259
|
-
#[test]
|
1260
|
-
fn header_iter() {
|
1261
|
-
for _ in Parser::default().parse_all(&[]) {}
|
1262
|
-
for _ in Parser::default().parse_all(b"\0") {}
|
1263
|
-
for _ in Parser::default().parse_all(b"\0asm") {}
|
1264
|
-
for _ in Parser::default().parse_all(b"\0asm\x01\x01\x01\x01") {}
|
1265
|
-
}
|
1266
|
-
|
1267
|
-
fn parser_after_header() -> Parser {
|
1268
|
-
let mut p = Parser::default();
|
1269
|
-
assert_matches!(
|
1270
|
-
p.parse(b"\0asm\x01\0\0\0", false),
|
1271
|
-
Ok(Chunk::Parsed {
|
1272
|
-
consumed: 8,
|
1273
|
-
payload: Payload::Version {
|
1274
|
-
num: WASM_MODULE_VERSION,
|
1275
|
-
encoding: Encoding::Module,
|
1276
|
-
..
|
1277
|
-
},
|
1278
|
-
}),
|
1279
|
-
);
|
1280
|
-
p
|
1281
|
-
}
|
1282
|
-
|
1283
|
-
fn parser_after_component_header() -> Parser {
|
1284
|
-
let mut p = Parser::default();
|
1285
|
-
assert_matches!(
|
1286
|
-
p.parse(b"\0asm\x0d\0\x01\0", false),
|
1287
|
-
Ok(Chunk::Parsed {
|
1288
|
-
consumed: 8,
|
1289
|
-
payload: Payload::Version {
|
1290
|
-
num: WASM_COMPONENT_VERSION,
|
1291
|
-
encoding: Encoding::Component,
|
1292
|
-
..
|
1293
|
-
},
|
1294
|
-
}),
|
1295
|
-
);
|
1296
|
-
p
|
1297
|
-
}
|
1298
|
-
|
1299
|
-
#[test]
|
1300
|
-
fn start_section() {
|
1301
|
-
assert_matches!(
|
1302
|
-
parser_after_header().parse(&[], false),
|
1303
|
-
Ok(Chunk::NeedMoreData(1)),
|
1304
|
-
);
|
1305
|
-
assert!(parser_after_header().parse(&[8], true).is_err());
|
1306
|
-
assert!(parser_after_header().parse(&[8, 1], true).is_err());
|
1307
|
-
assert!(parser_after_header().parse(&[8, 2], true).is_err());
|
1308
|
-
assert_matches!(
|
1309
|
-
parser_after_header().parse(&[8], false),
|
1310
|
-
Ok(Chunk::NeedMoreData(1)),
|
1311
|
-
);
|
1312
|
-
assert_matches!(
|
1313
|
-
parser_after_header().parse(&[8, 1], false),
|
1314
|
-
Ok(Chunk::NeedMoreData(1)),
|
1315
|
-
);
|
1316
|
-
assert_matches!(
|
1317
|
-
parser_after_header().parse(&[8, 2], false),
|
1318
|
-
Ok(Chunk::NeedMoreData(2)),
|
1319
|
-
);
|
1320
|
-
assert_matches!(
|
1321
|
-
parser_after_header().parse(&[8, 1, 1], false),
|
1322
|
-
Ok(Chunk::Parsed {
|
1323
|
-
consumed: 3,
|
1324
|
-
payload: Payload::StartSection { func: 1, .. },
|
1325
|
-
}),
|
1326
|
-
);
|
1327
|
-
assert!(parser_after_header().parse(&[8, 2, 1, 1], false).is_err());
|
1328
|
-
assert!(parser_after_header().parse(&[8, 0], false).is_err());
|
1329
|
-
}
|
1330
|
-
|
1331
|
-
#[test]
|
1332
|
-
fn end_works() {
|
1333
|
-
assert_matches!(
|
1334
|
-
parser_after_header().parse(&[], true),
|
1335
|
-
Ok(Chunk::Parsed {
|
1336
|
-
consumed: 0,
|
1337
|
-
payload: Payload::End(8),
|
1338
|
-
}),
|
1339
|
-
);
|
1340
|
-
}
|
1341
|
-
|
1342
|
-
#[test]
|
1343
|
-
fn type_section() {
|
1344
|
-
assert!(parser_after_header().parse(&[1], true).is_err());
|
1345
|
-
assert!(parser_after_header().parse(&[1, 0], false).is_err());
|
1346
|
-
assert!(parser_after_header().parse(&[8, 2], true).is_err());
|
1347
|
-
assert_matches!(
|
1348
|
-
parser_after_header().parse(&[1], false),
|
1349
|
-
Ok(Chunk::NeedMoreData(1)),
|
1350
|
-
);
|
1351
|
-
assert_matches!(
|
1352
|
-
parser_after_header().parse(&[1, 1], false),
|
1353
|
-
Ok(Chunk::NeedMoreData(1)),
|
1354
|
-
);
|
1355
|
-
assert_matches!(
|
1356
|
-
parser_after_header().parse(&[1, 1, 1], false),
|
1357
|
-
Ok(Chunk::Parsed {
|
1358
|
-
consumed: 3,
|
1359
|
-
payload: Payload::TypeSection(_),
|
1360
|
-
}),
|
1361
|
-
);
|
1362
|
-
assert_matches!(
|
1363
|
-
parser_after_header().parse(&[1, 1, 1, 2, 3, 4], false),
|
1364
|
-
Ok(Chunk::Parsed {
|
1365
|
-
consumed: 3,
|
1366
|
-
payload: Payload::TypeSection(_),
|
1367
|
-
}),
|
1368
|
-
);
|
1369
|
-
}
|
1370
|
-
|
1371
|
-
#[test]
|
1372
|
-
fn custom_section() {
|
1373
|
-
assert!(parser_after_header().parse(&[0], true).is_err());
|
1374
|
-
assert!(parser_after_header().parse(&[0, 0], false).is_err());
|
1375
|
-
assert!(parser_after_header().parse(&[0, 1, 1], false).is_err());
|
1376
|
-
assert_matches!(
|
1377
|
-
parser_after_header().parse(&[0, 2, 1], false),
|
1378
|
-
Ok(Chunk::NeedMoreData(1)),
|
1379
|
-
);
|
1380
|
-
assert_matches!(
|
1381
|
-
parser_after_header().parse(&[0, 1, 0], false),
|
1382
|
-
Ok(Chunk::Parsed {
|
1383
|
-
consumed: 3,
|
1384
|
-
payload: Payload::CustomSection(CustomSectionReader {
|
1385
|
-
name: "",
|
1386
|
-
data_offset: 11,
|
1387
|
-
data: b"",
|
1388
|
-
range: Range { start: 10, end: 11 },
|
1389
|
-
}),
|
1390
|
-
}),
|
1391
|
-
);
|
1392
|
-
assert_matches!(
|
1393
|
-
parser_after_header().parse(&[0, 2, 1, b'a'], false),
|
1394
|
-
Ok(Chunk::Parsed {
|
1395
|
-
consumed: 4,
|
1396
|
-
payload: Payload::CustomSection(CustomSectionReader {
|
1397
|
-
name: "a",
|
1398
|
-
data_offset: 12,
|
1399
|
-
data: b"",
|
1400
|
-
range: Range { start: 10, end: 12 },
|
1401
|
-
}),
|
1402
|
-
}),
|
1403
|
-
);
|
1404
|
-
assert_matches!(
|
1405
|
-
parser_after_header().parse(&[0, 2, 0, b'a'], false),
|
1406
|
-
Ok(Chunk::Parsed {
|
1407
|
-
consumed: 4,
|
1408
|
-
payload: Payload::CustomSection(CustomSectionReader {
|
1409
|
-
name: "",
|
1410
|
-
data_offset: 11,
|
1411
|
-
data: b"a",
|
1412
|
-
range: Range { start: 10, end: 12 },
|
1413
|
-
}),
|
1414
|
-
}),
|
1415
|
-
);
|
1416
|
-
}
|
1417
|
-
|
1418
|
-
#[test]
|
1419
|
-
fn function_section() {
|
1420
|
-
assert!(parser_after_header().parse(&[10], true).is_err());
|
1421
|
-
assert!(parser_after_header().parse(&[10, 0], true).is_err());
|
1422
|
-
assert!(parser_after_header().parse(&[10, 1], true).is_err());
|
1423
|
-
assert_matches!(
|
1424
|
-
parser_after_header().parse(&[10], false),
|
1425
|
-
Ok(Chunk::NeedMoreData(1))
|
1426
|
-
);
|
1427
|
-
assert_matches!(
|
1428
|
-
parser_after_header().parse(&[10, 1], false),
|
1429
|
-
Ok(Chunk::NeedMoreData(1))
|
1430
|
-
);
|
1431
|
-
let mut p = parser_after_header();
|
1432
|
-
assert_matches!(
|
1433
|
-
p.parse(&[10, 1, 0], false),
|
1434
|
-
Ok(Chunk::Parsed {
|
1435
|
-
consumed: 3,
|
1436
|
-
payload: Payload::CodeSectionStart { count: 0, .. },
|
1437
|
-
}),
|
1438
|
-
);
|
1439
|
-
assert_matches!(
|
1440
|
-
p.parse(&[], true),
|
1441
|
-
Ok(Chunk::Parsed {
|
1442
|
-
consumed: 0,
|
1443
|
-
payload: Payload::End(11),
|
1444
|
-
}),
|
1445
|
-
);
|
1446
|
-
let mut p = parser_after_header();
|
1447
|
-
assert_matches!(
|
1448
|
-
p.parse(&[10, 2, 1, 0], false),
|
1449
|
-
Ok(Chunk::Parsed {
|
1450
|
-
consumed: 3,
|
1451
|
-
payload: Payload::CodeSectionStart { count: 1, .. },
|
1452
|
-
}),
|
1453
|
-
);
|
1454
|
-
assert_matches!(
|
1455
|
-
p.parse(&[0], false),
|
1456
|
-
Ok(Chunk::Parsed {
|
1457
|
-
consumed: 1,
|
1458
|
-
payload: Payload::CodeSectionEntry(_),
|
1459
|
-
}),
|
1460
|
-
);
|
1461
|
-
assert_matches!(
|
1462
|
-
p.parse(&[], true),
|
1463
|
-
Ok(Chunk::Parsed {
|
1464
|
-
consumed: 0,
|
1465
|
-
payload: Payload::End(12),
|
1466
|
-
}),
|
1467
|
-
);
|
1468
|
-
|
1469
|
-
// 1 byte section with 1 function can't read the function body because
|
1470
|
-
// the section is too small
|
1471
|
-
let mut p = parser_after_header();
|
1472
|
-
assert_matches!(
|
1473
|
-
p.parse(&[10, 1, 1], false),
|
1474
|
-
Ok(Chunk::Parsed {
|
1475
|
-
consumed: 3,
|
1476
|
-
payload: Payload::CodeSectionStart { count: 1, .. },
|
1477
|
-
}),
|
1478
|
-
);
|
1479
|
-
assert_eq!(
|
1480
|
-
p.parse(&[0], false).unwrap_err().message(),
|
1481
|
-
"unexpected end-of-file"
|
1482
|
-
);
|
1483
|
-
|
1484
|
-
// section with 2 functions but section is cut off
|
1485
|
-
let mut p = parser_after_header();
|
1486
|
-
assert_matches!(
|
1487
|
-
p.parse(&[10, 2, 2], false),
|
1488
|
-
Ok(Chunk::Parsed {
|
1489
|
-
consumed: 3,
|
1490
|
-
payload: Payload::CodeSectionStart { count: 2, .. },
|
1491
|
-
}),
|
1492
|
-
);
|
1493
|
-
assert_matches!(
|
1494
|
-
p.parse(&[0], false),
|
1495
|
-
Ok(Chunk::Parsed {
|
1496
|
-
consumed: 1,
|
1497
|
-
payload: Payload::CodeSectionEntry(_),
|
1498
|
-
}),
|
1499
|
-
);
|
1500
|
-
assert_matches!(p.parse(&[], false), Ok(Chunk::NeedMoreData(1)));
|
1501
|
-
assert_eq!(
|
1502
|
-
p.parse(&[0], false).unwrap_err().message(),
|
1503
|
-
"unexpected end-of-file",
|
1504
|
-
);
|
1505
|
-
|
1506
|
-
// trailing data is bad
|
1507
|
-
let mut p = parser_after_header();
|
1508
|
-
assert_matches!(
|
1509
|
-
p.parse(&[10, 3, 1], false),
|
1510
|
-
Ok(Chunk::Parsed {
|
1511
|
-
consumed: 3,
|
1512
|
-
payload: Payload::CodeSectionStart { count: 1, .. },
|
1513
|
-
}),
|
1514
|
-
);
|
1515
|
-
assert_matches!(
|
1516
|
-
p.parse(&[0], false),
|
1517
|
-
Ok(Chunk::Parsed {
|
1518
|
-
consumed: 1,
|
1519
|
-
payload: Payload::CodeSectionEntry(_),
|
1520
|
-
}),
|
1521
|
-
);
|
1522
|
-
assert_eq!(
|
1523
|
-
p.parse(&[0], false).unwrap_err().message(),
|
1524
|
-
"trailing bytes at end of section",
|
1525
|
-
);
|
1526
|
-
}
|
1527
|
-
|
1528
|
-
#[test]
|
1529
|
-
fn single_module() {
|
1530
|
-
let mut p = parser_after_component_header();
|
1531
|
-
assert_matches!(p.parse(&[4], false), Ok(Chunk::NeedMoreData(1)));
|
1532
|
-
|
1533
|
-
// A module that's 8 bytes in length
|
1534
|
-
let mut sub = match p.parse(&[1, 8], false) {
|
1535
|
-
Ok(Chunk::Parsed {
|
1536
|
-
consumed: 2,
|
1537
|
-
payload: Payload::ModuleSection { parser, .. },
|
1538
|
-
}) => parser,
|
1539
|
-
other => panic!("bad parse {:?}", other),
|
1540
|
-
};
|
1541
|
-
|
1542
|
-
// Parse the header of the submodule with the sub-parser.
|
1543
|
-
assert_matches!(sub.parse(&[], false), Ok(Chunk::NeedMoreData(4)));
|
1544
|
-
assert_matches!(sub.parse(b"\0asm", false), Ok(Chunk::NeedMoreData(4)));
|
1545
|
-
assert_matches!(
|
1546
|
-
sub.parse(b"\0asm\x01\0\0\0", false),
|
1547
|
-
Ok(Chunk::Parsed {
|
1548
|
-
consumed: 8,
|
1549
|
-
payload: Payload::Version {
|
1550
|
-
num: 1,
|
1551
|
-
encoding: Encoding::Module,
|
1552
|
-
..
|
1553
|
-
},
|
1554
|
-
}),
|
1555
|
-
);
|
1556
|
-
|
1557
|
-
// The sub-parser should be byte-limited so the next byte shouldn't get
|
1558
|
-
// consumed, it's intended for the parent parser.
|
1559
|
-
assert_matches!(
|
1560
|
-
sub.parse(&[10], false),
|
1561
|
-
Ok(Chunk::Parsed {
|
1562
|
-
consumed: 0,
|
1563
|
-
payload: Payload::End(18),
|
1564
|
-
}),
|
1565
|
-
);
|
1566
|
-
|
1567
|
-
// The parent parser should now be back to resuming, and we simulate it
|
1568
|
-
// being done with bytes to ensure that it's safely at the end,
|
1569
|
-
// completing the module code section.
|
1570
|
-
assert_matches!(p.parse(&[], false), Ok(Chunk::NeedMoreData(1)));
|
1571
|
-
assert_matches!(
|
1572
|
-
p.parse(&[], true),
|
1573
|
-
Ok(Chunk::Parsed {
|
1574
|
-
consumed: 0,
|
1575
|
-
payload: Payload::End(18),
|
1576
|
-
}),
|
1577
|
-
);
|
1578
|
-
}
|
1579
|
-
|
1580
|
-
#[test]
|
1581
|
-
fn nested_section_too_big() {
|
1582
|
-
let mut p = parser_after_component_header();
|
1583
|
-
|
1584
|
-
// A module that's 10 bytes in length
|
1585
|
-
let mut sub = match p.parse(&[1, 10], false) {
|
1586
|
-
Ok(Chunk::Parsed {
|
1587
|
-
consumed: 2,
|
1588
|
-
payload: Payload::ModuleSection { parser, .. },
|
1589
|
-
}) => parser,
|
1590
|
-
other => panic!("bad parse {:?}", other),
|
1591
|
-
};
|
1592
|
-
|
1593
|
-
// use 8 bytes to parse the header, leaving 2 remaining bytes in our
|
1594
|
-
// module.
|
1595
|
-
assert_matches!(
|
1596
|
-
sub.parse(b"\0asm\x01\0\0\0", false),
|
1597
|
-
Ok(Chunk::Parsed {
|
1598
|
-
consumed: 8,
|
1599
|
-
payload: Payload::Version { num: 1, .. },
|
1600
|
-
}),
|
1601
|
-
);
|
1602
|
-
|
1603
|
-
// We can't parse a section which declares its bigger than the outer
|
1604
|
-
// module. This is a custom section, one byte big, with one content byte. The
|
1605
|
-
// content byte, however, lives outside of the parent's module code
|
1606
|
-
// section.
|
1607
|
-
assert_eq!(
|
1608
|
-
sub.parse(&[0, 1, 0], false).unwrap_err().message(),
|
1609
|
-
"section too large",
|
1610
|
-
);
|
1611
|
-
}
|
1612
|
-
}
|