wasmtime 9.0.4 → 10.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Cargo.lock +184 -101
- data/ext/Cargo.toml +6 -6
- data/ext/build.rs +2 -2
- data/ext/cargo-vendor/cranelift-bforest-0.97.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-bforest-0.97.1/Cargo.toml +31 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/Cargo.toml +158 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/benches/x64-evex-encoding.rs +52 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/ir/trapcode.rs +144 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/abi.rs +1294 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/inst/emit.rs +3684 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/inst/emit_tests.rs +7895 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/inst/imms.rs +1210 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/inst/mod.rs +2966 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/inst.isle +4037 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/lower/isle.rs +816 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/lower.isle +2906 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/mod.rs +238 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/mod.rs +424 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/abi.rs +825 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/args.rs +1812 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/emit.rs +3008 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/emit_tests.rs +2338 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/encode.rs +262 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/imms.rs +250 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/mod.rs +1963 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/regs.rs +223 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/unwind/systemv.rs +174 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/vector.rs +669 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst.isle +2915 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst_vector.isle +760 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/lower/isle.rs +553 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/lower.isle +1409 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/mod.rs +216 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/abi.rs +957 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/inst/emit.rs +3707 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/inst/emit_tests.rs +13409 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/inst/mod.rs +3426 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/inst.isle +5046 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/lower.isle +3991 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/mod.rs +213 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/abi.rs +985 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/encoding/evex.rs +749 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/encoding/rex.rs +588 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/encoding/vex.rs +492 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/inst/args.rs +2193 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/inst/emit.rs +4090 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/inst/emit_tests.rs +5674 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/inst/mod.rs +2667 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/inst.isle +5104 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/lower/isle.rs +1148 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/lower.isle +4481 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/lower.rs +328 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/mod.rs +251 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isle_prelude.rs +862 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/abi.rs +2455 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/buffer.rs +2277 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/compile.rs +92 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/isle.rs +827 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/lower.rs +1388 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/mod.rs +549 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/reg.rs +537 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/vcode.rs +1580 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/prelude.isle +578 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/prelude_lower.isle +1012 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/settings.rs +600 -0
- data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/verifier/mod.rs +1884 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.97.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.97.1/Cargo.toml +23 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.97.1/src/isa/x86.rs +444 -0
- data/ext/cargo-vendor/cranelift-codegen-meta-0.97.1/src/shared/settings.rs +348 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.97.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-codegen-shared-0.97.1/Cargo.toml +22 -0
- data/ext/cargo-vendor/cranelift-control-0.97.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-control-0.97.1/Cargo.toml +30 -0
- data/ext/cargo-vendor/cranelift-control-0.97.1/src/chaos.rs +125 -0
- data/ext/cargo-vendor/cranelift-control-0.97.1/src/lib.rs +45 -0
- data/ext/cargo-vendor/cranelift-control-0.97.1/src/zero_sized.rs +53 -0
- data/ext/cargo-vendor/cranelift-entity-0.97.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-entity-0.97.1/Cargo.toml +35 -0
- data/ext/cargo-vendor/cranelift-entity-0.97.1/src/list.rs +955 -0
- data/ext/cargo-vendor/cranelift-frontend-0.97.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-frontend-0.97.1/Cargo.toml +53 -0
- data/ext/cargo-vendor/cranelift-isle-0.97.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-isle-0.97.1/Cargo.toml +37 -0
- data/ext/cargo-vendor/cranelift-native-0.97.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-native-0.97.1/Cargo.toml +38 -0
- data/ext/cargo-vendor/cranelift-native-0.97.1/src/lib.rs +215 -0
- data/ext/cargo-vendor/cranelift-wasm-0.97.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/cranelift-wasm-0.97.1/Cargo.toml +85 -0
- data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/code_translator.rs +3538 -0
- data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/environ/dummy.rs +924 -0
- data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/environ/spec.rs +834 -0
- data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/func_translator.rs +440 -0
- data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/sections_translator.rs +417 -0
- data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/translation_utils.rs +99 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/CONTRIBUTING.md +48 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/COPYRIGHT +17 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/Cargo.toml +84 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/Ideas.md +106 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/LICENSE-APACHE +202 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/LICENSE-MIT +25 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/LICENSE-WHATWG +26 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/README.md +827 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/ci/miri.sh +14 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/Big5.txt +16 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/EUC-JP.txt +12 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/EUC-KR.txt +10 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/GBK.txt +16 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/IBM866.txt +8 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-2022-JP.txt +10 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-10.txt +8 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-13.txt +8 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-14.txt +8 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-15.txt +7 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-16.txt +8 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-2.txt +6 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-3.txt +6 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-4.txt +6 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-5.txt +6 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-6.txt +7 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-7.txt +11 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-8-I.txt +9 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-8.txt +9 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/KOI8-R.txt +6 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/KOI8-U.txt +6 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/Shift_JIS.txt +8 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/UTF-16BE.txt +8 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/UTF-16LE.txt +8 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/UTF-8.txt +5 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/gb18030.txt +9 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/macintosh.txt +7 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/replacement.txt +10 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1250.txt +6 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1251.txt +6 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1252.txt +7 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1253.txt +8 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1254.txt +7 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1255.txt +8 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1256.txt +6 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1257.txt +7 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1258.txt +11 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-874.txt +7 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/x-mac-cyrillic.txt +6 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/doc/x-user-defined.txt +6 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/generate-encoding-data.py +2008 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/rustfmt.toml +1 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/ascii.rs +1546 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/big5.rs +427 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/data.rs +114378 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/euc_jp.rs +469 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/euc_kr.rs +442 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/gb18030.rs +767 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/handles.rs +1969 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/iso_2022_jp.rs +1068 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/lib.rs +6133 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/macros.rs +1622 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/mem.rs +3354 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/replacement.rs +104 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/shift_jis.rs +426 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/simd_funcs.rs +453 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/single_byte.rs +714 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/big5_in.txt +19787 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/big5_in_ref.txt +19787 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/big5_out.txt +14601 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/big5_out_ref.txt +14601 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/euc_kr_in.txt +23945 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/euc_kr_in_ref.txt +23945 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/euc_kr_out.txt +17053 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/euc_kr_out_ref.txt +17053 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/gb18030_in.txt +23945 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/gb18030_in_ref.txt +23945 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/gb18030_out.txt +23944 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/gb18030_out_ref.txt +23944 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/iso_2022_jp_in.txt +8841 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/iso_2022_jp_in_ref.txt +8841 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/iso_2022_jp_out.txt +7404 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/iso_2022_jp_out_ref.txt +7404 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0208_in.txt +8841 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0208_in_ref.txt +8841 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0208_out.txt +7341 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0208_out_ref.txt +7341 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0212_in.txt +8841 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0212_in_ref.txt +8841 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/shift_jis_in.txt +11285 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/shift_jis_in_ref.txt +11285 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/shift_jis_out.txt +7355 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/shift_jis_out_ref.txt +7355 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_labels_names.rs +242 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/testing.rs +262 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/utf_16.rs +472 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/utf_8.rs +1629 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/variant.rs +400 -0
- data/ext/cargo-vendor/encoding_rs-0.8.32/src/x_user_defined.rs +249 -0
- data/ext/cargo-vendor/equivalent-1.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/equivalent-1.0.1/Cargo.toml +27 -0
- data/ext/cargo-vendor/equivalent-1.0.1/LICENSE-APACHE +201 -0
- data/ext/cargo-vendor/equivalent-1.0.1/LICENSE-MIT +25 -0
- data/ext/cargo-vendor/equivalent-1.0.1/README.md +25 -0
- data/ext/cargo-vendor/equivalent-1.0.1/src/lib.rs +113 -0
- data/ext/cargo-vendor/file-per-thread-logger-0.2.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/file-per-thread-logger-0.2.0/Cargo.toml +36 -0
- data/ext/cargo-vendor/file-per-thread-logger-0.2.0/run-tests.sh +12 -0
- data/ext/cargo-vendor/file-per-thread-logger-0.2.0/src/lib.rs +200 -0
- data/ext/cargo-vendor/file-per-thread-logger-0.2.0/tests/test.rs +323 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/CHANGELOG.md +475 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/Cargo.toml +131 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/LICENSE-APACHE +201 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/LICENSE-MIT +25 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/README.md +125 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/benches/bench.rs +331 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/benches/insert_unique_unchecked.rs +32 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/clippy.toml +1 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/mod.rs +6 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rayon/helpers.rs +27 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rayon/map.rs +731 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rayon/mod.rs +4 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rayon/raw.rs +231 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rayon/set.rs +659 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rkyv/hash_map.rs +125 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rkyv/hash_set.rs +123 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rkyv/mod.rs +2 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/serde.rs +201 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/lib.rs +165 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/macros.rs +70 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/map.rs +8506 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/alloc.rs +86 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/bitmask.rs +133 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/generic.rs +157 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/mod.rs +3378 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/neon.rs +124 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/sse2.rs +149 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/rustc_entry.rs +630 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/scopeguard.rs +72 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/src/set.rs +2903 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/tests/equivalent_trait.rs +53 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/tests/hasher.rs +65 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/tests/raw.rs +11 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/tests/rayon.rs +535 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/tests/serde.rs +65 -0
- data/ext/cargo-vendor/hashbrown-0.14.0/tests/set.rs +34 -0
- data/ext/cargo-vendor/indexmap-2.0.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/indexmap-2.0.0/Cargo.toml +112 -0
- data/ext/cargo-vendor/indexmap-2.0.0/LICENSE-APACHE +201 -0
- data/ext/cargo-vendor/indexmap-2.0.0/LICENSE-MIT +25 -0
- data/ext/cargo-vendor/indexmap-2.0.0/README.md +55 -0
- data/ext/cargo-vendor/indexmap-2.0.0/RELEASES.md +424 -0
- data/ext/cargo-vendor/indexmap-2.0.0/benches/bench.rs +763 -0
- data/ext/cargo-vendor/indexmap-2.0.0/benches/faststring.rs +185 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/arbitrary.rs +77 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/lib.rs +278 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/macros.rs +178 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/map/core/raw.rs +217 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/map/core.rs +742 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/map/iter.rs +541 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/map/serde_seq.rs +138 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/map/slice.rs +471 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/map/tests.rs +449 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/map.rs +1223 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/mutable_keys.rs +91 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/rayon/map.rs +679 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/rayon/mod.rs +27 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/rayon/set.rs +774 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/rustc.rs +158 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/serde.rs +151 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/set/iter.rs +543 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/set/slice.rs +278 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/set/tests.rs +545 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/set.rs +1011 -0
- data/ext/cargo-vendor/indexmap-2.0.0/src/util.rs +53 -0
- data/ext/cargo-vendor/indexmap-2.0.0/tests/equivalent_trait.rs +53 -0
- data/ext/cargo-vendor/indexmap-2.0.0/tests/macros_full_path.rs +19 -0
- data/ext/cargo-vendor/indexmap-2.0.0/tests/quick.rs +579 -0
- data/ext/cargo-vendor/indexmap-2.0.0/tests/tests.rs +28 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/Cargo.toml +72 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/deny.toml +28 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/checker.rs +1089 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/fuzzing/func.rs +702 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/index.rs +268 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/data_structures.rs +857 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/liveranges.rs +961 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/merge.rs +368 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/mod.rs +150 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/moves.rs +1017 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/process.rs +1307 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/requirement.rs +174 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/spill.rs +165 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/stackmap.rs +79 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/lib.rs +1526 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/moves.rs +439 -0
- data/ext/cargo-vendor/regalloc2-0.9.2/src/serialize.rs +311 -0
- data/ext/cargo-vendor/semver-1.0.18/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/semver-1.0.18/Cargo.toml +47 -0
- data/ext/cargo-vendor/semver-1.0.18/LICENSE-APACHE +176 -0
- data/ext/cargo-vendor/semver-1.0.18/LICENSE-MIT +23 -0
- data/ext/cargo-vendor/semver-1.0.18/README.md +84 -0
- data/ext/cargo-vendor/semver-1.0.18/benches/parse.rs +24 -0
- data/ext/cargo-vendor/semver-1.0.18/build.rs +75 -0
- data/ext/cargo-vendor/semver-1.0.18/src/backport.rs +23 -0
- data/ext/cargo-vendor/semver-1.0.18/src/display.rs +165 -0
- data/ext/cargo-vendor/semver-1.0.18/src/error.rs +126 -0
- data/ext/cargo-vendor/semver-1.0.18/src/eval.rs +181 -0
- data/ext/cargo-vendor/semver-1.0.18/src/identifier.rs +422 -0
- data/ext/cargo-vendor/semver-1.0.18/src/impls.rs +156 -0
- data/ext/cargo-vendor/semver-1.0.18/src/lib.rs +533 -0
- data/ext/cargo-vendor/semver-1.0.18/src/parse.rs +409 -0
- data/ext/cargo-vendor/semver-1.0.18/src/serde.rs +109 -0
- data/ext/cargo-vendor/semver-1.0.18/tests/node/mod.rs +43 -0
- data/ext/cargo-vendor/semver-1.0.18/tests/test_autotrait.rs +14 -0
- data/ext/cargo-vendor/semver-1.0.18/tests/test_identifier.rs +45 -0
- data/ext/cargo-vendor/semver-1.0.18/tests/test_version.rs +238 -0
- data/ext/cargo-vendor/semver-1.0.18/tests/test_version_req.rs +443 -0
- data/ext/cargo-vendor/semver-1.0.18/tests/util/mod.rs +39 -0
- data/ext/cargo-vendor/sptr-0.3.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/sptr-0.3.2/Cargo.toml +28 -0
- data/ext/cargo-vendor/sptr-0.3.2/README.md +73 -0
- data/ext/cargo-vendor/sptr-0.3.2/src/func.rs +83 -0
- data/ext/cargo-vendor/sptr-0.3.2/src/int.rs +364 -0
- data/ext/cargo-vendor/sptr-0.3.2/src/lib.rs +756 -0
- data/ext/cargo-vendor/wasi-cap-std-sync-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasi-cap-std-sync-10.0.1/Cargo.toml +90 -0
- data/ext/cargo-vendor/wasi-cap-std-sync-10.0.1/src/dir.rs +464 -0
- data/ext/cargo-vendor/wasi-cap-std-sync-10.0.1/src/lib.rs +141 -0
- data/ext/cargo-vendor/wasi-common-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasi-common-10.0.1/Cargo.toml +87 -0
- data/ext/cargo-vendor/wasi-common-10.0.1/src/ctx.rs +128 -0
- data/ext/cargo-vendor/wasi-common-10.0.1/src/file.rs +262 -0
- data/ext/cargo-vendor/wasi-common-10.0.1/src/snapshots/preview_1.rs +1490 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/Cargo.toml +33 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/README.md +80 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/aliases.rs +160 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/canonicals.rs +159 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/components.rs +29 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/exports.rs +127 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/imports.rs +200 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/instances.rs +200 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/modules.rs +29 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/names.rs +149 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/start.rs +52 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/types.rs +759 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component.rs +160 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/code.rs +2913 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/custom.rs +55 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/data.rs +185 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/dump.rs +627 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/elements.rs +224 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/exports.rs +85 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/functions.rs +63 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/globals.rs +90 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/imports.rs +142 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/linking.rs +263 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/memories.rs +99 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/names.rs +265 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/producers.rs +180 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/start.rs +39 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/tables.rs +104 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/tags.rs +85 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/types.rs +246 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core.rs +168 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/lib.rs +215 -0
- data/ext/cargo-vendor/wasm-encoder-0.29.0/src/raw.rs +30 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/Cargo.lock +621 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/Cargo.toml +54 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/benches/benchmark.rs +351 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/binary_reader.rs +1706 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/lib.rs +723 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/parser.rs +1535 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/component/canonicals.rs +119 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/component/exports.rs +117 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/component/imports.rs +137 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/component/instances.rs +163 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/component/types.rs +548 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/core/coredumps.rs +243 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/core/producers.rs +83 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/core/types.rs +874 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/core.rs +35 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/validator/component.rs +3082 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/validator/core.rs +1334 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/validator/names.rs +606 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/validator/operators.rs +3463 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/validator/types.rs +3070 -0
- data/ext/cargo-vendor/wasmparser-0.107.0/src/validator.rs +1589 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/Cargo.lock +644 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/Cargo.toml +54 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/README.md +36 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/benches/benchmark.rs +349 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/examples/simple.rs +37 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/binary_reader.rs +1706 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/lib.rs +726 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/limits.rs +59 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/parser.rs +1612 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/aliases.rs +119 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/canonicals.rs +120 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/exports.rs +117 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/imports.rs +137 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/instances.rs +163 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/names.rs +102 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/start.rs +30 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/types.rs +548 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component.rs +17 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/code.rs +146 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/coredumps.rs +243 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/custom.rs +63 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/data.rs +96 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/dylink0.rs +132 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/elements.rs +152 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/exports.rs +65 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/functions.rs +17 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/globals.rs +49 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/imports.rs +76 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/init.rs +51 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/memories.rs +56 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/names.rs +153 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/operators.rs +354 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/producers.rs +83 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/tables.rs +87 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/tags.rs +32 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/types.rs +1141 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core.rs +37 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/readers.rs +316 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/resources.rs +398 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/component.rs +3148 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/core.rs +1314 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/func.rs +348 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/names.rs +606 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/operators.rs +3466 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/types.rs +3283 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/src/validator.rs +1568 -0
- data/ext/cargo-vendor/wasmparser-0.111.0/tests/big-module.rs +33 -0
- data/ext/cargo-vendor/wasmprinter-0.2.63/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmprinter-0.2.63/Cargo.toml +39 -0
- data/ext/cargo-vendor/wasmprinter-0.2.63/README.md +47 -0
- data/ext/cargo-vendor/wasmprinter-0.2.63/src/lib.rs +2962 -0
- data/ext/cargo-vendor/wasmprinter-0.2.63/src/operator.rs +873 -0
- data/ext/cargo-vendor/wasmprinter-0.2.63/tests/all.rs +278 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/Cargo.toml +183 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/compiler.rs +710 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/component/component.rs +382 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/component/instance.rs +727 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/component/matching.rs +112 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/component/mod.rs +313 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/config.rs +2066 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/engine/serialization.rs +622 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/engine.rs +757 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/externals.rs +763 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/func/typed.rs +638 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/func.rs +2355 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/instance.rs +905 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/lib.rs +486 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/linker.rs +1479 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/memory.rs +950 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/module.rs +1274 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/ref.rs +109 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/store/context.rs +243 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/store/func_refs.rs +85 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/store.rs +2166 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/trampoline/func.rs +133 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/trampoline/global.rs +67 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/types/matching.rs +312 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/types.rs +572 -0
- data/ext/cargo-vendor/wasmtime-10.0.1/src/values.rs +290 -0
- data/ext/cargo-vendor/wasmtime-asm-macros-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-asm-macros-10.0.1/Cargo.toml +22 -0
- data/ext/cargo-vendor/wasmtime-cache-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cache-10.0.1/Cargo.toml +73 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/Cargo.toml +58 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/src/bindgen.rs +316 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/char.wit +13 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/conventions.wit +39 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/direct-import.wit +5 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/empty.wit +2 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/flags.wit +55 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/floats.wit +13 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/function-new.wit +4 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/integers.wit +40 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/lists.wit +85 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/many-arguments.wit +52 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/multi-return.wit +14 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/records.wit +61 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/rename.wit +16 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/share-types.wit +21 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/simple-functions.wit +17 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/simple-lists.wit +13 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/simple-wasi.wit +23 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/small-anonymous.wit +15 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/smoke-default.wit +5 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/smoke-export.wit +7 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/smoke.wit +7 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/strings.wit +12 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/unions.wit +66 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/use-paths.wit +29 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/variants.wit +147 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/worlds-with-types.wit +16 -0
- data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen.rs +24 -0
- data/ext/cargo-vendor/wasmtime-component-util-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-component-util-10.0.1/Cargo.toml +25 -0
- data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/Cargo.toml +90 -0
- data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/src/compiler.rs +1200 -0
- data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/src/debug/transform/simulate.rs +410 -0
- data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/src/func_environ.rs +2206 -0
- data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/src/lib.rs +178 -0
- data/ext/cargo-vendor/wasmtime-cranelift-shared-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-cranelift-shared-10.0.1/Cargo.toml +57 -0
- data/ext/cargo-vendor/wasmtime-cranelift-shared-10.0.1/src/lib.rs +120 -0
- data/ext/cargo-vendor/wasmtime-environ-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-environ-10.0.1/Cargo.lock +681 -0
- data/ext/cargo-vendor/wasmtime-environ-10.0.1/Cargo.toml +116 -0
- data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/component/compiler.rs +84 -0
- data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/component/translate/inline.rs +1067 -0
- data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/component/translate.rs +1070 -0
- data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/component/types.rs +1916 -0
- data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/fact.rs +623 -0
- data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/module.rs +1083 -0
- data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/module_environ.rs +884 -0
- data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/trap_encoding.rs +238 -0
- data/ext/cargo-vendor/wasmtime-fiber-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-fiber-10.0.1/Cargo.toml +46 -0
- data/ext/cargo-vendor/wasmtime-fiber-10.0.1/src/lib.rs +305 -0
- data/ext/cargo-vendor/wasmtime-fiber-10.0.1/src/unix.rs +212 -0
- data/ext/cargo-vendor/wasmtime-fiber-10.0.1/src/windows.rs +161 -0
- data/ext/cargo-vendor/wasmtime-jit-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-10.0.1/Cargo.toml +104 -0
- data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/instantiate.rs +760 -0
- data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/lib.rs +38 -0
- data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/profiling/jitdump.rs +66 -0
- data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/profiling/perfmap.rs +47 -0
- data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/profiling/vtune.rs +80 -0
- data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/profiling.rs +108 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-debug-10.0.1/Cargo.toml +55 -0
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-10.0.1/Cargo.toml +37 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/Cargo.toml +110 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/component.rs +701 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/cow.rs +1060 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/debug_builtins.rs +58 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/externref.rs +1073 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/instance/allocator/pooling.rs +1368 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/instance/allocator.rs +531 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/instance.rs +1345 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/lib.rs +285 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/libcalls.rs +578 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/memory.rs +958 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/mmap/miri.rs +94 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/mmap/unix.rs +148 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/mmap/windows.rs +208 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/send_sync_ptr.rs +69 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/table.rs +595 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/traphandlers/unix.rs +387 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/traphandlers.rs +749 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/vmcontext/vm_host_func_context.rs +137 -0
- data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/vmcontext.rs +1221 -0
- data/ext/cargo-vendor/wasmtime-types-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-types-10.0.1/Cargo.toml +34 -0
- data/ext/cargo-vendor/wasmtime-types-10.0.1/src/lib.rs +462 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/Cargo.toml +153 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/lib.rs +131 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/clocks/host.rs +73 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/clocks.rs +17 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/ctx.rs +206 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/error.rs +16 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/filesystem.rs +269 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/mod.rs +44 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/pipe.rs +233 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview1/mod.rs +1860 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/clocks.rs +80 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/env.rs +48 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/exit.rs +12 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs +1020 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/io.rs +215 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/mod.rs +7 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/poll.rs +84 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/random.rs +41 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/random.rs +58 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/sched/subscription.rs +104 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/sched/sync.rs +156 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/sched.rs +105 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/stdio.rs +176 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/stream.rs +210 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/table.rs +107 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/wasi/command.rs +43 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/wasi/mod.rs +30 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/clocks/monotonic-clock.wit +34 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/clocks/timezone.wit +63 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/clocks/wall-clock.wit +43 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/filesystem/filesystem.wit +782 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/http/incoming-handler.wit +24 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/http/outgoing-handler.wit +18 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/http/types.wit +159 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/io/streams.wit +215 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/logging/handler.wit +34 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/poll/poll.wit +41 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/preview/command-extended.wit +36 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/preview/command.wit +26 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/preview/proxy.wit +9 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/preview/reactor.wit +24 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/random/insecure-seed.wit +24 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/random/insecure.wit +21 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/random/random.wit +25 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/instance-network.wit +9 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/ip-name-lookup.wit +69 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/network.wit +187 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/tcp-create-socket.wit +27 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/tcp.wit +255 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/udp-create-socket.wit +27 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/udp.wit +211 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/wasi-cli-base/environment.wit +16 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/wasi-cli-base/exit.wit +4 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/wasi-cli-base/preopens.wit +7 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/wasi-cli-base/stdio.wit +17 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/main.wit +1 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/test.wit +19 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/witx/typenames.witx +750 -0
- data/ext/cargo-vendor/wasmtime-wasi-10.0.1/witx/wasi_snapshot_preview1.witx +521 -0
- data/ext/cargo-vendor/wasmtime-winch-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-winch-10.0.1/Cargo.toml +63 -0
- data/ext/cargo-vendor/wasmtime-winch-10.0.1/src/compiler.rs +220 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-10.0.1/Cargo.toml +29 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-10.0.1/src/lib.rs +1631 -0
- data/ext/cargo-vendor/wasmtime-wit-bindgen-10.0.1/src/types.rs +179 -0
- data/ext/cargo-vendor/wiggle-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-10.0.1/Cargo.toml +106 -0
- data/ext/cargo-vendor/wiggle-10.0.1/LICENSE +220 -0
- data/ext/cargo-vendor/wiggle-10.0.1/README.md +18 -0
- data/ext/cargo-vendor/wiggle-generate-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-generate-10.0.1/Cargo.toml +58 -0
- data/ext/cargo-vendor/wiggle-generate-10.0.1/LICENSE +220 -0
- data/ext/cargo-vendor/wiggle-macro-10.0.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wiggle-macro-10.0.1/Cargo.toml +55 -0
- data/ext/cargo-vendor/wiggle-macro-10.0.1/LICENSE +220 -0
- data/ext/cargo-vendor/wiggle-macro-10.0.1/src/lib.rs +210 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/Cargo.toml +62 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/abi/local.rs +70 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/abi/mod.rs +237 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/codegen/call.rs +225 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/codegen/context.rs +270 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/codegen/env.rs +52 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/codegen/mod.rs +214 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/frame/mod.rs +172 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/aarch64/abi.rs +243 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/aarch64/asm.rs +300 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/aarch64/masm.rs +230 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/aarch64/mod.rs +127 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/aarch64/regs.rs +166 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/mod.rs +215 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/abi.rs +369 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/address.rs +17 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/asm.rs +576 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/masm.rs +288 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/mod.rs +149 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/regs.rs +192 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/lib.rs +21 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/masm.rs +255 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/regalloc.rs +70 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/stack.rs +235 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/trampoline.rs +494 -0
- data/ext/cargo-vendor/winch-codegen-0.8.1/src/visitor.rs +353 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/Cargo.toml +62 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/src/ast/lex.rs +679 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/src/ast/resolve.rs +1122 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/src/ast.rs +1207 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/src/lib.rs +622 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/src/live.rs +111 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/src/resolve.rs +1307 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/all.rs +168 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/comments.wit +25 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/diamond1/deps/dep1/types.wit +2 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/diamond1/deps/dep2/types.wit +2 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/diamond1/join.wit +6 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/disambiguate-diamond/shared1.wit +3 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/disambiguate-diamond/shared2.wit +3 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/disambiguate-diamond/world.wit +13 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/embedded.wit.md +34 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/empty.wit +1 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/another-pkg/other-doc.wit +3 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/corp/saas.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/different-pkg/the-doc.wit +2 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/foreign-pkg/the-doc.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/some-pkg/some-doc.wit +13 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/wasi/clocks.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/wasi/filesystem.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/root.wit +44 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/functions.wit +14 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/many-names/a.wit +2 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/many-names/b.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/multi-file/bar.wit +21 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/multi-file/cycle-a.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/multi-file/cycle-b.wit +3 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/multi-file/foo.wit +31 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/package-syntax1.wit +1 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/package-syntax3.wit +1 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/package-syntax4.wit +1 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/alias-no-type.wit.result +1 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-function.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-function.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-function2.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-function2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg1/root.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg1.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg2/deps/bar/empty.wit +1 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg2/root.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg3/deps/bar/baz.wit +2 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg3/root.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg3.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg4/deps/bar/baz.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg4/root.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg4.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg5/deps/bar/baz.wit +3 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg5/root.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg5.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg6/deps/bar/baz.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg6/root.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg6.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-world-type1.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-world-type1.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/conflicting-package/a.wit +1 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/conflicting-package/b.wit +1 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/conflicting-package.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle.wit +6 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle2.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle3.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle3.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle4.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle4.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle5.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle5.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-functions.wit +8 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-functions.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-interface.wit +6 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-interface.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-interface2/foo.wit +3 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-interface2/foo2.wit +3 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-interface2.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-type.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-type.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-enum.wit +6 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-enum.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-union.wit +6 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-union.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-variant1.wit +6 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-variant1.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/export-twice.wit +8 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/export-twice.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-export-overlap1.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-export-overlap1.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-export-overlap2.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-export-overlap2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-twice.wit +8 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-twice.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/invalid-md.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/invalid-type-reference.wit +10 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/invalid-type-reference.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/invalid-type-reference2.wit +6 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/invalid-type-reference2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/missing-package.wit.result +1 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/no-access-to-sibling-use/bar.wit +1 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/no-access-to-sibling-use/foo.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/no-access-to-sibling-use.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle/deps/a1/root.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle/root.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle2/deps/a1/root.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle2/deps/a2/root.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle2/root.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/undefined-typed.wit +6 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/undefined-typed.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unknown-interface.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unknown-interface.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface1.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface1.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface2.wit +8 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface3.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface3.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface4.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface4.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use1.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use1.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use10/bar.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use10.wit.result +8 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use2.wit +10 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use3.wit +11 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use3.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use7.wit +10 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use7.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use8.wit +9 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use8.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use9.wit +9 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use9.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict.wit +11 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict2.wit +13 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict3.wit +13 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict3.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-cycle1.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-cycle1.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-cycle4.wit +14 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-cycle4.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-shadow1.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-shadow1.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-interface-clash.wit +3 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-interface-clash.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-same-fields2.wit +8 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-same-fields2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-same-fields3.wit +8 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-same-fields3.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-top-level-func.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-top-level-func.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-top-level-func2.wit +4 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-top-level-func2.wit.result +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/shared-types.wit +10 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/type-then-eof.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/types.wit +61 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/use-chain.wit +11 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/use.wit +34 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/versions/deps/a1/foo.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/versions/deps/a2/foo.wit +5 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/versions/foo.wit +7 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/wasi.wit +178 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-diamond.wit +22 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-iface-no-collide.wit +11 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-implicit-import1.wit +12 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-implicit-import2.wit +11 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-implicit-import3.wit +11 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-same-fields4.wit +13 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-top-level-funcs.wit +9 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/worlds-same-fields5.wit +17 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/worlds-with-types.wit +34 -0
- data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/worlds.wit +37 -0
- data/ext/src/ruby_api/global.rs +3 -3
- data/ext/src/ruby_api/memory/unsafe_slice.rs +9 -3
- data/ext/src/ruby_api/params.rs +14 -12
- data/ext/src/ruby_api/table.rs +1 -1
- data/lib/wasmtime/version.rb +1 -1
- metadata +1418 -1079
- data/ext/cargo-vendor/cranelift-bforest-0.96.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-bforest-0.96.4/Cargo.toml +0 -31
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/Cargo.toml +0 -159
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/benches/x64-evex-encoding.rs +0 -53
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/ir/trapcode.rs +0 -138
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/abi.rs +0 -1281
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/inst/emit.rs +0 -3658
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/inst/emit_tests.rs +0 -7868
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/inst/imms.rs +0 -1215
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/inst/mod.rs +0 -2945
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/inst.isle +0 -4035
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/lower/isle.rs +0 -813
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/lower.isle +0 -2906
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/mod.rs +0 -240
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/mod.rs +0 -420
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/abi.rs +0 -726
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/args.rs +0 -1822
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/emit.rs +0 -2914
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/emit_tests.rs +0 -2317
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/encode.rs +0 -188
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/imms.rs +0 -244
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/mod.rs +0 -1823
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/regs.rs +0 -231
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/unwind/systemv.rs +0 -177
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/vector.rs +0 -354
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst.isle +0 -2746
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst_vector.isle +0 -224
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/lower/isle.rs +0 -544
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/lower.isle +0 -1012
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/mod.rs +0 -219
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/abi.rs +0 -947
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/inst/emit.rs +0 -3697
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/inst/emit_tests.rs +0 -13397
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/inst/mod.rs +0 -3409
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/inst.isle +0 -5045
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/lower.isle +0 -3991
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/mod.rs +0 -215
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/abi.rs +0 -978
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/encoding/evex.rs +0 -403
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/encoding/rex.rs +0 -565
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/encoding/vex.rs +0 -498
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/inst/args.rs +0 -2168
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/inst/emit.rs +0 -3938
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/inst/emit_tests.rs +0 -5669
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/inst/mod.rs +0 -2763
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/inst.isle +0 -5186
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/lower/isle.rs +0 -1158
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/lower.isle +0 -4262
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/lower.rs +0 -328
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/mod.rs +0 -250
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isle_prelude.rs +0 -818
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/abi.rs +0 -2410
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/buffer.rs +0 -2219
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/compile.rs +0 -92
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/isle.rs +0 -827
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/lower.rs +0 -1366
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/mod.rs +0 -538
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/reg.rs +0 -532
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/vcode.rs +0 -1571
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/prelude.isle +0 -552
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/prelude_lower.isle +0 -1012
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/settings.rs +0 -599
- data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/verifier/mod.rs +0 -1881
- data/ext/cargo-vendor/cranelift-codegen-meta-0.96.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-meta-0.96.4/Cargo.toml +0 -23
- data/ext/cargo-vendor/cranelift-codegen-meta-0.96.4/src/isa/x86.rs +0 -445
- data/ext/cargo-vendor/cranelift-codegen-meta-0.96.4/src/shared/settings.rs +0 -331
- data/ext/cargo-vendor/cranelift-codegen-shared-0.96.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-codegen-shared-0.96.4/Cargo.toml +0 -22
- data/ext/cargo-vendor/cranelift-control-0.96.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-control-0.96.4/Cargo.toml +0 -30
- data/ext/cargo-vendor/cranelift-control-0.96.4/src/chaos.rs +0 -78
- data/ext/cargo-vendor/cranelift-control-0.96.4/src/lib.rs +0 -30
- data/ext/cargo-vendor/cranelift-control-0.96.4/src/zero_sized.rs +0 -42
- data/ext/cargo-vendor/cranelift-entity-0.96.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-entity-0.96.4/Cargo.toml +0 -35
- data/ext/cargo-vendor/cranelift-entity-0.96.4/src/list.rs +0 -868
- data/ext/cargo-vendor/cranelift-frontend-0.96.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-frontend-0.96.4/Cargo.toml +0 -53
- data/ext/cargo-vendor/cranelift-isle-0.96.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-isle-0.96.4/Cargo.toml +0 -37
- data/ext/cargo-vendor/cranelift-native-0.96.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-native-0.96.4/Cargo.toml +0 -38
- data/ext/cargo-vendor/cranelift-native-0.96.4/src/lib.rs +0 -216
- data/ext/cargo-vendor/cranelift-wasm-0.96.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/cranelift-wasm-0.96.4/Cargo.toml +0 -85
- data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/code_translator.rs +0 -3479
- data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/environ/dummy.rs +0 -901
- data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/environ/spec.rs +0 -807
- data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/func_translator.rs +0 -419
- data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/sections_translator.rs +0 -429
- data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/translation_utils.rs +0 -108
- data/ext/cargo-vendor/file-per-thread-logger-0.1.6/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/file-per-thread-logger-0.1.6/Cargo.toml +0 -36
- data/ext/cargo-vendor/file-per-thread-logger-0.1.6/run-tests.sh +0 -11
- data/ext/cargo-vendor/file-per-thread-logger-0.1.6/src/lib.rs +0 -162
- data/ext/cargo-vendor/file-per-thread-logger-0.1.6/tests/test.rs +0 -267
- data/ext/cargo-vendor/regalloc2-0.8.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/regalloc2-0.8.1/Cargo.toml +0 -72
- data/ext/cargo-vendor/regalloc2-0.8.1/deny.toml +0 -28
- data/ext/cargo-vendor/regalloc2-0.8.1/src/checker.rs +0 -1089
- data/ext/cargo-vendor/regalloc2-0.8.1/src/fuzzing/func.rs +0 -673
- data/ext/cargo-vendor/regalloc2-0.8.1/src/index.rs +0 -188
- data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/data_structures.rs +0 -688
- data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/liveranges.rs +0 -1012
- data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/merge.rs +0 -394
- data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/mod.rs +0 -152
- data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/moves.rs +0 -985
- data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/process.rs +0 -1322
- data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/requirement.rs +0 -174
- data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/spill.rs +0 -198
- data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/stackmap.rs +0 -74
- data/ext/cargo-vendor/regalloc2-0.8.1/src/lib.rs +0 -1523
- data/ext/cargo-vendor/regalloc2-0.8.1/src/moves.rs +0 -438
- data/ext/cargo-vendor/wasi-cap-std-sync-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasi-cap-std-sync-9.0.4/Cargo.toml +0 -89
- data/ext/cargo-vendor/wasi-cap-std-sync-9.0.4/src/dir.rs +0 -465
- data/ext/cargo-vendor/wasi-cap-std-sync-9.0.4/src/lib.rs +0 -140
- data/ext/cargo-vendor/wasi-common-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasi-common-9.0.4/Cargo.toml +0 -86
- data/ext/cargo-vendor/wasi-common-9.0.4/src/ctx.rs +0 -127
- data/ext/cargo-vendor/wasi-common-9.0.4/src/file.rs +0 -260
- data/ext/cargo-vendor/wasi-common-9.0.4/src/snapshots/preview_1.rs +0 -1490
- data/ext/cargo-vendor/wasmparser-0.103.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmparser-0.103.0/Cargo.lock +0 -692
- data/ext/cargo-vendor/wasmparser-0.103.0/Cargo.toml +0 -54
- data/ext/cargo-vendor/wasmparser-0.103.0/benches/benchmark.rs +0 -350
- data/ext/cargo-vendor/wasmparser-0.103.0/src/binary_reader.rs +0 -1682
- data/ext/cargo-vendor/wasmparser-0.103.0/src/lib.rs +0 -712
- data/ext/cargo-vendor/wasmparser-0.103.0/src/parser.rs +0 -1496
- data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/component/canonicals.rs +0 -95
- data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/component/exports.rs +0 -105
- data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/component/imports.rs +0 -109
- data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/component/instances.rs +0 -164
- data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/component/types.rs +0 -508
- data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/core/producers.rs +0 -78
- data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/core/types.rs +0 -511
- data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/core.rs +0 -33
- data/ext/cargo-vendor/wasmparser-0.103.0/src/validator/component.rs +0 -2097
- data/ext/cargo-vendor/wasmparser-0.103.0/src/validator/core.rs +0 -1278
- data/ext/cargo-vendor/wasmparser-0.103.0/src/validator/operators.rs +0 -3456
- data/ext/cargo-vendor/wasmparser-0.103.0/src/validator/types.rs +0 -2159
- data/ext/cargo-vendor/wasmparser-0.103.0/src/validator.rs +0 -1514
- data/ext/cargo-vendor/wasmtime-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-9.0.4/Cargo.toml +0 -183
- data/ext/cargo-vendor/wasmtime-9.0.4/build.rs +0 -20
- data/ext/cargo-vendor/wasmtime-9.0.4/src/component/component.rs +0 -519
- data/ext/cargo-vendor/wasmtime-9.0.4/src/component/instance.rs +0 -728
- data/ext/cargo-vendor/wasmtime-9.0.4/src/component/matching.rs +0 -112
- data/ext/cargo-vendor/wasmtime-9.0.4/src/component/mod.rs +0 -313
- data/ext/cargo-vendor/wasmtime-9.0.4/src/config.rs +0 -2036
- data/ext/cargo-vendor/wasmtime-9.0.4/src/engine/serialization.rs +0 -613
- data/ext/cargo-vendor/wasmtime-9.0.4/src/engine.rs +0 -729
- data/ext/cargo-vendor/wasmtime-9.0.4/src/externals.rs +0 -762
- data/ext/cargo-vendor/wasmtime-9.0.4/src/func/typed.rs +0 -638
- data/ext/cargo-vendor/wasmtime-9.0.4/src/func.rs +0 -2385
- data/ext/cargo-vendor/wasmtime-9.0.4/src/instance.rs +0 -905
- data/ext/cargo-vendor/wasmtime-9.0.4/src/lib.rs +0 -481
- data/ext/cargo-vendor/wasmtime-9.0.4/src/linker.rs +0 -1479
- data/ext/cargo-vendor/wasmtime-9.0.4/src/memory.rs +0 -948
- data/ext/cargo-vendor/wasmtime-9.0.4/src/module.rs +0 -1542
- data/ext/cargo-vendor/wasmtime-9.0.4/src/ref.rs +0 -108
- data/ext/cargo-vendor/wasmtime-9.0.4/src/store/context.rs +0 -243
- data/ext/cargo-vendor/wasmtime-9.0.4/src/store/func_refs.rs +0 -110
- data/ext/cargo-vendor/wasmtime-9.0.4/src/store.rs +0 -2059
- data/ext/cargo-vendor/wasmtime-9.0.4/src/trampoline/func.rs +0 -171
- data/ext/cargo-vendor/wasmtime-9.0.4/src/trampoline/global.rs +0 -71
- data/ext/cargo-vendor/wasmtime-9.0.4/src/types/matching.rs +0 -254
- data/ext/cargo-vendor/wasmtime-9.0.4/src/types.rs +0 -551
- data/ext/cargo-vendor/wasmtime-9.0.4/src/values.rs +0 -290
- data/ext/cargo-vendor/wasmtime-asm-macros-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-asm-macros-9.0.4/Cargo.toml +0 -22
- data/ext/cargo-vendor/wasmtime-cache-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cache-9.0.4/Cargo.toml +0 -73
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/Cargo.toml +0 -58
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/src/bindgen.rs +0 -316
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/char.wit +0 -11
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/conventions.wit +0 -38
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/direct-import.wit +0 -3
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/empty.wit +0 -1
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/flags.wit +0 -53
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/floats.wit +0 -11
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/function-new.wit +0 -3
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/integers.wit +0 -38
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/lists.wit +0 -83
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/many-arguments.wit +0 -50
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/multi-return.wit +0 -12
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/records.wit +0 -59
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/rename.wit +0 -14
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/share-types.wit +0 -19
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/simple-functions.wit +0 -15
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/simple-lists.wit +0 -11
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/simple-wasi.wit +0 -21
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/small-anonymous.wit +0 -13
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/smoke-default.wit +0 -3
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/smoke-export.wit +0 -5
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/smoke.wit +0 -5
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/strings.wit +0 -10
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/unions.wit +0 -64
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/use-paths.wit +0 -27
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/variants.wit +0 -145
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/worlds-with-types.wit +0 -14
- data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen.rs +0 -30
- data/ext/cargo-vendor/wasmtime-component-util-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-component-util-9.0.4/Cargo.toml +0 -25
- data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/Cargo.toml +0 -90
- data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/src/compiler.rs +0 -1200
- data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/src/debug/transform/simulate.rs +0 -411
- data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/src/func_environ.rs +0 -2162
- data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/src/lib.rs +0 -177
- data/ext/cargo-vendor/wasmtime-cranelift-shared-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-cranelift-shared-9.0.4/Cargo.toml +0 -57
- data/ext/cargo-vendor/wasmtime-cranelift-shared-9.0.4/src/lib.rs +0 -119
- data/ext/cargo-vendor/wasmtime-environ-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-environ-9.0.4/Cargo.lock +0 -735
- data/ext/cargo-vendor/wasmtime-environ-9.0.4/Cargo.toml +0 -116
- data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/component/compiler.rs +0 -84
- data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/component/translate/inline.rs +0 -1064
- data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/component/translate.rs +0 -1066
- data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/component/types.rs +0 -1903
- data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/fact.rs +0 -622
- data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/module.rs +0 -1043
- data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/module_environ.rs +0 -841
- data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/trap_encoding.rs +0 -234
- data/ext/cargo-vendor/wasmtime-fiber-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-fiber-9.0.4/Cargo.toml +0 -46
- data/ext/cargo-vendor/wasmtime-fiber-9.0.4/src/lib.rs +0 -293
- data/ext/cargo-vendor/wasmtime-fiber-9.0.4/src/unix.rs +0 -199
- data/ext/cargo-vendor/wasmtime-fiber-9.0.4/src/windows.rs +0 -156
- data/ext/cargo-vendor/wasmtime-jit-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-9.0.4/Cargo.toml +0 -100
- data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/instantiate.rs +0 -786
- data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/lib.rs +0 -39
- data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/jitdump_disabled.rs +0 -32
- data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/jitdump_linux.rs +0 -444
- data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/perfmap_disabled.rs +0 -28
- data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/perfmap_linux.rs +0 -104
- data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/vtune.rs +0 -147
- data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/vtune_disabled.rs +0 -32
- data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling.rs +0 -74
- data/ext/cargo-vendor/wasmtime-jit-debug-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-debug-9.0.4/Cargo.toml +0 -55
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-jit-icache-coherence-9.0.4/Cargo.toml +0 -37
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/Cargo.toml +0 -107
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/component.rs +0 -724
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/cow.rs +0 -1063
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/debug_builtins.rs +0 -56
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/externref.rs +0 -1078
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/instance/allocator/pooling.rs +0 -1371
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/instance/allocator.rs +0 -528
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/instance.rs +0 -1267
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/lib.rs +0 -286
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/libcalls.rs +0 -597
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/memory.rs +0 -945
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/mmap/miri.rs +0 -93
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/mmap/unix.rs +0 -147
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/mmap/windows.rs +0 -207
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/table.rs +0 -573
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/traphandlers/unix.rs +0 -387
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/traphandlers.rs +0 -664
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/vmcontext/vm_host_func_context.rs +0 -147
- data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/vmcontext.rs +0 -1244
- data/ext/cargo-vendor/wasmtime-types-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-types-9.0.4/Cargo.toml +0 -34
- data/ext/cargo-vendor/wasmtime-types-9.0.4/src/lib.rs +0 -413
- data/ext/cargo-vendor/wasmtime-wasi-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wasi-9.0.4/Cargo.toml +0 -67
- data/ext/cargo-vendor/wasmtime-wasi-9.0.4/src/lib.rs +0 -128
- data/ext/cargo-vendor/wasmtime-winch-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-winch-9.0.4/Cargo.toml +0 -66
- data/ext/cargo-vendor/wasmtime-winch-9.0.4/src/compiler.rs +0 -191
- data/ext/cargo-vendor/wasmtime-wit-bindgen-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasmtime-wit-bindgen-9.0.4/Cargo.toml +0 -29
- data/ext/cargo-vendor/wasmtime-wit-bindgen-9.0.4/src/lib.rs +0 -1488
- data/ext/cargo-vendor/wasmtime-wit-bindgen-9.0.4/src/types.rs +0 -178
- data/ext/cargo-vendor/wiggle-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-9.0.4/Cargo.toml +0 -106
- data/ext/cargo-vendor/wiggle-9.0.4/README.md +0 -18
- data/ext/cargo-vendor/wiggle-generate-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-generate-9.0.4/Cargo.toml +0 -58
- data/ext/cargo-vendor/wiggle-macro-9.0.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wiggle-macro-9.0.4/Cargo.toml +0 -55
- data/ext/cargo-vendor/wiggle-macro-9.0.4/src/lib.rs +0 -210
- data/ext/cargo-vendor/winch-codegen-0.7.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/winch-codegen-0.7.4/Cargo.toml +0 -59
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/abi/local.rs +0 -69
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/abi/mod.rs +0 -223
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/codegen/call.rs +0 -215
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/codegen/context.rs +0 -259
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/codegen/env.rs +0 -19
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/codegen/mod.rs +0 -183
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/frame/mod.rs +0 -166
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/aarch64/abi.rs +0 -221
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/aarch64/asm.rs +0 -244
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/aarch64/masm.rs +0 -221
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/aarch64/mod.rs +0 -122
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/aarch64/regs.rs +0 -160
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/mod.rs +0 -202
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/abi.rs +0 -337
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/address.rs +0 -17
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/asm.rs +0 -499
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/masm.rs +0 -267
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/mod.rs +0 -135
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/regs.rs +0 -178
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/lib.rs +0 -20
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/masm.rs +0 -213
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/regalloc.rs +0 -61
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/stack.rs +0 -230
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/trampoline.rs +0 -206
- data/ext/cargo-vendor/winch-codegen-0.7.4/src/visitor.rs +0 -215
- data/ext/cargo-vendor/winch-environ-0.7.4/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/winch-environ-0.7.4/Cargo.toml +0 -28
- data/ext/cargo-vendor/winch-environ-0.7.4/src/lib.rs +0 -41
- data/ext/cargo-vendor/wit-parser-0.7.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wit-parser-0.7.1/Cargo.toml +0 -59
- data/ext/cargo-vendor/wit-parser-0.7.1/src/ast/lex.rs +0 -662
- data/ext/cargo-vendor/wit-parser-0.7.1/src/ast/resolve.rs +0 -1072
- data/ext/cargo-vendor/wit-parser-0.7.1/src/ast.rs +0 -1099
- data/ext/cargo-vendor/wit-parser-0.7.1/src/lib.rs +0 -617
- data/ext/cargo-vendor/wit-parser-0.7.1/src/live.rs +0 -123
- data/ext/cargo-vendor/wit-parser-0.7.1/src/resolve.rs +0 -1478
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/all.rs +0 -168
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/comments.wit +0 -23
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/disambiguate-diamond/shared1.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/disambiguate-diamond/shared2.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/disambiguate-diamond/world.wit +0 -11
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/embedded.wit.md +0 -32
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/another-pkg/other-doc.wit +0 -1
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/corp/saas.wit +0 -2
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/different-pkg/the-doc.wit +0 -1
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/foreign-pkg/the-doc.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/some-pkg/some-doc.wit +0 -11
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/wasi/clocks.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/wasi/filesystem.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/root.wit +0 -31
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/functions.wit +0 -12
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/multi-file/bar.wit +0 -19
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/multi-file/foo.wit +0 -15
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/alias-no-type.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-diamond/a.wit +0 -9
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-diamond/b.wit +0 -9
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-diamond/join.wit +0 -4
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-diamond.wit.result +0 -8
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-function.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-function.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-function2.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-function2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg1/root.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg1.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg2/root.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg3/deps/bar/baz.wit +0 -0
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg3/root.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg3.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg4/deps/bar/baz.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg4/root.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg4.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg5/deps/bar/baz.wit +0 -2
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg5/root.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg5.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg6/deps/bar/baz.wit +0 -0
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg6/root.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg6.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-world-type1.wit +0 -4
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-world-type1.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-world-type2.wit +0 -9
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-world-type2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle2.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle3.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle3.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle4.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle4.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle5.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle5.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/default-interface1.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/default-interface1.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/default-world1.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/default-world1.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-functions.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-functions.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-interface.wit +0 -4
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-interface.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-type.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-type.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-enum.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-enum.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-union.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-union.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-variant1.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-variant1.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap1.wit +0 -4
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap1.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap2.wit +0 -4
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap3.wit +0 -11
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap3.wit.result +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid-md.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid-type-reference.wit +0 -8
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid-type-reference.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid-type-reference2.wit +0 -4
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid-type-reference2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid@filename.wit +0 -0
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid@filename.wit.result +0 -4
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle/deps/a1/root.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle/root.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle2/deps/a1/root.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle2/deps/a2/root.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle2/root.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/undefined-typed.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/undefined-typed.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unknown-interface.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unknown-interface.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface1.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface1.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface2.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface3.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface3.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface4.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface4.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface5.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface5.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use1.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use1.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use10/bar.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use10.wit.result +0 -8
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use11/bar.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use11/foo.wit +0 -2
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use11.wit.result +0 -8
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use2.wit +0 -8
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use3.wit +0 -9
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use3.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use4.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use4.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use5.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use5.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use6.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use6.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use7.wit +0 -8
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use7.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use8.wit +0 -7
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use8.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use9.wit +0 -7
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use9.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict.wit +0 -9
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict2.wit +0 -11
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict3.wit +0 -11
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict3.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle1.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle1.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle2.wit +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle3.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle3.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle4.wit +0 -13
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle4.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-from-package-world.wit +0 -8
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-from-package-world.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-from-package-world2/bar.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-from-package-world2/foo.wit +0 -2
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-from-package-world2.wit.result +0 -8
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import1.wit +0 -10
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import1.wit.result +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import2.wit +0 -9
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import3.wit +0 -9
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import3.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-interface-clash.wit +0 -2
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-interface-clash.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields.wit +0 -9
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields2.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields3.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields3.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields4.wit +0 -11
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields4.wit.result +0 -8
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-import.wit +0 -6
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-import.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-top-level-func.wit +0 -4
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-top-level-func.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-top-level-func2.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-top-level-func2.wit.result +0 -5
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/worlds-same-fields5.wit +0 -16
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/worlds-same-fields5.wit.result +0 -9
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/shared-types.wit +0 -8
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/type-then-eof.wit +0 -3
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/types.wit +0 -59
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/use.wit +0 -33
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/wasi.wit +0 -176
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/world-diamond.wit +0 -20
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/world-top-level-funcs.wit +0 -7
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/worlds-with-types.wit +0 -32
- data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/worlds.wit +0 -40
- /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/node.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/path.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/pool.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/set.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/build.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/alias_analysis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/binemit/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/binemit/stack_map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/bitset.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/cfg_printer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/context.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ctxhash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/cursor.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/data_value.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/dbg.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/dce.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/dominator_tree.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/egraph/cost.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/egraph/domtree.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/egraph/elaborate.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/egraph.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/flowgraph.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/fx.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/incremental_cache.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/inst_predicates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/atomic_rmw_op.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/builder.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/condcodes.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/constant.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/dfg.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/dynamic_type.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/entities.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/extfunc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/extname.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/function.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/globalvalue.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/immediates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/jumptable.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/known_symbol.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/layout.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/libcall.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/memflags.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/progpoint.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/sourceloc.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/stackslot.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/inst/args.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/inst_neon.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/lower_dynamic_neon.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/call_conv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/riscv64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/riscv64/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/riscv64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/inst/args.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/inst/imms.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/lower/isle.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/lower.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/unwind/winx64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/encoding/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/inst/regs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/inst/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/inst/unwind/winx64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/inst/unwind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/lower/isle/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/iterators.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/legalizer/globalvalue.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/legalizer/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/legalizer/table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/loop_analysis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/machinst/blockorder.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/machinst/helpers.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/machinst/inst_common.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/machinst/valueregs.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/nan_canonicalization.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/arithmetic.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/bitops.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/cprop.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/extends.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/generated_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/icmp.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/remat.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/selects.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/shifts.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/prelude_opt.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/print_errors.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/remove_constant_phis.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/result.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/scoped_hash_map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/souper_harvest.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/timing.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/unionfind.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/unreachable_code.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/value_label.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/write.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/formats.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/isa.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/operands.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/typevar.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/gen_inst.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/gen_settings.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/gen_types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/isa/arm64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/isa/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/isa/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/isa/s390x.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/entities.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/formats.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/immediates.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/instructions.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/types.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/srcgen.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/unique_table.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.96.4 → cranelift-codegen-shared-0.97.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.96.4 → cranelift-codegen-shared-0.97.1}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.96.4 → cranelift-codegen-shared-0.97.1}/src/constant_hash.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.96.4 → cranelift-codegen-shared-0.97.1}/src/constants.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-codegen-shared-0.96.4 → cranelift-codegen-shared-0.97.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.96.4 → cranelift-control-0.97.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-control-0.96.4 → cranelift-control-0.97.1}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/boxed_slice.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/iter.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/keys.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/map.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/packed_option.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/primary.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/set.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/sparse.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/src/frontend.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/src/ssa.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/src/switch.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/src/variable.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/build.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/bad_converters.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/error1.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/extra_parens.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/impure_expression.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/impure_rhs.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/multi_internal_etor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/multi_prio.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/borrows.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/borrows_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/iflets.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/iflets_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/multi_constructor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/multi_constructor_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/multi_extractor.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/multi_extractor_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/test.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/test_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/bound_var.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/construct_and_extract.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/conversions.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/conversions_extern.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/let.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/nodebug.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/prio_trie_bug.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/test2.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/test3.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/test4.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/tutorial.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/run/iconst.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/run/iconst_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/run/let_shadowing.isle +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/run/let_shadowing_main.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/ast.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/codegen.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/compile.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/lexer.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/log.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/overlap.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/parser.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/sema.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/serialize.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/trie_again.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/tests/run_tests.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.96.4 → cranelift-native-0.97.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.96.4 → cranelift-native-0.97.1}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-native-0.96.4 → cranelift-native-0.97.1}/src/riscv.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/README.md +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/code_translator/bounds_checks.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/environ/mod.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/heap.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/module_translator.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/state.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/tests/wasm_testsuite.rs +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/arith.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/br_table.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/call-simd.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/call.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/embenchen_fannkuch.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/embenchen_fasta.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/embenchen_ifs.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/embenchen_primes.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/fac-multi-value.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/fibonacci.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/globals.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/icall-simd.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/icall.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-0.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-1.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-2.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-3.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-4.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-5.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-6.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-unreachable-else-params-2.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-unreachable-else-params.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/issue-1306-name-section-with-u32-max-function-index.wasm +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/memory.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-0.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-1.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-10.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-11.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-12.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-13.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-14.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-15.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-16.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-17.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-2.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-3.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-4.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-5.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-6.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-7.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-8.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-9.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/nullref.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/passive-data.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/pr2303.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/pr2559.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/ref-func-0.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/rust_fannkuch.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/select.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/simd-store.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/simd.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/table-copy.wat +0 -0
- /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/unreachable_code.wat +0 -0
- /data/ext/cargo-vendor/{file-per-thread-logger-0.1.6 → file-per-thread-logger-0.2.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{file-per-thread-logger-0.1.6 → file-per-thread-logger-0.2.0}/README.md +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/README.md +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/doc/DESIGN.md +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/doc/TODO +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/cfg.rs +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/domtree.rs +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/fuzzing/mod.rs +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/indexset.rs +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/ion/dump.rs +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/ion/redundant_moves.rs +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/ion/reg_traversal.rs +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/postorder.rs +0 -0
- /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/ssa.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/file.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/net.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/sched/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/sched/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/stdio.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/docs/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/docs.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_clock.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_environ.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_fd.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_path.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_poll.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_proc.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_sched.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/old/snapshot_0/docs.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/old/snapshot_0/witx/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/old/snapshot_0/witx/wasi_unstable.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/snapshot/docs.html +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/snapshot/docs.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/snapshot/witx/typenames.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/proposal-template/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/proposals/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/snapshots/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/standard/README.md +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/clocks.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/dir.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/pipe.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/random.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/sched/subscription.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/sched.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/snapshots/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/snapshots/preview_0.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/snapshots/preview_1/error.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/string_array.rs +0 -0
- /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/table.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasm-encoder-0.29.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmparser-0.107.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/examples/simple.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/limits.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/component/aliases.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/component/names.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/component/start.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/code.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/custom.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/data.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/elements.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/exports.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/functions.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/globals.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/imports.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/init.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/memories.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/names.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/operators.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/tables.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/tags.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/resources.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/validator/func.rs +0 -0
- /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/tests/big-module.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmparser-0.111.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmprinter-0.2.63}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/code.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/func/host.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/func/options.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/func/typed.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/func.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/linker.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/storage.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/store.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/values.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/limits.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/module/registry.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/profiling.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/signatures.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/store/data.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/trampoline/memory.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/trampoline/table.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/trampoline.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/trap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-asm-macros-9.0.4 → wasmtime-asm-macros-10.0.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-cache-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/config/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/config.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/worker/tests/system_time_stub.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/worker/tests.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/worker.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/tests/cache_write_default_config.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-9.0.4 → wasmtime-component-macro-10.0.1}/src/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-macro-9.0.4 → wasmtime-component-macro-10.0.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-component-util-9.0.4 → wasmtime-component-util-10.0.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-cranelift-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/SECURITY.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/compiler/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/gc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/address_transform.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/attr.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/expression.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/line_program.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/mod.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/range_info_builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/refs.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/unit.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/utils.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/write_debuginfo.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-9.0.4 → wasmtime-cranelift-shared-10.0.1}/src/compiled_function.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-9.0.4 → wasmtime-cranelift-shared-10.0.1}/src/isa_builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-cranelift-shared-9.0.4 → wasmtime-cranelift-shared-10.0.1}/src/obj.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-environ-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/examples/factc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/address_map.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/builtin.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/compilation.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/component/dfg.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/component/info.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/component/translate/adapt.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/component/vmcomponent_offsets.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/component.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/fact/core_types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/fact/signature.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/fact/trampoline.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/fact/transcode.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/fact/traps.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/module_types.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/obj.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/ref_bits.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/scopevec.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/stack_map.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/tunables.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/vmoffsets.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-types-9.0.4 → wasmtime-fiber-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/aarch64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/arm.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/s390x.S +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/x86.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/x86_64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/windows.c +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-9.0.4 → wasmtime-jit-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/code_memory.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/debug.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/demangling.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/unwind/miri.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/unwind/systemv.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/unwind/winx64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/unwind.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-9.0.4 → wasmtime-jit-debug-10.0.1}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-9.0.4 → wasmtime-jit-debug-10.0.1}/src/gdb_jit_int.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-9.0.4 → wasmtime-jit-debug-10.0.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-debug-9.0.4 → wasmtime-jit-debug-10.0.1}/src/perf_jitdump.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-9.0.4 → wasmtime-jit-icache-coherence-10.0.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-9.0.4 → wasmtime-jit-icache-coherence-10.0.1}/src/libc.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-9.0.4 → wasmtime-jit-icache-coherence-10.0.1}/src/miri.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-9.0.4 → wasmtime-jit-icache-coherence-10.0.1}/src/win.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-9.0.4 → wasmtime-runtime-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/component/transcode.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/export.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/helpers.c +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/imports.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/instance/allocator/pooling/index_allocator.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/instance/allocator/pooling/unix.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/instance/allocator/pooling/windows.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/mmap.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/mmap_vec.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/module_id.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/parking_spot.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/store_box.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines/aarch64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines/s390x.S +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines/s390x.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines/x86_64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/backtrace/aarch64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/backtrace/riscv64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/backtrace/s390x.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/backtrace/x86_64.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/backtrace.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/macos.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/windows.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wasmtime-types-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-types-9.0.4 → wasmtime-types-10.0.1}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-macro-9.0.4 → wasmtime-wasi-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-9.0.4 → wasmtime-wasi-10.0.1}/README.md +0 -0
- /data/ext/cargo-vendor/{wasmtime-wasi-9.0.4 → wasmtime-wasi-10.0.1}/build.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-9.0.4 → wasmtime-winch-10.0.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-9.0.4 → wasmtime-winch-10.0.1}/src/builder.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-winch-9.0.4 → wasmtime-winch-10.0.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wit-bindgen-9.0.4 → wasmtime-wit-bindgen-10.0.1}/src/rust.rs +0 -0
- /data/ext/cargo-vendor/{wasmtime-wit-bindgen-9.0.4 → wasmtime-wit-bindgen-10.0.1}/src/source.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/borrow.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/guest_type.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/region.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/wasmtime.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/README.md +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/codegen_settings.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/config.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/funcs.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/lifetimes.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/module_trait.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/names.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/error.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/flags.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/handle.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/mod.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/record.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/variant.rs +0 -0
- /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/wasmtime.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.7.4 → winch-codegen-0.8.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.7.4 → winch-codegen-0.8.1}/build.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.7.4 → winch-codegen-0.8.1}/src/isa/aarch64/address.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.7.4 → winch-codegen-0.8.1}/src/isa/reg.rs +0 -0
- /data/ext/cargo-vendor/{winch-codegen-0.7.4 → winch-codegen-0.8.1}/src/regset.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/README.md +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/src/abi.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/src/ast/toposort.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/src/sizealign.rs +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/alias-no-type.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/async.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/async1.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/bad-list.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/bad-list.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/dangling-type.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/dangling-type.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/invalid-md.md +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/invalid-toplevel.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/invalid-toplevel.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/keyword.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/keyword.wit.result +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1/tests/ui/empty.wit → wit-parser-0.8.0/tests/ui/parse-fail/missing-package.wit} +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/unresolved-use10/foo.wit +0 -0
- /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/unterminated-string.wit.result +0 -0
@@ -0,0 +1,2962 @@
|
|
1
|
+
//! A crate to convert a WebAssembly binary to its textual representation in the
|
2
|
+
//! WebAssembly Text Format (WAT).
|
3
|
+
//!
|
4
|
+
//! This crate is intended for developer toolchains and debugging, supporting
|
5
|
+
//! human-readable versions of a wasm binary. This can also be useful when
|
6
|
+
//! developing wasm toolchain support in Rust for various purposes like testing
|
7
|
+
//! and debugging and such.
|
8
|
+
|
9
|
+
#![deny(missing_docs)]
|
10
|
+
|
11
|
+
use anyhow::{bail, Context, Result};
|
12
|
+
use std::collections::{HashMap, HashSet};
|
13
|
+
use std::fmt::{self, Write};
|
14
|
+
use std::mem;
|
15
|
+
use std::path::Path;
|
16
|
+
use wasmparser::*;
|
17
|
+
|
18
|
+
const MAX_LOCALS: u32 = 50000;
|
19
|
+
const MAX_NESTING_TO_PRINT: u32 = 50;
|
20
|
+
const MAX_WASM_FUNCTIONS: u32 = 1_000_000;
|
21
|
+
|
22
|
+
mod operator;
|
23
|
+
|
24
|
+
/// Reads a WebAssembly `file` from the filesystem and then prints it into an
|
25
|
+
/// in-memory `String`.
|
26
|
+
pub fn print_file(file: impl AsRef<Path>) -> Result<String> {
|
27
|
+
let file = file.as_ref();
|
28
|
+
let contents = std::fs::read(file).context(format!("failed to read `{}`", file.display()))?;
|
29
|
+
Printer::new().print(&contents)
|
30
|
+
}
|
31
|
+
|
32
|
+
/// Prints an in-memory `wasm` binary blob into an in-memory `String` which is
|
33
|
+
/// its textual representation.
|
34
|
+
pub fn print_bytes(wasm: impl AsRef<[u8]>) -> Result<String> {
|
35
|
+
Printer::new().print(wasm.as_ref())
|
36
|
+
}
|
37
|
+
|
38
|
+
/// Context used for printing a WebAssembly binary.
|
39
|
+
///
|
40
|
+
/// This is largely only required if you'd like to register custom printers for
|
41
|
+
/// custom sections in a wasm binary.
|
42
|
+
#[derive(Default)]
|
43
|
+
pub struct Printer {
|
44
|
+
print_offsets: bool,
|
45
|
+
print_skeleton: bool,
|
46
|
+
printers: HashMap<String, Box<dyn FnMut(&mut Printer, usize, &[u8]) -> Result<()>>>,
|
47
|
+
result: String,
|
48
|
+
/// The `i`th line in `result` is at offset `lines[i]`.
|
49
|
+
lines: Vec<usize>,
|
50
|
+
/// The binary offset for the `i`th line is `line_offsets[i]`.
|
51
|
+
line_offsets: Vec<Option<usize>>,
|
52
|
+
nesting: u32,
|
53
|
+
line: usize,
|
54
|
+
group_lines: Vec<usize>,
|
55
|
+
}
|
56
|
+
|
57
|
+
#[derive(Default)]
|
58
|
+
struct CoreState {
|
59
|
+
types: Vec<Option<SubType>>,
|
60
|
+
funcs: u32,
|
61
|
+
memories: u32,
|
62
|
+
tags: u32,
|
63
|
+
globals: u32,
|
64
|
+
tables: u32,
|
65
|
+
labels: u32,
|
66
|
+
modules: u32,
|
67
|
+
instances: u32,
|
68
|
+
func_names: HashMap<u32, Naming>,
|
69
|
+
local_names: HashMap<(u32, u32), Naming>,
|
70
|
+
label_names: HashMap<(u32, u32), Naming>,
|
71
|
+
type_names: HashMap<u32, Naming>,
|
72
|
+
table_names: HashMap<u32, Naming>,
|
73
|
+
memory_names: HashMap<u32, Naming>,
|
74
|
+
global_names: HashMap<u32, Naming>,
|
75
|
+
element_names: HashMap<u32, Naming>,
|
76
|
+
data_names: HashMap<u32, Naming>,
|
77
|
+
module_names: HashMap<u32, Naming>,
|
78
|
+
instance_names: HashMap<u32, Naming>,
|
79
|
+
}
|
80
|
+
|
81
|
+
#[derive(Default)]
|
82
|
+
struct ComponentState {
|
83
|
+
types: u32,
|
84
|
+
funcs: u32,
|
85
|
+
instances: u32,
|
86
|
+
components: u32,
|
87
|
+
values: u32,
|
88
|
+
type_names: HashMap<u32, Naming>,
|
89
|
+
func_names: HashMap<u32, Naming>,
|
90
|
+
component_names: HashMap<u32, Naming>,
|
91
|
+
instance_names: HashMap<u32, Naming>,
|
92
|
+
value_names: HashMap<u32, Naming>,
|
93
|
+
}
|
94
|
+
|
95
|
+
struct State {
|
96
|
+
encoding: Encoding,
|
97
|
+
name: Option<Naming>,
|
98
|
+
core: CoreState,
|
99
|
+
component: ComponentState,
|
100
|
+
}
|
101
|
+
|
102
|
+
impl State {
|
103
|
+
fn new(encoding: Encoding) -> Self {
|
104
|
+
Self {
|
105
|
+
encoding,
|
106
|
+
name: None,
|
107
|
+
core: CoreState::default(),
|
108
|
+
component: ComponentState::default(),
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
struct Naming {
|
114
|
+
identifier: Option<String>,
|
115
|
+
name: String,
|
116
|
+
}
|
117
|
+
|
118
|
+
impl Printer {
|
119
|
+
/// Creates a new `Printer` object that's ready to start printing wasm
|
120
|
+
/// binaries to strings.
|
121
|
+
pub fn new() -> Self {
|
122
|
+
Self::default()
|
123
|
+
}
|
124
|
+
|
125
|
+
/// Whether or not to print binary offsets of each item as comments in the
|
126
|
+
/// text format whenever a newline is printed.
|
127
|
+
pub fn print_offsets(&mut self, print: bool) {
|
128
|
+
self.print_offsets = print;
|
129
|
+
}
|
130
|
+
|
131
|
+
/// Whether or not to print only a "skeleton" which skips function bodies,
|
132
|
+
/// data segment contents, element segment contents, etc.
|
133
|
+
pub fn print_skeleton(&mut self, print: bool) {
|
134
|
+
self.print_skeleton = print;
|
135
|
+
}
|
136
|
+
|
137
|
+
/// Registers a custom `printer` function to get invoked whenever a custom
|
138
|
+
/// section of name `section` is seen.
|
139
|
+
///
|
140
|
+
/// This can be used to register printers into a textual format for custom
|
141
|
+
/// sections, such as by emitting annotations and/or other textual
|
142
|
+
/// references (maybe comments!)
|
143
|
+
///
|
144
|
+
/// By default all custom sections are ignored for the text format.
|
145
|
+
///
|
146
|
+
/// The `printer` function provided takes three arguments:
|
147
|
+
///
|
148
|
+
/// * A `&mut Printer`, or where to print results to
|
149
|
+
/// * A `usize` offset which is the start of the offset for the custom
|
150
|
+
/// section
|
151
|
+
/// * A byte slice which is the actual contents of the custom section.
|
152
|
+
pub fn add_custom_section_printer(
|
153
|
+
&mut self,
|
154
|
+
section: &str,
|
155
|
+
printer: impl FnMut(&mut Printer, usize, &[u8]) -> Result<()> + 'static,
|
156
|
+
) {
|
157
|
+
self.printers.insert(section.to_string(), Box::new(printer));
|
158
|
+
}
|
159
|
+
|
160
|
+
/// Gets the output result of this `Printer`, or where all output is going.
|
161
|
+
pub fn result_mut(&mut self) -> &mut String {
|
162
|
+
&mut self.result
|
163
|
+
}
|
164
|
+
|
165
|
+
/// Prints a WebAssembly binary into a `String`
|
166
|
+
///
|
167
|
+
/// This function takes an entire `wasm` binary blob and will print it to
|
168
|
+
/// the WebAssembly Text Format and return the result as a `String`.
|
169
|
+
pub fn print(&mut self, wasm: &[u8]) -> Result<String> {
|
170
|
+
self.print_contents(wasm)?;
|
171
|
+
Ok(mem::take(&mut self.result))
|
172
|
+
}
|
173
|
+
|
174
|
+
/// Get the line-by-line WAT disassembly for the given Wasm, along with the
|
175
|
+
/// binary offsets for each line.
|
176
|
+
pub fn offsets_and_lines<'a>(
|
177
|
+
&'a mut self,
|
178
|
+
wasm: &[u8],
|
179
|
+
) -> Result<impl Iterator<Item = (Option<usize>, &'a str)> + 'a> {
|
180
|
+
self.print_contents(wasm)?;
|
181
|
+
|
182
|
+
let end = self.result.len();
|
183
|
+
let result = &self.result;
|
184
|
+
|
185
|
+
let mut offsets = self.line_offsets.iter().copied();
|
186
|
+
let mut lines = self.lines.iter().copied().peekable();
|
187
|
+
|
188
|
+
Ok(std::iter::from_fn(move || {
|
189
|
+
let offset = offsets.next()?;
|
190
|
+
let i = lines.next()?;
|
191
|
+
let j = lines.peek().copied().unwrap_or(end);
|
192
|
+
let line = &result[i..j];
|
193
|
+
Some((offset, line))
|
194
|
+
}))
|
195
|
+
}
|
196
|
+
|
197
|
+
fn read_names_and_code<'a>(
|
198
|
+
&mut self,
|
199
|
+
mut bytes: &'a [u8],
|
200
|
+
mut parser: Parser,
|
201
|
+
state: &mut State,
|
202
|
+
code: &mut Vec<FunctionBody<'a>>,
|
203
|
+
) -> Result<()> {
|
204
|
+
loop {
|
205
|
+
let payload = match parser.parse(bytes, true)? {
|
206
|
+
Chunk::NeedMoreData(_) => unreachable!(),
|
207
|
+
Chunk::Parsed { payload, consumed } => {
|
208
|
+
bytes = &bytes[consumed..];
|
209
|
+
payload
|
210
|
+
}
|
211
|
+
};
|
212
|
+
|
213
|
+
match payload {
|
214
|
+
Payload::FunctionSection(s) => {
|
215
|
+
if s.count() > MAX_WASM_FUNCTIONS {
|
216
|
+
bail!(
|
217
|
+
"module contains {} functions which exceeds the limit of {}",
|
218
|
+
s.count(),
|
219
|
+
MAX_WASM_FUNCTIONS
|
220
|
+
);
|
221
|
+
}
|
222
|
+
code.reserve(s.count() as usize);
|
223
|
+
}
|
224
|
+
Payload::CodeSectionEntry(f) => {
|
225
|
+
code.push(f);
|
226
|
+
}
|
227
|
+
Payload::ModuleSection { range, .. } | Payload::ComponentSection { range, .. } => {
|
228
|
+
let offset = range.end - range.start;
|
229
|
+
if offset > bytes.len() {
|
230
|
+
bail!("invalid module or component section range");
|
231
|
+
}
|
232
|
+
bytes = &bytes[offset..];
|
233
|
+
}
|
234
|
+
|
235
|
+
// Ignore any error associated with the name sections.
|
236
|
+
Payload::CustomSection(c) if c.name() == "name" => {
|
237
|
+
let reader = NameSectionReader::new(c.data(), c.data_offset());
|
238
|
+
drop(self.register_names(state, reader));
|
239
|
+
}
|
240
|
+
Payload::CustomSection(c) if c.name() == "component-name" => {
|
241
|
+
let reader = ComponentNameSectionReader::new(c.data(), c.data_offset());
|
242
|
+
drop(self.register_component_names(state, reader));
|
243
|
+
}
|
244
|
+
|
245
|
+
Payload::End(_) => break,
|
246
|
+
_ => {}
|
247
|
+
}
|
248
|
+
}
|
249
|
+
|
250
|
+
Ok(())
|
251
|
+
}
|
252
|
+
|
253
|
+
fn ensure_module(states: &[State]) -> Result<()> {
|
254
|
+
if !matches!(states.last().unwrap().encoding, Encoding::Module) {
|
255
|
+
bail!("a module section was encountered when parsing a component");
|
256
|
+
}
|
257
|
+
|
258
|
+
Ok(())
|
259
|
+
}
|
260
|
+
|
261
|
+
fn ensure_component(states: &[State]) -> Result<()> {
|
262
|
+
if !matches!(states.last().unwrap().encoding, Encoding::Component) {
|
263
|
+
bail!("a component section was encountered when parsing a module");
|
264
|
+
}
|
265
|
+
|
266
|
+
Ok(())
|
267
|
+
}
|
268
|
+
|
269
|
+
fn print_contents(&mut self, mut bytes: &[u8]) -> Result<()> {
|
270
|
+
self.lines.clear();
|
271
|
+
self.lines.push(0);
|
272
|
+
self.line_offsets.clear();
|
273
|
+
self.line_offsets.push(Some(0));
|
274
|
+
|
275
|
+
let mut expected = None;
|
276
|
+
let mut states: Vec<State> = Vec::new();
|
277
|
+
let mut parser = Parser::new(0);
|
278
|
+
let mut parsers = Vec::new();
|
279
|
+
let mut code = Vec::new();
|
280
|
+
let mut code_printed = false;
|
281
|
+
|
282
|
+
loop {
|
283
|
+
let payload = match parser.parse(bytes, true)? {
|
284
|
+
Chunk::NeedMoreData(_) => unreachable!(),
|
285
|
+
Chunk::Parsed { payload, consumed } => {
|
286
|
+
bytes = &bytes[consumed..];
|
287
|
+
payload
|
288
|
+
}
|
289
|
+
};
|
290
|
+
match payload {
|
291
|
+
Payload::Version { encoding, .. } => {
|
292
|
+
if let Some(e) = expected {
|
293
|
+
if encoding != e {
|
294
|
+
bail!("incorrect encoding for nested module or component");
|
295
|
+
}
|
296
|
+
expected = None;
|
297
|
+
}
|
298
|
+
|
299
|
+
assert!(states.last().map(|s| s.encoding) != Some(Encoding::Module));
|
300
|
+
|
301
|
+
match encoding {
|
302
|
+
Encoding::Module => {
|
303
|
+
states.push(State::new(Encoding::Module));
|
304
|
+
if states.len() > 1 {
|
305
|
+
self.start_group("core module");
|
306
|
+
} else {
|
307
|
+
self.start_group("module");
|
308
|
+
}
|
309
|
+
|
310
|
+
if states.len() > 1 {
|
311
|
+
let parent = &states[states.len() - 2];
|
312
|
+
self.result.push(' ');
|
313
|
+
self.print_name(&parent.core.module_names, parent.core.modules)?;
|
314
|
+
}
|
315
|
+
}
|
316
|
+
Encoding::Component => {
|
317
|
+
states.push(State::new(Encoding::Component));
|
318
|
+
self.start_group("component");
|
319
|
+
|
320
|
+
if states.len() > 1 {
|
321
|
+
let parent = &states[states.len() - 2];
|
322
|
+
self.result.push(' ');
|
323
|
+
self.print_name(
|
324
|
+
&parent.component.component_names,
|
325
|
+
parent.component.components,
|
326
|
+
)?;
|
327
|
+
}
|
328
|
+
}
|
329
|
+
}
|
330
|
+
|
331
|
+
let len = states.len();
|
332
|
+
let state = states.last_mut().unwrap();
|
333
|
+
|
334
|
+
// First up try to find the `name` subsection which we'll use to print
|
335
|
+
// pretty names everywhere. Also look for the `code` section so we can
|
336
|
+
// print out functions as soon as we hit the function section.
|
337
|
+
code.clear();
|
338
|
+
code_printed = false;
|
339
|
+
self.read_names_and_code(bytes, parser.clone(), state, &mut code)?;
|
340
|
+
|
341
|
+
if len == 1 {
|
342
|
+
if let Some(name) = state.name.as_ref() {
|
343
|
+
self.result.push(' ');
|
344
|
+
name.write(&mut self.result);
|
345
|
+
}
|
346
|
+
}
|
347
|
+
}
|
348
|
+
Payload::CustomSection(c) => {
|
349
|
+
let mut printed = false;
|
350
|
+
let mut printers = mem::take(&mut self.printers);
|
351
|
+
if let Some(printer) = printers.get_mut(c.name()) {
|
352
|
+
printer(self, c.data_offset(), c.data())?;
|
353
|
+
printed = true;
|
354
|
+
}
|
355
|
+
self.printers = printers;
|
356
|
+
|
357
|
+
// Attempt to print this custom section if it wasn't already
|
358
|
+
// handled specifically above. Note that custom sections are
|
359
|
+
// allowed to be invalid, so any parse error here is ignored
|
360
|
+
// and resets the output to what it was when this started.
|
361
|
+
// Otherwise I/O errors and other things are plumbed through
|
362
|
+
// in case they happen.
|
363
|
+
if printed {
|
364
|
+
continue;
|
365
|
+
}
|
366
|
+
let cur = self.result.len();
|
367
|
+
let err = match self.print_custom_section(c.clone()) {
|
368
|
+
Ok(()) => continue,
|
369
|
+
Err(e) => e,
|
370
|
+
};
|
371
|
+
if !err.is::<BinaryReaderError>() {
|
372
|
+
return Err(err);
|
373
|
+
}
|
374
|
+
self.result.truncate(cur);
|
375
|
+
let msg = format!("failed to parse custom section `{}`: {err}", c.name());
|
376
|
+
for line in msg.lines() {
|
377
|
+
self.newline(c.data_offset());
|
378
|
+
self.result.push_str(";; ");
|
379
|
+
self.result.push_str(line);
|
380
|
+
}
|
381
|
+
self.newline(c.range().end);
|
382
|
+
}
|
383
|
+
Payload::TypeSection(s) => self.print_types(states.last_mut().unwrap(), s)?,
|
384
|
+
Payload::ImportSection(s) => {
|
385
|
+
Self::ensure_module(&states)?;
|
386
|
+
self.print_imports(states.last_mut().unwrap(), s)?
|
387
|
+
}
|
388
|
+
Payload::FunctionSection(reader) => {
|
389
|
+
Self::ensure_module(&states)?;
|
390
|
+
if mem::replace(&mut code_printed, true) {
|
391
|
+
bail!("function section appeared twice in module");
|
392
|
+
}
|
393
|
+
if reader.count() == 0 {
|
394
|
+
continue;
|
395
|
+
}
|
396
|
+
self.print_code(states.last_mut().unwrap(), &code, reader)?;
|
397
|
+
}
|
398
|
+
Payload::TableSection(s) => {
|
399
|
+
Self::ensure_module(&states)?;
|
400
|
+
self.print_tables(states.last_mut().unwrap(), s)?
|
401
|
+
}
|
402
|
+
Payload::MemorySection(s) => {
|
403
|
+
Self::ensure_module(&states)?;
|
404
|
+
self.print_memories(states.last_mut().unwrap(), s)?
|
405
|
+
}
|
406
|
+
Payload::TagSection(s) => {
|
407
|
+
Self::ensure_module(&states)?;
|
408
|
+
self.print_tags(states.last_mut().unwrap(), s)?
|
409
|
+
}
|
410
|
+
Payload::GlobalSection(s) => {
|
411
|
+
Self::ensure_module(&states)?;
|
412
|
+
self.print_globals(states.last_mut().unwrap(), s)?
|
413
|
+
}
|
414
|
+
Payload::ExportSection(s) => {
|
415
|
+
Self::ensure_module(&states)?;
|
416
|
+
self.print_exports(states.last().unwrap(), s)?
|
417
|
+
}
|
418
|
+
Payload::StartSection { func, range } => {
|
419
|
+
Self::ensure_module(&states)?;
|
420
|
+
self.newline(range.start);
|
421
|
+
self.start_group("start ");
|
422
|
+
self.print_idx(&states.last().unwrap().core.func_names, func)?;
|
423
|
+
self.end_group();
|
424
|
+
}
|
425
|
+
Payload::ElementSection(s) => {
|
426
|
+
Self::ensure_module(&states)?;
|
427
|
+
self.print_elems(states.last_mut().unwrap(), s)?;
|
428
|
+
}
|
429
|
+
// printed with the `Function` section, so we
|
430
|
+
// skip this section
|
431
|
+
Payload::CodeSectionStart { size, .. } => {
|
432
|
+
Self::ensure_module(&states)?;
|
433
|
+
bytes = &bytes[size as usize..];
|
434
|
+
parser.skip_section();
|
435
|
+
}
|
436
|
+
Payload::CodeSectionEntry(_) => unreachable!(),
|
437
|
+
Payload::DataCountSection { .. } => {
|
438
|
+
Self::ensure_module(&states)?;
|
439
|
+
// not part of the text format
|
440
|
+
}
|
441
|
+
Payload::DataSection(s) => {
|
442
|
+
Self::ensure_module(&states)?;
|
443
|
+
self.print_data(states.last_mut().unwrap(), s)?;
|
444
|
+
}
|
445
|
+
|
446
|
+
Payload::ModuleSection {
|
447
|
+
parser: inner,
|
448
|
+
range,
|
449
|
+
} => {
|
450
|
+
Self::ensure_component(&states)?;
|
451
|
+
expected = Some(Encoding::Module);
|
452
|
+
parsers.push(parser);
|
453
|
+
parser = inner;
|
454
|
+
self.newline(range.start);
|
455
|
+
}
|
456
|
+
Payload::InstanceSection(s) => {
|
457
|
+
Self::ensure_component(&states)?;
|
458
|
+
self.print_instances(states.last_mut().unwrap(), s)?;
|
459
|
+
}
|
460
|
+
Payload::CoreTypeSection(s) => self.print_core_types(&mut states, s)?,
|
461
|
+
Payload::ComponentSection {
|
462
|
+
parser: inner,
|
463
|
+
range,
|
464
|
+
} => {
|
465
|
+
Self::ensure_component(&states)?;
|
466
|
+
expected = Some(Encoding::Component);
|
467
|
+
parsers.push(parser);
|
468
|
+
parser = inner;
|
469
|
+
self.newline(range.start);
|
470
|
+
}
|
471
|
+
Payload::ComponentInstanceSection(s) => {
|
472
|
+
Self::ensure_component(&states)?;
|
473
|
+
self.print_component_instances(states.last_mut().unwrap(), s)?;
|
474
|
+
}
|
475
|
+
Payload::ComponentAliasSection(s) => {
|
476
|
+
Self::ensure_component(&states)?;
|
477
|
+
self.print_component_aliases(&mut states, s)?;
|
478
|
+
}
|
479
|
+
Payload::ComponentTypeSection(s) => {
|
480
|
+
Self::ensure_component(&states)?;
|
481
|
+
self.print_component_types(&mut states, s)?;
|
482
|
+
}
|
483
|
+
Payload::ComponentCanonicalSection(s) => {
|
484
|
+
Self::ensure_component(&states)?;
|
485
|
+
self.print_canonical_functions(states.last_mut().unwrap(), s)?;
|
486
|
+
}
|
487
|
+
Payload::ComponentStartSection { start, range } => {
|
488
|
+
Self::ensure_component(&states)?;
|
489
|
+
self.print_component_start(states.last_mut().unwrap(), range.start, start)?;
|
490
|
+
}
|
491
|
+
Payload::ComponentImportSection(s) => {
|
492
|
+
Self::ensure_component(&states)?;
|
493
|
+
self.print_component_imports(states.last_mut().unwrap(), s)?;
|
494
|
+
}
|
495
|
+
Payload::ComponentExportSection(s) => {
|
496
|
+
Self::ensure_component(&states)?;
|
497
|
+
self.print_component_exports(states.last_mut().unwrap(), s)?;
|
498
|
+
}
|
499
|
+
|
500
|
+
Payload::End(_) => {
|
501
|
+
self.end_group(); // close the `module` or `component` group
|
502
|
+
|
503
|
+
let state = states.pop().unwrap();
|
504
|
+
if let Some(parent) = states.last_mut() {
|
505
|
+
match state.encoding {
|
506
|
+
Encoding::Module => {
|
507
|
+
parent.core.modules += 1;
|
508
|
+
}
|
509
|
+
Encoding::Component => {
|
510
|
+
parent.component.components += 1;
|
511
|
+
}
|
512
|
+
}
|
513
|
+
parser = parsers.pop().unwrap();
|
514
|
+
} else {
|
515
|
+
break;
|
516
|
+
}
|
517
|
+
}
|
518
|
+
|
519
|
+
Payload::UnknownSection { id, .. } => bail!("found unknown section `{}`", id),
|
520
|
+
}
|
521
|
+
}
|
522
|
+
|
523
|
+
Ok(())
|
524
|
+
}
|
525
|
+
|
526
|
+
fn start_group(&mut self, name: &str) {
|
527
|
+
self.result.push('(');
|
528
|
+
self.result.push_str(name);
|
529
|
+
self.nesting += 1;
|
530
|
+
self.group_lines.push(self.line);
|
531
|
+
}
|
532
|
+
|
533
|
+
fn end_group(&mut self) {
|
534
|
+
self.nesting -= 1;
|
535
|
+
if let Some(line) = self.group_lines.pop() {
|
536
|
+
if line != self.line {
|
537
|
+
self.newline_unknown_pos();
|
538
|
+
}
|
539
|
+
}
|
540
|
+
self.result.push(')');
|
541
|
+
}
|
542
|
+
|
543
|
+
fn register_names(&mut self, state: &mut State, names: NameSectionReader<'_>) -> Result<()> {
|
544
|
+
fn indirect_name_map(
|
545
|
+
into: &mut HashMap<(u32, u32), Naming>,
|
546
|
+
names: IndirectNameMap<'_>,
|
547
|
+
name: &str,
|
548
|
+
) -> Result<()> {
|
549
|
+
for indirect in names {
|
550
|
+
let indirect = indirect?;
|
551
|
+
let mut used = match name {
|
552
|
+
// labels can be shadowed, so maintaining the used names is not useful.
|
553
|
+
"label" => None,
|
554
|
+
"local" => Some(HashSet::new()),
|
555
|
+
_ => unimplemented!("{name} is an unknown type of indirect names"),
|
556
|
+
};
|
557
|
+
for naming in indirect.names {
|
558
|
+
let naming = naming?;
|
559
|
+
into.insert(
|
560
|
+
(indirect.index, naming.index),
|
561
|
+
Naming::new(naming.name, naming.index, name, used.as_mut()),
|
562
|
+
);
|
563
|
+
}
|
564
|
+
}
|
565
|
+
Ok(())
|
566
|
+
}
|
567
|
+
|
568
|
+
for section in names {
|
569
|
+
match section? {
|
570
|
+
Name::Module { name, .. } => {
|
571
|
+
let name = Naming::new(name, 0, "module", None);
|
572
|
+
state.name = Some(name);
|
573
|
+
}
|
574
|
+
Name::Function(n) => name_map(&mut state.core.func_names, n, "func")?,
|
575
|
+
Name::Local(n) => indirect_name_map(&mut state.core.local_names, n, "local")?,
|
576
|
+
Name::Label(n) => indirect_name_map(&mut state.core.label_names, n, "label")?,
|
577
|
+
Name::Type(n) => name_map(&mut state.core.type_names, n, "type")?,
|
578
|
+
Name::Table(n) => name_map(&mut state.core.table_names, n, "table")?,
|
579
|
+
Name::Memory(n) => name_map(&mut state.core.memory_names, n, "memory")?,
|
580
|
+
Name::Global(n) => name_map(&mut state.core.global_names, n, "global")?,
|
581
|
+
Name::Element(n) => name_map(&mut state.core.element_names, n, "elem")?,
|
582
|
+
Name::Data(n) => name_map(&mut state.core.data_names, n, "data")?,
|
583
|
+
Name::Unknown { .. } => (),
|
584
|
+
}
|
585
|
+
}
|
586
|
+
Ok(())
|
587
|
+
}
|
588
|
+
|
589
|
+
fn register_component_names(
|
590
|
+
&mut self,
|
591
|
+
state: &mut State,
|
592
|
+
names: ComponentNameSectionReader<'_>,
|
593
|
+
) -> Result<()> {
|
594
|
+
for section in names {
|
595
|
+
match section? {
|
596
|
+
ComponentName::Component { name, .. } => {
|
597
|
+
let name = Naming::new(name, 0, "component", None);
|
598
|
+
state.name = Some(name);
|
599
|
+
}
|
600
|
+
ComponentName::CoreFuncs(n) => {
|
601
|
+
name_map(&mut state.core.func_names, n, "core-func")?
|
602
|
+
}
|
603
|
+
ComponentName::CoreTypes(n) => {
|
604
|
+
name_map(&mut state.core.type_names, n, "core-type")?
|
605
|
+
}
|
606
|
+
ComponentName::CoreTables(n) => {
|
607
|
+
name_map(&mut state.core.table_names, n, "core-table")?
|
608
|
+
}
|
609
|
+
ComponentName::CoreMemories(n) => {
|
610
|
+
name_map(&mut state.core.memory_names, n, "core-memory")?
|
611
|
+
}
|
612
|
+
ComponentName::CoreGlobals(n) => {
|
613
|
+
name_map(&mut state.core.global_names, n, "core-global")?
|
614
|
+
}
|
615
|
+
ComponentName::CoreModules(n) => {
|
616
|
+
name_map(&mut state.core.module_names, n, "core-module")?
|
617
|
+
}
|
618
|
+
ComponentName::CoreInstances(n) => {
|
619
|
+
name_map(&mut state.core.instance_names, n, "core-instance")?
|
620
|
+
}
|
621
|
+
ComponentName::Types(n) => name_map(&mut state.component.type_names, n, "type")?,
|
622
|
+
ComponentName::Instances(n) => {
|
623
|
+
name_map(&mut state.component.instance_names, n, "instance")?
|
624
|
+
}
|
625
|
+
ComponentName::Components(n) => {
|
626
|
+
name_map(&mut state.component.component_names, n, "component")?
|
627
|
+
}
|
628
|
+
ComponentName::Funcs(n) => name_map(&mut state.component.func_names, n, "func")?,
|
629
|
+
ComponentName::Values(n) => name_map(&mut state.component.value_names, n, "value")?,
|
630
|
+
ComponentName::Unknown { .. } => (),
|
631
|
+
}
|
632
|
+
}
|
633
|
+
Ok(())
|
634
|
+
}
|
635
|
+
|
636
|
+
fn print_core_type(&mut self, states: &mut Vec<State>, ty: CoreType) -> Result<()> {
|
637
|
+
self.start_group("core type ");
|
638
|
+
self.print_name(
|
639
|
+
&states.last().unwrap().core.type_names,
|
640
|
+
states.last().unwrap().core.types.len() as u32,
|
641
|
+
)?;
|
642
|
+
let ty = match ty {
|
643
|
+
CoreType::Func(ty) => {
|
644
|
+
self.result.push(' ');
|
645
|
+
self.start_group("func");
|
646
|
+
self.print_func_type(states.last().unwrap(), &ty, None)?;
|
647
|
+
self.end_group();
|
648
|
+
Some(SubType {
|
649
|
+
is_final: false,
|
650
|
+
supertype_idx: None,
|
651
|
+
structural_type: StructuralType::Func(ty),
|
652
|
+
})
|
653
|
+
}
|
654
|
+
CoreType::Module(decls) => {
|
655
|
+
self.print_module_type(states, decls.into_vec())?;
|
656
|
+
None
|
657
|
+
}
|
658
|
+
};
|
659
|
+
self.end_group(); // `core type` itself
|
660
|
+
|
661
|
+
states.last_mut().unwrap().core.types.push(ty);
|
662
|
+
Ok(())
|
663
|
+
}
|
664
|
+
|
665
|
+
fn print_type(&mut self, state: &mut State, ty: SubType) -> Result<()> {
|
666
|
+
self.start_group("type ");
|
667
|
+
self.print_name(&state.core.type_names, state.core.types.len() as u32)?;
|
668
|
+
self.result.push(' ');
|
669
|
+
self.print_sub(state, &ty, None)?;
|
670
|
+
self.end_group(); // `type`
|
671
|
+
state.core.types.push(Some(ty));
|
672
|
+
Ok(())
|
673
|
+
}
|
674
|
+
|
675
|
+
fn print_sub(&mut self, state: &State, ty: &SubType, names_for: Option<u32>) -> Result<u32> {
|
676
|
+
let r = if ty.is_final || !ty.supertype_idx.is_none() {
|
677
|
+
self.start_group("sub");
|
678
|
+
self.print_sub_type(state, ty)?;
|
679
|
+
let r = self.print_structural(state, &ty.structural_type, names_for)?;
|
680
|
+
self.end_group(); // `sub`
|
681
|
+
r
|
682
|
+
} else {
|
683
|
+
self.print_structural(state, &ty.structural_type, names_for)?
|
684
|
+
};
|
685
|
+
Ok(r)
|
686
|
+
}
|
687
|
+
|
688
|
+
fn print_structural(
|
689
|
+
&mut self,
|
690
|
+
state: &State,
|
691
|
+
ty: &StructuralType,
|
692
|
+
names_for: Option<u32>,
|
693
|
+
) -> Result<u32> {
|
694
|
+
let r = match &ty {
|
695
|
+
StructuralType::Func(ty) => {
|
696
|
+
self.start_group("func");
|
697
|
+
let r = self.print_func_type(state, ty, names_for)?;
|
698
|
+
self.end_group(); // `func`
|
699
|
+
r
|
700
|
+
}
|
701
|
+
StructuralType::Array(ty) => {
|
702
|
+
self.start_group("array");
|
703
|
+
let r = self.print_array_type(ty)?;
|
704
|
+
self.end_group(); // `array`
|
705
|
+
r
|
706
|
+
}
|
707
|
+
StructuralType::Struct(ty) => {
|
708
|
+
self.start_group("struct");
|
709
|
+
let r = self.print_struct_type(ty)?;
|
710
|
+
self.end_group(); // `struct`
|
711
|
+
r
|
712
|
+
}
|
713
|
+
};
|
714
|
+
Ok(r)
|
715
|
+
}
|
716
|
+
|
717
|
+
fn print_core_types(
|
718
|
+
&mut self,
|
719
|
+
states: &mut Vec<State>,
|
720
|
+
parser: CoreTypeSectionReader<'_>,
|
721
|
+
) -> Result<()> {
|
722
|
+
for ty in parser.into_iter_with_offsets() {
|
723
|
+
let (offset, ty) = ty?;
|
724
|
+
self.newline(offset);
|
725
|
+
self.print_core_type(states, ty)?;
|
726
|
+
}
|
727
|
+
|
728
|
+
Ok(())
|
729
|
+
}
|
730
|
+
|
731
|
+
fn print_types(&mut self, state: &mut State, parser: TypeSectionReader<'_>) -> Result<()> {
|
732
|
+
for ty in parser.into_iter_with_offsets() {
|
733
|
+
let (offset, ty) = ty?;
|
734
|
+
self.newline(offset);
|
735
|
+
self.print_type(state, ty)?;
|
736
|
+
}
|
737
|
+
|
738
|
+
Ok(())
|
739
|
+
}
|
740
|
+
|
741
|
+
fn print_core_functype_idx(
|
742
|
+
&mut self,
|
743
|
+
state: &State,
|
744
|
+
idx: u32,
|
745
|
+
names_for: Option<u32>,
|
746
|
+
) -> Result<Option<u32>> {
|
747
|
+
self.print_core_type_ref(state, idx)?;
|
748
|
+
|
749
|
+
match state.core.types.get(idx as usize) {
|
750
|
+
Some(Some(SubType {
|
751
|
+
structural_type: StructuralType::Func(ty),
|
752
|
+
..
|
753
|
+
})) => self.print_func_type(state, ty, names_for).map(Some),
|
754
|
+
Some(Some(_)) | Some(None) | None => Ok(None),
|
755
|
+
}
|
756
|
+
}
|
757
|
+
|
758
|
+
/// Returns the number of parameters, useful for local index calculations
|
759
|
+
/// later.
|
760
|
+
fn print_func_type(
|
761
|
+
&mut self,
|
762
|
+
state: &State,
|
763
|
+
ty: &FuncType,
|
764
|
+
names_for: Option<u32>,
|
765
|
+
) -> Result<u32> {
|
766
|
+
if !ty.params().is_empty() {
|
767
|
+
self.result.push(' ');
|
768
|
+
}
|
769
|
+
|
770
|
+
let mut params = NamedLocalPrinter::new("param");
|
771
|
+
// Note that named parameters must be alone in a `param` block, so
|
772
|
+
// we need to be careful to terminate previous param blocks and open
|
773
|
+
// a new one if that's the case with a named parameter.
|
774
|
+
for (i, param) in ty.params().iter().enumerate() {
|
775
|
+
let name = names_for.and_then(|n| state.core.local_names.get(&(n, i as u32)));
|
776
|
+
params.start_local(name, &mut self.result);
|
777
|
+
self.print_valtype(*param)?;
|
778
|
+
params.end_local(&mut self.result);
|
779
|
+
}
|
780
|
+
params.finish(&mut self.result);
|
781
|
+
if !ty.results().is_empty() {
|
782
|
+
self.result.push_str(" (result");
|
783
|
+
for result in ty.results().iter() {
|
784
|
+
self.result.push(' ');
|
785
|
+
self.print_valtype(*result)?;
|
786
|
+
}
|
787
|
+
self.result.push(')');
|
788
|
+
}
|
789
|
+
Ok(ty.params().len() as u32)
|
790
|
+
}
|
791
|
+
|
792
|
+
fn print_field_type(&mut self, ty: &FieldType) -> Result<u32> {
|
793
|
+
self.result.push(' ');
|
794
|
+
if ty.mutable {
|
795
|
+
self.result.push_str("(mut ");
|
796
|
+
}
|
797
|
+
self.print_storage_type(ty.element_type)?;
|
798
|
+
if ty.mutable {
|
799
|
+
self.result.push_str(")");
|
800
|
+
}
|
801
|
+
Ok(0)
|
802
|
+
}
|
803
|
+
|
804
|
+
fn print_array_type(&mut self, ty: &ArrayType) -> Result<u32> {
|
805
|
+
self.print_field_type(&ty.0)
|
806
|
+
}
|
807
|
+
|
808
|
+
fn print_struct_type(&mut self, ty: &StructType) -> Result<u32> {
|
809
|
+
for field in ty.fields.iter() {
|
810
|
+
self.result.push_str(" (field");
|
811
|
+
self.print_field_type(field)?;
|
812
|
+
self.result.push(')');
|
813
|
+
}
|
814
|
+
Ok(0)
|
815
|
+
}
|
816
|
+
|
817
|
+
fn print_sub_type(&mut self, state: &State, ty: &SubType) -> Result<u32> {
|
818
|
+
self.result.push(' ');
|
819
|
+
if ty.is_final {
|
820
|
+
self.result.push_str("final ");
|
821
|
+
}
|
822
|
+
for idx in &ty.supertype_idx {
|
823
|
+
self.print_name(&state.core.type_names, *idx)?;
|
824
|
+
self.result.push(' ');
|
825
|
+
}
|
826
|
+
Ok(0)
|
827
|
+
}
|
828
|
+
|
829
|
+
fn print_storage_type(&mut self, ty: StorageType) -> Result<()> {
|
830
|
+
match ty {
|
831
|
+
StorageType::I8 => self.result.push_str("i8"),
|
832
|
+
StorageType::I16 => self.result.push_str("i16"),
|
833
|
+
StorageType::Val(val_type) => self.print_valtype(val_type)?,
|
834
|
+
}
|
835
|
+
Ok(())
|
836
|
+
}
|
837
|
+
|
838
|
+
fn print_valtype(&mut self, ty: ValType) -> Result<()> {
|
839
|
+
match ty {
|
840
|
+
ValType::I32 => self.result.push_str("i32"),
|
841
|
+
ValType::I64 => self.result.push_str("i64"),
|
842
|
+
ValType::F32 => self.result.push_str("f32"),
|
843
|
+
ValType::F64 => self.result.push_str("f64"),
|
844
|
+
ValType::V128 => self.result.push_str("v128"),
|
845
|
+
ValType::Ref(rt) => self.print_reftype(rt)?,
|
846
|
+
}
|
847
|
+
Ok(())
|
848
|
+
}
|
849
|
+
|
850
|
+
fn print_reftype(&mut self, ty: RefType) -> Result<()> {
|
851
|
+
if ty.is_nullable() {
|
852
|
+
match ty.as_non_null() {
|
853
|
+
RefType::FUNC => self.result.push_str("funcref"),
|
854
|
+
RefType::EXTERN => self.result.push_str("externref"),
|
855
|
+
RefType::I31 => self.result.push_str("i31ref"),
|
856
|
+
RefType::ANY => self.result.push_str("anyref"),
|
857
|
+
RefType::NONE => self.result.push_str("nullref"),
|
858
|
+
RefType::NOEXTERN => self.result.push_str("nullexternref"),
|
859
|
+
RefType::NOFUNC => self.result.push_str("nullfuncref"),
|
860
|
+
RefType::EQ => self.result.push_str("eqref"),
|
861
|
+
RefType::STRUCT => self.result.push_str("structref"),
|
862
|
+
RefType::ARRAY => self.result.push_str("arrayref"),
|
863
|
+
_ => {
|
864
|
+
self.result.push_str("(ref null ");
|
865
|
+
self.print_heaptype(ty.heap_type())?;
|
866
|
+
self.result.push_str(")");
|
867
|
+
}
|
868
|
+
}
|
869
|
+
} else {
|
870
|
+
self.result.push_str("(ref ");
|
871
|
+
self.print_heaptype(ty.heap_type())?;
|
872
|
+
self.result.push_str(")");
|
873
|
+
}
|
874
|
+
Ok(())
|
875
|
+
}
|
876
|
+
|
877
|
+
fn print_heaptype(&mut self, ty: HeapType) -> Result<()> {
|
878
|
+
match ty {
|
879
|
+
HeapType::Func => self.result.push_str("func"),
|
880
|
+
HeapType::Extern => self.result.push_str("extern"),
|
881
|
+
HeapType::Any => self.result.push_str("any"),
|
882
|
+
HeapType::None => self.result.push_str("none"),
|
883
|
+
HeapType::NoExtern => self.result.push_str("noextern"),
|
884
|
+
HeapType::NoFunc => self.result.push_str("nofunc"),
|
885
|
+
HeapType::Eq => self.result.push_str("eq"),
|
886
|
+
HeapType::Struct => self.result.push_str("struct"),
|
887
|
+
HeapType::Array => self.result.push_str("array"),
|
888
|
+
HeapType::I31 => self.result.push_str("i31"),
|
889
|
+
HeapType::Indexed(i) => self.result.push_str(&format!("{}", u32::from(i))),
|
890
|
+
}
|
891
|
+
Ok(())
|
892
|
+
}
|
893
|
+
|
894
|
+
fn print_imports(&mut self, state: &mut State, parser: ImportSectionReader<'_>) -> Result<()> {
|
895
|
+
for import in parser.into_iter_with_offsets() {
|
896
|
+
let (offset, import) = import?;
|
897
|
+
self.newline(offset);
|
898
|
+
self.print_import(state, &import, true)?;
|
899
|
+
match import.ty {
|
900
|
+
TypeRef::Func(_) => state.core.funcs += 1,
|
901
|
+
TypeRef::Table(_) => state.core.tables += 1,
|
902
|
+
TypeRef::Memory(_) => state.core.memories += 1,
|
903
|
+
TypeRef::Tag(_) => state.core.tags += 1,
|
904
|
+
TypeRef::Global(_) => state.core.globals += 1,
|
905
|
+
}
|
906
|
+
}
|
907
|
+
Ok(())
|
908
|
+
}
|
909
|
+
|
910
|
+
fn print_import(&mut self, state: &State, import: &Import<'_>, index: bool) -> Result<()> {
|
911
|
+
self.start_group("import ");
|
912
|
+
self.print_str(import.module)?;
|
913
|
+
self.result.push(' ');
|
914
|
+
self.print_str(import.name)?;
|
915
|
+
self.result.push(' ');
|
916
|
+
self.print_import_ty(state, &import.ty, index)?;
|
917
|
+
self.end_group();
|
918
|
+
Ok(())
|
919
|
+
}
|
920
|
+
|
921
|
+
fn print_import_ty(&mut self, state: &State, ty: &TypeRef, index: bool) -> Result<()> {
|
922
|
+
match ty {
|
923
|
+
TypeRef::Func(f) => {
|
924
|
+
self.start_group("func ");
|
925
|
+
if index {
|
926
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
927
|
+
self.result.push(' ');
|
928
|
+
}
|
929
|
+
self.print_core_type_ref(state, *f)?;
|
930
|
+
}
|
931
|
+
TypeRef::Table(f) => self.print_table_type(state, f, index)?,
|
932
|
+
TypeRef::Memory(f) => self.print_memory_type(state, f, index)?,
|
933
|
+
TypeRef::Tag(f) => self.print_tag_type(state, f, index)?,
|
934
|
+
TypeRef::Global(f) => self.print_global_type(state, f, index)?,
|
935
|
+
}
|
936
|
+
self.end_group();
|
937
|
+
Ok(())
|
938
|
+
}
|
939
|
+
|
940
|
+
fn print_table_type(&mut self, state: &State, ty: &TableType, index: bool) -> Result<()> {
|
941
|
+
self.start_group("table ");
|
942
|
+
if index {
|
943
|
+
self.print_name(&state.core.table_names, state.core.tables)?;
|
944
|
+
self.result.push(' ');
|
945
|
+
}
|
946
|
+
self.print_limits(ty.initial, ty.maximum)?;
|
947
|
+
self.result.push(' ');
|
948
|
+
self.print_reftype(ty.element_type)?;
|
949
|
+
Ok(())
|
950
|
+
}
|
951
|
+
|
952
|
+
fn print_memory_type(&mut self, state: &State, ty: &MemoryType, index: bool) -> Result<()> {
|
953
|
+
self.start_group("memory ");
|
954
|
+
if index {
|
955
|
+
self.print_name(&state.core.memory_names, state.core.memories)?;
|
956
|
+
self.result.push(' ');
|
957
|
+
}
|
958
|
+
if ty.memory64 {
|
959
|
+
self.result.push_str("i64 ");
|
960
|
+
}
|
961
|
+
self.print_limits(ty.initial, ty.maximum)?;
|
962
|
+
if ty.shared {
|
963
|
+
self.result.push_str(" shared");
|
964
|
+
}
|
965
|
+
Ok(())
|
966
|
+
}
|
967
|
+
|
968
|
+
fn print_tag_type(&mut self, state: &State, ty: &TagType, index: bool) -> Result<()> {
|
969
|
+
self.start_group("tag ");
|
970
|
+
if index {
|
971
|
+
write!(self.result, "(;{};) ", state.core.tags)?;
|
972
|
+
}
|
973
|
+
self.print_core_functype_idx(state, ty.func_type_idx, None)?;
|
974
|
+
Ok(())
|
975
|
+
}
|
976
|
+
|
977
|
+
fn print_limits<T>(&mut self, initial: T, maximum: Option<T>) -> Result<()>
|
978
|
+
where
|
979
|
+
T: fmt::Display,
|
980
|
+
{
|
981
|
+
write!(self.result, "{}", initial)?;
|
982
|
+
if let Some(max) = maximum {
|
983
|
+
write!(self.result, " {}", max)?;
|
984
|
+
}
|
985
|
+
Ok(())
|
986
|
+
}
|
987
|
+
|
988
|
+
fn print_global_type(&mut self, state: &State, ty: &GlobalType, index: bool) -> Result<()> {
|
989
|
+
self.start_group("global ");
|
990
|
+
if index {
|
991
|
+
self.print_name(&state.core.global_names, state.core.globals)?;
|
992
|
+
self.result.push(' ');
|
993
|
+
}
|
994
|
+
if ty.mutable {
|
995
|
+
self.result.push_str("(mut ");
|
996
|
+
self.print_valtype(ty.content_type)?;
|
997
|
+
self.result.push(')');
|
998
|
+
} else {
|
999
|
+
self.print_valtype(ty.content_type)?;
|
1000
|
+
}
|
1001
|
+
Ok(())
|
1002
|
+
}
|
1003
|
+
|
1004
|
+
fn print_tables(&mut self, state: &mut State, parser: TableSectionReader<'_>) -> Result<()> {
|
1005
|
+
for table in parser.into_iter_with_offsets() {
|
1006
|
+
let (offset, table) = table?;
|
1007
|
+
self.newline(offset);
|
1008
|
+
self.print_table_type(state, &table.ty, true)?;
|
1009
|
+
match &table.init {
|
1010
|
+
TableInit::RefNull => {}
|
1011
|
+
TableInit::Expr(expr) => {
|
1012
|
+
self.result.push_str(" ");
|
1013
|
+
self.print_const_expr(state, expr)?;
|
1014
|
+
}
|
1015
|
+
}
|
1016
|
+
self.end_group();
|
1017
|
+
state.core.tables += 1;
|
1018
|
+
}
|
1019
|
+
Ok(())
|
1020
|
+
}
|
1021
|
+
|
1022
|
+
fn print_memories(&mut self, state: &mut State, parser: MemorySectionReader<'_>) -> Result<()> {
|
1023
|
+
for memory in parser.into_iter_with_offsets() {
|
1024
|
+
let (offset, memory) = memory?;
|
1025
|
+
self.newline(offset);
|
1026
|
+
self.print_memory_type(state, &memory, true)?;
|
1027
|
+
self.end_group();
|
1028
|
+
state.core.memories += 1;
|
1029
|
+
}
|
1030
|
+
Ok(())
|
1031
|
+
}
|
1032
|
+
|
1033
|
+
fn print_tags(&mut self, state: &mut State, parser: TagSectionReader<'_>) -> Result<()> {
|
1034
|
+
for tag in parser.into_iter_with_offsets() {
|
1035
|
+
let (offset, tag) = tag?;
|
1036
|
+
self.newline(offset);
|
1037
|
+
self.print_tag_type(state, &tag, true)?;
|
1038
|
+
self.end_group();
|
1039
|
+
state.core.tags += 1;
|
1040
|
+
}
|
1041
|
+
Ok(())
|
1042
|
+
}
|
1043
|
+
|
1044
|
+
fn print_globals(&mut self, state: &mut State, parser: GlobalSectionReader<'_>) -> Result<()> {
|
1045
|
+
for global in parser.into_iter_with_offsets() {
|
1046
|
+
let (offset, global) = global?;
|
1047
|
+
self.newline(offset);
|
1048
|
+
self.print_global_type(state, &global.ty, true)?;
|
1049
|
+
self.result.push(' ');
|
1050
|
+
self.print_const_expr(state, &global.init_expr)?;
|
1051
|
+
self.end_group();
|
1052
|
+
state.core.globals += 1;
|
1053
|
+
}
|
1054
|
+
Ok(())
|
1055
|
+
}
|
1056
|
+
|
1057
|
+
fn print_code(
|
1058
|
+
&mut self,
|
1059
|
+
state: &mut State,
|
1060
|
+
code: &[FunctionBody<'_>],
|
1061
|
+
funcs: FunctionSectionReader<'_>,
|
1062
|
+
) -> Result<()> {
|
1063
|
+
if funcs.count() != code.len() as u32 {
|
1064
|
+
bail!("mismatch in function and code section counts");
|
1065
|
+
}
|
1066
|
+
for (body, ty) in code.iter().zip(funcs) {
|
1067
|
+
let mut body = body.get_binary_reader();
|
1068
|
+
let offset = body.original_position();
|
1069
|
+
let ty = ty?;
|
1070
|
+
self.newline(offset);
|
1071
|
+
self.start_group("func ");
|
1072
|
+
let func_idx = state.core.funcs;
|
1073
|
+
self.print_name(&state.core.func_names, func_idx)?;
|
1074
|
+
self.result.push(' ');
|
1075
|
+
let params = self
|
1076
|
+
.print_core_functype_idx(state, ty, Some(func_idx))?
|
1077
|
+
.unwrap_or(0);
|
1078
|
+
|
1079
|
+
if self.print_skeleton {
|
1080
|
+
self.result.push_str(" ...");
|
1081
|
+
} else {
|
1082
|
+
self.print_func_body(state, func_idx, params, &mut body)?;
|
1083
|
+
}
|
1084
|
+
|
1085
|
+
self.end_group();
|
1086
|
+
|
1087
|
+
state.core.funcs += 1;
|
1088
|
+
}
|
1089
|
+
Ok(())
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
fn print_func_body(
|
1093
|
+
&mut self,
|
1094
|
+
state: &mut State,
|
1095
|
+
func_idx: u32,
|
1096
|
+
params: u32,
|
1097
|
+
body: &mut BinaryReader<'_>,
|
1098
|
+
) -> Result<()> {
|
1099
|
+
let mut first = true;
|
1100
|
+
let mut local_idx = 0;
|
1101
|
+
let mut locals = NamedLocalPrinter::new("local");
|
1102
|
+
for _ in 0..body.read_var_u32()? {
|
1103
|
+
let offset = body.original_position();
|
1104
|
+
let cnt = body.read_var_u32()?;
|
1105
|
+
let ty = body.read()?;
|
1106
|
+
if MAX_LOCALS
|
1107
|
+
.checked_sub(local_idx)
|
1108
|
+
.and_then(|s| s.checked_sub(cnt))
|
1109
|
+
.is_none()
|
1110
|
+
{
|
1111
|
+
bail!("function exceeds the maximum number of locals that can be printed");
|
1112
|
+
}
|
1113
|
+
for _ in 0..cnt {
|
1114
|
+
if first {
|
1115
|
+
self.newline(offset);
|
1116
|
+
first = false;
|
1117
|
+
}
|
1118
|
+
let name = state.core.local_names.get(&(func_idx, params + local_idx));
|
1119
|
+
locals.start_local(name, &mut self.result);
|
1120
|
+
self.print_valtype(ty)?;
|
1121
|
+
locals.end_local(&mut self.result);
|
1122
|
+
local_idx += 1;
|
1123
|
+
}
|
1124
|
+
}
|
1125
|
+
locals.finish(&mut self.result);
|
1126
|
+
|
1127
|
+
state.core.labels = 0;
|
1128
|
+
let nesting_start = self.nesting;
|
1129
|
+
body.allow_memarg64(true);
|
1130
|
+
|
1131
|
+
let mut buf = String::new();
|
1132
|
+
let mut op_printer = operator::PrintOperator::new(self, state);
|
1133
|
+
while !body.eof() {
|
1134
|
+
// TODO
|
1135
|
+
let offset = body.original_position();
|
1136
|
+
mem::swap(&mut buf, &mut op_printer.printer.result);
|
1137
|
+
let op_kind = body.visit_operator(&mut op_printer)??;
|
1138
|
+
mem::swap(&mut buf, &mut op_printer.printer.result);
|
1139
|
+
|
1140
|
+
match op_kind {
|
1141
|
+
// The final `end` in a reader is not printed, it's implied
|
1142
|
+
// in the text format.
|
1143
|
+
operator::OpKind::End if body.eof() => break,
|
1144
|
+
|
1145
|
+
// When we start a block we newline to the current
|
1146
|
+
// indentation, then we increase the indentation so further
|
1147
|
+
// instructions are tabbed over.
|
1148
|
+
operator::OpKind::BlockStart => {
|
1149
|
+
op_printer.printer.newline(offset);
|
1150
|
+
op_printer.printer.nesting += 1;
|
1151
|
+
}
|
1152
|
+
|
1153
|
+
// `else`/`catch` are special in that it's printed at
|
1154
|
+
// the previous indentation, but it doesn't actually change
|
1155
|
+
// our nesting level.
|
1156
|
+
operator::OpKind::BlockMid => {
|
1157
|
+
op_printer.printer.nesting -= 1;
|
1158
|
+
op_printer.printer.newline(offset);
|
1159
|
+
op_printer.printer.nesting += 1;
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
// Exiting a block prints `end` at the previous indentation
|
1163
|
+
// level. `delegate` also ends a block like `end` for `try`.
|
1164
|
+
operator::OpKind::End | operator::OpKind::Delegate
|
1165
|
+
if op_printer.printer.nesting > nesting_start =>
|
1166
|
+
{
|
1167
|
+
op_printer.printer.nesting -= 1;
|
1168
|
+
op_printer.printer.newline(offset);
|
1169
|
+
}
|
1170
|
+
|
1171
|
+
// .. otherwise everything else just has a normal newline
|
1172
|
+
// out in front.
|
1173
|
+
_ => op_printer.printer.newline(offset),
|
1174
|
+
}
|
1175
|
+
op_printer.printer.result.push_str(&buf);
|
1176
|
+
buf.truncate(0);
|
1177
|
+
}
|
1178
|
+
|
1179
|
+
// If this was an invalid function body then the nesting may not
|
1180
|
+
// have reset back to normal. Fix that up here and forcibly insert
|
1181
|
+
// a newline as well in case the last instruction was something
|
1182
|
+
// like an `if` which has a comment after it which could interfere
|
1183
|
+
// with the closing paren printed for the func.
|
1184
|
+
if self.nesting != nesting_start {
|
1185
|
+
self.nesting = nesting_start;
|
1186
|
+
self.newline(body.original_position());
|
1187
|
+
}
|
1188
|
+
|
1189
|
+
Ok(())
|
1190
|
+
}
|
1191
|
+
|
1192
|
+
fn newline(&mut self, offset: usize) {
|
1193
|
+
self.print_newline(Some(offset))
|
1194
|
+
}
|
1195
|
+
|
1196
|
+
fn newline_unknown_pos(&mut self) {
|
1197
|
+
self.print_newline(None)
|
1198
|
+
}
|
1199
|
+
|
1200
|
+
fn print_newline(&mut self, offset: Option<usize>) {
|
1201
|
+
self.result.push('\n');
|
1202
|
+
|
1203
|
+
self.lines.push(self.result.len());
|
1204
|
+
self.line_offsets.push(offset);
|
1205
|
+
|
1206
|
+
if self.print_offsets {
|
1207
|
+
match offset {
|
1208
|
+
Some(offset) => write!(self.result, "(;@{offset:<6x};)").unwrap(),
|
1209
|
+
None => self.result.push_str(" "),
|
1210
|
+
}
|
1211
|
+
}
|
1212
|
+
self.line += 1;
|
1213
|
+
|
1214
|
+
// Clamp the maximum nesting size that we print at something somewhat
|
1215
|
+
// reasonable to avoid generating hundreds of megabytes of whitespace
|
1216
|
+
// for small-ish modules that have deep-ish nesting.
|
1217
|
+
for _ in 0..self.nesting.min(MAX_NESTING_TO_PRINT) {
|
1218
|
+
self.result.push_str(" ");
|
1219
|
+
}
|
1220
|
+
}
|
1221
|
+
|
1222
|
+
fn print_exports(&mut self, state: &State, data: ExportSectionReader) -> Result<()> {
|
1223
|
+
for export in data.into_iter_with_offsets() {
|
1224
|
+
let (offset, export) = export?;
|
1225
|
+
self.newline(offset);
|
1226
|
+
self.print_export(state, &export)?;
|
1227
|
+
}
|
1228
|
+
Ok(())
|
1229
|
+
}
|
1230
|
+
|
1231
|
+
fn print_export(&mut self, state: &State, export: &Export) -> Result<()> {
|
1232
|
+
self.start_group("export ");
|
1233
|
+
self.print_str(export.name)?;
|
1234
|
+
self.result.push(' ');
|
1235
|
+
self.print_external_kind(state, export.kind, export.index)?;
|
1236
|
+
self.end_group(); // export
|
1237
|
+
Ok(())
|
1238
|
+
}
|
1239
|
+
|
1240
|
+
fn print_external_kind(&mut self, state: &State, kind: ExternalKind, index: u32) -> Result<()> {
|
1241
|
+
self.result.push('(');
|
1242
|
+
match kind {
|
1243
|
+
ExternalKind::Func => {
|
1244
|
+
self.result.push_str("func ");
|
1245
|
+
self.print_idx(&state.core.func_names, index)?;
|
1246
|
+
}
|
1247
|
+
ExternalKind::Table => {
|
1248
|
+
self.result.push_str("table ");
|
1249
|
+
self.print_idx(&state.core.table_names, index)?;
|
1250
|
+
}
|
1251
|
+
ExternalKind::Global => {
|
1252
|
+
self.result.push_str("global ");
|
1253
|
+
self.print_idx(&state.core.global_names, index)?;
|
1254
|
+
}
|
1255
|
+
ExternalKind::Memory => {
|
1256
|
+
self.result.push_str("memory ");
|
1257
|
+
self.print_idx(&state.core.memory_names, index)?;
|
1258
|
+
}
|
1259
|
+
ExternalKind::Tag => write!(self.result, "tag {}", index)?,
|
1260
|
+
}
|
1261
|
+
self.result.push(')');
|
1262
|
+
Ok(())
|
1263
|
+
}
|
1264
|
+
|
1265
|
+
fn print_core_type_ref(&mut self, state: &State, idx: u32) -> Result<()> {
|
1266
|
+
self.result.push_str("(type ");
|
1267
|
+
self.print_idx(&state.core.type_names, idx)?;
|
1268
|
+
self.result.push(')');
|
1269
|
+
Ok(())
|
1270
|
+
}
|
1271
|
+
|
1272
|
+
fn print_component_type_ref(&mut self, state: &State, idx: u32) -> Result<()> {
|
1273
|
+
self.result.push_str("(type ");
|
1274
|
+
self.print_idx(&state.component.type_names, idx)?;
|
1275
|
+
self.result.push(')');
|
1276
|
+
Ok(())
|
1277
|
+
}
|
1278
|
+
|
1279
|
+
fn print_idx(&mut self, names: &HashMap<u32, Naming>, idx: u32) -> Result<()> {
|
1280
|
+
match names.get(&idx) {
|
1281
|
+
Some(name) => write!(self.result, "${}", name.identifier())?,
|
1282
|
+
None => write!(self.result, "{}", idx)?,
|
1283
|
+
}
|
1284
|
+
Ok(())
|
1285
|
+
}
|
1286
|
+
|
1287
|
+
fn print_local_idx(&mut self, state: &State, func: u32, idx: u32) -> Result<()> {
|
1288
|
+
match state.core.local_names.get(&(func, idx)) {
|
1289
|
+
Some(name) => write!(self.result, "${}", name.identifier())?,
|
1290
|
+
None => write!(self.result, "{}", idx)?,
|
1291
|
+
}
|
1292
|
+
Ok(())
|
1293
|
+
}
|
1294
|
+
|
1295
|
+
fn print_name(&mut self, names: &HashMap<u32, Naming>, cur_idx: u32) -> Result<()> {
|
1296
|
+
if let Some(name) = names.get(&cur_idx) {
|
1297
|
+
name.write(&mut self.result);
|
1298
|
+
self.result.push(' ');
|
1299
|
+
}
|
1300
|
+
write!(self.result, "(;{};)", cur_idx)?;
|
1301
|
+
Ok(())
|
1302
|
+
}
|
1303
|
+
|
1304
|
+
fn print_elems(&mut self, state: &mut State, data: ElementSectionReader) -> Result<()> {
|
1305
|
+
for (i, elem) in data.into_iter_with_offsets().enumerate() {
|
1306
|
+
let (offset, mut elem) = elem?;
|
1307
|
+
self.newline(offset);
|
1308
|
+
self.start_group("elem ");
|
1309
|
+
self.print_name(&state.core.element_names, i as u32)?;
|
1310
|
+
match &mut elem.kind {
|
1311
|
+
ElementKind::Passive => {}
|
1312
|
+
ElementKind::Declared => write!(self.result, " declare")?,
|
1313
|
+
ElementKind::Active {
|
1314
|
+
table_index,
|
1315
|
+
offset_expr,
|
1316
|
+
} => {
|
1317
|
+
let table_index = table_index.unwrap_or(0);
|
1318
|
+
if table_index != 0 {
|
1319
|
+
self.result.push_str(" (table ");
|
1320
|
+
self.print_idx(&state.core.table_names, table_index)?;
|
1321
|
+
self.result.push(')');
|
1322
|
+
}
|
1323
|
+
self.result.push(' ');
|
1324
|
+
self.print_const_expr_sugar(state, offset_expr, "offset")?;
|
1325
|
+
}
|
1326
|
+
}
|
1327
|
+
self.result.push(' ');
|
1328
|
+
|
1329
|
+
if self.print_skeleton {
|
1330
|
+
self.result.push_str("...");
|
1331
|
+
} else {
|
1332
|
+
match elem.items {
|
1333
|
+
ElementItems::Functions(reader) => {
|
1334
|
+
self.result.push_str("func");
|
1335
|
+
for idx in reader {
|
1336
|
+
self.result.push(' ');
|
1337
|
+
self.print_idx(&state.core.func_names, idx?)?
|
1338
|
+
}
|
1339
|
+
}
|
1340
|
+
ElementItems::Expressions(ty, reader) => {
|
1341
|
+
self.print_reftype(ty)?;
|
1342
|
+
for expr in reader {
|
1343
|
+
self.result.push(' ');
|
1344
|
+
self.print_const_expr_sugar(state, &expr?, "item")?
|
1345
|
+
}
|
1346
|
+
}
|
1347
|
+
}
|
1348
|
+
}
|
1349
|
+
self.end_group();
|
1350
|
+
}
|
1351
|
+
Ok(())
|
1352
|
+
}
|
1353
|
+
|
1354
|
+
fn print_data(&mut self, state: &mut State, data: DataSectionReader) -> Result<()> {
|
1355
|
+
for (i, data) in data.into_iter_with_offsets().enumerate() {
|
1356
|
+
let (offset, data) = data?;
|
1357
|
+
self.newline(offset);
|
1358
|
+
self.start_group("data ");
|
1359
|
+
self.print_name(&state.core.data_names, i as u32)?;
|
1360
|
+
self.result.push(' ');
|
1361
|
+
match &data.kind {
|
1362
|
+
DataKind::Passive => {}
|
1363
|
+
DataKind::Active {
|
1364
|
+
memory_index,
|
1365
|
+
offset_expr,
|
1366
|
+
} => {
|
1367
|
+
if *memory_index != 0 {
|
1368
|
+
self.result.push_str("(memory ");
|
1369
|
+
self.print_idx(&state.core.memory_names, *memory_index)?;
|
1370
|
+
self.result.push_str(") ");
|
1371
|
+
}
|
1372
|
+
self.print_const_expr_sugar(state, offset_expr, "offset")?;
|
1373
|
+
self.result.push(' ');
|
1374
|
+
}
|
1375
|
+
}
|
1376
|
+
if self.print_skeleton {
|
1377
|
+
self.result.push_str("...");
|
1378
|
+
} else {
|
1379
|
+
self.print_bytes(data.data)?;
|
1380
|
+
}
|
1381
|
+
self.end_group();
|
1382
|
+
}
|
1383
|
+
Ok(())
|
1384
|
+
}
|
1385
|
+
|
1386
|
+
/// Prints the operators of `expr` space-separated, taking into account that
|
1387
|
+
/// if there's only one operator in `expr` then instead of `(explicit ...)`
|
1388
|
+
/// the printing can be `(...)`.
|
1389
|
+
fn print_const_expr_sugar(
|
1390
|
+
&mut self,
|
1391
|
+
state: &mut State,
|
1392
|
+
expr: &ConstExpr,
|
1393
|
+
explicit: &str,
|
1394
|
+
) -> Result<()> {
|
1395
|
+
self.start_group("");
|
1396
|
+
let mut prev = mem::take(&mut self.result);
|
1397
|
+
let mut reader = expr.get_operators_reader();
|
1398
|
+
let mut op_printer = operator::PrintOperator::new(self, state);
|
1399
|
+
let mut first_op = None;
|
1400
|
+
for i in 0.. {
|
1401
|
+
if reader.eof() {
|
1402
|
+
break;
|
1403
|
+
}
|
1404
|
+
match reader.visit_operator(&mut op_printer)?? {
|
1405
|
+
operator::OpKind::End if reader.eof() => {}
|
1406
|
+
|
1407
|
+
_ if i == 0 => first_op = Some(mem::take(&mut op_printer.printer.result)),
|
1408
|
+
|
1409
|
+
_ => {
|
1410
|
+
if i == 1 {
|
1411
|
+
prev.push_str(explicit);
|
1412
|
+
prev.push(' ');
|
1413
|
+
prev.push_str(&first_op.take().unwrap());
|
1414
|
+
}
|
1415
|
+
prev.push(' ');
|
1416
|
+
prev.push_str(&op_printer.printer.result);
|
1417
|
+
}
|
1418
|
+
}
|
1419
|
+
|
1420
|
+
op_printer.printer.result.truncate(0);
|
1421
|
+
}
|
1422
|
+
|
1423
|
+
// If `first_op` is still set here then it means we don't need to print
|
1424
|
+
// an expression with `explicit` as the leading token, instead we can
|
1425
|
+
// print the single operator.
|
1426
|
+
if let Some(op) = first_op {
|
1427
|
+
prev.push_str(&op);
|
1428
|
+
}
|
1429
|
+
self.result = prev;
|
1430
|
+
self.end_group();
|
1431
|
+
Ok(())
|
1432
|
+
}
|
1433
|
+
|
1434
|
+
/// Prints the operators of `expr` space-separated.
|
1435
|
+
fn print_const_expr(&mut self, state: &mut State, expr: &ConstExpr) -> Result<()> {
|
1436
|
+
let mut reader = expr.get_operators_reader();
|
1437
|
+
let mut first = true;
|
1438
|
+
|
1439
|
+
let mut result = mem::take(&mut self.result);
|
1440
|
+
let mut op_printer = operator::PrintOperator::new(self, state);
|
1441
|
+
while !reader.eof() {
|
1442
|
+
if first {
|
1443
|
+
first = false;
|
1444
|
+
} else {
|
1445
|
+
op_printer.printer.result.push(' ');
|
1446
|
+
}
|
1447
|
+
match reader.visit_operator(&mut op_printer)?? {
|
1448
|
+
operator::OpKind::End if reader.eof() => {}
|
1449
|
+
_ => {
|
1450
|
+
result.push_str(&op_printer.printer.result);
|
1451
|
+
op_printer.printer.result.truncate(0);
|
1452
|
+
}
|
1453
|
+
}
|
1454
|
+
}
|
1455
|
+
self.result = result;
|
1456
|
+
Ok(())
|
1457
|
+
}
|
1458
|
+
|
1459
|
+
fn print_primitive_val_type(&mut self, ty: &PrimitiveValType) {
|
1460
|
+
match ty {
|
1461
|
+
PrimitiveValType::Bool => self.result.push_str("bool"),
|
1462
|
+
PrimitiveValType::S8 => self.result.push_str("s8"),
|
1463
|
+
PrimitiveValType::U8 => self.result.push_str("u8"),
|
1464
|
+
PrimitiveValType::S16 => self.result.push_str("s16"),
|
1465
|
+
PrimitiveValType::U16 => self.result.push_str("u16"),
|
1466
|
+
PrimitiveValType::S32 => self.result.push_str("s32"),
|
1467
|
+
PrimitiveValType::U32 => self.result.push_str("u32"),
|
1468
|
+
PrimitiveValType::S64 => self.result.push_str("s64"),
|
1469
|
+
PrimitiveValType::U64 => self.result.push_str("u64"),
|
1470
|
+
PrimitiveValType::Float32 => self.result.push_str("float32"),
|
1471
|
+
PrimitiveValType::Float64 => self.result.push_str("float64"),
|
1472
|
+
PrimitiveValType::Char => self.result.push_str("char"),
|
1473
|
+
PrimitiveValType::String => self.result.push_str("string"),
|
1474
|
+
}
|
1475
|
+
}
|
1476
|
+
|
1477
|
+
fn print_record_type(
|
1478
|
+
&mut self,
|
1479
|
+
state: &State,
|
1480
|
+
fields: &[(&str, ComponentValType)],
|
1481
|
+
) -> Result<()> {
|
1482
|
+
self.start_group("record");
|
1483
|
+
for (name, ty) in fields.iter() {
|
1484
|
+
self.result.push(' ');
|
1485
|
+
self.start_group("field ");
|
1486
|
+
self.print_str(name)?;
|
1487
|
+
self.result.push(' ');
|
1488
|
+
self.print_component_val_type(state, ty)?;
|
1489
|
+
self.end_group()
|
1490
|
+
}
|
1491
|
+
self.end_group();
|
1492
|
+
Ok(())
|
1493
|
+
}
|
1494
|
+
|
1495
|
+
fn print_variant_type(&mut self, state: &State, cases: &[VariantCase]) -> Result<()> {
|
1496
|
+
self.start_group("variant");
|
1497
|
+
for case in cases {
|
1498
|
+
self.result.push(' ');
|
1499
|
+
self.start_group("case ");
|
1500
|
+
self.print_str(case.name)?;
|
1501
|
+
|
1502
|
+
if let Some(ty) = case.ty {
|
1503
|
+
self.result.push(' ');
|
1504
|
+
self.print_component_val_type(state, &ty)?;
|
1505
|
+
}
|
1506
|
+
|
1507
|
+
if let Some(refines) = case.refines {
|
1508
|
+
self.result.push(' ');
|
1509
|
+
self.start_group("refines ");
|
1510
|
+
write!(&mut self.result, "{}", refines)?;
|
1511
|
+
self.end_group();
|
1512
|
+
}
|
1513
|
+
self.end_group()
|
1514
|
+
}
|
1515
|
+
self.end_group();
|
1516
|
+
|
1517
|
+
Ok(())
|
1518
|
+
}
|
1519
|
+
|
1520
|
+
fn print_list_type(&mut self, state: &State, element_ty: &ComponentValType) -> Result<()> {
|
1521
|
+
self.start_group("list ");
|
1522
|
+
self.print_component_val_type(state, element_ty)?;
|
1523
|
+
self.end_group();
|
1524
|
+
Ok(())
|
1525
|
+
}
|
1526
|
+
|
1527
|
+
fn print_tuple_or_union_type(
|
1528
|
+
&mut self,
|
1529
|
+
ty: &str,
|
1530
|
+
state: &State,
|
1531
|
+
tys: &[ComponentValType],
|
1532
|
+
) -> Result<()> {
|
1533
|
+
self.start_group(ty);
|
1534
|
+
for ty in tys {
|
1535
|
+
self.result.push(' ');
|
1536
|
+
self.print_component_val_type(state, ty)?;
|
1537
|
+
}
|
1538
|
+
self.end_group();
|
1539
|
+
Ok(())
|
1540
|
+
}
|
1541
|
+
|
1542
|
+
fn print_flag_or_enum_type(&mut self, ty: &str, names: &[&str]) -> Result<()> {
|
1543
|
+
self.start_group(ty);
|
1544
|
+
for name in names {
|
1545
|
+
self.result.push(' ');
|
1546
|
+
self.print_str(name)?;
|
1547
|
+
}
|
1548
|
+
self.end_group();
|
1549
|
+
Ok(())
|
1550
|
+
}
|
1551
|
+
|
1552
|
+
fn print_option_type(&mut self, state: &State, inner: &ComponentValType) -> Result<()> {
|
1553
|
+
self.start_group("option ");
|
1554
|
+
self.print_component_val_type(state, inner)?;
|
1555
|
+
self.end_group();
|
1556
|
+
Ok(())
|
1557
|
+
}
|
1558
|
+
|
1559
|
+
fn print_result_type(
|
1560
|
+
&mut self,
|
1561
|
+
state: &State,
|
1562
|
+
ok: Option<ComponentValType>,
|
1563
|
+
err: Option<ComponentValType>,
|
1564
|
+
) -> Result<()> {
|
1565
|
+
self.start_group("result");
|
1566
|
+
|
1567
|
+
if let Some(ok) = ok {
|
1568
|
+
self.result.push(' ');
|
1569
|
+
self.print_component_val_type(state, &ok)?;
|
1570
|
+
}
|
1571
|
+
|
1572
|
+
if let Some(err) = err {
|
1573
|
+
self.result.push(' ');
|
1574
|
+
self.start_group("error ");
|
1575
|
+
self.print_component_val_type(state, &err)?;
|
1576
|
+
self.end_group();
|
1577
|
+
}
|
1578
|
+
|
1579
|
+
self.end_group();
|
1580
|
+
|
1581
|
+
Ok(())
|
1582
|
+
}
|
1583
|
+
|
1584
|
+
fn print_defined_type(&mut self, state: &State, ty: &ComponentDefinedType) -> Result<()> {
|
1585
|
+
match ty {
|
1586
|
+
ComponentDefinedType::Primitive(ty) => self.print_primitive_val_type(ty),
|
1587
|
+
ComponentDefinedType::Record(fields) => self.print_record_type(state, fields)?,
|
1588
|
+
ComponentDefinedType::Variant(cases) => self.print_variant_type(state, cases)?,
|
1589
|
+
ComponentDefinedType::List(ty) => self.print_list_type(state, ty)?,
|
1590
|
+
ComponentDefinedType::Tuple(tys) => {
|
1591
|
+
self.print_tuple_or_union_type("tuple", state, tys)?
|
1592
|
+
}
|
1593
|
+
ComponentDefinedType::Flags(names) => self.print_flag_or_enum_type("flags", names)?,
|
1594
|
+
ComponentDefinedType::Enum(cases) => self.print_flag_or_enum_type("enum", cases)?,
|
1595
|
+
ComponentDefinedType::Union(tys) => {
|
1596
|
+
self.print_tuple_or_union_type("union", state, tys)?
|
1597
|
+
}
|
1598
|
+
ComponentDefinedType::Option(ty) => self.print_option_type(state, ty)?,
|
1599
|
+
ComponentDefinedType::Result { ok, err } => self.print_result_type(state, *ok, *err)?,
|
1600
|
+
ComponentDefinedType::Own(idx) => {
|
1601
|
+
self.start_group("own ");
|
1602
|
+
self.print_idx(&state.component.type_names, *idx)?;
|
1603
|
+
self.end_group();
|
1604
|
+
}
|
1605
|
+
ComponentDefinedType::Borrow(idx) => {
|
1606
|
+
self.start_group("borrow ");
|
1607
|
+
self.print_idx(&state.component.type_names, *idx)?;
|
1608
|
+
self.end_group();
|
1609
|
+
}
|
1610
|
+
}
|
1611
|
+
|
1612
|
+
Ok(())
|
1613
|
+
}
|
1614
|
+
|
1615
|
+
fn print_component_val_type(&mut self, state: &State, ty: &ComponentValType) -> Result<()> {
|
1616
|
+
match ty {
|
1617
|
+
ComponentValType::Primitive(ty) => self.print_primitive_val_type(ty),
|
1618
|
+
ComponentValType::Type(idx) => {
|
1619
|
+
self.print_idx(&state.component.type_names, *idx)?;
|
1620
|
+
}
|
1621
|
+
}
|
1622
|
+
|
1623
|
+
Ok(())
|
1624
|
+
}
|
1625
|
+
|
1626
|
+
fn print_module_type(
|
1627
|
+
&mut self,
|
1628
|
+
states: &mut Vec<State>,
|
1629
|
+
decls: Vec<ModuleTypeDeclaration>,
|
1630
|
+
) -> Result<()> {
|
1631
|
+
states.push(State::new(Encoding::Module));
|
1632
|
+
self.newline_unknown_pos();
|
1633
|
+
self.start_group("module");
|
1634
|
+
for decl in decls {
|
1635
|
+
self.newline_unknown_pos();
|
1636
|
+
match decl {
|
1637
|
+
ModuleTypeDeclaration::Type(ty) => {
|
1638
|
+
self.print_type(states.last_mut().unwrap(), ty)?
|
1639
|
+
}
|
1640
|
+
ModuleTypeDeclaration::OuterAlias { kind, count, index } => {
|
1641
|
+
self.print_outer_alias(states, kind, count, index)?;
|
1642
|
+
}
|
1643
|
+
ModuleTypeDeclaration::Export { name, ty } => {
|
1644
|
+
self.start_group("export ");
|
1645
|
+
self.print_str(name)?;
|
1646
|
+
self.result.push(' ');
|
1647
|
+
self.print_import_ty(states.last_mut().unwrap(), &ty, false)?;
|
1648
|
+
self.end_group();
|
1649
|
+
}
|
1650
|
+
ModuleTypeDeclaration::Import(import) => {
|
1651
|
+
self.print_import(states.last_mut().unwrap(), &import, false)?;
|
1652
|
+
}
|
1653
|
+
}
|
1654
|
+
}
|
1655
|
+
self.end_group();
|
1656
|
+
states.pop();
|
1657
|
+
Ok(())
|
1658
|
+
}
|
1659
|
+
|
1660
|
+
fn print_component_type<'a>(
|
1661
|
+
&mut self,
|
1662
|
+
states: &mut Vec<State>,
|
1663
|
+
decls: Vec<ComponentTypeDeclaration<'a>>,
|
1664
|
+
) -> Result<()> {
|
1665
|
+
states.push(State::new(Encoding::Component));
|
1666
|
+
self.newline_unknown_pos();
|
1667
|
+
self.start_group("component");
|
1668
|
+
for decl in decls {
|
1669
|
+
self.newline_unknown_pos();
|
1670
|
+
match decl {
|
1671
|
+
ComponentTypeDeclaration::CoreType(ty) => self.print_core_type(states, ty)?,
|
1672
|
+
ComponentTypeDeclaration::Type(ty) => self.print_component_type_def(states, ty)?,
|
1673
|
+
ComponentTypeDeclaration::Alias(alias) => {
|
1674
|
+
self.print_component_alias(states, alias)?;
|
1675
|
+
}
|
1676
|
+
ComponentTypeDeclaration::Export { name, ty } => {
|
1677
|
+
self.start_group("export ");
|
1678
|
+
self.print_component_kind_name(states.last_mut().unwrap(), ty.kind())?;
|
1679
|
+
self.print_component_import_name(name.into())?;
|
1680
|
+
self.result.push(' ');
|
1681
|
+
self.print_component_import_ty(states.last_mut().unwrap(), &ty, false)?;
|
1682
|
+
self.end_group();
|
1683
|
+
}
|
1684
|
+
ComponentTypeDeclaration::Import(import) => {
|
1685
|
+
self.print_component_import(states.last_mut().unwrap(), &import, true)?
|
1686
|
+
}
|
1687
|
+
}
|
1688
|
+
}
|
1689
|
+
self.end_group();
|
1690
|
+
states.pop().unwrap();
|
1691
|
+
Ok(())
|
1692
|
+
}
|
1693
|
+
|
1694
|
+
fn print_instance_type<'a>(
|
1695
|
+
&mut self,
|
1696
|
+
states: &mut Vec<State>,
|
1697
|
+
decls: Vec<InstanceTypeDeclaration<'a>>,
|
1698
|
+
) -> Result<()> {
|
1699
|
+
states.push(State::new(Encoding::Component));
|
1700
|
+
self.newline_unknown_pos();
|
1701
|
+
self.start_group("instance");
|
1702
|
+
for decl in decls {
|
1703
|
+
self.newline_unknown_pos();
|
1704
|
+
match decl {
|
1705
|
+
InstanceTypeDeclaration::CoreType(ty) => self.print_core_type(states, ty)?,
|
1706
|
+
InstanceTypeDeclaration::Type(ty) => self.print_component_type_def(states, ty)?,
|
1707
|
+
InstanceTypeDeclaration::Alias(alias) => {
|
1708
|
+
self.print_component_alias(states, alias)?;
|
1709
|
+
}
|
1710
|
+
InstanceTypeDeclaration::Export { name, ty } => {
|
1711
|
+
self.start_group("export ");
|
1712
|
+
self.print_component_kind_name(states.last_mut().unwrap(), ty.kind())?;
|
1713
|
+
self.print_component_import_name(name.into())?;
|
1714
|
+
self.result.push(' ');
|
1715
|
+
self.print_component_import_ty(states.last_mut().unwrap(), &ty, false)?;
|
1716
|
+
self.end_group();
|
1717
|
+
}
|
1718
|
+
}
|
1719
|
+
}
|
1720
|
+
self.end_group();
|
1721
|
+
states.pop().unwrap();
|
1722
|
+
Ok(())
|
1723
|
+
}
|
1724
|
+
|
1725
|
+
fn outer_state(states: &[State], count: u32) -> Result<&State> {
|
1726
|
+
let count = count as usize;
|
1727
|
+
if count >= states.len() {
|
1728
|
+
bail!("invalid outer alias count of {}", count);
|
1729
|
+
}
|
1730
|
+
|
1731
|
+
Ok(&states[states.len() - count - 1])
|
1732
|
+
}
|
1733
|
+
|
1734
|
+
fn print_outer_alias(
|
1735
|
+
&mut self,
|
1736
|
+
states: &mut [State],
|
1737
|
+
kind: OuterAliasKind,
|
1738
|
+
count: u32,
|
1739
|
+
index: u32,
|
1740
|
+
) -> Result<()> {
|
1741
|
+
let state = states.last().unwrap();
|
1742
|
+
let outer = Self::outer_state(states, count)?;
|
1743
|
+
self.start_group("alias outer ");
|
1744
|
+
if let Some(name) = outer.name.as_ref() {
|
1745
|
+
name.write(&mut self.result);
|
1746
|
+
} else {
|
1747
|
+
self.result.push_str(count.to_string().as_str());
|
1748
|
+
}
|
1749
|
+
self.result.push(' ');
|
1750
|
+
match kind {
|
1751
|
+
OuterAliasKind::Type => {
|
1752
|
+
self.print_idx(&outer.core.type_names, index)?;
|
1753
|
+
self.result.push(' ');
|
1754
|
+
self.start_group("type ");
|
1755
|
+
self.print_name(&state.core.type_names, state.core.types.len() as u32)?;
|
1756
|
+
}
|
1757
|
+
}
|
1758
|
+
self.end_group(); // kind
|
1759
|
+
self.end_group(); // alias
|
1760
|
+
|
1761
|
+
let state = states.last_mut().unwrap();
|
1762
|
+
match kind {
|
1763
|
+
OuterAliasKind::Type => state.core.types.push(None),
|
1764
|
+
}
|
1765
|
+
|
1766
|
+
Ok(())
|
1767
|
+
}
|
1768
|
+
|
1769
|
+
fn print_component_func_type(&mut self, state: &State, ty: &ComponentFuncType) -> Result<()> {
|
1770
|
+
self.start_group("func");
|
1771
|
+
for (name, ty) in ty.params.iter() {
|
1772
|
+
self.result.push(' ');
|
1773
|
+
self.start_group("param ");
|
1774
|
+
self.print_str(name)?;
|
1775
|
+
self.result.push(' ');
|
1776
|
+
self.print_component_val_type(state, ty)?;
|
1777
|
+
self.end_group()
|
1778
|
+
}
|
1779
|
+
|
1780
|
+
for (name, ty) in ty.results.iter() {
|
1781
|
+
self.result.push(' ');
|
1782
|
+
self.start_group("result ");
|
1783
|
+
if let Some(name) = name {
|
1784
|
+
self.print_str(name)?;
|
1785
|
+
self.result.push(' ');
|
1786
|
+
}
|
1787
|
+
self.print_component_val_type(state, ty)?;
|
1788
|
+
self.end_group()
|
1789
|
+
}
|
1790
|
+
|
1791
|
+
self.end_group();
|
1792
|
+
|
1793
|
+
Ok(())
|
1794
|
+
}
|
1795
|
+
|
1796
|
+
fn print_component_type_def<'a>(
|
1797
|
+
&mut self,
|
1798
|
+
states: &mut Vec<State>,
|
1799
|
+
ty: ComponentType<'a>,
|
1800
|
+
) -> Result<()> {
|
1801
|
+
self.start_group("type ");
|
1802
|
+
{
|
1803
|
+
let state = states.last_mut().unwrap();
|
1804
|
+
self.print_name(&state.component.type_names, state.component.types)?;
|
1805
|
+
}
|
1806
|
+
match ty {
|
1807
|
+
ComponentType::Defined(ty) => {
|
1808
|
+
self.result.push(' ');
|
1809
|
+
self.print_defined_type(states.last_mut().unwrap(), &ty)?;
|
1810
|
+
}
|
1811
|
+
ComponentType::Func(ty) => {
|
1812
|
+
self.result.push(' ');
|
1813
|
+
self.print_component_func_type(states.last_mut().unwrap(), &ty)?;
|
1814
|
+
}
|
1815
|
+
ComponentType::Component(decls) => {
|
1816
|
+
self.print_component_type(states, decls.into_vec())?;
|
1817
|
+
}
|
1818
|
+
ComponentType::Instance(decls) => {
|
1819
|
+
self.print_instance_type(states, decls.into_vec())?;
|
1820
|
+
}
|
1821
|
+
ComponentType::Resource { rep, dtor } => {
|
1822
|
+
self.result.push_str(" ");
|
1823
|
+
self.start_group("resource");
|
1824
|
+
self.result.push_str(" (rep ");
|
1825
|
+
self.print_valtype(rep)?;
|
1826
|
+
self.result.push_str(")");
|
1827
|
+
if let Some(dtor) = dtor {
|
1828
|
+
self.result.push_str(" (dtor (func ");
|
1829
|
+
self.print_idx(&states.last().unwrap().core.func_names, dtor)?;
|
1830
|
+
self.result.push_str("))");
|
1831
|
+
}
|
1832
|
+
self.end_group();
|
1833
|
+
}
|
1834
|
+
}
|
1835
|
+
self.end_group();
|
1836
|
+
|
1837
|
+
states.last_mut().unwrap().component.types += 1;
|
1838
|
+
|
1839
|
+
Ok(())
|
1840
|
+
}
|
1841
|
+
|
1842
|
+
fn print_component_types<'a>(
|
1843
|
+
&mut self,
|
1844
|
+
states: &mut Vec<State>,
|
1845
|
+
parser: ComponentTypeSectionReader<'a>,
|
1846
|
+
) -> Result<()> {
|
1847
|
+
for ty in parser.into_iter_with_offsets() {
|
1848
|
+
let (offset, ty) = ty?;
|
1849
|
+
self.newline(offset);
|
1850
|
+
self.print_component_type_def(states, ty)?;
|
1851
|
+
}
|
1852
|
+
|
1853
|
+
Ok(())
|
1854
|
+
}
|
1855
|
+
|
1856
|
+
fn print_component_imports(
|
1857
|
+
&mut self,
|
1858
|
+
state: &mut State,
|
1859
|
+
parser: ComponentImportSectionReader,
|
1860
|
+
) -> Result<()> {
|
1861
|
+
for import in parser.into_iter_with_offsets() {
|
1862
|
+
let (offset, import) = import?;
|
1863
|
+
self.newline(offset);
|
1864
|
+
self.print_component_import(state, &import, true)?;
|
1865
|
+
}
|
1866
|
+
|
1867
|
+
Ok(())
|
1868
|
+
}
|
1869
|
+
|
1870
|
+
fn print_component_import(
|
1871
|
+
&mut self,
|
1872
|
+
state: &mut State,
|
1873
|
+
import: &ComponentImport,
|
1874
|
+
index: bool,
|
1875
|
+
) -> Result<()> {
|
1876
|
+
self.start_group("import ");
|
1877
|
+
self.print_component_import_name(import.name)?;
|
1878
|
+
self.result.push(' ');
|
1879
|
+
self.print_component_import_ty(state, &import.ty, index)?;
|
1880
|
+
self.end_group();
|
1881
|
+
Ok(())
|
1882
|
+
}
|
1883
|
+
|
1884
|
+
fn print_component_import_name(&mut self, name: ComponentExternName<'_>) -> Result<()> {
|
1885
|
+
match name {
|
1886
|
+
ComponentExternName::Kebab(s) => self.print_str(s),
|
1887
|
+
ComponentExternName::Interface(s) => {
|
1888
|
+
self.start_group("interface ");
|
1889
|
+
self.print_str(s)?;
|
1890
|
+
self.end_group();
|
1891
|
+
Ok(())
|
1892
|
+
}
|
1893
|
+
}
|
1894
|
+
}
|
1895
|
+
|
1896
|
+
fn print_component_import_ty(
|
1897
|
+
&mut self,
|
1898
|
+
state: &mut State,
|
1899
|
+
ty: &ComponentTypeRef,
|
1900
|
+
index: bool,
|
1901
|
+
) -> Result<()> {
|
1902
|
+
match ty {
|
1903
|
+
ComponentTypeRef::Module(idx) => {
|
1904
|
+
self.start_group("core module ");
|
1905
|
+
if index {
|
1906
|
+
self.print_name(&state.core.module_names, state.core.modules as u32)?;
|
1907
|
+
self.result.push(' ');
|
1908
|
+
state.core.modules += 1;
|
1909
|
+
}
|
1910
|
+
self.print_component_type_ref(state, *idx)?;
|
1911
|
+
self.end_group();
|
1912
|
+
}
|
1913
|
+
ComponentTypeRef::Func(idx) => {
|
1914
|
+
self.start_group("func ");
|
1915
|
+
if index {
|
1916
|
+
self.print_name(&state.component.func_names, state.component.funcs)?;
|
1917
|
+
self.result.push(' ');
|
1918
|
+
state.component.funcs += 1;
|
1919
|
+
}
|
1920
|
+
self.print_component_type_ref(state, *idx)?;
|
1921
|
+
self.end_group();
|
1922
|
+
}
|
1923
|
+
ComponentTypeRef::Value(ty) => {
|
1924
|
+
self.start_group("value ");
|
1925
|
+
if index {
|
1926
|
+
self.print_name(&state.component.value_names, state.component.values)?;
|
1927
|
+
self.result.push(' ');
|
1928
|
+
state.component.values += 1;
|
1929
|
+
}
|
1930
|
+
match ty {
|
1931
|
+
ComponentValType::Primitive(ty) => self.print_primitive_val_type(ty),
|
1932
|
+
ComponentValType::Type(idx) => {
|
1933
|
+
self.print_component_type_ref(state, *idx)?;
|
1934
|
+
}
|
1935
|
+
}
|
1936
|
+
self.end_group();
|
1937
|
+
}
|
1938
|
+
ComponentTypeRef::Type(bounds) => {
|
1939
|
+
self.result.push_str("(type ");
|
1940
|
+
if index {
|
1941
|
+
self.print_name(&state.component.type_names, state.component.types)?;
|
1942
|
+
self.result.push(' ');
|
1943
|
+
state.component.types += 1;
|
1944
|
+
}
|
1945
|
+
match bounds {
|
1946
|
+
TypeBounds::Eq(idx) => {
|
1947
|
+
self.result.push_str("(eq ");
|
1948
|
+
self.print_idx(&state.component.type_names, *idx)?;
|
1949
|
+
self.result.push(')');
|
1950
|
+
}
|
1951
|
+
TypeBounds::SubResource => {
|
1952
|
+
self.result.push_str("(sub resource)");
|
1953
|
+
}
|
1954
|
+
};
|
1955
|
+
self.result.push(')');
|
1956
|
+
}
|
1957
|
+
ComponentTypeRef::Instance(idx) => {
|
1958
|
+
self.start_group("instance ");
|
1959
|
+
if index {
|
1960
|
+
self.print_name(&state.component.instance_names, state.component.instances)?;
|
1961
|
+
self.result.push(' ');
|
1962
|
+
state.component.instances += 1;
|
1963
|
+
}
|
1964
|
+
self.print_component_type_ref(state, *idx)?;
|
1965
|
+
self.end_group();
|
1966
|
+
}
|
1967
|
+
ComponentTypeRef::Component(idx) => {
|
1968
|
+
self.start_group("component ");
|
1969
|
+
if index {
|
1970
|
+
self.print_name(&state.component.component_names, state.component.components)?;
|
1971
|
+
self.result.push(' ');
|
1972
|
+
state.component.components += 1;
|
1973
|
+
}
|
1974
|
+
self.print_component_type_ref(state, *idx)?;
|
1975
|
+
self.end_group();
|
1976
|
+
}
|
1977
|
+
}
|
1978
|
+
Ok(())
|
1979
|
+
}
|
1980
|
+
|
1981
|
+
fn print_component_exports(
|
1982
|
+
&mut self,
|
1983
|
+
state: &mut State,
|
1984
|
+
parser: ComponentExportSectionReader,
|
1985
|
+
) -> Result<()> {
|
1986
|
+
for export in parser.into_iter_with_offsets() {
|
1987
|
+
let (offset, export) = export?;
|
1988
|
+
self.newline(offset);
|
1989
|
+
self.print_component_export(state, &export, true)?;
|
1990
|
+
}
|
1991
|
+
Ok(())
|
1992
|
+
}
|
1993
|
+
|
1994
|
+
fn print_component_export(
|
1995
|
+
&mut self,
|
1996
|
+
state: &mut State,
|
1997
|
+
export: &ComponentExport,
|
1998
|
+
named: bool,
|
1999
|
+
) -> Result<()> {
|
2000
|
+
self.start_group("export ");
|
2001
|
+
if named {
|
2002
|
+
self.print_component_kind_name(state, export.kind)?;
|
2003
|
+
}
|
2004
|
+
self.print_component_import_name(export.name.into())?;
|
2005
|
+
self.result.push(' ');
|
2006
|
+
self.print_component_external_kind(state, export.kind, export.index)?;
|
2007
|
+
if let Some(ty) = &export.ty {
|
2008
|
+
self.result.push(' ');
|
2009
|
+
self.print_component_import_ty(state, &ty, false)?;
|
2010
|
+
}
|
2011
|
+
self.end_group();
|
2012
|
+
Ok(())
|
2013
|
+
}
|
2014
|
+
|
2015
|
+
fn print_component_kind_name(
|
2016
|
+
&mut self,
|
2017
|
+
state: &mut State,
|
2018
|
+
kind: ComponentExternalKind,
|
2019
|
+
) -> Result<()> {
|
2020
|
+
match kind {
|
2021
|
+
ComponentExternalKind::Func => {
|
2022
|
+
self.print_name(&state.component.func_names, state.component.funcs)?;
|
2023
|
+
state.component.funcs += 1;
|
2024
|
+
}
|
2025
|
+
ComponentExternalKind::Module => {
|
2026
|
+
self.print_name(&state.core.module_names, state.core.modules)?;
|
2027
|
+
state.core.modules += 1;
|
2028
|
+
}
|
2029
|
+
ComponentExternalKind::Value => {
|
2030
|
+
self.print_name(&state.component.value_names, state.component.values)?;
|
2031
|
+
state.component.values += 1;
|
2032
|
+
}
|
2033
|
+
ComponentExternalKind::Type => {
|
2034
|
+
self.print_name(&state.component.type_names, state.component.types)?;
|
2035
|
+
state.component.types += 1;
|
2036
|
+
}
|
2037
|
+
ComponentExternalKind::Instance => {
|
2038
|
+
self.print_name(&state.component.instance_names, state.component.instances)?;
|
2039
|
+
state.component.instances += 1;
|
2040
|
+
}
|
2041
|
+
ComponentExternalKind::Component => {
|
2042
|
+
self.print_name(&state.component.component_names, state.component.components)?;
|
2043
|
+
state.component.components += 1;
|
2044
|
+
}
|
2045
|
+
}
|
2046
|
+
self.result.push(' ');
|
2047
|
+
Ok(())
|
2048
|
+
}
|
2049
|
+
|
2050
|
+
fn print_component_external_kind(
|
2051
|
+
&mut self,
|
2052
|
+
state: &State,
|
2053
|
+
kind: ComponentExternalKind,
|
2054
|
+
index: u32,
|
2055
|
+
) -> Result<()> {
|
2056
|
+
match kind {
|
2057
|
+
ComponentExternalKind::Module => {
|
2058
|
+
self.start_group("core module ");
|
2059
|
+
self.print_idx(&state.core.module_names, index)?;
|
2060
|
+
}
|
2061
|
+
ComponentExternalKind::Component => {
|
2062
|
+
self.start_group("component ");
|
2063
|
+
self.print_idx(&state.component.component_names, index)?;
|
2064
|
+
}
|
2065
|
+
ComponentExternalKind::Instance => {
|
2066
|
+
self.start_group("instance ");
|
2067
|
+
self.print_idx(&state.component.instance_names, index)?;
|
2068
|
+
}
|
2069
|
+
ComponentExternalKind::Func => {
|
2070
|
+
self.start_group("func ");
|
2071
|
+
self.print_idx(&state.component.func_names, index)?;
|
2072
|
+
}
|
2073
|
+
ComponentExternalKind::Value => {
|
2074
|
+
self.start_group("value ");
|
2075
|
+
self.print_idx(&state.component.value_names, index)?;
|
2076
|
+
}
|
2077
|
+
ComponentExternalKind::Type => {
|
2078
|
+
self.start_group("type ");
|
2079
|
+
self.print_idx(&state.component.type_names, index)?;
|
2080
|
+
}
|
2081
|
+
}
|
2082
|
+
self.end_group();
|
2083
|
+
Ok(())
|
2084
|
+
}
|
2085
|
+
|
2086
|
+
fn print_canonical_options(
|
2087
|
+
&mut self,
|
2088
|
+
state: &State,
|
2089
|
+
options: &[CanonicalOption],
|
2090
|
+
) -> Result<()> {
|
2091
|
+
for option in options {
|
2092
|
+
self.result.push(' ');
|
2093
|
+
match option {
|
2094
|
+
CanonicalOption::UTF8 => self.result.push_str("string-encoding=utf8"),
|
2095
|
+
CanonicalOption::UTF16 => self.result.push_str("string-encoding=utf16"),
|
2096
|
+
CanonicalOption::CompactUTF16 => {
|
2097
|
+
self.result.push_str("string-encoding=latin1+utf16")
|
2098
|
+
}
|
2099
|
+
CanonicalOption::Memory(idx) => {
|
2100
|
+
self.start_group("memory ");
|
2101
|
+
self.print_idx(&state.core.memory_names, *idx)?;
|
2102
|
+
self.end_group();
|
2103
|
+
}
|
2104
|
+
CanonicalOption::Realloc(idx) => {
|
2105
|
+
self.start_group("realloc ");
|
2106
|
+
self.print_idx(&state.core.func_names, *idx)?;
|
2107
|
+
self.end_group();
|
2108
|
+
}
|
2109
|
+
CanonicalOption::PostReturn(idx) => {
|
2110
|
+
self.start_group("post-return ");
|
2111
|
+
self.print_idx(&state.core.func_names, *idx)?;
|
2112
|
+
self.end_group();
|
2113
|
+
}
|
2114
|
+
}
|
2115
|
+
}
|
2116
|
+
Ok(())
|
2117
|
+
}
|
2118
|
+
|
2119
|
+
fn print_canonical_functions(
|
2120
|
+
&mut self,
|
2121
|
+
state: &mut State,
|
2122
|
+
parser: ComponentCanonicalSectionReader,
|
2123
|
+
) -> Result<()> {
|
2124
|
+
for func in parser.into_iter_with_offsets() {
|
2125
|
+
let (offset, func) = func?;
|
2126
|
+
self.newline(offset);
|
2127
|
+
match func {
|
2128
|
+
CanonicalFunction::Lift {
|
2129
|
+
core_func_index,
|
2130
|
+
type_index,
|
2131
|
+
options,
|
2132
|
+
} => {
|
2133
|
+
self.start_group("func ");
|
2134
|
+
self.print_name(&state.component.func_names, state.component.funcs)?;
|
2135
|
+
self.result.push(' ');
|
2136
|
+
self.start_group("type ");
|
2137
|
+
self.print_idx(&state.component.type_names, type_index)?;
|
2138
|
+
self.end_group();
|
2139
|
+
self.result.push(' ');
|
2140
|
+
self.start_group("canon lift ");
|
2141
|
+
self.start_group("core func ");
|
2142
|
+
self.print_idx(&state.core.func_names, core_func_index)?;
|
2143
|
+
self.end_group();
|
2144
|
+
self.print_canonical_options(state, &options)?;
|
2145
|
+
self.end_group();
|
2146
|
+
self.end_group();
|
2147
|
+
state.component.funcs += 1;
|
2148
|
+
}
|
2149
|
+
CanonicalFunction::Lower {
|
2150
|
+
func_index,
|
2151
|
+
options,
|
2152
|
+
} => {
|
2153
|
+
self.start_group("core func ");
|
2154
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
2155
|
+
self.result.push(' ');
|
2156
|
+
self.start_group("canon lower ");
|
2157
|
+
self.start_group("func ");
|
2158
|
+
self.print_idx(&state.component.func_names, func_index)?;
|
2159
|
+
self.end_group();
|
2160
|
+
self.print_canonical_options(state, &options)?;
|
2161
|
+
self.end_group();
|
2162
|
+
self.end_group();
|
2163
|
+
state.core.funcs += 1;
|
2164
|
+
}
|
2165
|
+
CanonicalFunction::ResourceNew { resource } => {
|
2166
|
+
self.start_group("core func ");
|
2167
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
2168
|
+
self.result.push(' ');
|
2169
|
+
self.start_group("canon resource.new ");
|
2170
|
+
self.print_idx(&state.component.type_names, resource)?;
|
2171
|
+
self.end_group();
|
2172
|
+
self.end_group();
|
2173
|
+
state.core.funcs += 1;
|
2174
|
+
}
|
2175
|
+
CanonicalFunction::ResourceDrop { resource } => {
|
2176
|
+
self.start_group("core func ");
|
2177
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
2178
|
+
self.result.push(' ');
|
2179
|
+
self.start_group("canon resource.drop ");
|
2180
|
+
self.print_idx(&state.component.type_names, resource)?;
|
2181
|
+
self.end_group();
|
2182
|
+
self.end_group();
|
2183
|
+
state.core.funcs += 1;
|
2184
|
+
}
|
2185
|
+
CanonicalFunction::ResourceRep { resource } => {
|
2186
|
+
self.start_group("core func ");
|
2187
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
2188
|
+
self.result.push(' ');
|
2189
|
+
self.start_group("canon resource.rep ");
|
2190
|
+
self.print_idx(&state.component.type_names, resource)?;
|
2191
|
+
self.end_group();
|
2192
|
+
self.end_group();
|
2193
|
+
state.core.funcs += 1;
|
2194
|
+
}
|
2195
|
+
}
|
2196
|
+
}
|
2197
|
+
|
2198
|
+
Ok(())
|
2199
|
+
}
|
2200
|
+
|
2201
|
+
fn print_instances(&mut self, state: &mut State, parser: InstanceSectionReader) -> Result<()> {
|
2202
|
+
for instance in parser.into_iter_with_offsets() {
|
2203
|
+
let (offset, instance) = instance?;
|
2204
|
+
self.newline(offset);
|
2205
|
+
self.start_group("core instance ");
|
2206
|
+
self.print_name(&state.core.instance_names, state.core.instances)?;
|
2207
|
+
match instance {
|
2208
|
+
Instance::Instantiate { module_index, args } => {
|
2209
|
+
self.result.push(' ');
|
2210
|
+
self.start_group("instantiate ");
|
2211
|
+
self.print_idx(&state.core.module_names, module_index)?;
|
2212
|
+
for arg in args.iter() {
|
2213
|
+
self.newline(offset);
|
2214
|
+
self.print_instantiation_arg(state, arg)?;
|
2215
|
+
}
|
2216
|
+
self.end_group();
|
2217
|
+
state.core.instances += 1;
|
2218
|
+
}
|
2219
|
+
Instance::FromExports(exports) => {
|
2220
|
+
for export in exports.iter() {
|
2221
|
+
self.newline(offset);
|
2222
|
+
self.print_export(state, export)?;
|
2223
|
+
}
|
2224
|
+
state.core.instances += 1;
|
2225
|
+
}
|
2226
|
+
}
|
2227
|
+
self.end_group();
|
2228
|
+
}
|
2229
|
+
Ok(())
|
2230
|
+
}
|
2231
|
+
|
2232
|
+
fn print_component_instances(
|
2233
|
+
&mut self,
|
2234
|
+
state: &mut State,
|
2235
|
+
parser: ComponentInstanceSectionReader,
|
2236
|
+
) -> Result<()> {
|
2237
|
+
for instance in parser.into_iter_with_offsets() {
|
2238
|
+
let (offset, instance) = instance?;
|
2239
|
+
self.newline(offset);
|
2240
|
+
self.start_group("instance ");
|
2241
|
+
self.print_name(&state.component.instance_names, state.component.instances)?;
|
2242
|
+
state.component.instances += 1;
|
2243
|
+
match instance {
|
2244
|
+
ComponentInstance::Instantiate {
|
2245
|
+
component_index,
|
2246
|
+
args,
|
2247
|
+
} => {
|
2248
|
+
self.result.push(' ');
|
2249
|
+
self.start_group("instantiate ");
|
2250
|
+
self.print_idx(&state.component.component_names, component_index)?;
|
2251
|
+
for arg in args.iter() {
|
2252
|
+
self.newline(offset);
|
2253
|
+
self.print_component_instantiation_arg(state, arg)?;
|
2254
|
+
}
|
2255
|
+
self.end_group();
|
2256
|
+
}
|
2257
|
+
ComponentInstance::FromExports(exports) => {
|
2258
|
+
for export in exports.iter() {
|
2259
|
+
self.newline(offset);
|
2260
|
+
self.print_component_export(state, export, false)?;
|
2261
|
+
}
|
2262
|
+
}
|
2263
|
+
}
|
2264
|
+
self.end_group();
|
2265
|
+
}
|
2266
|
+
Ok(())
|
2267
|
+
}
|
2268
|
+
|
2269
|
+
fn print_instantiation_arg(&mut self, state: &State, arg: &InstantiationArg) -> Result<()> {
|
2270
|
+
self.start_group("with ");
|
2271
|
+
self.print_str(arg.name)?;
|
2272
|
+
self.result.push(' ');
|
2273
|
+
match arg.kind {
|
2274
|
+
InstantiationArgKind::Instance => {
|
2275
|
+
self.start_group("instance ");
|
2276
|
+
self.print_idx(&state.core.instance_names, arg.index)?;
|
2277
|
+
self.end_group();
|
2278
|
+
}
|
2279
|
+
}
|
2280
|
+
self.end_group();
|
2281
|
+
Ok(())
|
2282
|
+
}
|
2283
|
+
|
2284
|
+
fn print_component_instantiation_arg(
|
2285
|
+
&mut self,
|
2286
|
+
state: &State,
|
2287
|
+
arg: &ComponentInstantiationArg,
|
2288
|
+
) -> Result<()> {
|
2289
|
+
self.start_group("with ");
|
2290
|
+
self.print_str(arg.name)?;
|
2291
|
+
self.result.push(' ');
|
2292
|
+
self.print_component_external_kind(state, arg.kind, arg.index)?;
|
2293
|
+
self.end_group();
|
2294
|
+
Ok(())
|
2295
|
+
}
|
2296
|
+
|
2297
|
+
fn print_component_start(
|
2298
|
+
&mut self,
|
2299
|
+
state: &mut State,
|
2300
|
+
pos: usize,
|
2301
|
+
start: ComponentStartFunction,
|
2302
|
+
) -> Result<()> {
|
2303
|
+
self.newline(pos);
|
2304
|
+
self.start_group("start ");
|
2305
|
+
self.print_idx(&state.component.func_names, start.func_index)?;
|
2306
|
+
|
2307
|
+
for arg in start.arguments.iter() {
|
2308
|
+
self.result.push(' ');
|
2309
|
+
self.start_group("value ");
|
2310
|
+
self.print_idx(&state.component.value_names, *arg)?;
|
2311
|
+
self.end_group();
|
2312
|
+
}
|
2313
|
+
|
2314
|
+
for _ in 0..start.results {
|
2315
|
+
self.result.push(' ');
|
2316
|
+
self.start_group("result ");
|
2317
|
+
self.start_group("value ");
|
2318
|
+
self.print_name(&state.component.value_names, state.component.values)?;
|
2319
|
+
self.end_group();
|
2320
|
+
self.end_group();
|
2321
|
+
state.component.values += 1;
|
2322
|
+
}
|
2323
|
+
|
2324
|
+
self.end_group(); // start
|
2325
|
+
|
2326
|
+
Ok(())
|
2327
|
+
}
|
2328
|
+
|
2329
|
+
fn print_component_aliases(
|
2330
|
+
&mut self,
|
2331
|
+
states: &mut [State],
|
2332
|
+
parser: ComponentAliasSectionReader,
|
2333
|
+
) -> Result<()> {
|
2334
|
+
for alias in parser.into_iter_with_offsets() {
|
2335
|
+
let (offset, alias) = alias?;
|
2336
|
+
self.newline(offset);
|
2337
|
+
self.print_component_alias(states, alias)?;
|
2338
|
+
}
|
2339
|
+
Ok(())
|
2340
|
+
}
|
2341
|
+
|
2342
|
+
fn print_component_alias(
|
2343
|
+
&mut self,
|
2344
|
+
states: &mut [State],
|
2345
|
+
alias: ComponentAlias<'_>,
|
2346
|
+
) -> Result<()> {
|
2347
|
+
match alias {
|
2348
|
+
ComponentAlias::InstanceExport {
|
2349
|
+
kind,
|
2350
|
+
instance_index,
|
2351
|
+
name,
|
2352
|
+
} => {
|
2353
|
+
let state = states.last_mut().unwrap();
|
2354
|
+
self.start_group("alias export ");
|
2355
|
+
self.print_idx(&state.component.instance_names, instance_index)?;
|
2356
|
+
self.result.push(' ');
|
2357
|
+
self.print_str(name)?;
|
2358
|
+
self.result.push(' ');
|
2359
|
+
match kind {
|
2360
|
+
ComponentExternalKind::Module => {
|
2361
|
+
self.start_group("core module ");
|
2362
|
+
self.print_name(&state.core.module_names, state.core.modules)?;
|
2363
|
+
self.end_group();
|
2364
|
+
state.core.modules += 1;
|
2365
|
+
}
|
2366
|
+
ComponentExternalKind::Component => {
|
2367
|
+
self.start_group("component ");
|
2368
|
+
self.print_name(
|
2369
|
+
&state.component.component_names,
|
2370
|
+
state.component.components,
|
2371
|
+
)?;
|
2372
|
+
self.end_group();
|
2373
|
+
state.component.components += 1;
|
2374
|
+
}
|
2375
|
+
ComponentExternalKind::Instance => {
|
2376
|
+
self.start_group("instance ");
|
2377
|
+
self.print_name(
|
2378
|
+
&state.component.instance_names,
|
2379
|
+
state.component.instances,
|
2380
|
+
)?;
|
2381
|
+
self.end_group();
|
2382
|
+
state.component.instances += 1;
|
2383
|
+
}
|
2384
|
+
ComponentExternalKind::Func => {
|
2385
|
+
self.start_group("func ");
|
2386
|
+
self.print_name(&state.component.func_names, state.component.funcs)?;
|
2387
|
+
self.end_group();
|
2388
|
+
state.component.funcs += 1;
|
2389
|
+
}
|
2390
|
+
ComponentExternalKind::Value => {
|
2391
|
+
self.start_group("value ");
|
2392
|
+
self.print_name(&state.component.value_names, state.component.values)?;
|
2393
|
+
self.end_group();
|
2394
|
+
state.component.values += 1;
|
2395
|
+
}
|
2396
|
+
ComponentExternalKind::Type => {
|
2397
|
+
self.start_group("type ");
|
2398
|
+
self.print_name(&state.component.type_names, state.component.types)?;
|
2399
|
+
self.end_group();
|
2400
|
+
state.component.types += 1;
|
2401
|
+
}
|
2402
|
+
}
|
2403
|
+
|
2404
|
+
self.end_group(); // alias export
|
2405
|
+
}
|
2406
|
+
ComponentAlias::CoreInstanceExport {
|
2407
|
+
instance_index,
|
2408
|
+
kind,
|
2409
|
+
name,
|
2410
|
+
} => {
|
2411
|
+
let state = states.last_mut().unwrap();
|
2412
|
+
self.start_group("alias core export ");
|
2413
|
+
self.print_idx(&state.core.instance_names, instance_index)?;
|
2414
|
+
self.result.push(' ');
|
2415
|
+
self.print_str(name)?;
|
2416
|
+
self.result.push(' ');
|
2417
|
+
match kind {
|
2418
|
+
ExternalKind::Func => {
|
2419
|
+
self.start_group("core func ");
|
2420
|
+
self.print_name(&state.core.func_names, state.core.funcs)?;
|
2421
|
+
self.end_group();
|
2422
|
+
state.core.funcs += 1;
|
2423
|
+
}
|
2424
|
+
ExternalKind::Table => {
|
2425
|
+
self.start_group("core table ");
|
2426
|
+
self.print_name(&state.core.table_names, state.core.tables)?;
|
2427
|
+
self.end_group();
|
2428
|
+
state.core.tables += 1;
|
2429
|
+
}
|
2430
|
+
ExternalKind::Memory => {
|
2431
|
+
self.start_group("core memory ");
|
2432
|
+
self.print_name(&state.core.memory_names, state.core.memories)?;
|
2433
|
+
self.end_group();
|
2434
|
+
state.core.memories += 1;
|
2435
|
+
}
|
2436
|
+
ExternalKind::Global => {
|
2437
|
+
self.start_group("core global ");
|
2438
|
+
self.print_name(&state.core.global_names, state.core.globals)?;
|
2439
|
+
self.end_group();
|
2440
|
+
state.core.globals += 1;
|
2441
|
+
}
|
2442
|
+
ExternalKind::Tag => {
|
2443
|
+
self.start_group("core tag ");
|
2444
|
+
write!(self.result, "(;{};)", state.core.tags)?;
|
2445
|
+
self.end_group();
|
2446
|
+
state.core.tags += 1;
|
2447
|
+
}
|
2448
|
+
}
|
2449
|
+
self.end_group(); // alias export
|
2450
|
+
}
|
2451
|
+
|
2452
|
+
ComponentAlias::Outer { kind, count, index } => {
|
2453
|
+
let state = states.last().unwrap();
|
2454
|
+
let outer = Self::outer_state(states, count)?;
|
2455
|
+
self.start_group("alias outer ");
|
2456
|
+
if let Some(name) = outer.name.as_ref() {
|
2457
|
+
name.write(&mut self.result);
|
2458
|
+
} else {
|
2459
|
+
self.result.push_str(count.to_string().as_str());
|
2460
|
+
}
|
2461
|
+
self.result.push(' ');
|
2462
|
+
match kind {
|
2463
|
+
ComponentOuterAliasKind::CoreModule => {
|
2464
|
+
self.print_idx(&outer.core.module_names, index)?;
|
2465
|
+
self.result.push(' ');
|
2466
|
+
self.start_group("core module ");
|
2467
|
+
self.print_name(&state.core.module_names, state.core.modules)?;
|
2468
|
+
}
|
2469
|
+
ComponentOuterAliasKind::CoreType => {
|
2470
|
+
self.print_idx(&outer.core.type_names, index)?;
|
2471
|
+
self.result.push(' ');
|
2472
|
+
self.start_group("core type ");
|
2473
|
+
self.print_name(&state.core.type_names, state.core.types.len() as u32)?;
|
2474
|
+
}
|
2475
|
+
ComponentOuterAliasKind::Type => {
|
2476
|
+
self.print_idx(&outer.component.type_names, index)?;
|
2477
|
+
self.result.push(' ');
|
2478
|
+
self.start_group("type ");
|
2479
|
+
self.print_name(&state.component.type_names, state.component.types)?;
|
2480
|
+
}
|
2481
|
+
ComponentOuterAliasKind::Component => {
|
2482
|
+
self.print_idx(&outer.component.component_names, index)?;
|
2483
|
+
self.result.push(' ');
|
2484
|
+
self.start_group("component ");
|
2485
|
+
self.print_name(
|
2486
|
+
&state.component.component_names,
|
2487
|
+
state.component.components,
|
2488
|
+
)?;
|
2489
|
+
}
|
2490
|
+
}
|
2491
|
+
self.end_group(); // kind
|
2492
|
+
self.end_group(); // alias
|
2493
|
+
|
2494
|
+
let state = states.last_mut().unwrap();
|
2495
|
+
match kind {
|
2496
|
+
ComponentOuterAliasKind::CoreModule => state.core.modules += 1,
|
2497
|
+
ComponentOuterAliasKind::CoreType => state.core.types.push(None),
|
2498
|
+
ComponentOuterAliasKind::Type => state.component.types += 1,
|
2499
|
+
ComponentOuterAliasKind::Component => state.component.components += 1,
|
2500
|
+
}
|
2501
|
+
}
|
2502
|
+
}
|
2503
|
+
Ok(())
|
2504
|
+
}
|
2505
|
+
|
2506
|
+
fn print_str(&mut self, name: &str) -> Result<()> {
|
2507
|
+
let mut bytes = [0; 4];
|
2508
|
+
self.result.push('"');
|
2509
|
+
for c in name.chars() {
|
2510
|
+
let v = c as u32;
|
2511
|
+
if (0x20..0x7f).contains(&v) && c != '"' && c != '\\' && v < 0xff {
|
2512
|
+
self.result.push(c);
|
2513
|
+
} else {
|
2514
|
+
for byte in c.encode_utf8(&mut bytes).as_bytes() {
|
2515
|
+
self.hex_byte(*byte);
|
2516
|
+
}
|
2517
|
+
}
|
2518
|
+
}
|
2519
|
+
self.result.push('"');
|
2520
|
+
Ok(())
|
2521
|
+
}
|
2522
|
+
|
2523
|
+
fn print_bytes(&mut self, bytes: &[u8]) -> Result<()> {
|
2524
|
+
self.result.push('"');
|
2525
|
+
for byte in bytes {
|
2526
|
+
if *byte >= 0x20 && *byte < 0x7f && *byte != b'"' && *byte != b'\\' {
|
2527
|
+
self.result.push(*byte as char);
|
2528
|
+
} else {
|
2529
|
+
self.hex_byte(*byte);
|
2530
|
+
}
|
2531
|
+
}
|
2532
|
+
self.result.push('"');
|
2533
|
+
Ok(())
|
2534
|
+
}
|
2535
|
+
|
2536
|
+
fn hex_byte(&mut self, byte: u8) {
|
2537
|
+
fn to_hex(b: u8) -> char {
|
2538
|
+
if b < 10 {
|
2539
|
+
(b'0' + b) as char
|
2540
|
+
} else {
|
2541
|
+
(b'a' + b - 10) as char
|
2542
|
+
}
|
2543
|
+
}
|
2544
|
+
self.result.push('\\');
|
2545
|
+
self.result.push(to_hex((byte >> 4) & 0xf));
|
2546
|
+
self.result.push(to_hex(byte & 0xf));
|
2547
|
+
}
|
2548
|
+
|
2549
|
+
fn print_custom_section(&mut self, section: CustomSectionReader<'_>) -> Result<()> {
|
2550
|
+
match section.name() {
|
2551
|
+
"producers" => {
|
2552
|
+
self.newline(section.range().start);
|
2553
|
+
self.print_producers_section(ProducersSectionReader::new(
|
2554
|
+
section.data(),
|
2555
|
+
section.data_offset(),
|
2556
|
+
)?)
|
2557
|
+
}
|
2558
|
+
"dylink.0" => {
|
2559
|
+
self.newline(section.range().start);
|
2560
|
+
self.print_dylink0_section(Dylink0SectionReader::new(
|
2561
|
+
section.data(),
|
2562
|
+
section.data_offset(),
|
2563
|
+
))
|
2564
|
+
}
|
2565
|
+
_ => Ok(()),
|
2566
|
+
}
|
2567
|
+
}
|
2568
|
+
|
2569
|
+
fn print_producers_section(&mut self, section: ProducersSectionReader<'_>) -> Result<()> {
|
2570
|
+
self.start_group("@producers");
|
2571
|
+
for field in section {
|
2572
|
+
let field = field?;
|
2573
|
+
for value in field.values.into_iter_with_offsets() {
|
2574
|
+
let (offset, value) = value?;
|
2575
|
+
self.newline(offset);
|
2576
|
+
self.start_group(field.name);
|
2577
|
+
self.result.push_str(" ");
|
2578
|
+
self.print_str(value.name)?;
|
2579
|
+
self.result.push_str(" ");
|
2580
|
+
self.print_str(value.version)?;
|
2581
|
+
self.end_group();
|
2582
|
+
}
|
2583
|
+
}
|
2584
|
+
self.end_group();
|
2585
|
+
Ok(())
|
2586
|
+
}
|
2587
|
+
|
2588
|
+
fn print_dylink0_section(&mut self, mut section: Dylink0SectionReader<'_>) -> Result<()> {
|
2589
|
+
self.start_group("@dylink.0");
|
2590
|
+
loop {
|
2591
|
+
let start = section.original_position();
|
2592
|
+
let next = match section.next() {
|
2593
|
+
Some(Ok(next)) => next,
|
2594
|
+
Some(Err(e)) => return Err(e.into()),
|
2595
|
+
None => break,
|
2596
|
+
};
|
2597
|
+
match next {
|
2598
|
+
Dylink0Subsection::MemInfo(info) => {
|
2599
|
+
self.newline(start);
|
2600
|
+
self.start_group("mem-info");
|
2601
|
+
if info.memory_size > 0 || info.memory_alignment > 0 {
|
2602
|
+
write!(
|
2603
|
+
self.result,
|
2604
|
+
" (memory {} {})",
|
2605
|
+
info.memory_size, info.memory_alignment
|
2606
|
+
)?;
|
2607
|
+
}
|
2608
|
+
if info.table_size > 0 || info.table_alignment > 0 {
|
2609
|
+
write!(
|
2610
|
+
self.result,
|
2611
|
+
" (table {} {})",
|
2612
|
+
info.table_size, info.table_alignment
|
2613
|
+
)?;
|
2614
|
+
}
|
2615
|
+
self.end_group();
|
2616
|
+
}
|
2617
|
+
Dylink0Subsection::Needed(needed) => {
|
2618
|
+
self.newline(start);
|
2619
|
+
self.start_group("needed");
|
2620
|
+
for s in needed {
|
2621
|
+
self.result.push_str(" ");
|
2622
|
+
self.print_str(s)?;
|
2623
|
+
}
|
2624
|
+
self.end_group();
|
2625
|
+
}
|
2626
|
+
Dylink0Subsection::ExportInfo(info) => {
|
2627
|
+
for info in info {
|
2628
|
+
self.newline(start);
|
2629
|
+
self.start_group("export-info ");
|
2630
|
+
self.print_str(info.name)?;
|
2631
|
+
self.print_dylink0_flags(info.flags)?;
|
2632
|
+
self.end_group();
|
2633
|
+
}
|
2634
|
+
}
|
2635
|
+
Dylink0Subsection::ImportInfo(info) => {
|
2636
|
+
for info in info {
|
2637
|
+
self.newline(start);
|
2638
|
+
self.start_group("import-info ");
|
2639
|
+
self.print_str(info.module)?;
|
2640
|
+
self.result.push_str(" ");
|
2641
|
+
self.print_str(info.field)?;
|
2642
|
+
self.print_dylink0_flags(info.flags)?;
|
2643
|
+
self.end_group();
|
2644
|
+
}
|
2645
|
+
}
|
2646
|
+
Dylink0Subsection::Unknown { ty, .. } => {
|
2647
|
+
bail!("don't know how to print dylink.0 subsection id {ty}");
|
2648
|
+
}
|
2649
|
+
}
|
2650
|
+
}
|
2651
|
+
self.end_group();
|
2652
|
+
Ok(())
|
2653
|
+
}
|
2654
|
+
|
2655
|
+
fn print_dylink0_flags(&mut self, mut flags: u32) -> Result<()> {
|
2656
|
+
macro_rules! print_flag {
|
2657
|
+
($($name:ident = $text:tt)*) => ({$(
|
2658
|
+
if flags & wasmparser::$name != 0 {
|
2659
|
+
flags &= !wasmparser::$name;
|
2660
|
+
self.result.push_str(concat!(" ", $text));
|
2661
|
+
}
|
2662
|
+
)*})
|
2663
|
+
}
|
2664
|
+
print_flag! {
|
2665
|
+
WASM_SYM_BINDING_WEAK = "binding-weak"
|
2666
|
+
WASM_SYM_BINDING_LOCAL = "binding-local"
|
2667
|
+
WASM_SYM_VISIBILITY_HIDDEN = "visibility-hidden"
|
2668
|
+
WASM_SYM_UNDEFINED = "undefined"
|
2669
|
+
WASM_SYM_EXPORTED = "exported"
|
2670
|
+
WASM_SYM_EXPLICIT_NAME = "explicit-name"
|
2671
|
+
WASM_SYM_NO_STRIP = "no-strip"
|
2672
|
+
}
|
2673
|
+
if flags != 0 {
|
2674
|
+
write!(self.result, " {:#x}", flags)?;
|
2675
|
+
}
|
2676
|
+
Ok(())
|
2677
|
+
}
|
2678
|
+
}
|
2679
|
+
|
2680
|
+
struct NamedLocalPrinter {
|
2681
|
+
group_name: &'static str,
|
2682
|
+
in_group: bool,
|
2683
|
+
end_group_after_local: bool,
|
2684
|
+
first: bool,
|
2685
|
+
}
|
2686
|
+
|
2687
|
+
impl NamedLocalPrinter {
|
2688
|
+
fn new(group_name: &'static str) -> NamedLocalPrinter {
|
2689
|
+
NamedLocalPrinter {
|
2690
|
+
group_name,
|
2691
|
+
in_group: false,
|
2692
|
+
end_group_after_local: false,
|
2693
|
+
first: true,
|
2694
|
+
}
|
2695
|
+
}
|
2696
|
+
|
2697
|
+
fn start_local(&mut self, name: Option<&Naming>, dst: &mut String) {
|
2698
|
+
// Named locals must be in their own group, so if we have a name we need
|
2699
|
+
// to terminate the previous group.
|
2700
|
+
if name.is_some() && self.in_group {
|
2701
|
+
dst.push(')');
|
2702
|
+
self.in_group = false;
|
2703
|
+
}
|
2704
|
+
|
2705
|
+
if self.first {
|
2706
|
+
self.first = false;
|
2707
|
+
} else {
|
2708
|
+
dst.push(' ');
|
2709
|
+
}
|
2710
|
+
|
2711
|
+
// Next we either need a separator if we're already in a group or we
|
2712
|
+
// need to open a group for our new local.
|
2713
|
+
if !self.in_group {
|
2714
|
+
dst.push('(');
|
2715
|
+
dst.push_str(self.group_name);
|
2716
|
+
dst.push(' ');
|
2717
|
+
self.in_group = true;
|
2718
|
+
}
|
2719
|
+
|
2720
|
+
// Print the optional name if given...
|
2721
|
+
if let Some(name) = name {
|
2722
|
+
name.write(dst);
|
2723
|
+
dst.push(' ');
|
2724
|
+
}
|
2725
|
+
self.end_group_after_local = name.is_some();
|
2726
|
+
}
|
2727
|
+
|
2728
|
+
fn end_local(&mut self, dst: &mut String) {
|
2729
|
+
if self.end_group_after_local {
|
2730
|
+
dst.push(')');
|
2731
|
+
self.end_group_after_local = false;
|
2732
|
+
self.in_group = false;
|
2733
|
+
}
|
2734
|
+
}
|
2735
|
+
fn finish(self, dst: &mut String) {
|
2736
|
+
if self.in_group {
|
2737
|
+
dst.push(')');
|
2738
|
+
}
|
2739
|
+
}
|
2740
|
+
}
|
2741
|
+
|
2742
|
+
macro_rules! print_float {
|
2743
|
+
($name:ident $float:ident $uint:ident $sint:ident $exp_bits:tt) => {
|
2744
|
+
fn $name(&mut self, mut bits: $uint) -> Result<()> {
|
2745
|
+
// Calculate a few constants
|
2746
|
+
let int_width = mem::size_of::<$uint>() * 8;
|
2747
|
+
let exp_width = $exp_bits;
|
2748
|
+
let mantissa_width = int_width - 1 - exp_width;
|
2749
|
+
let bias = (1 << (exp_width - 1)) - 1;
|
2750
|
+
let max_exp = (1 as $sint) << (exp_width - 1);
|
2751
|
+
let min_exp = -max_exp + 1;
|
2752
|
+
|
2753
|
+
// Handle `NaN` and infinity specially
|
2754
|
+
let f = $float::from_bits(bits);
|
2755
|
+
if bits >> (int_width - 1) != 0 {
|
2756
|
+
bits ^= 1 << (int_width - 1);
|
2757
|
+
self.result.push('-');
|
2758
|
+
}
|
2759
|
+
if f.is_infinite() {
|
2760
|
+
write!(self.result, "inf (;={};)", f)?;
|
2761
|
+
return Ok(());
|
2762
|
+
}
|
2763
|
+
if f.is_nan() {
|
2764
|
+
let payload = bits & ((1 << mantissa_width) - 1);
|
2765
|
+
if payload == 1 << (mantissa_width - 1) {
|
2766
|
+
write!(self.result, "nan (;={};)", f)?;
|
2767
|
+
} else {
|
2768
|
+
write!(self.result, "nan:{:#x} (;={};)", payload, f)?;
|
2769
|
+
}
|
2770
|
+
return Ok(());
|
2771
|
+
}
|
2772
|
+
|
2773
|
+
// Figure out our exponent, but keep in mine that it's in an
|
2774
|
+
// integer width that may not be supported. As a result we do a few
|
2775
|
+
// tricks here:
|
2776
|
+
//
|
2777
|
+
// * Make the MSB the top bit of the exponent, then shift the
|
2778
|
+
// exponent to the bottom. This means we now have a signed
|
2779
|
+
// integer in `$sint` width representing the whole exponent.
|
2780
|
+
// * Do the arithmetic for the exponent (subtract)
|
2781
|
+
// * Next we only care about the lowest `$exp_bits` bits of the
|
2782
|
+
// result, but we do care about the sign. Use sign-carrying of
|
2783
|
+
// the signed integer shifts to shift it left then shift it back.
|
2784
|
+
//
|
2785
|
+
// Overall this should do basic arithmetic for `$exp_bits` bit
|
2786
|
+
// numbers and get the result back as a signed integer with `$sint`
|
2787
|
+
// bits in `exponent` representing the same decimal value.
|
2788
|
+
let mut exponent = (((bits << 1) as $sint) >> (mantissa_width + 1)).wrapping_sub(bias);
|
2789
|
+
exponent = (exponent << (int_width - exp_width)) >> (int_width - exp_width);
|
2790
|
+
let mut fraction = bits & ((1 << mantissa_width) - 1);
|
2791
|
+
self.result.push_str("0x");
|
2792
|
+
if bits == 0 {
|
2793
|
+
self.result.push_str("0p+0");
|
2794
|
+
} else {
|
2795
|
+
self.result.push('1');
|
2796
|
+
if fraction > 0 {
|
2797
|
+
fraction <<= (int_width - mantissa_width);
|
2798
|
+
|
2799
|
+
// Apparently the subnormal is handled here. I don't know
|
2800
|
+
// what a subnormal is. If someone else does, please let me
|
2801
|
+
// know!
|
2802
|
+
if exponent == min_exp {
|
2803
|
+
let leading = fraction.leading_zeros();
|
2804
|
+
if (leading as usize) < int_width - 1 {
|
2805
|
+
fraction <<= leading + 1;
|
2806
|
+
} else {
|
2807
|
+
fraction = 0;
|
2808
|
+
}
|
2809
|
+
exponent -= leading as $sint;
|
2810
|
+
}
|
2811
|
+
|
2812
|
+
self.result.push('.');
|
2813
|
+
while fraction > 0 {
|
2814
|
+
write!(self.result, "{:x}", fraction >> (int_width - 4))?;
|
2815
|
+
fraction <<= 4;
|
2816
|
+
}
|
2817
|
+
}
|
2818
|
+
write!(self.result, "p{:+}", exponent)?;
|
2819
|
+
}
|
2820
|
+
write!(self.result, " (;={};)", f)?;
|
2821
|
+
Ok(())
|
2822
|
+
}
|
2823
|
+
};
|
2824
|
+
}
|
2825
|
+
|
2826
|
+
impl Printer {
|
2827
|
+
print_float!(print_f32 f32 u32 i32 8);
|
2828
|
+
print_float!(print_f64 f64 u64 i64 11);
|
2829
|
+
}
|
2830
|
+
|
2831
|
+
impl Naming {
|
2832
|
+
fn new<'a>(
|
2833
|
+
name: &'a str,
|
2834
|
+
index: u32,
|
2835
|
+
group: &str,
|
2836
|
+
used: Option<&mut HashSet<&'a str>>,
|
2837
|
+
) -> Naming {
|
2838
|
+
let mut identifier = None;
|
2839
|
+
|
2840
|
+
// If the `name` provided can't be used as the raw identifier for the
|
2841
|
+
// item that it's describing then a synthetic name must be made. The
|
2842
|
+
// rules here which generate a name are:
|
2843
|
+
//
|
2844
|
+
// * Empty identifiers are not allowed
|
2845
|
+
// * Identifiers have a fixed set of valid characters
|
2846
|
+
// * For wasmprinter's purposes we "reserve" identifiers with the `#`
|
2847
|
+
// prefix, which is in theory rare to encounter in practice.
|
2848
|
+
// * If the name has already been used for some other item and cannot
|
2849
|
+
// be reused (e.g. because shadowing in this context is not possible).
|
2850
|
+
//
|
2851
|
+
// If any of these conditions match then we generate a unique identifier
|
2852
|
+
// based on `name` but not it exactly. By factoring in the `group`,
|
2853
|
+
// `index`, and `name` we get a guaranteed unique identifier (due to the
|
2854
|
+
// leading `#` prefix that we reserve and factoring in of the item
|
2855
|
+
// index) while preserving human readability at least somewhat (the
|
2856
|
+
// valid identifier characters of `name` still appear in the returned
|
2857
|
+
// name).
|
2858
|
+
if name.is_empty()
|
2859
|
+
|| name.chars().any(|c| !is_idchar(c))
|
2860
|
+
|| name.starts_with('#')
|
2861
|
+
|| used.map(|set| !set.insert(name)).unwrap_or(false)
|
2862
|
+
{
|
2863
|
+
let mut id = String::new();
|
2864
|
+
id.push('#');
|
2865
|
+
id.push_str(group);
|
2866
|
+
write!(id, "{}", index).unwrap();
|
2867
|
+
id.push('<');
|
2868
|
+
id.extend(name.chars().map(|c| if is_idchar(c) { c } else { '_' }));
|
2869
|
+
id.push('>');
|
2870
|
+
identifier = Some(id);
|
2871
|
+
}
|
2872
|
+
return Naming {
|
2873
|
+
identifier,
|
2874
|
+
name: name.to_string(),
|
2875
|
+
};
|
2876
|
+
|
2877
|
+
// See https://webassembly.github.io/spec/core/text/values.html#text-id
|
2878
|
+
fn is_idchar(c: char) -> bool {
|
2879
|
+
matches!(
|
2880
|
+
c,
|
2881
|
+
'0'..='9'
|
2882
|
+
| 'a'..='z'
|
2883
|
+
| 'A'..='Z'
|
2884
|
+
| '!'
|
2885
|
+
| '#'
|
2886
|
+
| '$'
|
2887
|
+
| '%'
|
2888
|
+
| '&'
|
2889
|
+
| '\''
|
2890
|
+
| '*'
|
2891
|
+
| '+'
|
2892
|
+
| '-'
|
2893
|
+
| '.'
|
2894
|
+
| '/'
|
2895
|
+
| ':'
|
2896
|
+
| '<'
|
2897
|
+
| '='
|
2898
|
+
| '>'
|
2899
|
+
| '?'
|
2900
|
+
| '@'
|
2901
|
+
| '\\'
|
2902
|
+
| '^'
|
2903
|
+
| '_'
|
2904
|
+
| '`'
|
2905
|
+
| '|'
|
2906
|
+
| '~'
|
2907
|
+
)
|
2908
|
+
}
|
2909
|
+
}
|
2910
|
+
|
2911
|
+
fn identifier(&self) -> &str {
|
2912
|
+
match &self.identifier {
|
2913
|
+
Some(s) => s,
|
2914
|
+
None => &self.name,
|
2915
|
+
}
|
2916
|
+
}
|
2917
|
+
|
2918
|
+
fn write(&self, dst: &mut String) {
|
2919
|
+
match &self.identifier {
|
2920
|
+
Some(alternate) => {
|
2921
|
+
assert!(*alternate != self.name);
|
2922
|
+
dst.push('$');
|
2923
|
+
dst.push_str(alternate);
|
2924
|
+
dst.push_str(" (@name \"");
|
2925
|
+
// https://webassembly.github.io/spec/core/text/values.html#text-string
|
2926
|
+
for c in self.name.chars() {
|
2927
|
+
match c {
|
2928
|
+
'\t' => dst.push_str("\\t"),
|
2929
|
+
'\n' => dst.push_str("\\n"),
|
2930
|
+
'\r' => dst.push_str("\\r"),
|
2931
|
+
'"' => dst.push_str("\\\""),
|
2932
|
+
'\'' => dst.push_str("\\'"),
|
2933
|
+
'\\' => dst.push_str("\\\\"),
|
2934
|
+
c if (c as u32) < 0x20 || c as u32 == 0x7f => {
|
2935
|
+
dst.push_str("\\u{");
|
2936
|
+
write!(dst, "{:x}", c as u32).unwrap();
|
2937
|
+
dst.push('}');
|
2938
|
+
}
|
2939
|
+
other => dst.push(other),
|
2940
|
+
}
|
2941
|
+
}
|
2942
|
+
dst.push_str("\")");
|
2943
|
+
}
|
2944
|
+
None => {
|
2945
|
+
dst.push('$');
|
2946
|
+
dst.push_str(&self.name);
|
2947
|
+
}
|
2948
|
+
}
|
2949
|
+
}
|
2950
|
+
}
|
2951
|
+
|
2952
|
+
fn name_map(into: &mut HashMap<u32, Naming>, names: NameMap<'_>, name: &str) -> Result<()> {
|
2953
|
+
let mut used = HashSet::new();
|
2954
|
+
for naming in names {
|
2955
|
+
let naming = naming?;
|
2956
|
+
into.insert(
|
2957
|
+
naming.index,
|
2958
|
+
Naming::new(naming.name, naming.index, name, Some(&mut used)),
|
2959
|
+
);
|
2960
|
+
}
|
2961
|
+
Ok(())
|
2962
|
+
}
|