html-to-markdown 2.24.4 → 2.24.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +1 -1
- data/ext/html-to-markdown-rb/native/Cargo.lock +254 -47
- data/ext/html-to-markdown-rb/native/Cargo.toml +1 -1
- data/lib/html_to_markdown/version.rb +1 -1
- data/rust-vendor/anyhow/.cargo-checksum.json +1 -0
- data/rust-vendor/anyhow/.cargo_vcs_info.json +6 -0
- data/rust-vendor/anyhow/.github/FUNDING.yml +1 -0
- data/rust-vendor/anyhow/.github/workflows/ci.yml +147 -0
- data/rust-vendor/anyhow/Cargo.lock +424 -0
- data/rust-vendor/anyhow/Cargo.toml +132 -0
- data/rust-vendor/anyhow/Cargo.toml.orig +40 -0
- data/rust-vendor/anyhow/LICENSE-APACHE +176 -0
- data/rust-vendor/anyhow/LICENSE-MIT +23 -0
- data/rust-vendor/anyhow/README.md +179 -0
- data/rust-vendor/anyhow/build.rs +207 -0
- data/rust-vendor/anyhow/rust-toolchain.toml +2 -0
- data/rust-vendor/anyhow/src/backtrace.rs +410 -0
- data/rust-vendor/anyhow/src/chain.rs +102 -0
- data/rust-vendor/anyhow/src/context.rs +193 -0
- data/rust-vendor/anyhow/src/ensure.rs +935 -0
- data/rust-vendor/anyhow/src/error.rs +1086 -0
- data/rust-vendor/anyhow/src/fmt.rs +158 -0
- data/rust-vendor/anyhow/src/kind.rs +121 -0
- data/rust-vendor/anyhow/src/lib.rs +728 -0
- data/rust-vendor/anyhow/src/macros.rs +245 -0
- data/rust-vendor/anyhow/src/nightly.rs +58 -0
- data/rust-vendor/anyhow/src/ptr.rs +187 -0
- data/rust-vendor/anyhow/src/wrapper.rs +84 -0
- data/rust-vendor/anyhow/tests/common/mod.rs +14 -0
- data/rust-vendor/anyhow/tests/compiletest.rs +7 -0
- data/rust-vendor/anyhow/tests/drop/mod.rs +53 -0
- data/rust-vendor/anyhow/tests/test_autotrait.rs +34 -0
- data/rust-vendor/anyhow/tests/test_backtrace.rs +15 -0
- data/rust-vendor/anyhow/tests/test_boxed.rs +45 -0
- data/rust-vendor/anyhow/tests/test_chain.rs +69 -0
- data/rust-vendor/anyhow/tests/test_context.rs +172 -0
- data/rust-vendor/anyhow/tests/test_convert.rs +46 -0
- data/rust-vendor/anyhow/tests/test_downcast.rs +123 -0
- data/rust-vendor/anyhow/tests/test_ensure.rs +756 -0
- data/rust-vendor/anyhow/tests/test_ffi.rs +19 -0
- data/rust-vendor/anyhow/tests/test_fmt.rs +93 -0
- data/rust-vendor/anyhow/tests/test_macros.rs +97 -0
- data/rust-vendor/anyhow/tests/test_repr.rs +30 -0
- data/rust-vendor/anyhow/tests/test_source.rs +62 -0
- data/rust-vendor/anyhow/tests/ui/chained-comparison.rs +8 -0
- data/rust-vendor/anyhow/tests/ui/chained-comparison.stderr +10 -0
- data/rust-vendor/anyhow/tests/ui/empty-ensure.rs +6 -0
- data/rust-vendor/anyhow/tests/ui/empty-ensure.stderr +12 -0
- data/rust-vendor/anyhow/tests/ui/ensure-nonbool.rs +40 -0
- data/rust-vendor/anyhow/tests/ui/ensure-nonbool.stderr +113 -0
- data/rust-vendor/anyhow/tests/ui/must-use.rs +11 -0
- data/rust-vendor/anyhow/tests/ui/must-use.stderr +15 -0
- data/rust-vendor/anyhow/tests/ui/no-impl.rs +8 -0
- data/rust-vendor/anyhow/tests/ui/no-impl.stderr +32 -0
- data/rust-vendor/anyhow/tests/ui/temporary-value.rs +5 -0
- data/rust-vendor/anyhow/tests/ui/temporary-value.stderr +15 -0
- data/rust-vendor/anyhow/tests/ui/wrong-interpolation.rs +5 -0
- data/rust-vendor/anyhow/tests/ui/wrong-interpolation.stderr +5 -0
- data/rust-vendor/bitflags/.cargo-checksum.json +1 -1
- data/rust-vendor/bitflags/.cargo_vcs_info.json +1 -1
- data/rust-vendor/bitflags/CHANGELOG.md +12 -0
- data/rust-vendor/bitflags/Cargo.lock +48 -48
- data/rust-vendor/bitflags/Cargo.toml +1 -1
- data/rust-vendor/bitflags/Cargo.toml.orig +1 -1
- data/rust-vendor/bitflags/README.md +1 -1
- data/rust-vendor/bitflags/src/external.rs +1 -1
- data/rust-vendor/bitflags/src/lib.rs +1 -1
- data/rust-vendor/bitflags/src/tests/known_bits.rs +47 -0
- data/rust-vendor/bitflags/src/tests/unknown_bits.rs +53 -0
- data/rust-vendor/bitflags/src/tests.rs +2 -0
- data/rust-vendor/bitflags/src/traits.rs +11 -1
- data/rust-vendor/cc/.cargo-checksum.json +1 -1
- data/rust-vendor/cc/.cargo_vcs_info.json +1 -1
- data/rust-vendor/cc/CHANGELOG.md +7 -0
- data/rust-vendor/cc/Cargo.lock +331 -7
- data/rust-vendor/cc/Cargo.toml +1 -1
- data/rust-vendor/cc/Cargo.toml.orig +1 -1
- data/rust-vendor/cc/src/lib.rs +10 -13
- data/rust-vendor/cc/src/target/generated.rs +1 -0
- data/rust-vendor/cpp_demangle/.cargo-checksum.json +1 -1
- data/rust-vendor/cpp_demangle/.cargo_vcs_info.json +1 -1
- data/rust-vendor/cpp_demangle/CHANGELOG.md +55 -0
- data/rust-vendor/cpp_demangle/Cargo.lock +5 -5
- data/rust-vendor/cpp_demangle/Cargo.toml +2 -2
- data/rust-vendor/cpp_demangle/Cargo.toml.orig +2 -2
- data/rust-vendor/cpp_demangle/README.md +9 -9
- data/rust-vendor/cpp_demangle/build.rs +10 -9
- data/rust-vendor/cpp_demangle/examples/cppfilt.rs +1 -1
- data/rust-vendor/cpp_demangle/examples/simple.rs +1 -1
- data/rust-vendor/cpp_demangle/src/ast.rs +238 -36
- data/rust-vendor/cpp_demangle/src/lib.rs +31 -46
- data/rust-vendor/cpp_demangle/src/subs.rs +1 -1
- data/rust-vendor/flate2/.cargo-checksum.json +1 -1
- data/rust-vendor/flate2/.cargo_vcs_info.json +1 -1
- data/rust-vendor/flate2/Cargo.lock +3 -3
- data/rust-vendor/flate2/Cargo.toml +13 -2
- data/rust-vendor/flate2/Cargo.toml.orig +16 -13
- data/rust-vendor/flate2/LICENSE-MIT +1 -1
- data/rust-vendor/flate2/src/crc.rs +177 -42
- data/rust-vendor/flate2/src/gz/mod.rs +159 -0
- data/rust-vendor/foldhash-0.1.5/.cargo-checksum.json +1 -0
- data/rust-vendor/foldhash-0.1.5/.cargo_vcs_info.json +6 -0
- data/rust-vendor/foldhash-0.1.5/Cargo.lock +852 -0
- data/rust-vendor/foldhash-0.1.5/Cargo.toml +76 -0
- data/rust-vendor/foldhash-0.1.5/Cargo.toml.orig +44 -0
- data/rust-vendor/foldhash-0.1.5/LICENSE +19 -0
- data/rust-vendor/foldhash-0.1.5/README.md +277 -0
- data/rust-vendor/foldhash-0.1.5/src/convenience.rs +73 -0
- data/rust-vendor/foldhash-0.1.5/src/fast.rs +270 -0
- data/rust-vendor/foldhash-0.1.5/src/lib.rs +284 -0
- data/rust-vendor/foldhash-0.1.5/src/quality.rs +174 -0
- data/rust-vendor/foldhash-0.1.5/src/seed.rs +267 -0
- data/rust-vendor/getrandom/.cargo-checksum.json +1 -1
- data/rust-vendor/getrandom/.cargo_vcs_info.json +1 -1
- data/rust-vendor/getrandom/CHANGELOG.md +39 -1
- data/rust-vendor/getrandom/Cargo.lock +451 -60
- data/rust-vendor/getrandom/Cargo.toml +44 -5
- data/rust-vendor/getrandom/Cargo.toml.orig +45 -10
- data/rust-vendor/getrandom/LICENSE-MIT +1 -1
- data/rust-vendor/getrandom/README.md +72 -40
- data/rust-vendor/getrandom/benches/buffer.rs +10 -8
- data/rust-vendor/getrandom/build.rs +1 -47
- data/rust-vendor/getrandom/src/backends/custom.rs +1 -1
- data/rust-vendor/getrandom/src/backends/efi_rng.rs +1 -1
- data/rust-vendor/getrandom/src/backends/esp_idf.rs +1 -1
- data/rust-vendor/getrandom/src/backends/extern_impl.rs +19 -0
- data/rust-vendor/getrandom/src/backends/fuchsia.rs +1 -1
- data/rust-vendor/getrandom/src/backends/getentropy.rs +4 -3
- data/rust-vendor/getrandom/src/backends/getrandom.rs +4 -12
- data/rust-vendor/getrandom/src/backends/hermit.rs +1 -1
- data/rust-vendor/getrandom/src/backends/linux_android_with_fallback.rs +8 -10
- data/rust-vendor/getrandom/src/backends/linux_raw.rs +101 -75
- data/rust-vendor/getrandom/src/backends/netbsd.rs +3 -3
- data/rust-vendor/getrandom/src/backends/rdrand.rs +26 -13
- data/rust-vendor/getrandom/src/backends/rndr.rs +13 -11
- data/rust-vendor/getrandom/src/backends/solaris.rs +5 -4
- data/rust-vendor/getrandom/src/backends/solid.rs +1 -1
- data/rust-vendor/getrandom/src/backends/use_file.rs +17 -28
- data/rust-vendor/getrandom/src/backends/vxworks.rs +2 -4
- data/rust-vendor/getrandom/src/backends/wasi_p1.rs +1 -1
- data/rust-vendor/getrandom/src/backends/wasi_p2_3.rs +61 -0
- data/rust-vendor/getrandom/src/backends/wasm_js.rs +1 -1
- data/rust-vendor/getrandom/src/backends/windows.rs +7 -11
- data/rust-vendor/getrandom/src/backends/windows_legacy.rs +1 -1
- data/rust-vendor/getrandom/src/backends.rs +9 -28
- data/rust-vendor/getrandom/src/error.rs +39 -6
- data/rust-vendor/getrandom/src/error_std_impls.rs +1 -3
- data/rust-vendor/getrandom/src/lib.rs +39 -18
- data/rust-vendor/getrandom/src/sys_rng.rs +55 -0
- data/rust-vendor/getrandom/src/util.rs +3 -15
- data/rust-vendor/getrandom/src/utils/get_errno.rs +29 -0
- data/rust-vendor/getrandom/src/utils/lazy.rs +64 -0
- data/rust-vendor/getrandom/src/utils/sanitizer.rs +28 -0
- data/rust-vendor/getrandom/src/utils/sys_fill_exact.rs +41 -0
- data/rust-vendor/getrandom/tests/mod.rs +6 -94
- data/rust-vendor/getrandom/tests/sys_rng.rs +18 -0
- data/rust-vendor/getrandom-0.3.4/.cargo-checksum.json +1 -0
- data/rust-vendor/getrandom-0.3.4/.cargo_vcs_info.json +6 -0
- data/rust-vendor/getrandom-0.3.4/CHANGELOG.md +673 -0
- data/rust-vendor/getrandom-0.3.4/Cargo.lock +292 -0
- data/rust-vendor/getrandom-0.3.4/Cargo.toml +133 -0
- data/rust-vendor/getrandom-0.3.4/Cargo.toml.orig +100 -0
- data/rust-vendor/getrandom-0.3.4/LICENSE-APACHE +201 -0
- data/rust-vendor/getrandom-0.3.4/LICENSE-MIT +26 -0
- data/rust-vendor/getrandom-0.3.4/README.md +386 -0
- data/rust-vendor/getrandom-0.3.4/SECURITY.md +13 -0
- data/rust-vendor/getrandom-0.3.4/benches/buffer.rs +121 -0
- data/rust-vendor/getrandom-0.3.4/build.rs +57 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/apple_other.rs +21 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/custom.rs +13 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/efi_rng.rs +124 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/esp_idf.rs +21 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/fuchsia.rs +16 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/getentropy.rs +27 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/getrandom.rs +39 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/hermit.rs +53 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/linux_android_with_fallback.rs +103 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/linux_raw.rs +143 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/netbsd.rs +78 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/rdrand.rs +182 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/rndr.rs +145 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/solaris.rs +42 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/solid.rs +19 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/unsupported.rs +9 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/use_file.rs +234 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/vxworks.rs +54 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/wasi_p1.rs +32 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/wasm_js.rs +72 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/windows.rs +61 -0
- data/rust-vendor/getrandom-0.3.4/src/backends/windows_legacy.rs +48 -0
- data/rust-vendor/getrandom-0.3.4/src/backends.rs +209 -0
- data/rust-vendor/getrandom-0.3.4/src/error.rs +212 -0
- data/rust-vendor/getrandom-0.3.4/src/error_std_impls.rs +15 -0
- data/rust-vendor/getrandom-0.3.4/src/lib.rs +138 -0
- data/rust-vendor/getrandom-0.3.4/src/util.rs +84 -0
- data/rust-vendor/getrandom-0.3.4/tests/mod.rs +297 -0
- data/rust-vendor/hashbrown-0.15.5/.cargo-checksum.json +1 -0
- data/rust-vendor/hashbrown-0.15.5/.cargo_vcs_info.json +6 -0
- data/rust-vendor/hashbrown-0.15.5/CHANGELOG.md +619 -0
- data/rust-vendor/hashbrown-0.15.5/Cargo.lock +306 -0
- data/rust-vendor/hashbrown-0.15.5/Cargo.toml +164 -0
- data/rust-vendor/hashbrown-0.15.5/Cargo.toml.orig +77 -0
- data/rust-vendor/hashbrown-0.15.5/Cross.toml +3 -0
- data/rust-vendor/hashbrown-0.15.5/LICENSE-APACHE +201 -0
- data/rust-vendor/hashbrown-0.15.5/LICENSE-MIT +25 -0
- data/rust-vendor/hashbrown-0.15.5/README.md +80 -0
- data/rust-vendor/hashbrown-0.15.5/benches/bench.rs +329 -0
- data/rust-vendor/hashbrown-0.15.5/benches/insert_unique_unchecked.rs +34 -0
- data/rust-vendor/hashbrown-0.15.5/benches/set_ops.rs +148 -0
- data/rust-vendor/hashbrown-0.15.5/clippy.toml +1 -0
- data/rust-vendor/hashbrown-0.15.5/src/control/bitmask.rs +117 -0
- data/rust-vendor/hashbrown-0.15.5/src/control/group/generic.rs +154 -0
- data/rust-vendor/hashbrown-0.15.5/src/control/group/lsx.rs +137 -0
- data/rust-vendor/hashbrown-0.15.5/src/control/group/mod.rs +43 -0
- data/rust-vendor/hashbrown-0.15.5/src/control/group/neon.rs +121 -0
- data/rust-vendor/hashbrown-0.15.5/src/control/group/sse2.rs +146 -0
- data/rust-vendor/hashbrown-0.15.5/src/control/mod.rs +10 -0
- data/rust-vendor/hashbrown-0.15.5/src/control/tag.rs +83 -0
- data/rust-vendor/hashbrown-0.15.5/src/external_trait_impls/mod.rs +4 -0
- data/rust-vendor/hashbrown-0.15.5/src/external_trait_impls/rayon/helpers.rs +27 -0
- data/rust-vendor/hashbrown-0.15.5/src/external_trait_impls/rayon/map.rs +721 -0
- data/rust-vendor/hashbrown-0.15.5/src/external_trait_impls/rayon/mod.rs +5 -0
- data/rust-vendor/hashbrown-0.15.5/src/external_trait_impls/rayon/raw.rs +230 -0
- data/rust-vendor/hashbrown-0.15.5/src/external_trait_impls/rayon/set.rs +659 -0
- data/rust-vendor/hashbrown-0.15.5/src/external_trait_impls/rayon/table.rs +249 -0
- data/rust-vendor/hashbrown-0.15.5/src/external_trait_impls/serde.rs +220 -0
- data/rust-vendor/hashbrown-0.15.5/src/lib.rs +188 -0
- data/rust-vendor/hashbrown-0.15.5/src/macros.rs +70 -0
- data/rust-vendor/hashbrown-0.15.5/src/map.rs +6583 -0
- data/rust-vendor/hashbrown-0.15.5/src/raw/alloc.rs +92 -0
- data/rust-vendor/hashbrown-0.15.5/src/raw/mod.rs +4436 -0
- data/rust-vendor/hashbrown-0.15.5/src/raw_entry.rs +1740 -0
- data/rust-vendor/hashbrown-0.15.5/src/rustc_entry.rs +567 -0
- data/rust-vendor/hashbrown-0.15.5/src/scopeguard.rs +72 -0
- data/rust-vendor/hashbrown-0.15.5/src/set.rs +3121 -0
- data/rust-vendor/hashbrown-0.15.5/src/table.rs +2380 -0
- data/rust-vendor/hashbrown-0.15.5/src/util.rs +38 -0
- data/rust-vendor/hashbrown-0.15.5/tests/equivalent_trait.rs +53 -0
- data/rust-vendor/hashbrown-0.15.5/tests/hasher.rs +65 -0
- data/rust-vendor/hashbrown-0.15.5/tests/rayon.rs +535 -0
- data/rust-vendor/hashbrown-0.15.5/tests/serde.rs +65 -0
- data/rust-vendor/hashbrown-0.15.5/tests/set.rs +34 -0
- data/rust-vendor/heck/.cargo-checksum.json +1 -0
- data/rust-vendor/heck/.cargo_vcs_info.json +6 -0
- data/rust-vendor/heck/CHANGELOG.md +25 -0
- data/rust-vendor/heck/Cargo.toml +34 -0
- data/rust-vendor/heck/Cargo.toml.orig +11 -0
- data/rust-vendor/heck/LICENSE-APACHE +201 -0
- data/rust-vendor/heck/LICENSE-MIT +25 -0
- data/rust-vendor/heck/README.md +53 -0
- data/rust-vendor/heck/src/kebab.rs +75 -0
- data/rust-vendor/heck/src/lib.rs +192 -0
- data/rust-vendor/heck/src/lower_camel.rs +88 -0
- data/rust-vendor/heck/src/shouty_kebab.rs +73 -0
- data/rust-vendor/heck/src/shouty_snake.rs +86 -0
- data/rust-vendor/heck/src/snake.rs +100 -0
- data/rust-vendor/heck/src/title.rs +75 -0
- data/rust-vendor/heck/src/train.rs +87 -0
- data/rust-vendor/heck/src/upper_camel.rs +88 -0
- data/rust-vendor/html-to-markdown-rs/src/converter/inline/semantic/typography.rs +32 -22
- data/rust-vendor/html-to-markdown-rs/tests/integration_test.rs +44 -0
- data/rust-vendor/id-arena/.cargo-checksum.json +1 -0
- data/rust-vendor/id-arena/.cargo_vcs_info.json +6 -0
- data/rust-vendor/id-arena/.travis.yml +22 -0
- data/rust-vendor/id-arena/CHANGELOG.md +71 -0
- data/rust-vendor/id-arena/Cargo.lock +61 -0
- data/rust-vendor/id-arena/Cargo.toml +54 -0
- data/rust-vendor/id-arena/Cargo.toml.orig +21 -0
- data/rust-vendor/id-arena/LICENSE-APACHE +201 -0
- data/rust-vendor/id-arena/LICENSE-MIT +25 -0
- data/rust-vendor/id-arena/README.md +101 -0
- data/rust-vendor/id-arena/README.tpl +3 -0
- data/rust-vendor/id-arena/src/lib.rs +726 -0
- data/rust-vendor/id-arena/src/rayon.rs +282 -0
- data/rust-vendor/id-arena/tests/readme_up_to_date.rs +22 -0
- data/rust-vendor/leb128fmt/.cargo-checksum.json +1 -0
- data/rust-vendor/leb128fmt/.cargo_vcs_info.json +6 -0
- data/rust-vendor/leb128fmt/CHANGELOG.md +11 -0
- data/rust-vendor/leb128fmt/Cargo.toml +55 -0
- data/rust-vendor/leb128fmt/Cargo.toml.orig +32 -0
- data/rust-vendor/leb128fmt/LICENSE-APACHE +201 -0
- data/rust-vendor/leb128fmt/LICENSE-MIT +23 -0
- data/rust-vendor/leb128fmt/README.md +162 -0
- data/rust-vendor/leb128fmt/src/lib.rs +1650 -0
- data/rust-vendor/libc/.cargo-checksum.json +1 -1
- data/rust-vendor/libc/.cargo_vcs_info.json +1 -1
- data/rust-vendor/libc/CHANGELOG.md +42 -0
- data/rust-vendor/libc/Cargo.lock +1 -1
- data/rust-vendor/libc/Cargo.toml +75 -51
- data/rust-vendor/libc/Cargo.toml.orig +85 -53
- data/rust-vendor/libc/LICENSE-MIT +1 -1
- data/rust-vendor/libc/src/fuchsia/mod.rs +12 -10
- data/rust-vendor/libc/src/macros.rs +63 -71
- data/rust-vendor/libc/src/new/linux_uapi/linux/can/error.rs +73 -0
- data/rust-vendor/libc/src/new/linux_uapi/linux/can.rs +1 -0
- data/rust-vendor/libc/src/new/mod.rs +3 -2
- data/rust-vendor/libc/src/new/qurt/dlfcn.rs +26 -0
- data/rust-vendor/libc/src/new/qurt/fcntl.rs +4 -1
- data/rust-vendor/libc/src/new/qurt/mod.rs +224 -14
- data/rust-vendor/libc/src/new/qurt/pthread.rs +1 -22
- data/rust-vendor/libc/src/new/qurt/signal.rs +54 -4
- data/rust-vendor/libc/src/new/qurt/stdio.rs +0 -5
- data/rust-vendor/libc/src/new/qurt/sys/mman.rs +55 -0
- data/rust-vendor/libc/src/new/qurt/sys/mod.rs +2 -0
- data/rust-vendor/libc/src/new/qurt/sys/sched.rs +24 -0
- data/rust-vendor/libc/src/new/qurt/sys/stat.rs +0 -6
- data/rust-vendor/libc/src/new/qurt/time.rs +4 -22
- data/rust-vendor/libc/src/new/qurt/unistd.rs +210 -20
- data/rust-vendor/libc/src/qurt/mod.rs +9 -325
- data/rust-vendor/libc/src/types.rs +2 -2
- data/rust-vendor/libc/src/unix/aix/mod.rs +11 -20
- data/rust-vendor/libc/src/unix/aix/powerpc64.rs +6 -6
- data/rust-vendor/libc/src/unix/bsd/apple/mod.rs +15 -0
- data/rust-vendor/libc/src/unix/bsd/freebsdlike/dragonfly/mod.rs +4 -4
- data/rust-vendor/libc/src/unix/bsd/freebsdlike/freebsd/mod.rs +3 -3
- data/rust-vendor/libc/src/unix/bsd/freebsdlike/mod.rs +14 -0
- data/rust-vendor/libc/src/unix/bsd/mod.rs +0 -14
- data/rust-vendor/libc/src/unix/bsd/netbsdlike/mod.rs +6 -0
- data/rust-vendor/libc/src/unix/bsd/netbsdlike/netbsd/mod.rs +15 -7
- data/rust-vendor/libc/src/unix/bsd/netbsdlike/openbsd/mod.rs +41 -1
- data/rust-vendor/libc/src/unix/cygwin/mod.rs +2 -2
- data/rust-vendor/libc/src/unix/haiku/mod.rs +1 -1
- data/rust-vendor/libc/src/unix/haiku/x86_64.rs +2 -2
- data/rust-vendor/libc/src/unix/hurd/mod.rs +6 -6
- data/rust-vendor/libc/src/unix/linux_like/android/mod.rs +2 -0
- data/rust-vendor/libc/src/unix/linux_like/linux/gnu/mod.rs +3 -0
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b32/arm/mod.rs +16 -13
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b32/hexagon.rs +12 -13
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b32/mips/mod.rs +25 -16
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b32/powerpc.rs +16 -13
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b32/riscv32/mod.rs +12 -15
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b32/x86/mod.rs +10 -13
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b64/aarch64/mod.rs +0 -15
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b64/loongarch64/mod.rs +0 -15
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b64/mips64.rs +0 -15
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b64/powerpc64.rs +0 -15
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs +0 -15
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b64/s390x.rs +0 -15
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b64/wasm32/mod.rs +0 -15
- data/rust-vendor/libc/src/unix/linux_like/linux/musl/b64/x86_64/mod.rs +9 -15
- data/rust-vendor/libc/src/unix/mod.rs +87 -11
- data/rust-vendor/libc/src/unix/newlib/arm/mod.rs +1 -1
- data/rust-vendor/libc/src/unix/newlib/horizon/mod.rs +1 -1
- data/rust-vendor/libc/src/unix/newlib/vita/mod.rs +3 -3
- data/rust-vendor/libc/src/unix/nto/mod.rs +23 -6
- data/rust-vendor/libc/src/unix/redox/mod.rs +45 -3
- data/rust-vendor/libc/src/unix/solarish/illumos.rs +2 -0
- data/rust-vendor/libc/src/vxworks/mod.rs +7 -7
- data/rust-vendor/memchr/.cargo-checksum.json +1 -1
- data/rust-vendor/memchr/.cargo_vcs_info.json +1 -1
- data/rust-vendor/memchr/Cargo.lock +13 -13
- data/rust-vendor/memchr/Cargo.toml +1 -1
- data/rust-vendor/memchr/Cargo.toml.orig +1 -1
- data/rust-vendor/memchr/src/cow.rs +3 -1
- data/rust-vendor/memchr/src/memmem/mod.rs +42 -3
- data/rust-vendor/prettyplease/.cargo-checksum.json +1 -0
- data/rust-vendor/prettyplease/.cargo_vcs_info.json +6 -0
- data/rust-vendor/prettyplease/.github/FUNDING.yml +1 -0
- data/rust-vendor/prettyplease/.github/workflows/ci.yml +123 -0
- data/rust-vendor/prettyplease/Cargo.lock +54 -0
- data/rust-vendor/prettyplease/Cargo.toml +90 -0
- data/rust-vendor/prettyplease/Cargo.toml.orig +43 -0
- data/rust-vendor/prettyplease/LICENSE-APACHE +176 -0
- data/rust-vendor/prettyplease/LICENSE-MIT +23 -0
- data/rust-vendor/prettyplease/README.md +312 -0
- data/rust-vendor/prettyplease/build.rs +21 -0
- data/rust-vendor/prettyplease/examples/.tokeignore +1 -0
- data/rust-vendor/prettyplease/examples/input.rs +1 -0
- data/rust-vendor/prettyplease/examples/output.prettyplease.rs +593 -0
- data/rust-vendor/prettyplease/examples/output.rustc.rs +506 -0
- data/rust-vendor/prettyplease/examples/output.rustfmt.rs +552 -0
- data/rust-vendor/prettyplease/src/algorithm.rs +386 -0
- data/rust-vendor/prettyplease/src/attr.rs +288 -0
- data/rust-vendor/prettyplease/src/classify.rs +324 -0
- data/rust-vendor/prettyplease/src/convenience.rs +98 -0
- data/rust-vendor/prettyplease/src/data.rs +79 -0
- data/rust-vendor/prettyplease/src/expr.rs +1533 -0
- data/rust-vendor/prettyplease/src/file.rs +17 -0
- data/rust-vendor/prettyplease/src/fixup.rs +676 -0
- data/rust-vendor/prettyplease/src/generics.rs +426 -0
- data/rust-vendor/prettyplease/src/item.rs +1813 -0
- data/rust-vendor/prettyplease/src/iter.rs +46 -0
- data/rust-vendor/prettyplease/src/lib.rs +385 -0
- data/rust-vendor/prettyplease/src/lifetime.rs +9 -0
- data/rust-vendor/prettyplease/src/lit.rs +57 -0
- data/rust-vendor/prettyplease/src/mac.rs +706 -0
- data/rust-vendor/prettyplease/src/pat.rs +254 -0
- data/rust-vendor/prettyplease/src/path.rs +194 -0
- data/rust-vendor/prettyplease/src/precedence.rs +148 -0
- data/rust-vendor/prettyplease/src/ring.rs +81 -0
- data/rust-vendor/prettyplease/src/stmt.rs +221 -0
- data/rust-vendor/prettyplease/src/token.rs +80 -0
- data/rust-vendor/prettyplease/src/ty.rs +326 -0
- data/rust-vendor/prettyplease/tests/test.rs +51 -0
- data/rust-vendor/prettyplease/tests/test_precedence.rs +900 -0
- data/rust-vendor/regex/.cargo-checksum.json +1 -1
- data/rust-vendor/regex/.cargo_vcs_info.json +1 -1
- data/rust-vendor/regex/CHANGELOG.md +13 -0
- data/rust-vendor/regex/Cargo.lock +5 -5
- data/rust-vendor/regex/Cargo.toml +15 -7
- data/rust-vendor/regex/Cargo.toml.orig +19 -2
- data/rust-vendor/regex-automata/.cargo-checksum.json +1 -1
- data/rust-vendor/regex-automata/.cargo_vcs_info.json +1 -1
- data/rust-vendor/regex-automata/Cargo.lock +3 -3
- data/rust-vendor/regex-automata/Cargo.toml +16 -1
- data/rust-vendor/regex-automata/Cargo.toml.orig +2 -1
- data/rust-vendor/regex-automata/src/dfa/onepass.rs +21 -5
- data/rust-vendor/regex-automata/tests/dfa/onepass/mod.rs +1 -0
- data/rust-vendor/regex-automata/tests/dfa/onepass/regression.rs +61 -0
- data/rust-vendor/regex-automata/tests/nfa/thompson/backtrack/mod.rs +1 -0
- data/rust-vendor/regex-automata/tests/nfa/thompson/backtrack/regression.rs +20 -0
- data/rust-vendor/regex-automata/tests/nfa/thompson/pikevm/mod.rs +1 -0
- data/rust-vendor/regex-automata/tests/nfa/thompson/pikevm/regression.rs +20 -0
- data/rust-vendor/regex-syntax/.cargo-checksum.json +1 -1
- data/rust-vendor/regex-syntax/.cargo_vcs_info.json +1 -1
- data/rust-vendor/regex-syntax/Cargo.lock +1 -1
- data/rust-vendor/regex-syntax/Cargo.toml +16 -5
- data/rust-vendor/regex-syntax/Cargo.toml.orig +2 -1
- data/rust-vendor/semver/.cargo-checksum.json +1 -0
- data/rust-vendor/semver/.cargo_vcs_info.json +6 -0
- data/rust-vendor/semver/.github/FUNDING.yml +1 -0
- data/rust-vendor/semver/.github/workflows/ci.yml +140 -0
- data/rust-vendor/semver/Cargo.lock +75 -0
- data/rust-vendor/semver/Cargo.toml +86 -0
- data/rust-vendor/semver/Cargo.toml.orig +36 -0
- data/rust-vendor/semver/LICENSE-APACHE +176 -0
- data/rust-vendor/semver/LICENSE-MIT +23 -0
- data/rust-vendor/semver/README.md +84 -0
- data/rust-vendor/semver/benches/parse.rs +24 -0
- data/rust-vendor/semver/src/display.rs +163 -0
- data/rust-vendor/semver/src/error.rs +126 -0
- data/rust-vendor/semver/src/eval.rs +179 -0
- data/rust-vendor/semver/src/identifier.rs +412 -0
- data/rust-vendor/semver/src/impls.rs +163 -0
- data/rust-vendor/semver/src/lib.rs +570 -0
- data/rust-vendor/semver/src/parse.rs +404 -0
- data/rust-vendor/semver/src/serde.rs +109 -0
- data/rust-vendor/semver/tests/node/mod.rs +43 -0
- data/rust-vendor/semver/tests/test_autotrait.rs +14 -0
- data/rust-vendor/semver/tests/test_identifier.rs +51 -0
- data/rust-vendor/semver/tests/test_version.rs +251 -0
- data/rust-vendor/semver/tests/test_version_req.rs +480 -0
- data/rust-vendor/semver/tests/util/mod.rs +54 -0
- data/rust-vendor/symbolic-common/.cargo-checksum.json +1 -1
- data/rust-vendor/symbolic-common/Cargo.lock +74 -3
- data/rust-vendor/symbolic-common/Cargo.toml +2 -2
- data/rust-vendor/symbolic-common/Cargo.toml.orig +1 -1
- data/rust-vendor/symbolic-demangle/.cargo-checksum.json +1 -1
- data/rust-vendor/symbolic-demangle/Cargo.lock +87 -9
- data/rust-vendor/symbolic-demangle/Cargo.toml +5 -5
- data/rust-vendor/symbolic-demangle/Cargo.toml.orig +2 -2
- data/rust-vendor/syn/.cargo-checksum.json +1 -1
- data/rust-vendor/syn/.cargo_vcs_info.json +1 -1
- data/rust-vendor/syn/Cargo.lock +322 -109
- data/rust-vendor/syn/Cargo.toml +2 -2
- data/rust-vendor/syn/Cargo.toml.orig +2 -2
- data/rust-vendor/syn/benches/rust.rs +1 -2
- data/rust-vendor/syn/src/lib.rs +1 -1
- data/rust-vendor/syn/src/parse.rs +2 -2
- data/rust-vendor/syn/src/path.rs +1 -5
- data/rust-vendor/syn/tests/common/eq.rs +28 -17
- data/rust-vendor/syn/tests/common/parse.rs +1 -2
- data/rust-vendor/syn/tests/repo/progress.rs +1 -1
- data/rust-vendor/syn/tests/test_round_trip.rs +5 -36
- data/rust-vendor/tempfile/.cargo-checksum.json +1 -1
- data/rust-vendor/tempfile/.cargo_vcs_info.json +1 -1
- data/rust-vendor/tempfile/CHANGELOG.md +4 -0
- data/rust-vendor/tempfile/Cargo.lock +333 -21
- data/rust-vendor/tempfile/Cargo.toml +2 -2
- data/rust-vendor/tempfile/Cargo.toml.orig +2 -2
- data/rust-vendor/unicode-ident/.cargo-checksum.json +1 -1
- data/rust-vendor/unicode-ident/.cargo_vcs_info.json +1 -1
- data/rust-vendor/unicode-ident/.github/workflows/ci.yml +10 -10
- data/rust-vendor/unicode-ident/Cargo.lock +468 -186
- data/rust-vendor/unicode-ident/Cargo.toml +8 -8
- data/rust-vendor/unicode-ident/Cargo.toml.orig +7 -5
- data/rust-vendor/unicode-ident/src/lib.rs +1 -1
- data/rust-vendor/unicode-xid/.cargo-checksum.json +1 -0
- data/rust-vendor/unicode-xid/.cargo_vcs_info.json +6 -0
- data/rust-vendor/unicode-xid/COPYRIGHT +7 -0
- data/rust-vendor/unicode-xid/Cargo.toml +65 -0
- data/rust-vendor/unicode-xid/Cargo.toml.orig +34 -0
- data/rust-vendor/unicode-xid/LICENSE-APACHE +201 -0
- data/rust-vendor/unicode-xid/LICENSE-MIT +25 -0
- data/rust-vendor/unicode-xid/README.md +61 -0
- data/rust-vendor/unicode-xid/benches/xid.rs +60 -0
- data/rust-vendor/unicode-xid/src/lib.rs +90 -0
- data/rust-vendor/unicode-xid/src/tables.rs +1537 -0
- data/rust-vendor/unicode-xid/src/tests.rs +95 -0
- data/rust-vendor/unicode-xid/tests/exhaustive_tests.rs +25 -0
- data/rust-vendor/uuid/.cargo-checksum.json +1 -1
- data/rust-vendor/uuid/.cargo_vcs_info.json +1 -1
- data/rust-vendor/uuid/Cargo.lock +298 -44
- data/rust-vendor/uuid/Cargo.toml +5 -5
- data/rust-vendor/uuid/Cargo.toml.orig +5 -5
- data/rust-vendor/uuid/README.md +3 -3
- data/rust-vendor/uuid/src/error.rs +1 -7
- data/rust-vendor/uuid/src/lib.rs +4 -4
- data/rust-vendor/wasip3/.cargo-checksum.json +1 -0
- data/rust-vendor/wasip3/.cargo_vcs_info.json +6 -0
- data/rust-vendor/wasip3/Cargo.lock +483 -0
- data/rust-vendor/wasip3/Cargo.toml +96 -0
- data/rust-vendor/wasip3/Cargo.toml.orig +49 -0
- data/rust-vendor/wasip3/README.md +56 -0
- data/rust-vendor/wasip3/examples/cli-command.rs +19 -0
- data/rust-vendor/wasip3/examples/http-proxy-compat.rs +20 -0
- data/rust-vendor/wasip3/examples/http-proxy.rs +22 -0
- data/rust-vendor/wasip3/src/command.rs +513 -0
- data/rust-vendor/wasip3/src/http_compat/body_writer.rs +145 -0
- data/rust-vendor/wasip3/src/http_compat/conversions.rs +307 -0
- data/rust-vendor/wasip3/src/http_compat/mod.rs +314 -0
- data/rust-vendor/wasip3/src/imports.rs +10543 -0
- data/rust-vendor/wasip3/src/lib.rs +280 -0
- data/rust-vendor/wasip3/src/service.rs +7274 -0
- data/rust-vendor/wasip3/wit/deps/cli.wit +256 -0
- data/rust-vendor/wasip3/wit/deps/clocks.wit +161 -0
- data/rust-vendor/wasip3/wit/deps/filesystem.wit +553 -0
- data/rust-vendor/wasip3/wit/deps/http.wit +457 -0
- data/rust-vendor/wasip3/wit/deps/random.wit +92 -0
- data/rust-vendor/wasip3/wit/deps/sockets.wit +752 -0
- data/rust-vendor/wasip3/wit/wasi-crate.wit +1 -0
- data/rust-vendor/wasm-encoder/.cargo-checksum.json +1 -0
- data/rust-vendor/wasm-encoder/.cargo_vcs_info.json +6 -0
- data/rust-vendor/wasm-encoder/Cargo.lock +348 -0
- data/rust-vendor/wasm-encoder/Cargo.toml +104 -0
- data/rust-vendor/wasm-encoder/Cargo.toml.orig +43 -0
- data/rust-vendor/wasm-encoder/README.md +81 -0
- data/rust-vendor/wasm-encoder/src/component/aliases.rs +161 -0
- data/rust-vendor/wasm-encoder/src/component/builder.rs +826 -0
- data/rust-vendor/wasm-encoder/src/component/canonicals.rs +584 -0
- data/rust-vendor/wasm-encoder/src/component/components.rs +30 -0
- data/rust-vendor/wasm-encoder/src/component/exports.rs +130 -0
- data/rust-vendor/wasm-encoder/src/component/imports.rs +170 -0
- data/rust-vendor/wasm-encoder/src/component/instances.rs +200 -0
- data/rust-vendor/wasm-encoder/src/component/modules.rs +30 -0
- data/rust-vendor/wasm-encoder/src/component/names.rs +162 -0
- data/rust-vendor/wasm-encoder/src/component/start.rs +53 -0
- data/rust-vendor/wasm-encoder/src/component/types.rs +816 -0
- data/rust-vendor/wasm-encoder/src/component.rs +169 -0
- data/rust-vendor/wasm-encoder/src/core/branch_hints.rs +127 -0
- data/rust-vendor/wasm-encoder/src/core/code.rs +2464 -0
- data/rust-vendor/wasm-encoder/src/core/custom.rs +74 -0
- data/rust-vendor/wasm-encoder/src/core/data.rs +187 -0
- data/rust-vendor/wasm-encoder/src/core/dump.rs +629 -0
- data/rust-vendor/wasm-encoder/src/core/elements.rs +225 -0
- data/rust-vendor/wasm-encoder/src/core/exports.rs +86 -0
- data/rust-vendor/wasm-encoder/src/core/functions.rs +64 -0
- data/rust-vendor/wasm-encoder/src/core/globals.rs +101 -0
- data/rust-vendor/wasm-encoder/src/core/imports.rs +230 -0
- data/rust-vendor/wasm-encoder/src/core/instructions.rs +4686 -0
- data/rust-vendor/wasm-encoder/src/core/linking.rs +264 -0
- data/rust-vendor/wasm-encoder/src/core/memories.rs +116 -0
- data/rust-vendor/wasm-encoder/src/core/names.rs +305 -0
- data/rust-vendor/wasm-encoder/src/core/producers.rs +181 -0
- data/rust-vendor/wasm-encoder/src/core/start.rs +40 -0
- data/rust-vendor/wasm-encoder/src/core/tables.rs +130 -0
- data/rust-vendor/wasm-encoder/src/core/tags.rs +86 -0
- data/rust-vendor/wasm-encoder/src/core/types.rs +753 -0
- data/rust-vendor/wasm-encoder/src/core.rs +179 -0
- data/rust-vendor/wasm-encoder/src/lib.rs +224 -0
- data/rust-vendor/wasm-encoder/src/raw.rs +32 -0
- data/rust-vendor/wasm-encoder/src/reencode/component.rs +1548 -0
- data/rust-vendor/wasm-encoder/src/reencode.rs +2134 -0
- data/rust-vendor/wasm-metadata/.cargo-checksum.json +1 -0
- data/rust-vendor/wasm-metadata/.cargo_vcs_info.json +6 -0
- data/rust-vendor/wasm-metadata/Cargo.lock +769 -0
- data/rust-vendor/wasm-metadata/Cargo.toml +152 -0
- data/rust-vendor/wasm-metadata/Cargo.toml.orig +38 -0
- data/rust-vendor/wasm-metadata/README.md +27 -0
- data/rust-vendor/wasm-metadata/src/add_metadata.rs +91 -0
- data/rust-vendor/wasm-metadata/src/clap.rs +169 -0
- data/rust-vendor/wasm-metadata/src/dependencies.rs +142 -0
- data/rust-vendor/wasm-metadata/src/lib.rs +83 -0
- data/rust-vendor/wasm-metadata/src/metadata.rs +34 -0
- data/rust-vendor/wasm-metadata/src/names/component.rs +107 -0
- data/rust-vendor/wasm-metadata/src/names/mod.rs +5 -0
- data/rust-vendor/wasm-metadata/src/names/module.rs +101 -0
- data/rust-vendor/wasm-metadata/src/oci_annotations/authors.rs +111 -0
- data/rust-vendor/wasm-metadata/src/oci_annotations/description.rs +110 -0
- data/rust-vendor/wasm-metadata/src/oci_annotations/homepage.rs +118 -0
- data/rust-vendor/wasm-metadata/src/oci_annotations/licenses.rs +122 -0
- data/rust-vendor/wasm-metadata/src/oci_annotations/mod.rs +32 -0
- data/rust-vendor/wasm-metadata/src/oci_annotations/revision.rs +113 -0
- data/rust-vendor/wasm-metadata/src/oci_annotations/source.rs +117 -0
- data/rust-vendor/wasm-metadata/src/oci_annotations/version.rs +110 -0
- data/rust-vendor/wasm-metadata/src/payload.rs +215 -0
- data/rust-vendor/wasm-metadata/src/producers.rs +254 -0
- data/rust-vendor/wasm-metadata/src/rewrite.rs +224 -0
- data/rust-vendor/wasm-metadata/src/utils.rs +21 -0
- data/rust-vendor/wasm-metadata/tests/component.rs +310 -0
- data/rust-vendor/wasm-metadata/tests/module.rs +86 -0
- data/rust-vendor/wasmparser/.cargo-checksum.json +1 -0
- data/rust-vendor/wasmparser/.cargo_vcs_info.json +6 -0
- data/rust-vendor/wasmparser/Cargo.lock +687 -0
- data/rust-vendor/wasmparser/Cargo.toml +161 -0
- data/rust-vendor/wasmparser/Cargo.toml.orig +89 -0
- data/rust-vendor/wasmparser/README.md +28 -0
- data/rust-vendor/wasmparser/benches/.gitignore +1 -0
- data/rust-vendor/wasmparser/benches/benchmark.rs +395 -0
- data/rust-vendor/wasmparser/examples/simple.rs +37 -0
- data/rust-vendor/wasmparser/src/arity.rs +318 -0
- data/rust-vendor/wasmparser/src/binary_reader.rs +2109 -0
- data/rust-vendor/wasmparser/src/collections/hash.rs +120 -0
- data/rust-vendor/wasmparser/src/collections/index_map/detail.rs +1100 -0
- data/rust-vendor/wasmparser/src/collections/index_map/tests.rs +183 -0
- data/rust-vendor/wasmparser/src/collections/index_map.rs +653 -0
- data/rust-vendor/wasmparser/src/collections/index_set.rs +316 -0
- data/rust-vendor/wasmparser/src/collections/map.rs +852 -0
- data/rust-vendor/wasmparser/src/collections/mod.rs +34 -0
- data/rust-vendor/wasmparser/src/collections/set.rs +672 -0
- data/rust-vendor/wasmparser/src/features.rs +442 -0
- data/rust-vendor/wasmparser/src/lib.rs +1340 -0
- data/rust-vendor/wasmparser/src/limits.rs +90 -0
- data/rust-vendor/wasmparser/src/parser.rs +1925 -0
- data/rust-vendor/wasmparser/src/readers/component/aliases.rs +119 -0
- data/rust-vendor/wasmparser/src/readers/component/canonicals.rs +458 -0
- data/rust-vendor/wasmparser/src/readers/component/exports.rs +135 -0
- data/rust-vendor/wasmparser/src/readers/component/imports.rs +145 -0
- data/rust-vendor/wasmparser/src/readers/component/instances.rs +166 -0
- data/rust-vendor/wasmparser/src/readers/component/names.rs +101 -0
- data/rust-vendor/wasmparser/src/readers/component/start.rs +31 -0
- data/rust-vendor/wasmparser/src/readers/component/types.rs +537 -0
- data/rust-vendor/wasmparser/src/readers/component.rs +17 -0
- data/rust-vendor/wasmparser/src/readers/core/branch_hinting.rs +59 -0
- data/rust-vendor/wasmparser/src/readers/core/code.rs +177 -0
- data/rust-vendor/wasmparser/src/readers/core/coredumps.rs +274 -0
- data/rust-vendor/wasmparser/src/readers/core/custom.rs +134 -0
- data/rust-vendor/wasmparser/src/readers/core/data.rs +94 -0
- data/rust-vendor/wasmparser/src/readers/core/dylink0.rs +117 -0
- data/rust-vendor/wasmparser/src/readers/core/elements.rs +153 -0
- data/rust-vendor/wasmparser/src/readers/core/exports.rs +75 -0
- data/rust-vendor/wasmparser/src/readers/core/functions.rs +17 -0
- data/rust-vendor/wasmparser/src/readers/core/globals.rs +51 -0
- data/rust-vendor/wasmparser/src/readers/core/imports.rs +307 -0
- data/rust-vendor/wasmparser/src/readers/core/init.rs +70 -0
- data/rust-vendor/wasmparser/src/readers/core/linking.rs +457 -0
- data/rust-vendor/wasmparser/src/readers/core/memories.rs +61 -0
- data/rust-vendor/wasmparser/src/readers/core/names.rs +162 -0
- data/rust-vendor/wasmparser/src/readers/core/operators.rs +1105 -0
- data/rust-vendor/wasmparser/src/readers/core/producers.rs +84 -0
- data/rust-vendor/wasmparser/src/readers/core/reloc.rs +300 -0
- data/rust-vendor/wasmparser/src/readers/core/tables.rs +96 -0
- data/rust-vendor/wasmparser/src/readers/core/tags.rs +32 -0
- data/rust-vendor/wasmparser/src/readers/core/types/matches.rs +321 -0
- data/rust-vendor/wasmparser/src/readers/core/types.rs +2249 -0
- data/rust-vendor/wasmparser/src/readers/core.rs +43 -0
- data/rust-vendor/wasmparser/src/readers.rs +330 -0
- data/rust-vendor/wasmparser/src/resources.rs +265 -0
- data/rust-vendor/wasmparser/src/validator/component.rs +4765 -0
- data/rust-vendor/wasmparser/src/validator/component_types.rs +4036 -0
- data/rust-vendor/wasmparser/src/validator/core/canonical.rs +552 -0
- data/rust-vendor/wasmparser/src/validator/core.rs +1313 -0
- data/rust-vendor/wasmparser/src/validator/func.rs +613 -0
- data/rust-vendor/wasmparser/src/validator/names.rs +1017 -0
- data/rust-vendor/wasmparser/src/validator/operators/simd.rs +971 -0
- data/rust-vendor/wasmparser/src/validator/operators.rs +4696 -0
- data/rust-vendor/wasmparser/src/validator/types.rs +1327 -0
- data/rust-vendor/wasmparser/src/validator.rs +1645 -0
- data/rust-vendor/wasmparser/tests/big-module.rs +62 -0
- data/rust-vendor/wit-bindgen/.cargo-checksum.json +1 -1
- data/rust-vendor/wit-bindgen/.cargo_vcs_info.json +1 -1
- data/rust-vendor/wit-bindgen/Cargo.lock +76 -66
- data/rust-vendor/wit-bindgen/Cargo.toml +25 -11
- data/rust-vendor/wit-bindgen/Cargo.toml.orig +11 -3
- data/rust-vendor/wit-bindgen/src/lib.rs +21 -15
- data/rust-vendor/wit-bindgen/src/rt/async_support/abi_buffer.rs +35 -32
- data/rust-vendor/wit-bindgen/src/rt/async_support/cabi.rs +15 -20
- data/rust-vendor/wit-bindgen/src/rt/async_support/error_context.rs +11 -22
- data/rust-vendor/wit-bindgen/src/rt/async_support/future_support.rs +406 -146
- data/rust-vendor/wit-bindgen/src/rt/async_support/inter_task_wakeup.rs +98 -0
- data/rust-vendor/wit-bindgen/src/rt/async_support/inter_task_wakeup_disabled.rs +45 -0
- data/rust-vendor/wit-bindgen/src/rt/async_support/spawn.rs +82 -0
- data/rust-vendor/wit-bindgen/src/rt/async_support/spawn_disabled.rs +30 -0
- data/rust-vendor/wit-bindgen/src/rt/async_support/stream_support.rs +262 -122
- data/rust-vendor/wit-bindgen/src/rt/async_support/subtask.rs +49 -54
- data/rust-vendor/wit-bindgen/src/rt/async_support/unit_stream.rs +81 -0
- data/rust-vendor/wit-bindgen/src/rt/async_support/waitable.rs +47 -31
- data/rust-vendor/wit-bindgen/src/rt/async_support/waitable_set.rs +17 -35
- data/rust-vendor/wit-bindgen/src/rt/async_support.rs +262 -188
- data/rust-vendor/wit-bindgen/src/rt/mod.rs +14 -12
- data/rust-vendor/wit-bindgen/src/rt/wit_bindgen_cabi_realloc.c +2 -2
- data/rust-vendor/wit-bindgen/src/rt/wit_bindgen_cabi_realloc.o +0 -0
- data/rust-vendor/wit-bindgen/src/rt/wit_bindgen_cabi_realloc.rs +2 -2
- data/rust-vendor/wit-bindgen/src/rt/wit_bindgen_cabi_wasip3.o +0 -0
- data/rust-vendor/wit-bindgen-0.46.0/.cargo-checksum.json +1 -0
- data/rust-vendor/wit-bindgen-0.46.0/.cargo_vcs_info.json +6 -0
- data/rust-vendor/wit-bindgen-0.46.0/Cargo.lock +428 -0
- data/rust-vendor/wit-bindgen-0.46.0/Cargo.toml +88 -0
- data/rust-vendor/wit-bindgen-0.46.0/Cargo.toml.orig +37 -0
- data/rust-vendor/wit-bindgen-0.46.0/LICENSE-APACHE +201 -0
- data/rust-vendor/wit-bindgen-0.46.0/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- data/rust-vendor/wit-bindgen-0.46.0/LICENSE-MIT +23 -0
- data/rust-vendor/wit-bindgen-0.46.0/README.md +45 -0
- data/rust-vendor/wit-bindgen-0.46.0/build.rs +32 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/examples/_0_world_imports.rs +17 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/examples/_1_interface_imports.rs +32 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/examples/_2_imported_resources.rs +22 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/examples/_3_world_exports.rs +47 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/examples/_4_exported_resources.rs +26 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/examples.rs +55 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/lib.rs +881 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/abi_buffer.rs +417 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/cabi.rs +112 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/error_context.rs +94 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/future_support.rs +734 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/stream_support.rs +604 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/subtask.rs +289 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/waitable.rs +466 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/waitable_set.rs +100 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support.rs +634 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/mod.rs +230 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi_realloc.c +10 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi_realloc.o +0 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi_realloc.rs +11 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi_wasip3.c +12 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi_wasip3.o +0 -0
- data/rust-vendor/wit-bindgen-0.46.0/wasi-cli@0.2.0.wasm +0 -0
- data/rust-vendor/wit-bindgen-core/.cargo-checksum.json +1 -0
- data/rust-vendor/wit-bindgen-core/.cargo_vcs_info.json +6 -0
- data/rust-vendor/wit-bindgen-core/Cargo.lock +340 -0
- data/rust-vendor/wit-bindgen-core/Cargo.toml +75 -0
- data/rust-vendor/wit-bindgen-core/Cargo.toml.orig +30 -0
- data/rust-vendor/wit-bindgen-core/LICENSE-APACHE +201 -0
- data/rust-vendor/wit-bindgen-core/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- data/rust-vendor/wit-bindgen-core/LICENSE-MIT +23 -0
- data/rust-vendor/wit-bindgen-core/src/abi.rs +2526 -0
- data/rust-vendor/wit-bindgen-core/src/async_.rs +200 -0
- data/rust-vendor/wit-bindgen-core/src/lib.rs +239 -0
- data/rust-vendor/wit-bindgen-core/src/ns.rs +27 -0
- data/rust-vendor/wit-bindgen-core/src/path.rs +47 -0
- data/rust-vendor/wit-bindgen-core/src/source.rs +222 -0
- data/rust-vendor/wit-bindgen-core/src/types.rs +232 -0
- data/rust-vendor/wit-bindgen-rust/.cargo-checksum.json +1 -0
- data/rust-vendor/wit-bindgen-rust/.cargo_vcs_info.json +6 -0
- data/rust-vendor/wit-bindgen-rust/Cargo.lock +547 -0
- data/rust-vendor/wit-bindgen-rust/Cargo.toml +112 -0
- data/rust-vendor/wit-bindgen-rust/Cargo.toml.orig +44 -0
- data/rust-vendor/wit-bindgen-rust/LICENSE-APACHE +201 -0
- data/rust-vendor/wit-bindgen-rust/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- data/rust-vendor/wit-bindgen-rust/LICENSE-MIT +23 -0
- data/rust-vendor/wit-bindgen-rust/build.rs +4 -0
- data/rust-vendor/wit-bindgen-rust/src/bindgen.rs +1215 -0
- data/rust-vendor/wit-bindgen-rust/src/interface.rs +3020 -0
- data/rust-vendor/wit-bindgen-rust/src/lib.rs +1880 -0
- data/rust-vendor/wit-bindgen-rust/tests/codegen.rs +174 -0
- data/rust-vendor/wit-bindgen-rust/tests/wit/path1/world.wit +3 -0
- data/rust-vendor/wit-bindgen-rust/tests/wit/path2/world.wit +3 -0
- data/rust-vendor/wit-bindgen-rust/tests/wit/path3/package.wit +3 -0
- data/rust-vendor/wit-bindgen-rust-macro/.cargo-checksum.json +1 -0
- data/rust-vendor/wit-bindgen-rust-macro/.cargo_vcs_info.json +6 -0
- data/rust-vendor/wit-bindgen-rust-macro/Cargo.lock +306 -0
- data/rust-vendor/wit-bindgen-rust-macro/Cargo.toml +62 -0
- data/rust-vendor/wit-bindgen-rust-macro/Cargo.toml.orig +28 -0
- data/rust-vendor/wit-bindgen-rust-macro/LICENSE-APACHE +201 -0
- data/rust-vendor/wit-bindgen-rust-macro/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- data/rust-vendor/wit-bindgen-rust-macro/LICENSE-MIT +23 -0
- data/rust-vendor/wit-bindgen-rust-macro/build.rs +5 -0
- data/rust-vendor/wit-bindgen-rust-macro/src/lib.rs +606 -0
- data/rust-vendor/wit-component/.cargo-checksum.json +1 -0
- data/rust-vendor/wit-component/.cargo_vcs_info.json +6 -0
- data/rust-vendor/wit-component/Cargo.lock +1823 -0
- data/rust-vendor/wit-component/Cargo.toml +217 -0
- data/rust-vendor/wit-component/Cargo.toml.orig +61 -0
- data/rust-vendor/wit-component/README.md +251 -0
- data/rust-vendor/wit-component/src/dummy.rs +395 -0
- data/rust-vendor/wit-component/src/encoding/dedupe.rs +164 -0
- data/rust-vendor/wit-component/src/encoding/types.rs +510 -0
- data/rust-vendor/wit-component/src/encoding/wit.rs +393 -0
- data/rust-vendor/wit-component/src/encoding/world.rs +525 -0
- data/rust-vendor/wit-component/src/encoding.rs +3231 -0
- data/rust-vendor/wit-component/src/gc.rs +1134 -0
- data/rust-vendor/wit-component/src/lib.rs +178 -0
- data/rust-vendor/wit-component/src/linking/metadata.rs +515 -0
- data/rust-vendor/wit-component/src/linking.rs +1727 -0
- data/rust-vendor/wit-component/src/metadata.rs +447 -0
- data/rust-vendor/wit-component/src/printing.rs +1485 -0
- data/rust-vendor/wit-component/src/semver_check.rs +113 -0
- data/rust-vendor/wit-component/src/targets.rs +44 -0
- data/rust-vendor/wit-component/src/validation.rs +2679 -0
- data/rust-vendor/wit-component/tests/.gitignore +2 -0
- data/rust-vendor/wit-component/tests/components/adapt-empty-interface/adapt-old.wat +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-empty-interface/adapt-old.wit +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-empty-interface/component.wat +60 -0
- data/rust-vendor/wit-component/tests/components/adapt-empty-interface/component.wit.print +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-empty-interface/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-empty-interface/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-default/adapt-old.wat +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-default/adapt-old.wit +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-default/component.wat +32 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-default/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-default/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-default/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-namespaced/adapt-old.wat +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-namespaced/adapt-old.wit +7 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-namespaced/component.wat +42 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-namespaced/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-namespaced/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-namespaced/module.wit +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-reallocs/adapt-old.wat +47 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-reallocs/adapt-old.wit +6 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-reallocs/component.wat +131 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-reallocs/component.wit.print +9 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-reallocs/module.wat +8 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-reallocs/module.wit +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-save-args/adapt-old.wat +13 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-save-args/adapt-old.wit +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-save-args/component.wat +86 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-save-args/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-save-args/module.wat +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-save-args/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-with-post-return/adapt-old.wat +33 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-with-post-return/adapt-old.wit +7 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-with-post-return/component.wat +101 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-with-post-return/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-with-post-return/module.wat +9 -0
- data/rust-vendor/wit-component/tests/components/adapt-export-with-post-return/module.wit +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-import-only-used-in-adapter/adapt-unused.wat +7 -0
- data/rust-vendor/wit-component/tests/components/adapt-import-only-used-in-adapter/adapt-unused.wit +9 -0
- data/rust-vendor/wit-component/tests/components/adapt-import-only-used-in-adapter/component.wat +115 -0
- data/rust-vendor/wit-component/tests/components/adapt-import-only-used-in-adapter/component.wit.print +9 -0
- data/rust-vendor/wit-component/tests/components/adapt-import-only-used-in-adapter/module.wat +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-import-only-used-in-adapter/module.wit +6 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack/adapt-old.wat +54 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack/adapt-old.wit +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack/component.wat +163 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack/module.wat +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-adapt-realloc/adapt-old.wat +76 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-adapt-realloc/adapt-old.wit +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-adapt-realloc/component.wat +174 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-adapt-realloc/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-adapt-realloc/module.wat +12 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-adapt-realloc/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc/adapt-old.wat +76 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc/adapt-old.wit +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc/component.wat +199 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc/module.wat +38 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc/module.wit +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc-no-state/adapt-old.wat +68 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc-no-state/adapt-old.wit +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc-no-state/component.wat +216 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc-no-state/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc-no-state/module.wat +38 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-realloc-no-state/module.wit +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-reallocing-adapter/adapt-old.wat +62 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-reallocing-adapter/adapt-old.wit +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-reallocing-adapter/component.wat +187 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-reallocing-adapter/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-reallocing-adapter/module.wat +38 -0
- data/rust-vendor/wit-component/tests/components/adapt-inject-stack-with-reallocing-adapter/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/adapt-list-return/adapt-old.wat +14 -0
- data/rust-vendor/wit-component/tests/components/adapt-list-return/adapt-old.wit +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-list-return/component.wat +104 -0
- data/rust-vendor/wit-component/tests/components/adapt-list-return/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/adapt-list-return/module.wat +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-list-return/module.wit +3 -0
- data/rust-vendor/wit-component/tests/components/adapt-memory-simple/adapt-old.wat +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-memory-simple/adapt-old.wit +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-memory-simple/component.wat +92 -0
- data/rust-vendor/wit-component/tests/components/adapt-memory-simple/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/adapt-memory-simple/module.wat +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-memory-simple/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/adapt-multiple/adapt-foo.wat +10 -0
- data/rust-vendor/wit-component/tests/components/adapt-multiple/adapt-foo.wit +8 -0
- data/rust-vendor/wit-component/tests/components/adapt-multiple/component.wat +107 -0
- data/rust-vendor/wit-component/tests/components/adapt-multiple/component.wit.print +10 -0
- data/rust-vendor/wit-component/tests/components/adapt-multiple/module.wat +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-multiple/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/adapt-preview1/adapt-wasi-snapshot-preview1.wat +13 -0
- data/rust-vendor/wit-component/tests/components/adapt-preview1/adapt-wasi-snapshot-preview1.wit +12 -0
- data/rust-vendor/wit-component/tests/components/adapt-preview1/component.wat +119 -0
- data/rust-vendor/wit-component/tests/components/adapt-preview1/component.wit.print +8 -0
- data/rust-vendor/wit-component/tests/components/adapt-preview1/module.wat +11 -0
- data/rust-vendor/wit-component/tests/components/adapt-preview1/module.wit +7 -0
- data/rust-vendor/wit-component/tests/components/adapt-stub-wasip2/adapt-wasip2.wat +8 -0
- data/rust-vendor/wit-component/tests/components/adapt-stub-wasip2/adapt-wasip2.wit +1 -0
- data/rust-vendor/wit-component/tests/components/adapt-stub-wasip2/component.wat +74 -0
- data/rust-vendor/wit-component/tests/components/adapt-stub-wasip2/component.wit.print +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-stub-wasip2/deps/cli/environment.wit +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-stub-wasip2/module.wat +11 -0
- data/rust-vendor/wit-component/tests/components/adapt-stub-wasip2/module.wit +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-unused/adapt-old.wat +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-unused/adapt-old.wit +5 -0
- data/rust-vendor/wit-component/tests/components/adapt-unused/component.wat +12 -0
- data/rust-vendor/wit-component/tests/components/adapt-unused/component.wit.print +4 -0
- data/rust-vendor/wit-component/tests/components/adapt-unused/module.wat +1 -0
- data/rust-vendor/wit-component/tests/components/adapt-unused/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/async-builtins/component.wat +259 -0
- data/rust-vendor/wit-component/tests/components/async-builtins/component.wit.print +6 -0
- data/rust-vendor/wit-component/tests/components/async-builtins/module.wat +28 -0
- data/rust-vendor/wit-component/tests/components/async-builtins/module.wit +10 -0
- data/rust-vendor/wit-component/tests/components/async-export/component.wat +91 -0
- data/rust-vendor/wit-component/tests/components/async-export/component.wit.print +6 -0
- data/rust-vendor/wit-component/tests/components/async-export/module.wat +8 -0
- data/rust-vendor/wit-component/tests/components/async-export/module.wit +30 -0
- data/rust-vendor/wit-component/tests/components/async-export-with-callback/component.wat +59 -0
- data/rust-vendor/wit-component/tests/components/async-export-with-callback/component.wit.print +6 -0
- data/rust-vendor/wit-component/tests/components/async-export-with-callback/module.wat +8 -0
- data/rust-vendor/wit-component/tests/components/async-export-with-callback/module.wit +10 -0
- data/rust-vendor/wit-component/tests/components/async-import/component.wat +125 -0
- data/rust-vendor/wit-component/tests/components/async-import/component.wit.print +6 -0
- data/rust-vendor/wit-component/tests/components/async-import/module.wat +8 -0
- data/rust-vendor/wit-component/tests/components/async-import/module.wit +10 -0
- data/rust-vendor/wit-component/tests/components/async-import-only-intrinsic/component.wat +34 -0
- data/rust-vendor/wit-component/tests/components/async-import-only-intrinsic/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/async-import-only-intrinsic/module.wat +4 -0
- data/rust-vendor/wit-component/tests/components/async-import-only-intrinsic/module.wit +17 -0
- data/rust-vendor/wit-component/tests/components/async-import-tricky/component.wat +39 -0
- data/rust-vendor/wit-component/tests/components/async-import-tricky/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/async-import-tricky/module.wat +6 -0
- data/rust-vendor/wit-component/tests/components/async-import-tricky/module.wit +17 -0
- data/rust-vendor/wit-component/tests/components/async-streams-and-futures/component.wat +649 -0
- data/rust-vendor/wit-component/tests/components/async-streams-and-futures/component.wit.print +9 -0
- data/rust-vendor/wit-component/tests/components/async-streams-and-futures/module.wat +92 -0
- data/rust-vendor/wit-component/tests/components/async-streams-and-futures/module.wit +12 -0
- data/rust-vendor/wit-component/tests/components/async-unit-builtins/component.wat +138 -0
- data/rust-vendor/wit-component/tests/components/async-unit-builtins/component.wit.print +4 -0
- data/rust-vendor/wit-component/tests/components/async-unit-builtins/module.wat +18 -0
- data/rust-vendor/wit-component/tests/components/async-unit-builtins/module.wit +4 -0
- data/rust-vendor/wit-component/tests/components/bare-funcs/component.wat +93 -0
- data/rust-vendor/wit-component/tests/components/bare-funcs/component.wit.print +9 -0
- data/rust-vendor/wit-component/tests/components/bare-funcs/module.wat +13 -0
- data/rust-vendor/wit-component/tests/components/bare-funcs/module.wit +7 -0
- data/rust-vendor/wit-component/tests/components/cm32-names/component.wat +366 -0
- data/rust-vendor/wit-component/tests/components/cm32-names/component.wit.print +25 -0
- data/rust-vendor/wit-component/tests/components/cm32-names/module.wat +32 -0
- data/rust-vendor/wit-component/tests/components/cm32-names/module.wit +30 -0
- data/rust-vendor/wit-component/tests/components/custom-page-sizes/component.wat +23 -0
- data/rust-vendor/wit-component/tests/components/custom-page-sizes/component.wit.print +4 -0
- data/rust-vendor/wit-component/tests/components/custom-page-sizes/module.wat +12 -0
- data/rust-vendor/wit-component/tests/components/custom-page-sizes/module.wit +3 -0
- data/rust-vendor/wit-component/tests/components/deduplicate-imports/adapt-wasi-snapshot-preview1.wat +10 -0
- data/rust-vendor/wit-component/tests/components/deduplicate-imports/adapt-wasi-snapshot-preview1.wit +10 -0
- data/rust-vendor/wit-component/tests/components/deduplicate-imports/component.wat +132 -0
- data/rust-vendor/wit-component/tests/components/deduplicate-imports/component.wit.print +9 -0
- data/rust-vendor/wit-component/tests/components/deduplicate-imports/module.wat +40 -0
- data/rust-vendor/wit-component/tests/components/deduplicate-imports/module.wit +9 -0
- data/rust-vendor/wit-component/tests/components/empty/component.wat +12 -0
- data/rust-vendor/wit-component/tests/components/empty/component.wit.print +4 -0
- data/rust-vendor/wit-component/tests/components/empty/module.wat +1 -0
- data/rust-vendor/wit-component/tests/components/empty/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/ensure-default-type-exports/component.wat +50 -0
- data/rust-vendor/wit-component/tests/components/ensure-default-type-exports/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/ensure-default-type-exports/module.wat +6 -0
- data/rust-vendor/wit-component/tests/components/ensure-default-type-exports/module.wit +17 -0
- data/rust-vendor/wit-component/tests/components/error-adapt-missing-memory/adapt-old.wat +4 -0
- data/rust-vendor/wit-component/tests/components/error-adapt-missing-memory/adapt-old.wit +5 -0
- data/rust-vendor/wit-component/tests/components/error-adapt-missing-memory/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-adapt-missing-memory/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/error-adapt-missing-memory/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/error-async-export-missing-callback/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-async-export-missing-callback/module.wat +6 -0
- data/rust-vendor/wit-component/tests/components/error-async-export-missing-callback/module.wit +10 -0
- data/rust-vendor/wit-component/tests/components/error-default-export-sig-mismatch/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-default-export-sig-mismatch/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/error-default-export-sig-mismatch/module.wit +5 -0
- data/rust-vendor/wit-component/tests/components/error-empty-module-import/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-empty-module-import/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/error-empty-module-import/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/error-export-sig-mismatch/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-export-sig-mismatch/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/error-export-sig-mismatch/module.wit +7 -0
- data/rust-vendor/wit-component/tests/components/error-import-resource-rep/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-import-resource-rep/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/error-import-resource-rep/module.wit +5 -0
- data/rust-vendor/wit-component/tests/components/error-import-resource-wrong-signature/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-import-resource-wrong-signature/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/error-import-resource-wrong-signature/module.wit +5 -0
- data/rust-vendor/wit-component/tests/components/error-import-sig-mismatch/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-import-sig-mismatch/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/error-import-sig-mismatch/module.wit +7 -0
- data/rust-vendor/wit-component/tests/components/error-invalid-module-import/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-invalid-module-import/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/error-invalid-module-import/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/error-link-duplicate-initializers/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-link-duplicate-initializers/lib-bar.wat +12 -0
- data/rust-vendor/wit-component/tests/components/error-link-duplicate-initializers/lib-bar.wit +3 -0
- data/rust-vendor/wit-component/tests/components/error-link-duplicate-initializers/lib-foo.wat +21 -0
- data/rust-vendor/wit-component/tests/components/error-link-duplicate-initializers/lib-foo.wit +10 -0
- data/rust-vendor/wit-component/tests/components/error-link-missing-needed/error.txt +2 -0
- data/rust-vendor/wit-component/tests/components/error-link-missing-needed/lib-foo.wat +15 -0
- data/rust-vendor/wit-component/tests/components/error-link-missing-needed/lib-foo.wit +10 -0
- data/rust-vendor/wit-component/tests/components/error-link-missing-symbols/error.txt +3 -0
- data/rust-vendor/wit-component/tests/components/error-link-missing-symbols/lib-foo.wat +13 -0
- data/rust-vendor/wit-component/tests/components/error-link-missing-symbols/lib-foo.wit +10 -0
- data/rust-vendor/wit-component/tests/components/error-missing-default-export/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-missing-default-export/module.wat +1 -0
- data/rust-vendor/wit-component/tests/components/error-missing-default-export/module.wit +4 -0
- data/rust-vendor/wit-component/tests/components/error-missing-export/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-missing-export/module.wat +1 -0
- data/rust-vendor/wit-component/tests/components/error-missing-export/module.wit +7 -0
- data/rust-vendor/wit-component/tests/components/error-missing-import/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-missing-import/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/error-missing-import/module.wit +2 -0
- data/rust-vendor/wit-component/tests/components/error-missing-import-func/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-missing-import-func/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/error-missing-import-func/module.wit +9 -0
- data/rust-vendor/wit-component/tests/components/error-missing-module-metadata/adapt-old.wat +4 -0
- data/rust-vendor/wit-component/tests/components/error-missing-module-metadata/adapt-old.wit +5 -0
- data/rust-vendor/wit-component/tests/components/error-missing-module-metadata/error.txt +1 -0
- data/rust-vendor/wit-component/tests/components/error-missing-module-metadata/module.wat +4 -0
- data/rust-vendor/wit-component/tests/components/error-missing-module-metadata/module.wit +4 -0
- data/rust-vendor/wit-component/tests/components/export-interface-using-import/component.wat +37 -0
- data/rust-vendor/wit-component/tests/components/export-interface-using-import/component.wit.print +9 -0
- data/rust-vendor/wit-component/tests/components/export-interface-using-import/module.wat +1 -0
- data/rust-vendor/wit-component/tests/components/export-interface-using-import/module.wit +17 -0
- data/rust-vendor/wit-component/tests/components/export-name-shuffling/component.wat +43 -0
- data/rust-vendor/wit-component/tests/components/export-name-shuffling/component.wit.print +10 -0
- data/rust-vendor/wit-component/tests/components/export-name-shuffling/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/export-name-shuffling/module.wit +17 -0
- data/rust-vendor/wit-component/tests/components/export-resource/component.wat +102 -0
- data/rust-vendor/wit-component/tests/components/export-resource/component.wit.print +10 -0
- data/rust-vendor/wit-component/tests/components/export-resource/module.wat +15 -0
- data/rust-vendor/wit-component/tests/components/export-resource/module.wit +11 -0
- data/rust-vendor/wit-component/tests/components/export-type-name-conflict/component.wat +46 -0
- data/rust-vendor/wit-component/tests/components/export-type-name-conflict/component.wit.print +11 -0
- data/rust-vendor/wit-component/tests/components/export-type-name-conflict/module.wat +5 -0
- data/rust-vendor/wit-component/tests/components/export-type-name-conflict/module.wit +15 -0
- data/rust-vendor/wit-component/tests/components/export-with-type-alias/component.wat +40 -0
- data/rust-vendor/wit-component/tests/components/export-with-type-alias/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/export-with-type-alias/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/export-with-type-alias/module.wit +11 -0
- data/rust-vendor/wit-component/tests/components/exports/component.wat +139 -0
- data/rust-vendor/wit-component/tests/components/exports/component.wit.print +29 -0
- data/rust-vendor/wit-component/tests/components/exports/module.wat +14 -0
- data/rust-vendor/wit-component/tests/components/exports/module.wit +29 -0
- data/rust-vendor/wit-component/tests/components/fallible-constructor/component.wat +73 -0
- data/rust-vendor/wit-component/tests/components/fallible-constructor/component.wit.print +9 -0
- data/rust-vendor/wit-component/tests/components/fallible-constructor/module.wat +5 -0
- data/rust-vendor/wit-component/tests/components/fallible-constructor/module.wit +9 -0
- data/rust-vendor/wit-component/tests/components/import-and-export-resource/component.wat +53 -0
- data/rust-vendor/wit-component/tests/components/import-and-export-resource/component.wit.print +8 -0
- data/rust-vendor/wit-component/tests/components/import-and-export-resource/module.wat +6 -0
- data/rust-vendor/wit-component/tests/components/import-and-export-resource/module.wit +12 -0
- data/rust-vendor/wit-component/tests/components/import-conflict/component.wat +118 -0
- data/rust-vendor/wit-component/tests/components/import-conflict/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/import-conflict/module.wat +7 -0
- data/rust-vendor/wit-component/tests/components/import-conflict/module.wit +19 -0
- data/rust-vendor/wit-component/tests/components/import-empty-interface/component.wat +12 -0
- data/rust-vendor/wit-component/tests/components/import-empty-interface/component.wit.print +4 -0
- data/rust-vendor/wit-component/tests/components/import-empty-interface/module.wat +1 -0
- data/rust-vendor/wit-component/tests/components/import-empty-interface/module.wit +5 -0
- data/rust-vendor/wit-component/tests/components/import-export/component.wat +124 -0
- data/rust-vendor/wit-component/tests/components/import-export/component.wit.print +14 -0
- data/rust-vendor/wit-component/tests/components/import-export/module.wat +10 -0
- data/rust-vendor/wit-component/tests/components/import-export/module.wit +14 -0
- data/rust-vendor/wit-component/tests/components/import-export-same-iface-name/component.wat +59 -0
- data/rust-vendor/wit-component/tests/components/import-export-same-iface-name/component.wit.print +8 -0
- data/rust-vendor/wit-component/tests/components/import-export-same-iface-name/deps/dep/foo.wit +5 -0
- data/rust-vendor/wit-component/tests/components/import-export-same-iface-name/module.wat +5 -0
- data/rust-vendor/wit-component/tests/components/import-export-same-iface-name/module.wit +11 -0
- data/rust-vendor/wit-component/tests/components/import-in-adapter-and-main-module/adapt-old.wat +23 -0
- data/rust-vendor/wit-component/tests/components/import-in-adapter-and-main-module/adapt-old.wit +9 -0
- data/rust-vendor/wit-component/tests/components/import-in-adapter-and-main-module/component.wat +220 -0
- data/rust-vendor/wit-component/tests/components/import-in-adapter-and-main-module/component.wit.print +16 -0
- data/rust-vendor/wit-component/tests/components/import-in-adapter-and-main-module/deps/shared-dependency/doc.wit +13 -0
- data/rust-vendor/wit-component/tests/components/import-in-adapter-and-main-module/deps/shared-dependency/types.wit +3 -0
- data/rust-vendor/wit-component/tests/components/import-in-adapter-and-main-module/module.wat +15 -0
- data/rust-vendor/wit-component/tests/components/import-in-adapter-and-main-module/module.wit +11 -0
- data/rust-vendor/wit-component/tests/components/import-only-resource-static-function/component.wat +30 -0
- data/rust-vendor/wit-component/tests/components/import-only-resource-static-function/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/import-only-resource-static-function/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/import-only-resource-static-function/module.wit +11 -0
- data/rust-vendor/wit-component/tests/components/import-partial-export-full/component.wat +34 -0
- data/rust-vendor/wit-component/tests/components/import-partial-export-full/component.wit.print +8 -0
- data/rust-vendor/wit-component/tests/components/import-partial-export-full/module.wat +1 -0
- data/rust-vendor/wit-component/tests/components/import-partial-export-full/module.wit +19 -0
- data/rust-vendor/wit-component/tests/components/import-resource-in-interface/component.wat +41 -0
- data/rust-vendor/wit-component/tests/components/import-resource-in-interface/component.wit.print +10 -0
- data/rust-vendor/wit-component/tests/components/import-resource-in-interface/module.wat +5 -0
- data/rust-vendor/wit-component/tests/components/import-resource-in-interface/module.wit +11 -0
- data/rust-vendor/wit-component/tests/components/import-resource-simple/component.wat +33 -0
- data/rust-vendor/wit-component/tests/components/import-resource-simple/component.wit.print +8 -0
- data/rust-vendor/wit-component/tests/components/import-resource-simple/module.wat +5 -0
- data/rust-vendor/wit-component/tests/components/import-resource-simple/module.wit +9 -0
- data/rust-vendor/wit-component/tests/components/imports/component.wat +149 -0
- data/rust-vendor/wit-component/tests/components/imports/component.wit.print +29 -0
- data/rust-vendor/wit-component/tests/components/imports/module.wat +12 -0
- data/rust-vendor/wit-component/tests/components/imports/module.wit +33 -0
- data/rust-vendor/wit-component/tests/components/initialize/component.wat +38 -0
- data/rust-vendor/wit-component/tests/components/initialize/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/initialize/module.wat +6 -0
- data/rust-vendor/wit-component/tests/components/initialize/module.wit +5 -0
- data/rust-vendor/wit-component/tests/components/lift-options/component.wat +286 -0
- data/rust-vendor/wit-component/tests/components/lift-options/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/lift-options/module.wat +24 -0
- data/rust-vendor/wit-component/tests/components/lift-options/module.wit +40 -0
- data/rust-vendor/wit-component/tests/components/link/component.wat +271 -0
- data/rust-vendor/wit-component/tests/components/link/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/link/lib-bar.wat +29 -0
- data/rust-vendor/wit-component/tests/components/link/lib-bar.wit +10 -0
- data/rust-vendor/wit-component/tests/components/link/lib-c.wat +27 -0
- data/rust-vendor/wit-component/tests/components/link/lib-c.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link/lib-foo.wat +55 -0
- data/rust-vendor/wit-component/tests/components/link/lib-foo.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link/lib-unused.wat +55 -0
- data/rust-vendor/wit-component/tests/components/link/lib-unused.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-asyncify/component.wat +267 -0
- data/rust-vendor/wit-component/tests/components/link-asyncify/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/link-asyncify/lib-bar.wat +81 -0
- data/rust-vendor/wit-component/tests/components/link-asyncify/lib-bar.wit +9 -0
- data/rust-vendor/wit-component/tests/components/link-asyncify/lib-foo.wat +78 -0
- data/rust-vendor/wit-component/tests/components/link-asyncify/lib-foo.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-bare-funcs/component.wat +212 -0
- data/rust-vendor/wit-component/tests/components/link-bare-funcs/component.wit.print +9 -0
- data/rust-vendor/wit-component/tests/components/link-bare-funcs/lib-c.wat +27 -0
- data/rust-vendor/wit-component/tests/components/link-bare-funcs/lib-c.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-bare-funcs/lib-foo.wat +18 -0
- data/rust-vendor/wit-component/tests/components/link-bare-funcs/lib-foo.wit +7 -0
- data/rust-vendor/wit-component/tests/components/link-circular/component.wat +133 -0
- data/rust-vendor/wit-component/tests/components/link-circular/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/link-circular/lib-bar.wat +12 -0
- data/rust-vendor/wit-component/tests/components/link-circular/lib-bar.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-circular/lib-foo.wat +15 -0
- data/rust-vendor/wit-component/tests/components/link-circular/lib-foo.wit +10 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable/component.wat +108 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable/dlopen-lib-foo.wat +15 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable/dlopen-lib-foo.wit +10 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl/component.wat +657 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl/dlopen-lib-foo.wat +17 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl/dlopen-lib-foo.wit +10 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl/lib-c.wat +30 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl/lib-c.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl/stub-missing-functions +0 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl/use-built-in-libdl +0 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/component.wat +654 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/dlopen-lib-foo.wat +19 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/dlopen-lib-foo.wit +10 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/lib-c.wat +39 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/lib-c.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/lib-unused.wat +55 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/lib-unused.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/use-built-in-libdl +0 -0
- data/rust-vendor/wit-component/tests/components/link-duplicate-symbols/component.wat +135 -0
- data/rust-vendor/wit-component/tests/components/link-duplicate-symbols/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/link-duplicate-symbols/lib-bar.wat +13 -0
- data/rust-vendor/wit-component/tests/components/link-duplicate-symbols/lib-bar.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-duplicate-symbols/lib-foo.wat +15 -0
- data/rust-vendor/wit-component/tests/components/link-duplicate-symbols/lib-foo.wit +10 -0
- data/rust-vendor/wit-component/tests/components/link-got-func/component.wat +125 -0
- data/rust-vendor/wit-component/tests/components/link-got-func/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/link-got-func/lib-bar.wat +10 -0
- data/rust-vendor/wit-component/tests/components/link-got-func/lib-bar.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-got-func/lib-foo.wat +10 -0
- data/rust-vendor/wit-component/tests/components/link-got-func/lib-foo.wit +10 -0
- data/rust-vendor/wit-component/tests/components/link-initialize/component.wat +271 -0
- data/rust-vendor/wit-component/tests/components/link-initialize/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/link-initialize/lib-bar.wat +29 -0
- data/rust-vendor/wit-component/tests/components/link-initialize/lib-bar.wit +10 -0
- data/rust-vendor/wit-component/tests/components/link-initialize/lib-c.wat +27 -0
- data/rust-vendor/wit-component/tests/components/link-initialize/lib-c.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-initialize/lib-foo.wat +55 -0
- data/rust-vendor/wit-component/tests/components/link-initialize/lib-foo.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-lib-with-async-export/component.wat +148 -0
- data/rust-vendor/wit-component/tests/components/link-lib-with-async-export/component.wit.print +19 -0
- data/rust-vendor/wit-component/tests/components/link-lib-with-async-export/lib-c.wat +4 -0
- data/rust-vendor/wit-component/tests/components/link-lib-with-async-export/lib-c.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-lib-with-async-export/lib-foo.wat +12 -0
- data/rust-vendor/wit-component/tests/components/link-lib-with-async-export/lib-foo.wit +16 -0
- data/rust-vendor/wit-component/tests/components/link-resources/component.wat +150 -0
- data/rust-vendor/wit-component/tests/components/link-resources/component.wit.print +6 -0
- data/rust-vendor/wit-component/tests/components/link-resources/lib-bar.wat +15 -0
- data/rust-vendor/wit-component/tests/components/link-resources/lib-bar.wit +13 -0
- data/rust-vendor/wit-component/tests/components/link-resources/lib-foo.wat +17 -0
- data/rust-vendor/wit-component/tests/components/link-resources/lib-foo.wit +13 -0
- data/rust-vendor/wit-component/tests/components/link-stack-high-and-low/component.wat +146 -0
- data/rust-vendor/wit-component/tests/components/link-stack-high-and-low/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/link-stack-high-and-low/lib-bar.wat +19 -0
- data/rust-vendor/wit-component/tests/components/link-stack-high-and-low/lib-bar.wit +9 -0
- data/rust-vendor/wit-component/tests/components/link-stack-high-and-low/lib-foo.wat +17 -0
- data/rust-vendor/wit-component/tests/components/link-stack-high-and-low/lib-foo.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/adapt-wasip2.wat +8 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/adapt-wasip2.wit +1 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/component.wat +330 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/deps/cli/environment.wit +5 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/lib-bar.wat +29 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/lib-bar.wit +10 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/lib-c.wat +29 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/lib-c.wit +5 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/lib-foo.wat +55 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/lib-foo.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/lib-unused.wat +55 -0
- data/rust-vendor/wit-component/tests/components/link-stub-wasip2/lib-unused.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-stubs/component.wat +118 -0
- data/rust-vendor/wit-component/tests/components/link-stubs/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/link-stubs/lib-foo.wat +13 -0
- data/rust-vendor/wit-component/tests/components/link-stubs/lib-foo.wit +10 -0
- data/rust-vendor/wit-component/tests/components/link-stubs/stub-missing-functions +0 -0
- data/rust-vendor/wit-component/tests/components/link-tag/component.wat +123 -0
- data/rust-vendor/wit-component/tests/components/link-tag/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/link-tag/lib-bar.wat +6 -0
- data/rust-vendor/wit-component/tests/components/link-tag/lib-bar.wit +3 -0
- data/rust-vendor/wit-component/tests/components/link-tag/lib-foo.wat +7 -0
- data/rust-vendor/wit-component/tests/components/link-tag/lib-foo.wit +5 -0
- data/rust-vendor/wit-component/tests/components/link-weak-cabi-realloc/component.wat +99 -0
- data/rust-vendor/wit-component/tests/components/link-weak-cabi-realloc/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/link-weak-cabi-realloc/lib-foo.wat +14 -0
- data/rust-vendor/wit-component/tests/components/link-weak-cabi-realloc/lib-foo.wit +9 -0
- data/rust-vendor/wit-component/tests/components/link-weak-import/component.wat +120 -0
- data/rust-vendor/wit-component/tests/components/link-weak-import/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/link-weak-import/lib-foo.wat +15 -0
- data/rust-vendor/wit-component/tests/components/link-weak-import/lib-foo.wit +10 -0
- data/rust-vendor/wit-component/tests/components/live-exports-dead-imports/component.wat +38 -0
- data/rust-vendor/wit-component/tests/components/live-exports-dead-imports/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/live-exports-dead-imports/module.wat +4 -0
- data/rust-vendor/wit-component/tests/components/live-exports-dead-imports/module.wit +12 -0
- data/rust-vendor/wit-component/tests/components/lower-options/component.wat +281 -0
- data/rust-vendor/wit-component/tests/components/lower-options/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/lower-options/module.wat +20 -0
- data/rust-vendor/wit-component/tests/components/lower-options/module.wit +40 -0
- data/rust-vendor/wit-component/tests/components/many-same-names/component.wat +48 -0
- data/rust-vendor/wit-component/tests/components/many-same-names/component.wit.print +10 -0
- data/rust-vendor/wit-component/tests/components/many-same-names/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/many-same-names/module.wit +21 -0
- data/rust-vendor/wit-component/tests/components/merge-import-versions/component.wat +125 -0
- data/rust-vendor/wit-component/tests/components/merge-import-versions/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/merge-import-versions/module.wat +15 -0
- data/rust-vendor/wit-component/tests/components/merge-import-versions/module.wit +30 -0
- data/rust-vendor/wit-component/tests/components/merge-import-versions-with-adapter/adapt-old.wat +10 -0
- data/rust-vendor/wit-component/tests/components/merge-import-versions-with-adapter/adapt-old.wit +19 -0
- data/rust-vendor/wit-component/tests/components/merge-import-versions-with-adapter/component.wat +104 -0
- data/rust-vendor/wit-component/tests/components/merge-import-versions-with-adapter/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/merge-import-versions-with-adapter/module.wat +9 -0
- data/rust-vendor/wit-component/tests/components/merge-import-versions-with-adapter/module.wit +14 -0
- data/rust-vendor/wit-component/tests/components/multi-package/baz/qux/component.wat +90 -0
- data/rust-vendor/wit-component/tests/components/multi-package/baz/qux/component.wit.print +13 -0
- data/rust-vendor/wit-component/tests/components/multi-package/baz/qux/module.wat +7 -0
- data/rust-vendor/wit-component/tests/components/multi-package/component.wat +44 -0
- data/rust-vendor/wit-component/tests/components/multi-package/component.wit.print +4 -0
- data/rust-vendor/wit-component/tests/components/multi-package/foo/bar/component.wat +82 -0
- data/rust-vendor/wit-component/tests/components/multi-package/foo/bar/component.wit.print +13 -0
- data/rust-vendor/wit-component/tests/components/multi-package/foo/bar/module.wat +6 -0
- data/rust-vendor/wit-component/tests/components/multi-package/module.wit +25 -0
- data/rust-vendor/wit-component/tests/components/no-realloc-required/component.wat +67 -0
- data/rust-vendor/wit-component/tests/components/no-realloc-required/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/no-realloc-required/module.wat +4 -0
- data/rust-vendor/wit-component/tests/components/no-realloc-required/module.wit +7 -0
- data/rust-vendor/wit-component/tests/components/post-return/component.wat +36 -0
- data/rust-vendor/wit-component/tests/components/post-return/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/post-return/module.wat +6 -0
- data/rust-vendor/wit-component/tests/components/post-return/module.wit +5 -0
- data/rust-vendor/wit-component/tests/components/rename-import-interface/component.wat +29 -0
- data/rust-vendor/wit-component/tests/components/rename-import-interface/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/rename-import-interface/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/rename-import-interface/module.wit +9 -0
- data/rust-vendor/wit-component/tests/components/rename-interface/component.wat +39 -0
- data/rust-vendor/wit-component/tests/components/rename-interface/component.wit.print +10 -0
- data/rust-vendor/wit-component/tests/components/rename-interface/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/rename-interface/module.wit +18 -0
- data/rust-vendor/wit-component/tests/components/resource-intrinsics-with-just-import/component.wat +28 -0
- data/rust-vendor/wit-component/tests/components/resource-intrinsics-with-just-import/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/resource-intrinsics-with-just-import/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/resource-intrinsics-with-just-import/module.wit +7 -0
- data/rust-vendor/wit-component/tests/components/resource-used-through-import/component.wat +57 -0
- data/rust-vendor/wit-component/tests/components/resource-used-through-import/component.wit.print +11 -0
- data/rust-vendor/wit-component/tests/components/resource-used-through-import/module.wat +6 -0
- data/rust-vendor/wit-component/tests/components/resource-used-through-import/module.wit +13 -0
- data/rust-vendor/wit-component/tests/components/resource-using-export/component.wat +64 -0
- data/rust-vendor/wit-component/tests/components/resource-using-export/component.wit.print +10 -0
- data/rust-vendor/wit-component/tests/components/resource-using-export/module.wat +6 -0
- data/rust-vendor/wit-component/tests/components/resource-using-export/module.wit +16 -0
- data/rust-vendor/wit-component/tests/components/simple/component.wat +64 -0
- data/rust-vendor/wit-component/tests/components/simple/component.wit.print +7 -0
- data/rust-vendor/wit-component/tests/components/simple/module.wat +10 -0
- data/rust-vendor/wit-component/tests/components/simple/module.wit +7 -0
- data/rust-vendor/wit-component/tests/components/threading/component.wat +163 -0
- data/rust-vendor/wit-component/tests/components/threading/component.wit.print +6 -0
- data/rust-vendor/wit-component/tests/components/threading/module.wat +22 -0
- data/rust-vendor/wit-component/tests/components/threading/module.wit +10 -0
- data/rust-vendor/wit-component/tests/components/tricky-order/component.wat +44 -0
- data/rust-vendor/wit-component/tests/components/tricky-order/component.wit.print +11 -0
- data/rust-vendor/wit-component/tests/components/tricky-order/module.wat +1 -0
- data/rust-vendor/wit-component/tests/components/tricky-order/module.wit +20 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources/component.wat +75 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources/component.wit.print +11 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources/module.wat +7 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources/module.wit +19 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources2/component.wat +50 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources2/component.wit.print +10 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources2/module.wat +4 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources2/module.wit +14 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources3/component.wat +44 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources3/component.wit.print +9 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources3/module.wat +1 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources3/module.wit +17 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources4/component.wat +64 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources4/component.wit.print +8 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources4/module.wat +6 -0
- data/rust-vendor/wit-component/tests/components/tricky-resources4/module.wit +16 -0
- data/rust-vendor/wit-component/tests/components/unused-import/component.wat +29 -0
- data/rust-vendor/wit-component/tests/components/unused-import/component.wit.print +5 -0
- data/rust-vendor/wit-component/tests/components/unused-import/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/unused-import/module.wit +12 -0
- data/rust-vendor/wit-component/tests/components/worlds-with-type-renamings/component.wat +67 -0
- data/rust-vendor/wit-component/tests/components/worlds-with-type-renamings/component.wit.print +8 -0
- data/rust-vendor/wit-component/tests/components/worlds-with-type-renamings/module.wat +12 -0
- data/rust-vendor/wit-component/tests/components/worlds-with-type-renamings/module.wit +17 -0
- data/rust-vendor/wit-component/tests/components/worlds-with-types/component.wat +25 -0
- data/rust-vendor/wit-component/tests/components/worlds-with-types/component.wit.print +11 -0
- data/rust-vendor/wit-component/tests/components/worlds-with-types/module.wat +3 -0
- data/rust-vendor/wit-component/tests/components/worlds-with-types/module.wit +10 -0
- data/rust-vendor/wit-component/tests/components.rs +291 -0
- data/rust-vendor/wit-component/tests/interfaces/console.wat +18 -0
- data/rust-vendor/wit-component/tests/interfaces/console.wit +5 -0
- data/rust-vendor/wit-component/tests/interfaces/console.wit.print +6 -0
- data/rust-vendor/wit-component/tests/interfaces/diamond-disambiguate/foo.wit.print +20 -0
- data/rust-vendor/wit-component/tests/interfaces/diamond-disambiguate/join.wit +10 -0
- data/rust-vendor/wit-component/tests/interfaces/diamond-disambiguate/shared1.wit +3 -0
- data/rust-vendor/wit-component/tests/interfaces/diamond-disambiguate/shared2.wit +3 -0
- data/rust-vendor/wit-component/tests/interfaces/diamond-disambiguate.wat +70 -0
- data/rust-vendor/wit-component/tests/interfaces/diamond.wat +107 -0
- data/rust-vendor/wit-component/tests/interfaces/diamond.wit +31 -0
- data/rust-vendor/wit-component/tests/interfaces/diamond.wit.print +34 -0
- data/rust-vendor/wit-component/tests/interfaces/doc-comments/foo.wit +79 -0
- data/rust-vendor/wit-component/tests/interfaces/doc-comments/foo.wit.print +78 -0
- data/rust-vendor/wit-component/tests/interfaces/doc-comments.wat +73 -0
- data/rust-vendor/wit-component/tests/interfaces/empty.wat +50 -0
- data/rust-vendor/wit-component/tests/interfaces/empty.wit +12 -0
- data/rust-vendor/wit-component/tests/interfaces/empty.wit.print +16 -0
- data/rust-vendor/wit-component/tests/interfaces/export-other-packages-interface/deps/the-dep/the-doc.wit +9 -0
- data/rust-vendor/wit-component/tests/interfaces/export-other-packages-interface/foo.wit +5 -0
- data/rust-vendor/wit-component/tests/interfaces/export-other-packages-interface/foo.wit.print +5 -0
- data/rust-vendor/wit-component/tests/interfaces/export-other-packages-interface.wat +23 -0
- data/rust-vendor/wit-component/tests/interfaces/exports.wat +39 -0
- data/rust-vendor/wit-component/tests/interfaces/exports.wit +13 -0
- data/rust-vendor/wit-component/tests/interfaces/exports.wit.print +13 -0
- data/rust-vendor/wit-component/tests/interfaces/flags.wat +79 -0
- data/rust-vendor/wit-component/tests/interfaces/flags.wit +100 -0
- data/rust-vendor/wit-component/tests/interfaces/flags.wit.print +100 -0
- data/rust-vendor/wit-component/tests/interfaces/floats.wat +47 -0
- data/rust-vendor/wit-component/tests/interfaces/floats.wit +12 -0
- data/rust-vendor/wit-component/tests/interfaces/floats.wit.print +15 -0
- data/rust-vendor/wit-component/tests/interfaces/foreign-use-chain/deps/bar/bar.wit +9 -0
- data/rust-vendor/wit-component/tests/interfaces/foreign-use-chain/foo.wit +5 -0
- data/rust-vendor/wit-component/tests/interfaces/foreign-use-chain/foo.wit.print +6 -0
- data/rust-vendor/wit-component/tests/interfaces/foreign-use-chain.wat +31 -0
- data/rust-vendor/wit-component/tests/interfaces/import-and-export.wat +54 -0
- data/rust-vendor/wit-component/tests/interfaces/import-and-export.wit +14 -0
- data/rust-vendor/wit-component/tests/interfaces/import-and-export.wit.print +15 -0
- data/rust-vendor/wit-component/tests/interfaces/integers.wat +107 -0
- data/rust-vendor/wit-component/tests/interfaces/integers.wit +27 -0
- data/rust-vendor/wit-component/tests/interfaces/integers.wit.print +45 -0
- data/rust-vendor/wit-component/tests/interfaces/lists.wat +211 -0
- data/rust-vendor/wit-component/tests/interfaces/lists.wit +96 -0
- data/rust-vendor/wit-component/tests/interfaces/lists.wit.print +96 -0
- data/rust-vendor/wit-component/tests/interfaces/maps.wat +186 -0
- data/rust-vendor/wit-component/tests/interfaces/maps.wit +38 -0
- data/rust-vendor/wit-component/tests/interfaces/maps.wit.print +57 -0
- data/rust-vendor/wit-component/tests/interfaces/multi-doc/a.wit +9 -0
- data/rust-vendor/wit-component/tests/interfaces/multi-doc/b.wit +9 -0
- data/rust-vendor/wit-component/tests/interfaces/multi-doc/foo.wit.print +20 -0
- data/rust-vendor/wit-component/tests/interfaces/multi-doc.wat +78 -0
- data/rust-vendor/wit-component/tests/interfaces/multiple-use.wat +67 -0
- data/rust-vendor/wit-component/tests/interfaces/multiple-use.wit +16 -0
- data/rust-vendor/wit-component/tests/interfaces/multiple-use.wit.print +18 -0
- data/rust-vendor/wit-component/tests/interfaces/pkg-use-chain/chain.wit.print +18 -0
- data/rust-vendor/wit-component/tests/interfaces/pkg-use-chain/def.wit +13 -0
- data/rust-vendor/wit-component/tests/interfaces/pkg-use-chain/the-use.wit +5 -0
- data/rust-vendor/wit-component/tests/interfaces/pkg-use-chain.wat +70 -0
- data/rust-vendor/wit-component/tests/interfaces/pkg-use-chain2/bar.wit +13 -0
- data/rust-vendor/wit-component/tests/interfaces/pkg-use-chain2/foo.wit +5 -0
- data/rust-vendor/wit-component/tests/interfaces/pkg-use-chain2/foo.wit.print +20 -0
- data/rust-vendor/wit-component/tests/interfaces/pkg-use-chain2.wat +70 -0
- data/rust-vendor/wit-component/tests/interfaces/preserve-dep-type-order/deps/dep/foo.wit +11 -0
- data/rust-vendor/wit-component/tests/interfaces/preserve-dep-type-order/foo.wit +9 -0
- data/rust-vendor/wit-component/tests/interfaces/preserve-dep-type-order/foo.wit.print +9 -0
- data/rust-vendor/wit-component/tests/interfaces/preserve-dep-type-order.wat +47 -0
- data/rust-vendor/wit-component/tests/interfaces/preserve-foreign-reexport/deps/my-dep/my-doc.wit +8 -0
- data/rust-vendor/wit-component/tests/interfaces/preserve-foreign-reexport/foo.wit +5 -0
- data/rust-vendor/wit-component/tests/interfaces/preserve-foreign-reexport/foo.wit.print +5 -0
- data/rust-vendor/wit-component/tests/interfaces/preserve-foreign-reexport.wat +24 -0
- data/rust-vendor/wit-component/tests/interfaces/print-keyword.wat +21 -0
- data/rust-vendor/wit-component/tests/interfaces/print-keyword.wit +10 -0
- data/rust-vendor/wit-component/tests/interfaces/print-keyword.wit.print +12 -0
- data/rust-vendor/wit-component/tests/interfaces/records.wat +141 -0
- data/rust-vendor/wit-component/tests/interfaces/records.wit +63 -0
- data/rust-vendor/wit-component/tests/interfaces/records.wit.print +64 -0
- data/rust-vendor/wit-component/tests/interfaces/reference-out-of-order.wat +63 -0
- data/rust-vendor/wit-component/tests/interfaces/reference-out-of-order.wit +28 -0
- data/rust-vendor/wit-component/tests/interfaces/reference-out-of-order.wit.print +31 -0
- data/rust-vendor/wit-component/tests/interfaces/resources.wat +192 -0
- data/rust-vendor/wit-component/tests/interfaces/resources.wit +80 -0
- data/rust-vendor/wit-component/tests/interfaces/resources.wit.print +81 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-deps/deps/some-dep/types.wit +5 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-deps/foo.wit +4 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-deps/foo.wit.print +6 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-deps.wat +26 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-multi/bar.wit +1 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-multi/foo.wit +3 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-multi/foo.wit.print +8 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-multi.wat +24 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-use.wat +40 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-use.wit +13 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-use.wit.print +15 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-world.wat +35 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-world.wit +9 -0
- data/rust-vendor/wit-component/tests/interfaces/simple-world.wit.print +9 -0
- data/rust-vendor/wit-component/tests/interfaces/single-named-result.wat +18 -0
- data/rust-vendor/wit-component/tests/interfaces/type-alias.wat +51 -0
- data/rust-vendor/wit-component/tests/interfaces/type-alias.wit +13 -0
- data/rust-vendor/wit-component/tests/interfaces/type-alias.wit.print +15 -0
- data/rust-vendor/wit-component/tests/interfaces/type-alias2.wat +41 -0
- data/rust-vendor/wit-component/tests/interfaces/type-alias2.wit +15 -0
- data/rust-vendor/wit-component/tests/interfaces/type-alias2.wit.print +15 -0
- data/rust-vendor/wit-component/tests/interfaces/upstream-deps-same-name/deps/a/the-name.wit +4 -0
- data/rust-vendor/wit-component/tests/interfaces/upstream-deps-same-name/deps/b/the-name.wit +4 -0
- data/rust-vendor/wit-component/tests/interfaces/upstream-deps-same-name/foo.wit +6 -0
- data/rust-vendor/wit-component/tests/interfaces/upstream-deps-same-name/foo.wit.print +7 -0
- data/rust-vendor/wit-component/tests/interfaces/upstream-deps-same-name.wat +36 -0
- data/rust-vendor/wit-component/tests/interfaces/use-chain.wat +72 -0
- data/rust-vendor/wit-component/tests/interfaces/use-chain.wit +15 -0
- data/rust-vendor/wit-component/tests/interfaces/use-chain.wit.print +18 -0
- data/rust-vendor/wit-component/tests/interfaces/use-for-type.wat +49 -0
- data/rust-vendor/wit-component/tests/interfaces/use-for-type.wit +16 -0
- data/rust-vendor/wit-component/tests/interfaces/use-for-type.wit.print +17 -0
- data/rust-vendor/wit-component/tests/interfaces/variants.wat +197 -0
- data/rust-vendor/wit-component/tests/interfaces/variants.wit +78 -0
- data/rust-vendor/wit-component/tests/interfaces/variants.wit.print +95 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/cli/command.wit +7 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/cli/environment.wit +18 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/cli/exit.wit +4 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/cli/imports.wit +20 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/cli/run.wit +4 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/cli/stdio.wit +17 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/cli/terminal.wit +47 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/clocks/monotonic-clock.wit +45 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/clocks/wall-clock.wit +42 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/clocks/world.wit +6 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/filesystem/preopens.wit +8 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/filesystem/types.wit +634 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/filesystem/world.wit +6 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/io/error.wit +34 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/io/poll.wit +41 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/io/streams.wit +251 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/io/world.wit +6 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/random/insecure-seed.wit +25 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/random/insecure.wit +22 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/random/random.wit +26 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/random/world.wit +7 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/sockets/instance-network.wit +9 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/sockets/ip-name-lookup.wit +51 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/sockets/network.wit +147 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/sockets/tcp-create-socket.wit +26 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/sockets/tcp.wit +321 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/sockets/udp-create-socket.wit +26 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/sockets/udp.wit +277 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/deps/sockets/world.wit +11 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/handler.wit +43 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/http.wit.print +571 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/proxy.wit +32 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http/types.wit +570 -0
- data/rust-vendor/wit-component/tests/interfaces/wasi-http.wat +881 -0
- data/rust-vendor/wit-component/tests/interfaces/world-inline-interface.wat +24 -0
- data/rust-vendor/wit-component/tests/interfaces/world-inline-interface.wit +6 -0
- data/rust-vendor/wit-component/tests/interfaces/world-inline-interface.wit.print +9 -0
- data/rust-vendor/wit-component/tests/interfaces/world-pkg-conflict/bar.wit +3 -0
- data/rust-vendor/wit-component/tests/interfaces/world-pkg-conflict/foo.wit +9 -0
- data/rust-vendor/wit-component/tests/interfaces/world-pkg-conflict/foo.wit.print +12 -0
- data/rust-vendor/wit-component/tests/interfaces/world-pkg-conflict.wat +47 -0
- data/rust-vendor/wit-component/tests/interfaces/world-top-level.wat +55 -0
- data/rust-vendor/wit-component/tests/interfaces/world-top-level.wit +20 -0
- data/rust-vendor/wit-component/tests/interfaces/world-top-level.wit.print +19 -0
- data/rust-vendor/wit-component/tests/interfaces/worlds-with-types.wat +56 -0
- data/rust-vendor/wit-component/tests/interfaces/worlds-with-types.wit +23 -0
- data/rust-vendor/wit-component/tests/interfaces/worlds-with-types.wit.print +23 -0
- data/rust-vendor/wit-component/tests/interfaces.rs +123 -0
- data/rust-vendor/wit-component/tests/linking.rs +299 -0
- data/rust-vendor/wit-component/tests/merge/bad-interface1/error.txt +1 -0
- data/rust-vendor/wit-component/tests/merge/bad-interface1/from/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-interface1/from/deps/foo/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-interface1/into/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-interface1/into/deps/foo/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-interface2/error.txt +1 -0
- data/rust-vendor/wit-component/tests/merge/bad-interface2/from/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-interface2/from/deps/foo/a.wit +7 -0
- data/rust-vendor/wit-component/tests/merge/bad-interface2/into/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-interface2/into/deps/foo/a.wit +7 -0
- data/rust-vendor/wit-component/tests/merge/bad-world1/error.txt +1 -0
- data/rust-vendor/wit-component/tests/merge/bad-world1/from/a.wit +4 -0
- data/rust-vendor/wit-component/tests/merge/bad-world1/from/deps/foo/a.wit +11 -0
- data/rust-vendor/wit-component/tests/merge/bad-world1/into/a.wit +4 -0
- data/rust-vendor/wit-component/tests/merge/bad-world1/into/deps/foo/a.wit +9 -0
- data/rust-vendor/wit-component/tests/merge/bad-world2/error.txt +1 -0
- data/rust-vendor/wit-component/tests/merge/bad-world2/from/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-world2/from/deps/foo/a.wit +8 -0
- data/rust-vendor/wit-component/tests/merge/bad-world2/into/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-world2/into/deps/foo/a.wit +9 -0
- data/rust-vendor/wit-component/tests/merge/bad-world3/error.txt +1 -0
- data/rust-vendor/wit-component/tests/merge/bad-world3/from/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-world3/from/deps/foo/a.wit +8 -0
- data/rust-vendor/wit-component/tests/merge/bad-world3/into/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-world3/into/deps/foo/a.wit +9 -0
- data/rust-vendor/wit-component/tests/merge/bad-world4/error.txt +1 -0
- data/rust-vendor/wit-component/tests/merge/bad-world4/from/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-world4/from/deps/foo/a.wit +11 -0
- data/rust-vendor/wit-component/tests/merge/bad-world4/into/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-world4/into/deps/foo/a.wit +9 -0
- data/rust-vendor/wit-component/tests/merge/bad-world5/error.txt +1 -0
- data/rust-vendor/wit-component/tests/merge/bad-world5/from/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-world5/from/deps/foo/a.wit +11 -0
- data/rust-vendor/wit-component/tests/merge/bad-world5/into/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/bad-world5/into/deps/foo/a.wit +9 -0
- data/rust-vendor/wit-component/tests/merge/success/from/a.wit +7 -0
- data/rust-vendor/wit-component/tests/merge/success/from/deps/foo/only-from.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/success/from/deps/foo/shared.wit +46 -0
- data/rust-vendor/wit-component/tests/merge/success/from/deps/only-from-dep/a.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/success/into/b.wit +7 -0
- data/rust-vendor/wit-component/tests/merge/success/into/deps/foo/only-into.wit +5 -0
- data/rust-vendor/wit-component/tests/merge/success/into/deps/foo/shared.wit +44 -0
- data/rust-vendor/wit-component/tests/merge/success/merge/foo.wit +77 -0
- data/rust-vendor/wit-component/tests/merge/success/merge/from.wit +8 -0
- data/rust-vendor/wit-component/tests/merge/success/merge/into.wit +8 -0
- data/rust-vendor/wit-component/tests/merge/success/merge/only-from-dep.wit +6 -0
- data/rust-vendor/wit-component/tests/merge.rs +80 -0
- data/rust-vendor/wit-component/tests/targets/error-missing-export/error.txt +2 -0
- data/rust-vendor/wit-component/tests/targets/error-missing-export/test.wat +39 -0
- data/rust-vendor/wit-component/tests/targets/error-missing-export/test.wit +18 -0
- data/rust-vendor/wit-component/tests/targets/error-missing-import/error.txt +2 -0
- data/rust-vendor/wit-component/tests/targets/error-missing-import/test.wat +37 -0
- data/rust-vendor/wit-component/tests/targets/error-missing-import/test.wit +13 -0
- data/rust-vendor/wit-component/tests/targets/success/test.wat +56 -0
- data/rust-vendor/wit-component/tests/targets/success/test.wit +14 -0
- data/rust-vendor/wit-component/tests/targets/success-empty/test.wat +1 -0
- data/rust-vendor/wit-component/tests/targets/success-empty/test.wit +9 -0
- data/rust-vendor/wit-component/tests/targets.rs +89 -0
- data/rust-vendor/wit-component/tests/wit/parse-dir/wit/deps/bar/bar.wit +9 -0
- data/rust-vendor/wit-component/tests/wit/parse-dir/wit/world.wit +5 -0
- data/rust-vendor/wit-component/tests/wit.rs +49 -0
- data/rust-vendor/wit-parser/.cargo-checksum.json +1 -0
- data/rust-vendor/wit-parser/.cargo_vcs_info.json +6 -0
- data/rust-vendor/wit-parser/Cargo.lock +576 -0
- data/rust-vendor/wit-parser/Cargo.toml +157 -0
- data/rust-vendor/wit-parser/Cargo.toml.orig +56 -0
- data/rust-vendor/wit-parser/README.md +13 -0
- data/rust-vendor/wit-parser/src/abi.rs +410 -0
- data/rust-vendor/wit-parser/src/ast/lex.rs +751 -0
- data/rust-vendor/wit-parser/src/ast/resolve.rs +1813 -0
- data/rust-vendor/wit-parser/src/ast/toposort.rs +249 -0
- data/rust-vendor/wit-parser/src/ast.rs +1958 -0
- data/rust-vendor/wit-parser/src/decoding.rs +1864 -0
- data/rust-vendor/wit-parser/src/lib.rs +1413 -0
- data/rust-vendor/wit-parser/src/live.rs +264 -0
- data/rust-vendor/wit-parser/src/metadata.rs +772 -0
- data/rust-vendor/wit-parser/src/resolve/clone.rs +227 -0
- data/rust-vendor/wit-parser/src/resolve.rs +4636 -0
- data/rust-vendor/wit-parser/src/serde_.rs +140 -0
- data/rust-vendor/wit-parser/src/sizealign.rs +626 -0
- data/rust-vendor/wit-parser/tests/.gitignore +2 -0
- data/rust-vendor/wit-parser/tests/all.rs +153 -0
- data/rust-vendor/wit-parser/tests/ui/async.wit +24 -0
- data/rust-vendor/wit-parser/tests/ui/async.wit.json +151 -0
- data/rust-vendor/wit-parser/tests/ui/comments.wit +25 -0
- data/rust-vendor/wit-parser/tests/ui/comments.wit.json +46 -0
- data/rust-vendor/wit-parser/tests/ui/complex-include/deps/bar/root.wit +9 -0
- data/rust-vendor/wit-parser/tests/ui/complex-include/deps/baz/root.wit +9 -0
- data/rust-vendor/wit-parser/tests/ui/complex-include/root.wit +26 -0
- data/rust-vendor/wit-parser/tests/ui/complex-include.wit.json +200 -0
- data/rust-vendor/wit-parser/tests/ui/cross-package-resource/deps/foo/foo.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/cross-package-resource/foo.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/cross-package-resource.wit.json +67 -0
- data/rust-vendor/wit-parser/tests/ui/diamond1/deps/dep1/types.wit +2 -0
- data/rust-vendor/wit-parser/tests/ui/diamond1/deps/dep2/types.wit +2 -0
- data/rust-vendor/wit-parser/tests/ui/diamond1/join.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/diamond1.wit.json +59 -0
- data/rust-vendor/wit-parser/tests/ui/disambiguate-diamond/shared1.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/disambiguate-diamond/shared2.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/disambiguate-diamond/world.wit +13 -0
- data/rust-vendor/wit-parser/tests/ui/disambiguate-diamond.wit.json +115 -0
- data/rust-vendor/wit-parser/tests/ui/empty.wit +1 -0
- data/rust-vendor/wit-parser/tests/ui/empty.wit.json +12 -0
- data/rust-vendor/wit-parser/tests/ui/error-context.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/error-context.wit.json +59 -0
- data/rust-vendor/wit-parser/tests/ui/feature-gates.wit +118 -0
- data/rust-vendor/wit-parser/tests/ui/feature-gates.wit.json +301 -0
- data/rust-vendor/wit-parser/tests/ui/feature-types.wit +13 -0
- data/rust-vendor/wit-parser/tests/ui/feature-types.wit.json +66 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps/deps/another-pkg/other-doc.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps/deps/corp/saas.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps/deps/different-pkg/the-doc.wit +2 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps/deps/foreign-pkg/the-doc.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps/deps/some-pkg/some-doc.wit +13 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps/deps/wasi/clocks.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps/deps/wasi/filesystem.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps/root.wit +44 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps-union/deps/another-pkg/other-doc.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps-union/deps/corp/saas.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps-union/deps/different-pkg/the-doc.wit +2 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps-union/deps/foreign-pkg/the-doc.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps-union/deps/some-pkg/some-doc.wit +13 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps-union/deps/wasi/clocks.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps-union/deps/wasi/filesystem.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps-union/deps/wasi/wasi.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps-union/root.wit +50 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps-union.wit.json +410 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-deps.wit.json +362 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-interface-dep-gated.wit +17 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-interface-dep-gated.wit.json +39 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-world-dep-gated.wit +17 -0
- data/rust-vendor/wit-parser/tests/ui/foreign-world-dep-gated.wit.json +39 -0
- data/rust-vendor/wit-parser/tests/ui/functions.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/functions.wit.json +115 -0
- data/rust-vendor/wit-parser/tests/ui/gated-include.wit +67 -0
- data/rust-vendor/wit-parser/tests/ui/gated-include.wit.json +346 -0
- data/rust-vendor/wit-parser/tests/ui/gated-use.wit +13 -0
- data/rust-vendor/wit-parser/tests/ui/gated-use.wit.json +34 -0
- data/rust-vendor/wit-parser/tests/ui/ignore-files-deps/deps/bar/types.wit +2 -0
- data/rust-vendor/wit-parser/tests/ui/ignore-files-deps/deps/ignore-me.txt +1 -0
- data/rust-vendor/wit-parser/tests/ui/ignore-files-deps/world.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/ignore-files-deps.wit.json +41 -0
- data/rust-vendor/wit-parser/tests/ui/import-export-overlap1.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/import-export-overlap1.wit.json +37 -0
- data/rust-vendor/wit-parser/tests/ui/import-export-overlap2.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/import-export-overlap2.wit.json +42 -0
- data/rust-vendor/wit-parser/tests/ui/include-reps.wit +15 -0
- data/rust-vendor/wit-parser/tests/ui/include-reps.wit.json +68 -0
- data/rust-vendor/wit-parser/tests/ui/kebab-name-include-with.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/kebab-name-include-with.wit.json +66 -0
- data/rust-vendor/wit-parser/tests/ui/kinds-of-deps/a.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/kinds-of-deps/deps/b/root.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/kinds-of-deps/deps/c.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/kinds-of-deps/deps/d.wat +6 -0
- data/rust-vendor/wit-parser/tests/ui/kinds-of-deps/deps/e.wasm +0 -0
- data/rust-vendor/wit-parser/tests/ui/kinds-of-deps.wit.json +95 -0
- data/rust-vendor/wit-parser/tests/ui/many-names/a.wit +2 -0
- data/rust-vendor/wit-parser/tests/ui/many-names/b.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/many-names.wit.json +42 -0
- data/rust-vendor/wit-parser/tests/ui/maps.wit +34 -0
- data/rust-vendor/wit-parser/tests/ui/maps.wit.json +255 -0
- data/rust-vendor/wit-parser/tests/ui/multi-file/bar.wit +21 -0
- data/rust-vendor/wit-parser/tests/ui/multi-file/cycle-a.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/multi-file/cycle-b.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/multi-file/foo.wit +31 -0
- data/rust-vendor/wit-parser/tests/ui/multi-file-multi-package/a.wit +24 -0
- data/rust-vendor/wit-parser/tests/ui/multi-file-multi-package/b.wit +23 -0
- data/rust-vendor/wit-parser/tests/ui/multi-file-multi-package.wit.json +255 -0
- data/rust-vendor/wit-parser/tests/ui/multi-file.wit.json +300 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-deps/deps/dep.wit +13 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-deps/root.wit +16 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-deps.wit.json +161 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-gated-include.wit +114 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-gated-include.wit.json +697 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-shared-deps/deps/dep1/types.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-shared-deps/deps/dep2/types.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-shared-deps/packages.wit +41 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-shared-deps.wit.json +261 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-transitive-deps/deps/dep1/types.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-transitive-deps/deps/dep2/types.wit +14 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-transitive-deps/packages.wit +12 -0
- data/rust-vendor/wit-parser/tests/ui/multi-package-transitive-deps.wit.json +174 -0
- data/rust-vendor/wit-parser/tests/ui/name-both-resource-and-type/deps/dep/foo.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/name-both-resource-and-type/foo.wit +9 -0
- data/rust-vendor/wit-parser/tests/ui/name-both-resource-and-type.wit.json +89 -0
- data/rust-vendor/wit-parser/tests/ui/package-syntax1.wit +1 -0
- data/rust-vendor/wit-parser/tests/ui/package-syntax1.wit.json +12 -0
- data/rust-vendor/wit-parser/tests/ui/package-syntax3.wit +1 -0
- data/rust-vendor/wit-parser/tests/ui/package-syntax3.wit.json +12 -0
- data/rust-vendor/wit-parser/tests/ui/package-syntax4.wit +1 -0
- data/rust-vendor/wit-parser/tests/ui/package-syntax4.wit.json +12 -0
- data/rust-vendor/wit-parser/tests/ui/packages-multiple-nested.wit +35 -0
- data/rust-vendor/wit-parser/tests/ui/packages-multiple-nested.wit.json +184 -0
- data/rust-vendor/wit-parser/tests/ui/packages-nested-colliding-decl-names.wit +24 -0
- data/rust-vendor/wit-parser/tests/ui/packages-nested-colliding-decl-names.wit.json +135 -0
- data/rust-vendor/wit-parser/tests/ui/packages-nested-internal-references.wit +16 -0
- data/rust-vendor/wit-parser/tests/ui/packages-nested-internal-references.wit.json +91 -0
- data/rust-vendor/wit-parser/tests/ui/packages-nested-with-semver.wit +24 -0
- data/rust-vendor/wit-parser/tests/ui/packages-nested-with-semver.wit.json +135 -0
- data/rust-vendor/wit-parser/tests/ui/packages-single-nested.wit +12 -0
- data/rust-vendor/wit-parser/tests/ui/packages-single-nested.wit.json +75 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/alias-no-type.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/alias-no-type.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad-world.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad-world.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad-world2.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad-world2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad-world3.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad-world3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad-world4.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad-world4.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad1.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad2.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async-bad2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/async1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-deprecated1.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-deprecated1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-deprecated2.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-deprecated2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-deprecated3.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-deprecated3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-deprecated4.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-deprecated4.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-function.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-function.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-function2.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-function2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-gate1.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-gate1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-gate2.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-gate2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-gate3.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-gate3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-gate4.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-gate4.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-gate5.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-gate5.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-include1.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-include1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-include2.wit +9 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-include2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-include3.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-include3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-list.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-list.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-list2.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-list2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-list3.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-list3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-list4.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-list4.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg1/root.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg2/deps/bar/empty.wit +1 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg2/root.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg3/deps/bar/.gitkeep +0 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg3/deps/bar/baz.wit +2 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg3/root.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg4/deps/bar/.gitkeep +0 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg4/deps/bar/baz.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg4/root.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg4.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg5/deps/bar/.gitkeep +0 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg5/deps/bar/baz.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg5/root.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg5.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg6/deps/bar/.gitkeep +0 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg6/deps/bar/baz.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg6/root.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-pkg6.wit.result +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource1.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource10.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource10.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource11.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource11.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource12.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource12.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource13.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource13.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource14.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource14.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource15/deps/foo/foo.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource15/foo.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource15.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource16.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource16.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource17.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource17.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource2.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource3.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource4.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource4.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource5.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource5.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource6.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource6.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource7.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource7.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource8.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource8.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource9.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-resource9.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-since1.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-since1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-since3.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-since3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-world-type1.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/bad-world-type1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/case-insensitive-duplicates.wit +9 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/case-insensitive-duplicates.wit.result +1 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/conflicting-package/a.wit +1 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/conflicting-package/b.wit +1 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/conflicting-package.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/cycle.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/cycle.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/cycle2.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/cycle2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/cycle3.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/cycle3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/cycle4.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/cycle4.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/cycle5.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/cycle5.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/dangling-type.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/dangling-type.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/duplicate-function-params.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/duplicate-function-params.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/duplicate-functions.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/duplicate-functions.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/duplicate-interface.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/duplicate-interface.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/duplicate-interface2/foo.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/duplicate-interface2/foo2.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/duplicate-interface2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/duplicate-type.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/duplicate-type.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/empty-enum.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/empty-enum.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/empty-variant1.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/empty-variant1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/export-twice.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/export-twice.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-and-export1.wit +17 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-and-export1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-and-export2.wit +18 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-and-export2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-and-export3.wit +37 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-and-export3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-and-export4.wit +44 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-and-export4.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-and-export5.wit +18 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-and-export5.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-twice.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/import-twice.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/include-cycle.wit +9 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/include-cycle.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/include-foreign/deps/bar/empty.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/include-foreign/root.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/include-foreign.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/include-with-id.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/include-with-id.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/include-with-on-id.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/include-with-on-id.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/invalid-toplevel.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/invalid-toplevel.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/invalid-type-reference.wit +10 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/invalid-type-reference.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/invalid-type-reference2.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/invalid-type-reference2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/kebab-name-include-not-found.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/kebab-name-include-not-found.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/kebab-name-include.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/kebab-name-include.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/keyword.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/keyword.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/map-invalid-key.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/map-invalid-key.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/missing-main-declaration-initial-main.wit +23 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/missing-main-declaration-initial-main.wit.result +1 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/missing-main-declaration-initial-nested.wit +23 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/missing-main-declaration-initial-nested.wit.result +1 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/missing-package.wit +0 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/missing-package.wit.result +1 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multi-file-missing-delimiter/observe.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multi-file-missing-delimiter/world.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multi-file-missing-delimiter.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multi-package-deps-share-nest/deps/dep1/types.wit +12 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multi-package-deps-share-nest/deps/dep2/types.wit +12 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multi-package-deps-share-nest/root.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multi-package-deps-share-nest.wit.result +3 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multiple-package-docs/a.wit +2 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multiple-package-docs/b.wit +2 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multiple-package-docs.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multiple-package-inline-cycle.wit +12 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multiple-package-inline-cycle.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multiple-packages-no-scope-blocks.wit +15 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/multiple-packages-no-scope-blocks.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/nested-packages-colliding-names.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/nested-packages-colliding-names.wit.result +3 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/nested-packages-with-error.wit +14 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/nested-packages-with-error.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/no-access-to-sibling-use/bar.wit +1 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/no-access-to-sibling-use/foo.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/no-access-to-sibling-use.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/non-existance-world-include/deps/bar/.gitkeep +0 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/non-existance-world-include/deps/bar/baz.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/non-existance-world-include/root.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/non-existance-world-include.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/old-float-types.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/old-float-types.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/pkg-cycle/deps/a1/root.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/pkg-cycle/root.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/pkg-cycle.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/pkg-cycle2/deps/a1/root.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/pkg-cycle2/deps/a2/root.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/pkg-cycle2/root.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/pkg-cycle2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/resources-multiple-returns-borrow.wit +10 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/resources-multiple-returns-borrow.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/resources-return-borrow.wit +10 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/resources-return-borrow.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow1.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow2.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow3.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow4.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow4.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow5.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow5.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow6.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow6.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow7.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow7.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow8/deps/baz.wit +9 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow8/foo.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/return-borrow8.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/type-and-resource-same-name/deps/dep/foo.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/type-and-resource-same-name/foo.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/type-and-resource-same-name.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/undefined-typed.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/undefined-typed.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unknown-interface.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unknown-interface.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-interface1.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-interface1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-interface2.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-interface2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-interface3.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-interface3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-interface4.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-interface4.wit.result +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use1.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use10/bar.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use10/foo.wit +2 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use10.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use2.wit +10 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use3.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use7.wit +10 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use7.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use8.wit +9 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use8.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use9.wit +9 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unresolved-use9.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/unterminated-string.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-and-include-world/deps/bar/.gitkeep +0 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-and-include-world/deps/bar/baz.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-and-include-world/root.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-and-include-world.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-conflict.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-conflict.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-conflict2.wit +13 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-conflict2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-conflict3.wit +13 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-conflict3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-cycle1.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-cycle1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-cycle4.wit +14 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-cycle4.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-shadow1.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-shadow1.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-world/deps/bar/.gitkeep +0 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-world/deps/bar/baz.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-world/root.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/use-world.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/very-nested-packages.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/very-nested-packages.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/world-interface-clash.wit +3 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/world-interface-clash.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/world-same-fields2.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/world-same-fields2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/world-same-fields3.wit +8 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/world-same-fields3.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/world-top-level-func.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/world-top-level-func.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/world-top-level-func2.wit +4 -0
- data/rust-vendor/wit-parser/tests/ui/parse-fail/world-top-level-func2.wit.result +5 -0
- data/rust-vendor/wit-parser/tests/ui/random.wit +27 -0
- data/rust-vendor/wit-parser/tests/ui/random.wit.json +56 -0
- data/rust-vendor/wit-parser/tests/ui/resources-empty.wit +10 -0
- data/rust-vendor/wit-parser/tests/ui/resources-empty.wit.json +70 -0
- data/rust-vendor/wit-parser/tests/ui/resources-multiple-returns-own.wit +10 -0
- data/rust-vendor/wit-parser/tests/ui/resources-multiple-returns-own.wit.json +85 -0
- data/rust-vendor/wit-parser/tests/ui/resources-multiple.wit +17 -0
- data/rust-vendor/wit-parser/tests/ui/resources-multiple.wit.json +207 -0
- data/rust-vendor/wit-parser/tests/ui/resources-return-own.wit +10 -0
- data/rust-vendor/wit-parser/tests/ui/resources-return-own.wit.json +73 -0
- data/rust-vendor/wit-parser/tests/ui/resources.wit +55 -0
- data/rust-vendor/wit-parser/tests/ui/resources.wit.json +387 -0
- data/rust-vendor/wit-parser/tests/ui/resources1.wit +12 -0
- data/rust-vendor/wit-parser/tests/ui/resources1.wit.json +92 -0
- data/rust-vendor/wit-parser/tests/ui/same-name-import-export.wit +6 -0
- data/rust-vendor/wit-parser/tests/ui/same-name-import-export.wit.json +39 -0
- data/rust-vendor/wit-parser/tests/ui/shared-types.wit +10 -0
- data/rust-vendor/wit-parser/tests/ui/shared-types.wit.json +79 -0
- data/rust-vendor/wit-parser/tests/ui/simple-wasm-text.wat +6 -0
- data/rust-vendor/wit-parser/tests/ui/simple-wasm-text.wit.json +21 -0
- data/rust-vendor/wit-parser/tests/ui/since-and-unstable.wit +107 -0
- data/rust-vendor/wit-parser/tests/ui/since-and-unstable.wit.json +608 -0
- data/rust-vendor/wit-parser/tests/ui/streams-and-futures.wit +15 -0
- data/rust-vendor/wit-parser/tests/ui/streams-and-futures.wit.json +205 -0
- data/rust-vendor/wit-parser/tests/ui/stress-export-elaborate.wit +54 -0
- data/rust-vendor/wit-parser/tests/ui/stress-export-elaborate.wit.json +1156 -0
- data/rust-vendor/wit-parser/tests/ui/type-then-eof.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/type-then-eof.wit.json +28 -0
- data/rust-vendor/wit-parser/tests/ui/types.wit +59 -0
- data/rust-vendor/wit-parser/tests/ui/types.wit.json +768 -0
- data/rust-vendor/wit-parser/tests/ui/union-fuzz-1.wit +9 -0
- data/rust-vendor/wit-parser/tests/ui/union-fuzz-1.wit.json +35 -0
- data/rust-vendor/wit-parser/tests/ui/union-fuzz-2.wit +12 -0
- data/rust-vendor/wit-parser/tests/ui/union-fuzz-2.wit.json +62 -0
- data/rust-vendor/wit-parser/tests/ui/unstable-resource.wit +17 -0
- data/rust-vendor/wit-parser/tests/ui/unstable-resource.wit.json +44 -0
- data/rust-vendor/wit-parser/tests/ui/use-chain.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/use-chain.wit.json +53 -0
- data/rust-vendor/wit-parser/tests/ui/use.wit +34 -0
- data/rust-vendor/wit-parser/tests/ui/use.wit.json +168 -0
- data/rust-vendor/wit-parser/tests/ui/version-syntax.wit +10 -0
- data/rust-vendor/wit-parser/tests/ui/version-syntax.wit.json +57 -0
- data/rust-vendor/wit-parser/tests/ui/versions/deps/a1/foo.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/versions/deps/a2/foo.wit +5 -0
- data/rust-vendor/wit-parser/tests/ui/versions/foo.wit +7 -0
- data/rust-vendor/wit-parser/tests/ui/versions.wit.json +91 -0
- data/rust-vendor/wit-parser/tests/ui/wasi.wit +178 -0
- data/rust-vendor/wit-parser/tests/ui/wasi.wit.json +539 -0
- data/rust-vendor/wit-parser/tests/ui/with-resource-as.wit +15 -0
- data/rust-vendor/wit-parser/tests/ui/with-resource-as.wit.json +221 -0
- data/rust-vendor/wit-parser/tests/ui/world-diamond.wit +23 -0
- data/rust-vendor/wit-parser/tests/ui/world-diamond.wit.json +115 -0
- data/rust-vendor/wit-parser/tests/ui/world-iface-no-collide.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/world-iface-no-collide.wit.json +67 -0
- data/rust-vendor/wit-parser/tests/ui/world-implicit-import1.wit +12 -0
- data/rust-vendor/wit-parser/tests/ui/world-implicit-import1.wit.json +81 -0
- data/rust-vendor/wit-parser/tests/ui/world-implicit-import2.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/world-implicit-import2.wit.json +68 -0
- data/rust-vendor/wit-parser/tests/ui/world-implicit-import3.wit +11 -0
- data/rust-vendor/wit-parser/tests/ui/world-implicit-import3.wit.json +69 -0
- data/rust-vendor/wit-parser/tests/ui/world-same-fields4.wit +13 -0
- data/rust-vendor/wit-parser/tests/ui/world-same-fields4.wit.json +82 -0
- data/rust-vendor/wit-parser/tests/ui/world-top-level-funcs.wit +9 -0
- data/rust-vendor/wit-parser/tests/ui/world-top-level-funcs.wit.json +79 -0
- data/rust-vendor/wit-parser/tests/ui/world-top-level-resources.wit +24 -0
- data/rust-vendor/wit-parser/tests/ui/world-top-level-resources.wit.json +225 -0
- data/rust-vendor/wit-parser/tests/ui/worlds-union-dedup.wit +23 -0
- data/rust-vendor/wit-parser/tests/ui/worlds-union-dedup.wit.json +112 -0
- data/rust-vendor/wit-parser/tests/ui/worlds-with-types.wit +34 -0
- data/rust-vendor/wit-parser/tests/ui/worlds-with-types.wit.json +188 -0
- data/rust-vendor/zerocopy/.cargo-checksum.json +1 -1
- data/rust-vendor/zerocopy/.cargo_vcs_info.json +1 -2
- data/rust-vendor/zerocopy/Cargo.lock +3 -3
- data/rust-vendor/zerocopy/Cargo.toml +4 -4
- data/rust-vendor/zerocopy/Cargo.toml.orig +4 -4
- data/rust-vendor/zerocopy/agent_docs/reviewing.md +8 -0
- data/rust-vendor/zerocopy/build.rs +1 -0
- data/rust-vendor/zerocopy/ci/release_crate_version.sh +3 -0
- data/rust-vendor/zerocopy/src/doctests.rs +18 -2
- data/rust-vendor/zerocopy/src/impls.rs +7 -4
- data/rust-vendor/zerocopy/src/lib.rs +60 -28
- data/rust-vendor/zerocopy/src/macros.rs +24 -4
- data/rust-vendor/zerocopy/src/pointer/invariant.rs +31 -3
- data/rust-vendor/zerocopy/src/pointer/mod.rs +2 -2
- data/rust-vendor/zerocopy/src/pointer/ptr.rs +3 -3
- data/rust-vendor/zerocopy/src/util/macros.rs +21 -6
- data/rust-vendor/zerocopy/tests/trybuild.rs +3 -18
- data/rust-vendor/zerocopy-derive/.cargo-checksum.json +1 -1
- data/rust-vendor/zerocopy-derive/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zerocopy-derive/Cargo.lock +1 -1
- data/rust-vendor/zerocopy-derive/Cargo.toml +9 -2
- data/rust-vendor/zerocopy-derive/Cargo.toml.orig +5 -2
- data/rust-vendor/zerocopy-derive/src/derive/from_bytes.rs +9 -7
- data/rust-vendor/zerocopy-derive/src/derive/into_bytes.rs +8 -4
- data/rust-vendor/zerocopy-derive/src/derive/try_from_bytes.rs +52 -18
- data/rust-vendor/zerocopy-derive/src/derive/unaligned.rs +3 -3
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_enum.expected.rs +7 -3
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_struct.expected.rs +7 -3
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_union.expected.rs +7 -3
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_zeros.expected.rs +7 -3
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes.expected.rs +7 -3
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_1.expected.rs +22 -10
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_2.expected.rs +22 -10
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_3.expected.rs +22 -10
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_trivial_is_bit_valid_enum.expected.rs +7 -3
- data/rust-vendor/zerocopy-derive/src/util.rs +72 -5
- data/rust-vendor/zerocopy-derive/tests/on_error.rs +169 -0
- data/rust-vendor/zerocopy-derive/tests/trybuild.rs +9 -7
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/cfgs/on_error.rs +19 -0
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/cfgs/on_error.stderr +16 -0
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/{union_into_bytes_cfg → cfgs}/union_into_bytes_cfg.stderr +1 -1
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/cfgs/on_error.rs +19 -0
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/cfgs/on_error.stderr +31 -0
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/cfgs/union_into_bytes_cfg.stderr +8 -0
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/union.stderr +0 -14
- data/rust-vendor/zerocopy-derive/tests/ui-stable/cfgs/on_error.rs +19 -0
- data/rust-vendor/zerocopy-derive/tests/ui-stable/cfgs/on_error.stderr +27 -0
- data/rust-vendor/zerocopy-derive/tests/ui-stable/cfgs/union_into_bytes_cfg.stderr +8 -0
- data/rust-vendor/zerocopy-derive/tests/ui-stable/union.stderr +0 -14
- data/rust-vendor/zmij/.cargo-checksum.json +1 -1
- data/rust-vendor/zmij/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zmij/.github/workflows/ci.yml +9 -6
- data/rust-vendor/zmij/Cargo.lock +281 -58
- data/rust-vendor/zmij/Cargo.toml +3 -3
- data/rust-vendor/zmij/Cargo.toml.orig +3 -3
- data/rust-vendor/zmij/README.md +1 -1
- data/rust-vendor/zmij/src/lib.rs +124 -79
- data/rust-vendor/zmij/src/tests.rs +11 -5
- data/rust-vendor/zmij/tests/ryu_comparison.rs +3 -3
- metadata +1841 -55
- data/rust-vendor/libc/src/qurt/hexagon.rs +0 -340
- data/rust-vendor/regex/.vim/coc-settings.json +0 -6
- data/rust-vendor/regex/Cross.toml +0 -7
- data/rust-vendor/regex/rustfmt.toml +0 -2
- data/rust-vendor/regex/test +0 -46
- data/rust-vendor/regex/testdata/README.md +0 -22
- data/rust-vendor/regex/testdata/fowler/basic.toml +0 -1611
- data/rust-vendor/regex/testdata/fowler/dat/README +0 -25
- data/rust-vendor/regex/testdata/fowler/dat/basic.dat +0 -223
- data/rust-vendor/regex/testdata/fowler/dat/nullsubexpr.dat +0 -74
- data/rust-vendor/regex/testdata/fowler/dat/repetition.dat +0 -169
- data/rust-vendor/regex/testdata/fowler/nullsubexpr.toml +0 -405
- data/rust-vendor/regex/testdata/fowler/repetition.toml +0 -746
- data/rust-vendor/regex-automata/test +0 -95
- data/rust-vendor/regex-automata/tests/fuzz/mod.rs +0 -2
- data/rust-vendor/regex-automata/tests/fuzz/testdata/deserialize_dense_crash-9486fb7c8a93b12c12a62166b43d31640c0208a9 +0 -0
- data/rust-vendor/regex-automata/tests/fuzz/testdata/deserialize_dense_minimized-from-9486fb7c8a93b12c12a62166b43d31640c0208a9 +0 -0
- data/rust-vendor/regex-automata/tests/fuzz/testdata/deserialize_sparse_crash-0da59c0434eaf35e5a6b470fa9244bb79c72b000 +0 -0
- data/rust-vendor/regex-automata/tests/fuzz/testdata/deserialize_sparse_crash-18cfc246f2ddfc3dfc92b0c7893178c7cf65efa9 +0 -0
- data/rust-vendor/regex-automata/tests/fuzz/testdata/deserialize_sparse_crash-61fd8e3003bf9d99f6c1e5a8488727eefd234b98 +0 -0
- data/rust-vendor/regex-automata/tests/fuzz/testdata/deserialize_sparse_crash-a1b839d899ced76d5d7d0f78f9edb7a421505838 +0 -0
- data/rust-vendor/regex-automata/tests/fuzz/testdata/deserialize_sparse_crash-c383ae07ec5e191422eadc492117439011816570 +0 -0
- data/rust-vendor/regex-automata/tests/fuzz/testdata/deserialize_sparse_crash-d07703ceb94b10dcd9e4acb809f2051420449e2b +0 -0
- data/rust-vendor/regex-automata/tests/fuzz/testdata/deserialize_sparse_crash-dbb8172d3984e7e7d03f4b5f8bb86ecd1460eff9 +0 -0
- data/rust-vendor/regex-automata/tests/gen/README.md +0 -65
- data/rust-vendor/regex-automata/tests/gen/dense/multi_pattern_v2_fwd.bigendian.dfa +0 -0
- data/rust-vendor/regex-automata/tests/gen/dense/multi_pattern_v2_fwd.littleendian.dfa +0 -0
- data/rust-vendor/regex-automata/tests/gen/dense/multi_pattern_v2_rev.bigendian.dfa +0 -0
- data/rust-vendor/regex-automata/tests/gen/dense/multi_pattern_v2_rev.littleendian.dfa +0 -0
- data/rust-vendor/regex-automata/tests/gen/sparse/multi_pattern_v2_fwd.bigendian.dfa +0 -0
- data/rust-vendor/regex-automata/tests/gen/sparse/multi_pattern_v2_fwd.littleendian.dfa +0 -0
- data/rust-vendor/regex-automata/tests/gen/sparse/multi_pattern_v2_rev.bigendian.dfa +0 -0
- data/rust-vendor/regex-automata/tests/gen/sparse/multi_pattern_v2_rev.littleendian.dfa +0 -0
- data/rust-vendor/regex-syntax/benches/bench.rs +0 -63
- data/rust-vendor/regex-syntax/test +0 -30
- data/rust-vendor/zerocopy/tests/ui-msrv/invalid-impls/invalid-impls.rs +0 -31
- data/rust-vendor/zerocopy/tests/ui-msrv/invalid-impls/invalid-impls.stderr +0 -159
- data/rust-vendor/zerocopy/tests/ui-nightly/invalid-impls/invalid-impls.rs +0 -31
- data/rust-vendor/zerocopy/tests/ui-nightly/invalid-impls/invalid-impls.stderr +0 -139
- data/rust-vendor/zerocopy/tests/ui-stable/invalid-impls/invalid-impls.rs +0 -31
- data/rust-vendor/zerocopy/tests/ui-stable/invalid-impls/invalid-impls.stderr +0 -155
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/union_into_bytes_cfg/union_into_bytes_cfg.stderr +0 -22
- data/rust-vendor/zerocopy-derive/tests/ui-stable/union_into_bytes_cfg/union_into_bytes_cfg.stderr +0 -22
- /data/rust-vendor/{getrandom → getrandom-0.3.4}/src/backends/sanitizer.rs +0 -0
- /data/rust-vendor/{getrandom → getrandom-0.3.4}/src/backends/wasi_p2.rs +0 -0
- /data/rust-vendor/{getrandom → getrandom-0.3.4}/src/lazy.rs +0 -0
- /data/rust-vendor/{getrandom → getrandom-0.3.4}/src/util_libc.rs +0 -0
- /data/rust-vendor/{wit-bindgen → wit-bindgen-0.46.0}/src/rt/wit_bindgen_cabi.c +0 -0
- /data/rust-vendor/{wit-bindgen → wit-bindgen-0.46.0}/src/rt/wit_bindgen_cabi.o +0 -0
- /data/rust-vendor/zerocopy-derive/tests/ui-msrv/{union_into_bytes_cfg → cfgs}/union_into_bytes_cfg.rs +0 -0
- /data/rust-vendor/zerocopy-derive/tests/ui-nightly/{union_into_bytes_cfg → cfgs}/union_into_bytes_cfg.rs +0 -0
- /data/rust-vendor/zerocopy-derive/tests/ui-stable/{union_into_bytes_cfg → cfgs}/union_into_bytes_cfg.rs +0 -0
|
@@ -0,0 +1,2109 @@
|
|
|
1
|
+
/* Copyright 2018 Mozilla Foundation
|
|
2
|
+
*
|
|
3
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License.
|
|
5
|
+
* You may obtain a copy of the License at
|
|
6
|
+
*
|
|
7
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
* See the License for the specific language governing permissions and
|
|
13
|
+
* limitations under the License.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
use crate::prelude::*;
|
|
17
|
+
use crate::{limits::*, *};
|
|
18
|
+
use core::fmt;
|
|
19
|
+
use core::marker;
|
|
20
|
+
use core::ops::Range;
|
|
21
|
+
use core::str;
|
|
22
|
+
|
|
23
|
+
pub(crate) const WASM_MAGIC_NUMBER: &[u8; 4] = b"\0asm";
|
|
24
|
+
|
|
25
|
+
/// A binary reader for WebAssembly modules.
|
|
26
|
+
#[derive(Debug, Clone)]
|
|
27
|
+
pub struct BinaryReaderError {
|
|
28
|
+
// Wrap the actual error data in a `Box` so that the error is just one
|
|
29
|
+
// word. This means that we can continue returning small `Result`s in
|
|
30
|
+
// registers.
|
|
31
|
+
pub(crate) inner: Box<BinaryReaderErrorInner>,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#[derive(Debug, Clone)]
|
|
35
|
+
pub(crate) struct BinaryReaderErrorInner {
|
|
36
|
+
pub(crate) message: String,
|
|
37
|
+
pub(crate) kind: BinaryReaderErrorKind,
|
|
38
|
+
pub(crate) offset: usize,
|
|
39
|
+
pub(crate) needed_hint: Option<usize>,
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#[derive(Debug, Clone, Copy)]
|
|
43
|
+
pub(crate) enum BinaryReaderErrorKind {
|
|
44
|
+
Custom,
|
|
45
|
+
Invalid,
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/// The result for `BinaryReader` operations.
|
|
49
|
+
pub type Result<T, E = BinaryReaderError> = core::result::Result<T, E>;
|
|
50
|
+
|
|
51
|
+
impl core::error::Error for BinaryReaderError {}
|
|
52
|
+
|
|
53
|
+
impl fmt::Display for BinaryReaderError {
|
|
54
|
+
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
55
|
+
write!(
|
|
56
|
+
f,
|
|
57
|
+
"{} (at offset 0x{:x})",
|
|
58
|
+
self.inner.message, self.inner.offset
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
impl BinaryReaderError {
|
|
64
|
+
#[cold]
|
|
65
|
+
pub(crate) fn _new(kind: BinaryReaderErrorKind, message: String, offset: usize) -> Self {
|
|
66
|
+
BinaryReaderError {
|
|
67
|
+
inner: Box::new(BinaryReaderErrorInner {
|
|
68
|
+
kind,
|
|
69
|
+
message,
|
|
70
|
+
offset,
|
|
71
|
+
needed_hint: None,
|
|
72
|
+
}),
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
#[cold]
|
|
77
|
+
pub(crate) fn new(message: impl Into<String>, offset: usize) -> Self {
|
|
78
|
+
Self::_new(BinaryReaderErrorKind::Custom, message.into(), offset)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#[cold]
|
|
82
|
+
pub(crate) fn invalid(msg: &'static str, offset: usize) -> Self {
|
|
83
|
+
Self::_new(BinaryReaderErrorKind::Invalid, msg.into(), offset)
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
#[cold]
|
|
87
|
+
pub(crate) fn fmt(args: fmt::Arguments<'_>, offset: usize) -> Self {
|
|
88
|
+
BinaryReaderError::new(args.to_string(), offset)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
#[cold]
|
|
92
|
+
pub(crate) fn eof(offset: usize, needed_hint: usize) -> Self {
|
|
93
|
+
let mut err = BinaryReaderError::new("unexpected end-of-file", offset);
|
|
94
|
+
err.inner.needed_hint = Some(needed_hint);
|
|
95
|
+
err
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
pub(crate) fn kind(&mut self) -> BinaryReaderErrorKind {
|
|
99
|
+
self.inner.kind
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/// Get this error's message.
|
|
103
|
+
pub fn message(&self) -> &str {
|
|
104
|
+
&self.inner.message
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/// Get the offset within the Wasm binary where the error occurred.
|
|
108
|
+
pub fn offset(&self) -> usize {
|
|
109
|
+
self.inner.offset
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
#[cfg(all(feature = "validate", feature = "component-model"))]
|
|
113
|
+
pub(crate) fn add_context(&mut self, context: String) {
|
|
114
|
+
self.inner.message = format!("{context}\n{}", self.inner.message);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
pub(crate) fn set_message(&mut self, message: &str) {
|
|
118
|
+
self.inner.message = message.to_string();
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/// A binary reader of the WebAssembly structures and types.
|
|
123
|
+
#[derive(Clone, Debug, Hash)]
|
|
124
|
+
pub struct BinaryReader<'a> {
|
|
125
|
+
buffer: &'a [u8],
|
|
126
|
+
position: usize,
|
|
127
|
+
original_offset: usize,
|
|
128
|
+
|
|
129
|
+
// When the `features` feature is disabled then the `WasmFeatures` type
|
|
130
|
+
// still exists but this field is still omitted. When `features` is
|
|
131
|
+
// disabled then the only constructor of this type is `BinaryReader::new`
|
|
132
|
+
// which documents all known features being active. All known features
|
|
133
|
+
// being active isn't represented by `WasmFeatures` when the feature is
|
|
134
|
+
// disabled so the field is omitted here to prevent accidentally using the
|
|
135
|
+
// wrong listing of features.
|
|
136
|
+
//
|
|
137
|
+
// Feature accessors are defined by `foreach_wasm_feature!` below with a
|
|
138
|
+
// method-per-feature on `BinaryReader` which when the `features` feature
|
|
139
|
+
// is disabled returns `true` by default.
|
|
140
|
+
#[cfg(feature = "features")]
|
|
141
|
+
features: WasmFeatures,
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
impl<'a> BinaryReader<'a> {
|
|
145
|
+
/// Creates a new binary reader which will parse the `data` provided.
|
|
146
|
+
///
|
|
147
|
+
/// The `original_offset` provided is used for byte offsets in errors that
|
|
148
|
+
/// are generated. That offset is added to the current position in `data`.
|
|
149
|
+
/// This can be helpful when `data` is just a window of a view into a larger
|
|
150
|
+
/// wasm binary perhaps not even entirely stored locally.
|
|
151
|
+
///
|
|
152
|
+
/// The returned binary reader will have all features known to this crate
|
|
153
|
+
/// enabled. To reject binaries that aren't valid unless a certain feature
|
|
154
|
+
/// is enabled use the [`BinaryReader::new_features`] constructor instead.
|
|
155
|
+
pub fn new(data: &[u8], original_offset: usize) -> BinaryReader<'_> {
|
|
156
|
+
BinaryReader {
|
|
157
|
+
buffer: data,
|
|
158
|
+
position: 0,
|
|
159
|
+
original_offset,
|
|
160
|
+
#[cfg(feature = "features")]
|
|
161
|
+
features: WasmFeatures::all(),
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/// Creates a new binary reader which will parse the `data` provided.
|
|
166
|
+
///
|
|
167
|
+
/// The `original_offset` provided is used for byte offsets in errors that
|
|
168
|
+
/// are generated. That offset is added to the current position in `data`.
|
|
169
|
+
/// This can be helpful when `data` is just a window of a view into a larger
|
|
170
|
+
/// wasm binary perhaps not even entirely stored locally.
|
|
171
|
+
///
|
|
172
|
+
/// The `features` argument provided controls which WebAssembly features are
|
|
173
|
+
/// active when parsing this data. Wasm features typically don't affect
|
|
174
|
+
/// parsing too much and are generally more applicable during
|
|
175
|
+
/// validation, but features and proposals will often reinterpret
|
|
176
|
+
/// previously-invalid constructs as now-valid things meaning something
|
|
177
|
+
/// slightly different. This means that invalid bytes before a feature may
|
|
178
|
+
/// now be interpreted differently after a feature is implemented. This
|
|
179
|
+
/// means that the set of activated features can affect what errors are
|
|
180
|
+
/// generated and when they are generated.
|
|
181
|
+
///
|
|
182
|
+
/// In general it's safe to pass `WasmFeatures::all()` here. There's no
|
|
183
|
+
/// downside to enabling all features while parsing and only enabling a
|
|
184
|
+
/// subset of features during validation.
|
|
185
|
+
///
|
|
186
|
+
/// Note that the activated set of features does not guarantee that
|
|
187
|
+
/// `BinaryReader` will return an error for disabled features. For example
|
|
188
|
+
/// if SIMD is disabled then SIMD instructions will still be parsed via
|
|
189
|
+
/// [`BinaryReader::visit_operator`]. Validation must still be performed to
|
|
190
|
+
/// provide a strict guarantee that if a feature is disabled that a binary
|
|
191
|
+
/// doesn't leverage the feature. The activated set of features here instead
|
|
192
|
+
/// only affects locations where preexisting bytes are reinterpreted in
|
|
193
|
+
/// different ways with future proposals, such as the `memarg` moving from a
|
|
194
|
+
/// 32-bit offset to a 64-bit offset with the `memory64` proposal.
|
|
195
|
+
#[cfg(feature = "features")]
|
|
196
|
+
pub fn new_features(
|
|
197
|
+
data: &[u8],
|
|
198
|
+
original_offset: usize,
|
|
199
|
+
features: WasmFeatures,
|
|
200
|
+
) -> BinaryReader<'_> {
|
|
201
|
+
BinaryReader {
|
|
202
|
+
buffer: data,
|
|
203
|
+
position: 0,
|
|
204
|
+
original_offset,
|
|
205
|
+
features,
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/// "Shrinks" this binary reader to retain only the buffer left-to-parse.
|
|
210
|
+
///
|
|
211
|
+
/// The primary purpose of this method is to change the return value of the
|
|
212
|
+
/// `range()` method. That method returns the range of the original buffer
|
|
213
|
+
/// within the wasm binary so calling `range()` on the returned
|
|
214
|
+
/// `BinaryReader` will return a smaller range than if `range()` is called
|
|
215
|
+
/// on `self`.
|
|
216
|
+
///
|
|
217
|
+
/// Otherwise parsing values from either `self` or the return value should
|
|
218
|
+
/// return the same thing.
|
|
219
|
+
pub(crate) fn shrink(&self) -> BinaryReader<'a> {
|
|
220
|
+
BinaryReader {
|
|
221
|
+
buffer: &self.buffer[self.position..],
|
|
222
|
+
position: 0,
|
|
223
|
+
original_offset: self.original_offset + self.position,
|
|
224
|
+
#[cfg(feature = "features")]
|
|
225
|
+
features: self.features,
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/// Gets the original position of the binary reader.
|
|
230
|
+
#[inline]
|
|
231
|
+
pub fn original_position(&self) -> usize {
|
|
232
|
+
self.original_offset + self.position
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/// Returns the currently active set of wasm features that this reader is
|
|
236
|
+
/// using while parsing.
|
|
237
|
+
///
|
|
238
|
+
/// For more information see [`BinaryReader::new`].
|
|
239
|
+
#[cfg(feature = "features")]
|
|
240
|
+
pub fn features(&self) -> WasmFeatures {
|
|
241
|
+
self.features
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/// Sets the wasm features active while parsing to the `features` specified.
|
|
245
|
+
///
|
|
246
|
+
/// For more information see [`BinaryReader::new`].
|
|
247
|
+
#[cfg(feature = "features")]
|
|
248
|
+
pub fn set_features(&mut self, features: WasmFeatures) {
|
|
249
|
+
self.features = features;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/// Returns a range from the starting offset to the end of the buffer.
|
|
253
|
+
pub fn range(&self) -> Range<usize> {
|
|
254
|
+
self.original_offset..self.original_offset + self.buffer.len()
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
pub(crate) fn remaining_buffer(&self) -> &'a [u8] {
|
|
258
|
+
&self.buffer[self.position..]
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
fn ensure_has_byte(&self) -> Result<()> {
|
|
262
|
+
if self.position < self.buffer.len() {
|
|
263
|
+
Ok(())
|
|
264
|
+
} else {
|
|
265
|
+
Err(BinaryReaderError::eof(self.original_position(), 1))
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
pub(crate) fn ensure_has_bytes(&self, len: usize) -> Result<()> {
|
|
270
|
+
if self.position + len <= self.buffer.len() {
|
|
271
|
+
Ok(())
|
|
272
|
+
} else {
|
|
273
|
+
let hint = self.position + len - self.buffer.len();
|
|
274
|
+
Err(BinaryReaderError::eof(self.original_position(), hint))
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/// Reads a value of type `T` from this binary reader, advancing the
|
|
279
|
+
/// internal position in this reader forward as data is read.
|
|
280
|
+
#[inline]
|
|
281
|
+
pub fn read<T>(&mut self) -> Result<T>
|
|
282
|
+
where
|
|
283
|
+
T: FromReader<'a>,
|
|
284
|
+
{
|
|
285
|
+
T::from_reader(self)
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
pub(crate) fn read_u7(&mut self) -> Result<u8> {
|
|
289
|
+
let b = self.read_u8()?;
|
|
290
|
+
if (b & 0x80) != 0 {
|
|
291
|
+
return Err(BinaryReaderError::new(
|
|
292
|
+
"invalid u7",
|
|
293
|
+
self.original_position() - 1,
|
|
294
|
+
));
|
|
295
|
+
}
|
|
296
|
+
Ok(b)
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
pub(crate) fn external_kind_from_byte(byte: u8, offset: usize) -> Result<ExternalKind> {
|
|
300
|
+
match byte {
|
|
301
|
+
0x00 => Ok(ExternalKind::Func),
|
|
302
|
+
0x01 => Ok(ExternalKind::Table),
|
|
303
|
+
0x02 => Ok(ExternalKind::Memory),
|
|
304
|
+
0x03 => Ok(ExternalKind::Global),
|
|
305
|
+
0x04 => Ok(ExternalKind::Tag),
|
|
306
|
+
0x20 => Ok(ExternalKind::FuncExact),
|
|
307
|
+
x => Err(Self::invalid_leading_byte_error(x, "external kind", offset)),
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/// Reads a variable-length 32-bit size from the byte stream while checking
|
|
312
|
+
/// against a limit.
|
|
313
|
+
pub fn read_size(&mut self, limit: usize, desc: &str) -> Result<usize> {
|
|
314
|
+
let pos = self.original_position();
|
|
315
|
+
let size = self.read_var_u32()? as usize;
|
|
316
|
+
if size > limit {
|
|
317
|
+
bail!(pos, "{desc} size is out of bounds");
|
|
318
|
+
}
|
|
319
|
+
Ok(size)
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/// Reads a variable-length 32-bit size from the byte stream while checking
|
|
323
|
+
/// against a limit.
|
|
324
|
+
///
|
|
325
|
+
/// Then reads that many values of type `T` and returns them as an iterator.
|
|
326
|
+
///
|
|
327
|
+
/// Note that regardless of how many items are read from the returned
|
|
328
|
+
/// iterator the items will still be parsed from this reader.
|
|
329
|
+
pub fn read_iter<'me, T>(
|
|
330
|
+
&'me mut self,
|
|
331
|
+
limit: usize,
|
|
332
|
+
desc: &str,
|
|
333
|
+
) -> Result<BinaryReaderIter<'a, 'me, T>>
|
|
334
|
+
where
|
|
335
|
+
T: FromReader<'a>,
|
|
336
|
+
{
|
|
337
|
+
let size = self.read_size(limit, desc)?;
|
|
338
|
+
Ok(BinaryReaderIter {
|
|
339
|
+
remaining: size,
|
|
340
|
+
reader: self,
|
|
341
|
+
_marker: marker::PhantomData,
|
|
342
|
+
})
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/// Returns whether the `BinaryReader` has reached the end of the file.
|
|
346
|
+
#[inline]
|
|
347
|
+
pub fn eof(&self) -> bool {
|
|
348
|
+
self.position >= self.buffer.len()
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/// Returns the `BinaryReader`'s current position.
|
|
352
|
+
#[inline]
|
|
353
|
+
pub fn current_position(&self) -> usize {
|
|
354
|
+
self.position
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/// Returns the number of bytes remaining in the `BinaryReader`.
|
|
358
|
+
#[inline]
|
|
359
|
+
pub fn bytes_remaining(&self) -> usize {
|
|
360
|
+
self.buffer.len() - self.position
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/// Advances the `BinaryReader` `size` bytes, and returns a slice from the
|
|
364
|
+
/// current position of `size` length.
|
|
365
|
+
///
|
|
366
|
+
/// # Errors
|
|
367
|
+
/// If `size` exceeds the remaining length in `BinaryReader`.
|
|
368
|
+
pub fn read_bytes(&mut self, size: usize) -> Result<&'a [u8]> {
|
|
369
|
+
self.ensure_has_bytes(size)?;
|
|
370
|
+
let start = self.position;
|
|
371
|
+
self.position += size;
|
|
372
|
+
Ok(&self.buffer[start..self.position])
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/// Reads a length-prefixed list of bytes from this reader and returns a
|
|
376
|
+
/// new `BinaryReader` to read that list of bytes.
|
|
377
|
+
pub fn read_reader(&mut self) -> Result<BinaryReader<'a>> {
|
|
378
|
+
let size = self.read_var_u32()? as usize;
|
|
379
|
+
self.skip(|reader| {
|
|
380
|
+
reader.read_bytes(size)?;
|
|
381
|
+
Ok(())
|
|
382
|
+
})
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/// Advances the `BinaryReader` four bytes and returns a `u32`.
|
|
386
|
+
/// # Errors
|
|
387
|
+
/// If `BinaryReader` has less than four bytes remaining.
|
|
388
|
+
pub fn read_u32(&mut self) -> Result<u32> {
|
|
389
|
+
self.ensure_has_bytes(4)?;
|
|
390
|
+
let word = u32::from_le_bytes(
|
|
391
|
+
self.buffer[self.position..self.position + 4]
|
|
392
|
+
.try_into()
|
|
393
|
+
.unwrap(),
|
|
394
|
+
);
|
|
395
|
+
self.position += 4;
|
|
396
|
+
Ok(word)
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/// Advances the `BinaryReader` eight bytes and returns a `u64`.
|
|
400
|
+
/// # Errors
|
|
401
|
+
/// If `BinaryReader` has less than eight bytes remaining.
|
|
402
|
+
pub fn read_u64(&mut self) -> Result<u64> {
|
|
403
|
+
self.ensure_has_bytes(8)?;
|
|
404
|
+
let word = u64::from_le_bytes(
|
|
405
|
+
self.buffer[self.position..self.position + 8]
|
|
406
|
+
.try_into()
|
|
407
|
+
.unwrap(),
|
|
408
|
+
);
|
|
409
|
+
self.position += 8;
|
|
410
|
+
Ok(word)
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/// Advances the `BinaryReader` a single byte.
|
|
414
|
+
///
|
|
415
|
+
/// # Errors
|
|
416
|
+
///
|
|
417
|
+
/// If `BinaryReader` has no bytes remaining.
|
|
418
|
+
#[inline]
|
|
419
|
+
pub fn read_u8(&mut self) -> Result<u8> {
|
|
420
|
+
let b = match self.buffer.get(self.position) {
|
|
421
|
+
Some(b) => *b,
|
|
422
|
+
None => return Err(self.eof_err()),
|
|
423
|
+
};
|
|
424
|
+
self.position += 1;
|
|
425
|
+
Ok(b)
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
#[cold]
|
|
429
|
+
fn eof_err(&self) -> BinaryReaderError {
|
|
430
|
+
BinaryReaderError::eof(self.original_position(), 1)
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/// Advances the `BinaryReader` up to four bytes to parse a variable
|
|
434
|
+
/// length integer as a `u32`.
|
|
435
|
+
///
|
|
436
|
+
/// # Errors
|
|
437
|
+
///
|
|
438
|
+
/// If `BinaryReader` has less than one or up to four bytes remaining, or
|
|
439
|
+
/// the integer is larger than 32 bits.
|
|
440
|
+
#[inline]
|
|
441
|
+
pub fn read_var_u32(&mut self) -> Result<u32> {
|
|
442
|
+
// Optimization for single byte i32.
|
|
443
|
+
let byte = self.read_u8()?;
|
|
444
|
+
if (byte & 0x80) == 0 {
|
|
445
|
+
Ok(u32::from(byte))
|
|
446
|
+
} else {
|
|
447
|
+
self.read_var_u32_big(byte)
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
fn read_var_u32_big(&mut self, byte: u8) -> Result<u32> {
|
|
452
|
+
let mut result = (byte & 0x7F) as u32;
|
|
453
|
+
let mut shift = 7;
|
|
454
|
+
loop {
|
|
455
|
+
let byte = self.read_u8()?;
|
|
456
|
+
result |= ((byte & 0x7F) as u32) << shift;
|
|
457
|
+
if shift >= 25 && (byte >> (32 - shift)) != 0 {
|
|
458
|
+
let msg = if byte & 0x80 != 0 {
|
|
459
|
+
"invalid var_u32: integer representation too long"
|
|
460
|
+
} else {
|
|
461
|
+
"invalid var_u32: integer too large"
|
|
462
|
+
};
|
|
463
|
+
// The continuation bit or unused bits are set.
|
|
464
|
+
return Err(BinaryReaderError::new(msg, self.original_position() - 1));
|
|
465
|
+
}
|
|
466
|
+
shift += 7;
|
|
467
|
+
if (byte & 0x80) == 0 {
|
|
468
|
+
break;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
Ok(result)
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/// Advances the `BinaryReader` up to four bytes to parse a variable
|
|
475
|
+
/// length integer as a `u64`.
|
|
476
|
+
///
|
|
477
|
+
/// # Errors
|
|
478
|
+
///
|
|
479
|
+
/// If `BinaryReader` has less than one or up to eight bytes remaining, or
|
|
480
|
+
/// the integer is larger than 64 bits.
|
|
481
|
+
#[inline]
|
|
482
|
+
pub fn read_var_u64(&mut self) -> Result<u64> {
|
|
483
|
+
// Optimization for single byte u64.
|
|
484
|
+
let byte = u64::from(self.read_u8()?);
|
|
485
|
+
if (byte & 0x80) == 0 {
|
|
486
|
+
Ok(byte)
|
|
487
|
+
} else {
|
|
488
|
+
self.read_var_u64_big(byte)
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
fn read_var_u64_big(&mut self, byte: u64) -> Result<u64> {
|
|
493
|
+
let mut result = byte & 0x7F;
|
|
494
|
+
let mut shift = 7;
|
|
495
|
+
loop {
|
|
496
|
+
let byte = u64::from(self.read_u8()?);
|
|
497
|
+
result |= (byte & 0x7F) << shift;
|
|
498
|
+
if shift >= 57 && (byte >> (64 - shift)) != 0 {
|
|
499
|
+
let msg = if byte & 0x80 != 0 {
|
|
500
|
+
"invalid var_u64: integer representation too long"
|
|
501
|
+
} else {
|
|
502
|
+
"invalid var_u64: integer too large"
|
|
503
|
+
};
|
|
504
|
+
// The continuation bit or unused bits are set.
|
|
505
|
+
return Err(BinaryReaderError::new(msg, self.original_position() - 1));
|
|
506
|
+
}
|
|
507
|
+
shift += 7;
|
|
508
|
+
if (byte & 0x80) == 0 {
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
Ok(result)
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/// Executes `f` to skip some data in this binary reader and then returns a
|
|
516
|
+
/// reader which will read the skipped data.
|
|
517
|
+
pub fn skip(&mut self, f: impl FnOnce(&mut Self) -> Result<()>) -> Result<Self> {
|
|
518
|
+
let start = self.position;
|
|
519
|
+
f(self)?;
|
|
520
|
+
let mut ret = self.clone();
|
|
521
|
+
ret.buffer = &self.buffer[start..self.position];
|
|
522
|
+
ret.position = 0;
|
|
523
|
+
ret.original_offset = self.original_offset + start;
|
|
524
|
+
Ok(ret)
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/// Advances the `BinaryReader` past a WebAssembly string. This method does
|
|
528
|
+
/// not perform any utf-8 validation.
|
|
529
|
+
/// # Errors
|
|
530
|
+
/// If `BinaryReader` has less than four bytes, the string's length exceeds
|
|
531
|
+
/// the remaining bytes, or the string length
|
|
532
|
+
/// exceeds `limits::MAX_WASM_STRING_SIZE`.
|
|
533
|
+
pub fn skip_string(&mut self) -> Result<()> {
|
|
534
|
+
let len = self.read_var_u32()? as usize;
|
|
535
|
+
if len > MAX_WASM_STRING_SIZE {
|
|
536
|
+
return Err(BinaryReaderError::new(
|
|
537
|
+
"string size out of bounds",
|
|
538
|
+
self.original_position() - 1,
|
|
539
|
+
));
|
|
540
|
+
}
|
|
541
|
+
self.ensure_has_bytes(len)?;
|
|
542
|
+
self.position += len;
|
|
543
|
+
Ok(())
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/// Advances the `BinaryReader` up to four bytes to parse a variable
|
|
547
|
+
/// length integer as a `i32`.
|
|
548
|
+
/// # Errors
|
|
549
|
+
/// If `BinaryReader` has less than one or up to four bytes remaining, or
|
|
550
|
+
/// the integer is larger than 32 bits.
|
|
551
|
+
#[inline]
|
|
552
|
+
pub fn read_var_i32(&mut self) -> Result<i32> {
|
|
553
|
+
// Optimization for single byte i32.
|
|
554
|
+
let byte = self.read_u8()?;
|
|
555
|
+
if (byte & 0x80) == 0 {
|
|
556
|
+
Ok(((byte as i32) << 25) >> 25)
|
|
557
|
+
} else {
|
|
558
|
+
self.read_var_i32_big(byte)
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
fn read_var_i32_big(&mut self, byte: u8) -> Result<i32> {
|
|
563
|
+
let mut result = (byte & 0x7F) as i32;
|
|
564
|
+
let mut shift = 7;
|
|
565
|
+
loop {
|
|
566
|
+
let byte = self.read_u8()?;
|
|
567
|
+
result |= ((byte & 0x7F) as i32) << shift;
|
|
568
|
+
if shift >= 25 {
|
|
569
|
+
let continuation_bit = (byte & 0x80) != 0;
|
|
570
|
+
let sign_and_unused_bit = (byte << 1) as i8 >> (32 - shift);
|
|
571
|
+
if continuation_bit || (sign_and_unused_bit != 0 && sign_and_unused_bit != -1) {
|
|
572
|
+
let msg = if continuation_bit {
|
|
573
|
+
"invalid var_i32: integer representation too long"
|
|
574
|
+
} else {
|
|
575
|
+
"invalid var_i32: integer too large"
|
|
576
|
+
};
|
|
577
|
+
return Err(BinaryReaderError::new(msg, self.original_position() - 1));
|
|
578
|
+
}
|
|
579
|
+
return Ok(result);
|
|
580
|
+
}
|
|
581
|
+
shift += 7;
|
|
582
|
+
if (byte & 0x80) == 0 {
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
let ashift = 32 - shift;
|
|
587
|
+
Ok((result << ashift) >> ashift)
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/// Advances the `BinaryReader` up to four bytes to parse a variable
|
|
591
|
+
/// length integer as a signed 33 bit integer, returned as a `i64`.
|
|
592
|
+
/// # Errors
|
|
593
|
+
/// If `BinaryReader` has less than one or up to five bytes remaining, or
|
|
594
|
+
/// the integer is larger than 33 bits.
|
|
595
|
+
pub fn read_var_s33(&mut self) -> Result<i64> {
|
|
596
|
+
// Optimization for single byte.
|
|
597
|
+
let byte = self.read_u8()?;
|
|
598
|
+
if (byte & 0x80) == 0 {
|
|
599
|
+
return Ok(((byte as i8) << 1) as i64 >> 1);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
let mut result = (byte & 0x7F) as i64;
|
|
603
|
+
let mut shift = 7;
|
|
604
|
+
loop {
|
|
605
|
+
let byte = self.read_u8()?;
|
|
606
|
+
result |= ((byte & 0x7F) as i64) << shift;
|
|
607
|
+
if shift >= 25 {
|
|
608
|
+
let continuation_bit = (byte & 0x80) != 0;
|
|
609
|
+
let sign_and_unused_bit = (byte << 1) as i8 >> (33 - shift);
|
|
610
|
+
if continuation_bit || (sign_and_unused_bit != 0 && sign_and_unused_bit != -1) {
|
|
611
|
+
return Err(BinaryReaderError::new(
|
|
612
|
+
"invalid var_s33: integer representation too long",
|
|
613
|
+
self.original_position() - 1,
|
|
614
|
+
));
|
|
615
|
+
}
|
|
616
|
+
return Ok(result);
|
|
617
|
+
}
|
|
618
|
+
shift += 7;
|
|
619
|
+
if (byte & 0x80) == 0 {
|
|
620
|
+
break;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
let ashift = 64 - shift;
|
|
624
|
+
Ok((result << ashift) >> ashift)
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/// Advances the `BinaryReader` up to eight bytes to parse a variable
|
|
628
|
+
/// length integer as a 64 bit integer, returned as a `i64`.
|
|
629
|
+
/// # Errors
|
|
630
|
+
/// If `BinaryReader` has less than one or up to eight bytes remaining, or
|
|
631
|
+
/// the integer is larger than 64 bits.
|
|
632
|
+
pub fn read_var_i64(&mut self) -> Result<i64> {
|
|
633
|
+
let mut result: i64 = 0;
|
|
634
|
+
let mut shift = 0;
|
|
635
|
+
loop {
|
|
636
|
+
let byte = self.read_u8()?;
|
|
637
|
+
result |= i64::from(byte & 0x7F) << shift;
|
|
638
|
+
if shift >= 57 {
|
|
639
|
+
let continuation_bit = (byte & 0x80) != 0;
|
|
640
|
+
let sign_and_unused_bit = ((byte << 1) as i8) >> (64 - shift);
|
|
641
|
+
if continuation_bit || (sign_and_unused_bit != 0 && sign_and_unused_bit != -1) {
|
|
642
|
+
let msg = if continuation_bit {
|
|
643
|
+
"invalid var_i64: integer representation too long"
|
|
644
|
+
} else {
|
|
645
|
+
"invalid var_i64: integer too large"
|
|
646
|
+
};
|
|
647
|
+
return Err(BinaryReaderError::new(msg, self.original_position() - 1));
|
|
648
|
+
}
|
|
649
|
+
return Ok(result);
|
|
650
|
+
}
|
|
651
|
+
shift += 7;
|
|
652
|
+
if (byte & 0x80) == 0 {
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
let ashift = 64 - shift;
|
|
657
|
+
Ok((result << ashift) >> ashift)
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/// Advances the `BinaryReader` four bytes to parse a 32 bit floating point
|
|
661
|
+
/// number, returned as `Ieee32`.
|
|
662
|
+
/// # Errors
|
|
663
|
+
/// If `BinaryReader` has less than four bytes remaining.
|
|
664
|
+
pub fn read_f32(&mut self) -> Result<Ieee32> {
|
|
665
|
+
let value = self.read_u32()?;
|
|
666
|
+
Ok(Ieee32(value))
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/// Advances the `BinaryReader` eight bytes to parse a 64 bit floating point
|
|
670
|
+
/// number, returned as `Ieee64`.
|
|
671
|
+
/// # Errors
|
|
672
|
+
/// If `BinaryReader` has less than eight bytes remaining.
|
|
673
|
+
pub fn read_f64(&mut self) -> Result<Ieee64> {
|
|
674
|
+
let value = self.read_u64()?;
|
|
675
|
+
Ok(Ieee64(value))
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/// (internal) Reads a fixed-size WebAssembly string from the module.
|
|
679
|
+
fn internal_read_string(&mut self, len: usize) -> Result<&'a str> {
|
|
680
|
+
let bytes = self.read_bytes(len)?;
|
|
681
|
+
str::from_utf8(bytes).map_err(|_| {
|
|
682
|
+
BinaryReaderError::new("malformed UTF-8 encoding", self.original_position() - 1)
|
|
683
|
+
})
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/// Reads a WebAssembly string from the module.
|
|
687
|
+
///
|
|
688
|
+
/// # Errors
|
|
689
|
+
///
|
|
690
|
+
/// If `BinaryReader` has less than up to four bytes remaining, the string's
|
|
691
|
+
/// length exceeds the remaining bytes, the string's length exceeds
|
|
692
|
+
/// `limits::MAX_WASM_STRING_SIZE`, or the string contains invalid utf-8.
|
|
693
|
+
pub fn read_string(&mut self) -> Result<&'a str> {
|
|
694
|
+
let len = self.read_var_u32()? as usize;
|
|
695
|
+
if len > MAX_WASM_STRING_SIZE {
|
|
696
|
+
return Err(BinaryReaderError::new(
|
|
697
|
+
"string size out of bounds",
|
|
698
|
+
self.original_position() - 1,
|
|
699
|
+
));
|
|
700
|
+
}
|
|
701
|
+
return self.internal_read_string(len);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/// Reads a unlimited WebAssembly string from the module.
|
|
705
|
+
///
|
|
706
|
+
/// Note that this is similar to [`BinaryReader::read_string`] except that
|
|
707
|
+
/// it will not limit the size of the returned string by
|
|
708
|
+
/// `limits::MAX_WASM_STRING_SIZE`.
|
|
709
|
+
pub fn read_unlimited_string(&mut self) -> Result<&'a str> {
|
|
710
|
+
let len = self.read_var_u32()? as usize;
|
|
711
|
+
return self.internal_read_string(len);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
#[cold]
|
|
715
|
+
pub(crate) fn invalid_leading_byte<T>(&self, byte: u8, desc: &str) -> Result<T> {
|
|
716
|
+
Err(Self::invalid_leading_byte_error(
|
|
717
|
+
byte,
|
|
718
|
+
desc,
|
|
719
|
+
self.original_position() - 1,
|
|
720
|
+
))
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
pub(crate) fn invalid_leading_byte_error(
|
|
724
|
+
byte: u8,
|
|
725
|
+
desc: &str,
|
|
726
|
+
offset: usize,
|
|
727
|
+
) -> BinaryReaderError {
|
|
728
|
+
format_err!(offset, "invalid leading byte (0x{byte:x}) for {desc}")
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
pub(crate) fn peek(&self) -> Result<u8> {
|
|
732
|
+
self.ensure_has_byte()?;
|
|
733
|
+
Ok(self.buffer[self.position])
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
pub(crate) fn peek_bytes(&self, len: usize) -> Result<&[u8]> {
|
|
737
|
+
self.ensure_has_bytes(len)?;
|
|
738
|
+
Ok(&self.buffer[self.position..(self.position + len)])
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
pub(crate) fn read_block_type(&mut self) -> Result<BlockType> {
|
|
742
|
+
let b = self.peek()?;
|
|
743
|
+
|
|
744
|
+
// Block types are encoded as either 0x40, a `valtype`, or `s33`. All
|
|
745
|
+
// current `valtype` encodings are negative numbers when encoded with
|
|
746
|
+
// sleb128, but it's also required that valtype encodings are in their
|
|
747
|
+
// canonical form. For example an overlong encoding of -1 as `0xff 0x7f`
|
|
748
|
+
// is not valid and it is required to be `0x7f`. This means that we
|
|
749
|
+
// can't simply match on the `s33` that pops out below since reading the
|
|
750
|
+
// whole `s33` might read an overlong encoding.
|
|
751
|
+
//
|
|
752
|
+
// To test for this the first byte `b` is inspected. The highest bit,
|
|
753
|
+
// the continuation bit in LEB128 encoding, must be clear. The next bit,
|
|
754
|
+
// the sign bit, must be set to indicate that the number is negative. If
|
|
755
|
+
// these two conditions hold then we're guaranteed that this is a
|
|
756
|
+
// negative number.
|
|
757
|
+
//
|
|
758
|
+
// After this a value type is read directly instead of looking for an
|
|
759
|
+
// indexed value type.
|
|
760
|
+
if b & 0x80 == 0 && b & 0x40 != 0 {
|
|
761
|
+
if b == 0x40 {
|
|
762
|
+
self.position += 1;
|
|
763
|
+
return Ok(BlockType::Empty);
|
|
764
|
+
}
|
|
765
|
+
return Ok(BlockType::Type(self.read()?));
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
// Not empty or a singular type, so read the function type index
|
|
769
|
+
let idx = self.read_var_s33()?;
|
|
770
|
+
match u32::try_from(idx) {
|
|
771
|
+
Ok(idx) => Ok(BlockType::FuncType(idx)),
|
|
772
|
+
Err(_) => {
|
|
773
|
+
return Err(BinaryReaderError::new(
|
|
774
|
+
"invalid function type",
|
|
775
|
+
self.original_position(),
|
|
776
|
+
));
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/// Returns whether there is an `end` opcode followed by eof remaining in
|
|
782
|
+
/// this reader.
|
|
783
|
+
pub fn is_end_then_eof(&self) -> bool {
|
|
784
|
+
self.remaining_buffer() == &[0x0b]
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
pub(crate) fn read_header_version(&mut self) -> Result<u32> {
|
|
788
|
+
let magic_number = self.read_bytes(4)?;
|
|
789
|
+
if magic_number != WASM_MAGIC_NUMBER {
|
|
790
|
+
return Err(BinaryReaderError::new(
|
|
791
|
+
format!(
|
|
792
|
+
"magic header not detected: bad magic number - expected={WASM_MAGIC_NUMBER:#x?} actual={magic_number:#x?}"
|
|
793
|
+
),
|
|
794
|
+
self.original_position() - 4,
|
|
795
|
+
));
|
|
796
|
+
}
|
|
797
|
+
self.read_u32()
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
// See documentation on `BinaryReader::features` for more on what's going on
|
|
802
|
+
// here.
|
|
803
|
+
macro_rules! define_feature_accessor {
|
|
804
|
+
($feature:ident = $default:expr) => {
|
|
805
|
+
impl BinaryReader<'_> {
|
|
806
|
+
#[inline]
|
|
807
|
+
#[allow(dead_code)]
|
|
808
|
+
pub(crate) fn $feature(&self) -> bool {
|
|
809
|
+
#[cfg(feature = "features")]
|
|
810
|
+
{
|
|
811
|
+
self.features.$feature()
|
|
812
|
+
}
|
|
813
|
+
#[cfg(not(feature = "features"))]
|
|
814
|
+
{
|
|
815
|
+
true
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
super::features::foreach_wasm_feature!(define_feature_accessor);
|
|
823
|
+
|
|
824
|
+
/// Iterator returned from [`BinaryReader::read_iter`].
|
|
825
|
+
pub struct BinaryReaderIter<'a, 'me, T: FromReader<'a>> {
|
|
826
|
+
remaining: usize,
|
|
827
|
+
pub(crate) reader: &'me mut BinaryReader<'a>,
|
|
828
|
+
_marker: marker::PhantomData<T>,
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
impl<'a, T> Iterator for BinaryReaderIter<'a, '_, T>
|
|
832
|
+
where
|
|
833
|
+
T: FromReader<'a>,
|
|
834
|
+
{
|
|
835
|
+
type Item = Result<T>;
|
|
836
|
+
|
|
837
|
+
fn next(&mut self) -> Option<Result<T>> {
|
|
838
|
+
if self.remaining == 0 {
|
|
839
|
+
None
|
|
840
|
+
} else {
|
|
841
|
+
let ret = self.reader.read::<T>();
|
|
842
|
+
if ret.is_err() {
|
|
843
|
+
self.remaining = 0;
|
|
844
|
+
} else {
|
|
845
|
+
self.remaining -= 1;
|
|
846
|
+
}
|
|
847
|
+
Some(ret)
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
fn size_hint(&self) -> (usize, Option<usize>) {
|
|
852
|
+
(self.remaining, Some(self.remaining))
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
impl<'a, T> Drop for BinaryReaderIter<'a, '_, T>
|
|
857
|
+
where
|
|
858
|
+
T: FromReader<'a>,
|
|
859
|
+
{
|
|
860
|
+
fn drop(&mut self) {
|
|
861
|
+
while self.next().is_some() {
|
|
862
|
+
// ...
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
impl<'a> BinaryReader<'a> {
|
|
868
|
+
/// Function that must be called after the last opcode in an expression (instruction sequence)
|
|
869
|
+
/// has been processed. Returns an error if there is extra data after the operators.
|
|
870
|
+
pub fn finish_expression(&self, stack: &impl FrameStack) -> Result<()> {
|
|
871
|
+
if stack.current_frame().is_some() {
|
|
872
|
+
bail!(
|
|
873
|
+
self.original_position(),
|
|
874
|
+
"control frames remain at end of function body or expression"
|
|
875
|
+
);
|
|
876
|
+
}
|
|
877
|
+
if !self.eof() {
|
|
878
|
+
bail!(
|
|
879
|
+
self.original_position(),
|
|
880
|
+
"unexpected data at the end of operators"
|
|
881
|
+
);
|
|
882
|
+
}
|
|
883
|
+
Ok(())
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
#[inline]
|
|
887
|
+
fn expect_frame(&mut self, stack: &impl FrameStack, k: FrameKind, found: &str) -> Result<()> {
|
|
888
|
+
if stack.current_frame() == Some(k) {
|
|
889
|
+
return Ok(());
|
|
890
|
+
}
|
|
891
|
+
bail!(
|
|
892
|
+
self.original_position(),
|
|
893
|
+
"`{}` found outside `{:?}` block",
|
|
894
|
+
found,
|
|
895
|
+
k
|
|
896
|
+
);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/// Visit the next available operator with the specified [`VisitOperator`] instance
|
|
900
|
+
/// that is also a [`FrameStack`].
|
|
901
|
+
///
|
|
902
|
+
/// See the documentation for [`OperatorsReader::visit_operator`] for a version that
|
|
903
|
+
/// does not require the visitor to implement [`FrameStack`].
|
|
904
|
+
pub fn visit_operator<T>(&mut self, visitor: &mut T) -> Result<<T as VisitOperator<'a>>::Output>
|
|
905
|
+
where
|
|
906
|
+
T: VisitOperator<'a> + FrameStack,
|
|
907
|
+
{
|
|
908
|
+
if visitor.current_frame().is_none() {
|
|
909
|
+
bail!(
|
|
910
|
+
self.original_position(),
|
|
911
|
+
"operators remaining after end of function body or expression"
|
|
912
|
+
);
|
|
913
|
+
}
|
|
914
|
+
let pos = self.original_position();
|
|
915
|
+
let code = self.read_u8()?;
|
|
916
|
+
Ok(match code {
|
|
917
|
+
0x00 => visitor.visit_unreachable(),
|
|
918
|
+
0x01 => visitor.visit_nop(),
|
|
919
|
+
0x02 => visitor.visit_block(self.read_block_type()?),
|
|
920
|
+
0x03 => visitor.visit_loop(self.read_block_type()?),
|
|
921
|
+
0x04 => visitor.visit_if(self.read_block_type()?),
|
|
922
|
+
0x05 => {
|
|
923
|
+
self.expect_frame(visitor, FrameKind::If, "else")?;
|
|
924
|
+
visitor.visit_else()
|
|
925
|
+
}
|
|
926
|
+
0x06 => {
|
|
927
|
+
if !self.legacy_exceptions() {
|
|
928
|
+
bail!(
|
|
929
|
+
pos,
|
|
930
|
+
"legacy_exceptions feature required for try instruction"
|
|
931
|
+
);
|
|
932
|
+
}
|
|
933
|
+
visitor.visit_try(self.read_block_type()?)
|
|
934
|
+
}
|
|
935
|
+
0x07 => {
|
|
936
|
+
if !self.legacy_exceptions() {
|
|
937
|
+
bail!(
|
|
938
|
+
pos,
|
|
939
|
+
"legacy_exceptions feature required for catch instruction"
|
|
940
|
+
);
|
|
941
|
+
}
|
|
942
|
+
match self.expect_frame(visitor, FrameKind::LegacyCatch, "catch") {
|
|
943
|
+
Ok(()) => (),
|
|
944
|
+
Err(_) => self.expect_frame(visitor, FrameKind::LegacyTry, "catch")?,
|
|
945
|
+
}
|
|
946
|
+
visitor.visit_catch(self.read_var_u32()?)
|
|
947
|
+
}
|
|
948
|
+
0x08 => visitor.visit_throw(self.read_var_u32()?),
|
|
949
|
+
0x09 => visitor.visit_rethrow(self.read_var_u32()?),
|
|
950
|
+
0x0a => visitor.visit_throw_ref(),
|
|
951
|
+
0x0b => visitor.visit_end(),
|
|
952
|
+
0x0c => visitor.visit_br(self.read_var_u32()?),
|
|
953
|
+
0x0d => visitor.visit_br_if(self.read_var_u32()?),
|
|
954
|
+
0x0e => visitor.visit_br_table(self.read_br_table()?),
|
|
955
|
+
0x0f => visitor.visit_return(),
|
|
956
|
+
0x10 => visitor.visit_call(self.read_var_u32()?),
|
|
957
|
+
0x11 => {
|
|
958
|
+
let index = self.read_var_u32()?;
|
|
959
|
+
let table = self.read_call_indirect_table_immediate()?;
|
|
960
|
+
visitor.visit_call_indirect(index, table)
|
|
961
|
+
}
|
|
962
|
+
0x12 => visitor.visit_return_call(self.read_var_u32()?),
|
|
963
|
+
0x13 => visitor.visit_return_call_indirect(self.read_var_u32()?, self.read_var_u32()?),
|
|
964
|
+
0x14 => visitor.visit_call_ref(self.read()?),
|
|
965
|
+
0x15 => visitor.visit_return_call_ref(self.read()?),
|
|
966
|
+
0x18 => {
|
|
967
|
+
self.expect_frame(visitor, FrameKind::LegacyTry, "delegate")?;
|
|
968
|
+
visitor.visit_delegate(self.read_var_u32()?)
|
|
969
|
+
}
|
|
970
|
+
0x19 => {
|
|
971
|
+
if !self.legacy_exceptions() {
|
|
972
|
+
bail!(
|
|
973
|
+
pos,
|
|
974
|
+
"legacy_exceptions feature required for catch_all instruction"
|
|
975
|
+
);
|
|
976
|
+
}
|
|
977
|
+
match self.expect_frame(visitor, FrameKind::LegacyCatch, "catch_all") {
|
|
978
|
+
Ok(()) => (),
|
|
979
|
+
Err(_) => self.expect_frame(visitor, FrameKind::LegacyTry, "catch_all")?,
|
|
980
|
+
}
|
|
981
|
+
visitor.visit_catch_all()
|
|
982
|
+
}
|
|
983
|
+
0x1a => visitor.visit_drop(),
|
|
984
|
+
0x1b => visitor.visit_select(),
|
|
985
|
+
0x1c => {
|
|
986
|
+
let result_count = self.read_size(MAX_WASM_SELECT_RESULT_SIZE, "select types")?;
|
|
987
|
+
if result_count == 1 {
|
|
988
|
+
visitor.visit_typed_select(self.read()?)
|
|
989
|
+
} else {
|
|
990
|
+
let mut results = Vec::new();
|
|
991
|
+
results.reserve_exact(result_count);
|
|
992
|
+
for _ in 0..result_count {
|
|
993
|
+
results.push(self.read()?);
|
|
994
|
+
}
|
|
995
|
+
visitor.visit_typed_select_multi(results)
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
0x1f => visitor.visit_try_table(self.read()?),
|
|
999
|
+
|
|
1000
|
+
0x20 => visitor.visit_local_get(self.read_var_u32()?),
|
|
1001
|
+
0x21 => visitor.visit_local_set(self.read_var_u32()?),
|
|
1002
|
+
0x22 => visitor.visit_local_tee(self.read_var_u32()?),
|
|
1003
|
+
0x23 => visitor.visit_global_get(self.read_var_u32()?),
|
|
1004
|
+
0x24 => visitor.visit_global_set(self.read_var_u32()?),
|
|
1005
|
+
0x25 => visitor.visit_table_get(self.read_var_u32()?),
|
|
1006
|
+
0x26 => visitor.visit_table_set(self.read_var_u32()?),
|
|
1007
|
+
|
|
1008
|
+
0x28 => visitor.visit_i32_load(self.read_memarg(2)?),
|
|
1009
|
+
0x29 => visitor.visit_i64_load(self.read_memarg(3)?),
|
|
1010
|
+
0x2a => visitor.visit_f32_load(self.read_memarg(2)?),
|
|
1011
|
+
0x2b => visitor.visit_f64_load(self.read_memarg(3)?),
|
|
1012
|
+
0x2c => visitor.visit_i32_load8_s(self.read_memarg(0)?),
|
|
1013
|
+
0x2d => visitor.visit_i32_load8_u(self.read_memarg(0)?),
|
|
1014
|
+
0x2e => visitor.visit_i32_load16_s(self.read_memarg(1)?),
|
|
1015
|
+
0x2f => visitor.visit_i32_load16_u(self.read_memarg(1)?),
|
|
1016
|
+
0x30 => visitor.visit_i64_load8_s(self.read_memarg(0)?),
|
|
1017
|
+
0x31 => visitor.visit_i64_load8_u(self.read_memarg(0)?),
|
|
1018
|
+
0x32 => visitor.visit_i64_load16_s(self.read_memarg(1)?),
|
|
1019
|
+
0x33 => visitor.visit_i64_load16_u(self.read_memarg(1)?),
|
|
1020
|
+
0x34 => visitor.visit_i64_load32_s(self.read_memarg(2)?),
|
|
1021
|
+
0x35 => visitor.visit_i64_load32_u(self.read_memarg(2)?),
|
|
1022
|
+
0x36 => visitor.visit_i32_store(self.read_memarg(2)?),
|
|
1023
|
+
0x37 => visitor.visit_i64_store(self.read_memarg(3)?),
|
|
1024
|
+
0x38 => visitor.visit_f32_store(self.read_memarg(2)?),
|
|
1025
|
+
0x39 => visitor.visit_f64_store(self.read_memarg(3)?),
|
|
1026
|
+
0x3a => visitor.visit_i32_store8(self.read_memarg(0)?),
|
|
1027
|
+
0x3b => visitor.visit_i32_store16(self.read_memarg(1)?),
|
|
1028
|
+
0x3c => visitor.visit_i64_store8(self.read_memarg(0)?),
|
|
1029
|
+
0x3d => visitor.visit_i64_store16(self.read_memarg(1)?),
|
|
1030
|
+
0x3e => visitor.visit_i64_store32(self.read_memarg(2)?),
|
|
1031
|
+
0x3f => {
|
|
1032
|
+
let mem = self.read_memory_index_or_zero_if_not_multi_memory()?;
|
|
1033
|
+
visitor.visit_memory_size(mem)
|
|
1034
|
+
}
|
|
1035
|
+
0x40 => {
|
|
1036
|
+
let mem = self.read_memory_index_or_zero_if_not_multi_memory()?;
|
|
1037
|
+
visitor.visit_memory_grow(mem)
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
0x41 => visitor.visit_i32_const(self.read_var_i32()?),
|
|
1041
|
+
0x42 => visitor.visit_i64_const(self.read_var_i64()?),
|
|
1042
|
+
0x43 => visitor.visit_f32_const(self.read_f32()?),
|
|
1043
|
+
0x44 => visitor.visit_f64_const(self.read_f64()?),
|
|
1044
|
+
|
|
1045
|
+
0x45 => visitor.visit_i32_eqz(),
|
|
1046
|
+
0x46 => visitor.visit_i32_eq(),
|
|
1047
|
+
0x47 => visitor.visit_i32_ne(),
|
|
1048
|
+
0x48 => visitor.visit_i32_lt_s(),
|
|
1049
|
+
0x49 => visitor.visit_i32_lt_u(),
|
|
1050
|
+
0x4a => visitor.visit_i32_gt_s(),
|
|
1051
|
+
0x4b => visitor.visit_i32_gt_u(),
|
|
1052
|
+
0x4c => visitor.visit_i32_le_s(),
|
|
1053
|
+
0x4d => visitor.visit_i32_le_u(),
|
|
1054
|
+
0x4e => visitor.visit_i32_ge_s(),
|
|
1055
|
+
0x4f => visitor.visit_i32_ge_u(),
|
|
1056
|
+
0x50 => visitor.visit_i64_eqz(),
|
|
1057
|
+
0x51 => visitor.visit_i64_eq(),
|
|
1058
|
+
0x52 => visitor.visit_i64_ne(),
|
|
1059
|
+
0x53 => visitor.visit_i64_lt_s(),
|
|
1060
|
+
0x54 => visitor.visit_i64_lt_u(),
|
|
1061
|
+
0x55 => visitor.visit_i64_gt_s(),
|
|
1062
|
+
0x56 => visitor.visit_i64_gt_u(),
|
|
1063
|
+
0x57 => visitor.visit_i64_le_s(),
|
|
1064
|
+
0x58 => visitor.visit_i64_le_u(),
|
|
1065
|
+
0x59 => visitor.visit_i64_ge_s(),
|
|
1066
|
+
0x5a => visitor.visit_i64_ge_u(),
|
|
1067
|
+
0x5b => visitor.visit_f32_eq(),
|
|
1068
|
+
0x5c => visitor.visit_f32_ne(),
|
|
1069
|
+
0x5d => visitor.visit_f32_lt(),
|
|
1070
|
+
0x5e => visitor.visit_f32_gt(),
|
|
1071
|
+
0x5f => visitor.visit_f32_le(),
|
|
1072
|
+
0x60 => visitor.visit_f32_ge(),
|
|
1073
|
+
0x61 => visitor.visit_f64_eq(),
|
|
1074
|
+
0x62 => visitor.visit_f64_ne(),
|
|
1075
|
+
0x63 => visitor.visit_f64_lt(),
|
|
1076
|
+
0x64 => visitor.visit_f64_gt(),
|
|
1077
|
+
0x65 => visitor.visit_f64_le(),
|
|
1078
|
+
0x66 => visitor.visit_f64_ge(),
|
|
1079
|
+
0x67 => visitor.visit_i32_clz(),
|
|
1080
|
+
0x68 => visitor.visit_i32_ctz(),
|
|
1081
|
+
0x69 => visitor.visit_i32_popcnt(),
|
|
1082
|
+
0x6a => visitor.visit_i32_add(),
|
|
1083
|
+
0x6b => visitor.visit_i32_sub(),
|
|
1084
|
+
0x6c => visitor.visit_i32_mul(),
|
|
1085
|
+
0x6d => visitor.visit_i32_div_s(),
|
|
1086
|
+
0x6e => visitor.visit_i32_div_u(),
|
|
1087
|
+
0x6f => visitor.visit_i32_rem_s(),
|
|
1088
|
+
0x70 => visitor.visit_i32_rem_u(),
|
|
1089
|
+
0x71 => visitor.visit_i32_and(),
|
|
1090
|
+
0x72 => visitor.visit_i32_or(),
|
|
1091
|
+
0x73 => visitor.visit_i32_xor(),
|
|
1092
|
+
0x74 => visitor.visit_i32_shl(),
|
|
1093
|
+
0x75 => visitor.visit_i32_shr_s(),
|
|
1094
|
+
0x76 => visitor.visit_i32_shr_u(),
|
|
1095
|
+
0x77 => visitor.visit_i32_rotl(),
|
|
1096
|
+
0x78 => visitor.visit_i32_rotr(),
|
|
1097
|
+
0x79 => visitor.visit_i64_clz(),
|
|
1098
|
+
0x7a => visitor.visit_i64_ctz(),
|
|
1099
|
+
0x7b => visitor.visit_i64_popcnt(),
|
|
1100
|
+
0x7c => visitor.visit_i64_add(),
|
|
1101
|
+
0x7d => visitor.visit_i64_sub(),
|
|
1102
|
+
0x7e => visitor.visit_i64_mul(),
|
|
1103
|
+
0x7f => visitor.visit_i64_div_s(),
|
|
1104
|
+
0x80 => visitor.visit_i64_div_u(),
|
|
1105
|
+
0x81 => visitor.visit_i64_rem_s(),
|
|
1106
|
+
0x82 => visitor.visit_i64_rem_u(),
|
|
1107
|
+
0x83 => visitor.visit_i64_and(),
|
|
1108
|
+
0x84 => visitor.visit_i64_or(),
|
|
1109
|
+
0x85 => visitor.visit_i64_xor(),
|
|
1110
|
+
0x86 => visitor.visit_i64_shl(),
|
|
1111
|
+
0x87 => visitor.visit_i64_shr_s(),
|
|
1112
|
+
0x88 => visitor.visit_i64_shr_u(),
|
|
1113
|
+
0x89 => visitor.visit_i64_rotl(),
|
|
1114
|
+
0x8a => visitor.visit_i64_rotr(),
|
|
1115
|
+
0x8b => visitor.visit_f32_abs(),
|
|
1116
|
+
0x8c => visitor.visit_f32_neg(),
|
|
1117
|
+
0x8d => visitor.visit_f32_ceil(),
|
|
1118
|
+
0x8e => visitor.visit_f32_floor(),
|
|
1119
|
+
0x8f => visitor.visit_f32_trunc(),
|
|
1120
|
+
0x90 => visitor.visit_f32_nearest(),
|
|
1121
|
+
0x91 => visitor.visit_f32_sqrt(),
|
|
1122
|
+
0x92 => visitor.visit_f32_add(),
|
|
1123
|
+
0x93 => visitor.visit_f32_sub(),
|
|
1124
|
+
0x94 => visitor.visit_f32_mul(),
|
|
1125
|
+
0x95 => visitor.visit_f32_div(),
|
|
1126
|
+
0x96 => visitor.visit_f32_min(),
|
|
1127
|
+
0x97 => visitor.visit_f32_max(),
|
|
1128
|
+
0x98 => visitor.visit_f32_copysign(),
|
|
1129
|
+
0x99 => visitor.visit_f64_abs(),
|
|
1130
|
+
0x9a => visitor.visit_f64_neg(),
|
|
1131
|
+
0x9b => visitor.visit_f64_ceil(),
|
|
1132
|
+
0x9c => visitor.visit_f64_floor(),
|
|
1133
|
+
0x9d => visitor.visit_f64_trunc(),
|
|
1134
|
+
0x9e => visitor.visit_f64_nearest(),
|
|
1135
|
+
0x9f => visitor.visit_f64_sqrt(),
|
|
1136
|
+
0xa0 => visitor.visit_f64_add(),
|
|
1137
|
+
0xa1 => visitor.visit_f64_sub(),
|
|
1138
|
+
0xa2 => visitor.visit_f64_mul(),
|
|
1139
|
+
0xa3 => visitor.visit_f64_div(),
|
|
1140
|
+
0xa4 => visitor.visit_f64_min(),
|
|
1141
|
+
0xa5 => visitor.visit_f64_max(),
|
|
1142
|
+
0xa6 => visitor.visit_f64_copysign(),
|
|
1143
|
+
0xa7 => visitor.visit_i32_wrap_i64(),
|
|
1144
|
+
0xa8 => visitor.visit_i32_trunc_f32_s(),
|
|
1145
|
+
0xa9 => visitor.visit_i32_trunc_f32_u(),
|
|
1146
|
+
0xaa => visitor.visit_i32_trunc_f64_s(),
|
|
1147
|
+
0xab => visitor.visit_i32_trunc_f64_u(),
|
|
1148
|
+
0xac => visitor.visit_i64_extend_i32_s(),
|
|
1149
|
+
0xad => visitor.visit_i64_extend_i32_u(),
|
|
1150
|
+
0xae => visitor.visit_i64_trunc_f32_s(),
|
|
1151
|
+
0xaf => visitor.visit_i64_trunc_f32_u(),
|
|
1152
|
+
0xb0 => visitor.visit_i64_trunc_f64_s(),
|
|
1153
|
+
0xb1 => visitor.visit_i64_trunc_f64_u(),
|
|
1154
|
+
0xb2 => visitor.visit_f32_convert_i32_s(),
|
|
1155
|
+
0xb3 => visitor.visit_f32_convert_i32_u(),
|
|
1156
|
+
0xb4 => visitor.visit_f32_convert_i64_s(),
|
|
1157
|
+
0xb5 => visitor.visit_f32_convert_i64_u(),
|
|
1158
|
+
0xb6 => visitor.visit_f32_demote_f64(),
|
|
1159
|
+
0xb7 => visitor.visit_f64_convert_i32_s(),
|
|
1160
|
+
0xb8 => visitor.visit_f64_convert_i32_u(),
|
|
1161
|
+
0xb9 => visitor.visit_f64_convert_i64_s(),
|
|
1162
|
+
0xba => visitor.visit_f64_convert_i64_u(),
|
|
1163
|
+
0xbb => visitor.visit_f64_promote_f32(),
|
|
1164
|
+
0xbc => visitor.visit_i32_reinterpret_f32(),
|
|
1165
|
+
0xbd => visitor.visit_i64_reinterpret_f64(),
|
|
1166
|
+
0xbe => visitor.visit_f32_reinterpret_i32(),
|
|
1167
|
+
0xbf => visitor.visit_f64_reinterpret_i64(),
|
|
1168
|
+
|
|
1169
|
+
0xc0 => visitor.visit_i32_extend8_s(),
|
|
1170
|
+
0xc1 => visitor.visit_i32_extend16_s(),
|
|
1171
|
+
0xc2 => visitor.visit_i64_extend8_s(),
|
|
1172
|
+
0xc3 => visitor.visit_i64_extend16_s(),
|
|
1173
|
+
0xc4 => visitor.visit_i64_extend32_s(),
|
|
1174
|
+
|
|
1175
|
+
0xd0 => visitor.visit_ref_null(self.read()?),
|
|
1176
|
+
0xd1 => visitor.visit_ref_is_null(),
|
|
1177
|
+
0xd2 => visitor.visit_ref_func(self.read_var_u32()?),
|
|
1178
|
+
0xd3 => visitor.visit_ref_eq(),
|
|
1179
|
+
0xd4 => visitor.visit_ref_as_non_null(),
|
|
1180
|
+
0xd5 => visitor.visit_br_on_null(self.read_var_u32()?),
|
|
1181
|
+
0xd6 => visitor.visit_br_on_non_null(self.read_var_u32()?),
|
|
1182
|
+
|
|
1183
|
+
0xe0 => visitor.visit_cont_new(self.read_var_u32()?),
|
|
1184
|
+
0xe1 => visitor.visit_cont_bind(self.read_var_u32()?, self.read_var_u32()?),
|
|
1185
|
+
0xe2 => visitor.visit_suspend(self.read_var_u32()?),
|
|
1186
|
+
0xe3 => visitor.visit_resume(self.read_var_u32()?, self.read()?),
|
|
1187
|
+
0xe4 => {
|
|
1188
|
+
visitor.visit_resume_throw(self.read_var_u32()?, self.read_var_u32()?, self.read()?)
|
|
1189
|
+
}
|
|
1190
|
+
0xe5 => visitor.visit_switch(self.read_var_u32()?, self.read_var_u32()?),
|
|
1191
|
+
|
|
1192
|
+
0xfb => self.visit_0xfb_operator(pos, visitor)?,
|
|
1193
|
+
0xfc => self.visit_0xfc_operator(pos, visitor)?,
|
|
1194
|
+
0xfd => {
|
|
1195
|
+
#[cfg(feature = "simd")]
|
|
1196
|
+
if let Some(mut visitor) = visitor.simd_visitor() {
|
|
1197
|
+
return self.visit_0xfd_operator(pos, &mut visitor);
|
|
1198
|
+
}
|
|
1199
|
+
bail!(pos, "unexpected SIMD opcode: 0x{code:x}")
|
|
1200
|
+
}
|
|
1201
|
+
0xfe => self.visit_0xfe_operator(pos, visitor)?,
|
|
1202
|
+
|
|
1203
|
+
_ => bail!(pos, "illegal opcode: 0x{code:x}"),
|
|
1204
|
+
})
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
fn visit_0xfb_operator<T>(
|
|
1208
|
+
&mut self,
|
|
1209
|
+
pos: usize,
|
|
1210
|
+
visitor: &mut T,
|
|
1211
|
+
) -> Result<<T as VisitOperator<'a>>::Output>
|
|
1212
|
+
where
|
|
1213
|
+
T: VisitOperator<'a>,
|
|
1214
|
+
{
|
|
1215
|
+
let code = self.read_var_u32()?;
|
|
1216
|
+
Ok(match code {
|
|
1217
|
+
0x0 => {
|
|
1218
|
+
let type_index = self.read_var_u32()?;
|
|
1219
|
+
visitor.visit_struct_new(type_index)
|
|
1220
|
+
}
|
|
1221
|
+
0x01 => {
|
|
1222
|
+
let type_index = self.read_var_u32()?;
|
|
1223
|
+
visitor.visit_struct_new_default(type_index)
|
|
1224
|
+
}
|
|
1225
|
+
0x02 => {
|
|
1226
|
+
let type_index = self.read_var_u32()?;
|
|
1227
|
+
let field_index = self.read_var_u32()?;
|
|
1228
|
+
visitor.visit_struct_get(type_index, field_index)
|
|
1229
|
+
}
|
|
1230
|
+
0x03 => {
|
|
1231
|
+
let type_index = self.read_var_u32()?;
|
|
1232
|
+
let field_index = self.read_var_u32()?;
|
|
1233
|
+
visitor.visit_struct_get_s(type_index, field_index)
|
|
1234
|
+
}
|
|
1235
|
+
0x04 => {
|
|
1236
|
+
let type_index = self.read_var_u32()?;
|
|
1237
|
+
let field_index = self.read_var_u32()?;
|
|
1238
|
+
visitor.visit_struct_get_u(type_index, field_index)
|
|
1239
|
+
}
|
|
1240
|
+
0x05 => {
|
|
1241
|
+
let type_index = self.read_var_u32()?;
|
|
1242
|
+
let field_index = self.read_var_u32()?;
|
|
1243
|
+
visitor.visit_struct_set(type_index, field_index)
|
|
1244
|
+
}
|
|
1245
|
+
0x06 => {
|
|
1246
|
+
let type_index = self.read_var_u32()?;
|
|
1247
|
+
visitor.visit_array_new(type_index)
|
|
1248
|
+
}
|
|
1249
|
+
0x07 => {
|
|
1250
|
+
let type_index = self.read_var_u32()?;
|
|
1251
|
+
visitor.visit_array_new_default(type_index)
|
|
1252
|
+
}
|
|
1253
|
+
0x08 => {
|
|
1254
|
+
let type_index = self.read_var_u32()?;
|
|
1255
|
+
let n = self.read_var_u32()?;
|
|
1256
|
+
visitor.visit_array_new_fixed(type_index, n)
|
|
1257
|
+
}
|
|
1258
|
+
0x09 => {
|
|
1259
|
+
let type_index = self.read_var_u32()?;
|
|
1260
|
+
let data_index = self.read_var_u32()?;
|
|
1261
|
+
visitor.visit_array_new_data(type_index, data_index)
|
|
1262
|
+
}
|
|
1263
|
+
0x0a => {
|
|
1264
|
+
let type_index = self.read_var_u32()?;
|
|
1265
|
+
let elem_index = self.read_var_u32()?;
|
|
1266
|
+
visitor.visit_array_new_elem(type_index, elem_index)
|
|
1267
|
+
}
|
|
1268
|
+
0x0b => {
|
|
1269
|
+
let type_index = self.read_var_u32()?;
|
|
1270
|
+
visitor.visit_array_get(type_index)
|
|
1271
|
+
}
|
|
1272
|
+
0x0c => {
|
|
1273
|
+
let type_index = self.read_var_u32()?;
|
|
1274
|
+
visitor.visit_array_get_s(type_index)
|
|
1275
|
+
}
|
|
1276
|
+
0x0d => {
|
|
1277
|
+
let type_index = self.read_var_u32()?;
|
|
1278
|
+
visitor.visit_array_get_u(type_index)
|
|
1279
|
+
}
|
|
1280
|
+
0x0e => {
|
|
1281
|
+
let type_index = self.read_var_u32()?;
|
|
1282
|
+
visitor.visit_array_set(type_index)
|
|
1283
|
+
}
|
|
1284
|
+
0x0f => visitor.visit_array_len(),
|
|
1285
|
+
0x10 => {
|
|
1286
|
+
let type_index = self.read_var_u32()?;
|
|
1287
|
+
visitor.visit_array_fill(type_index)
|
|
1288
|
+
}
|
|
1289
|
+
0x11 => {
|
|
1290
|
+
let type_index_dst = self.read_var_u32()?;
|
|
1291
|
+
let type_index_src = self.read_var_u32()?;
|
|
1292
|
+
visitor.visit_array_copy(type_index_dst, type_index_src)
|
|
1293
|
+
}
|
|
1294
|
+
0x12 => {
|
|
1295
|
+
let type_index = self.read_var_u32()?;
|
|
1296
|
+
let data_index = self.read_var_u32()?;
|
|
1297
|
+
visitor.visit_array_init_data(type_index, data_index)
|
|
1298
|
+
}
|
|
1299
|
+
0x13 => {
|
|
1300
|
+
let type_index = self.read_var_u32()?;
|
|
1301
|
+
let elem_index = self.read_var_u32()?;
|
|
1302
|
+
visitor.visit_array_init_elem(type_index, elem_index)
|
|
1303
|
+
}
|
|
1304
|
+
0x14 => visitor.visit_ref_test_non_null(self.read()?),
|
|
1305
|
+
0x15 => visitor.visit_ref_test_nullable(self.read()?),
|
|
1306
|
+
0x16 => visitor.visit_ref_cast_non_null(self.read()?),
|
|
1307
|
+
0x17 => visitor.visit_ref_cast_nullable(self.read()?),
|
|
1308
|
+
0x18 => {
|
|
1309
|
+
let pos = self.original_position();
|
|
1310
|
+
let cast_flags = self.read_u8()?;
|
|
1311
|
+
let relative_depth = self.read_var_u32()?;
|
|
1312
|
+
let (from_type_nullable, to_type_nullable) = match cast_flags {
|
|
1313
|
+
0b00 => (false, false),
|
|
1314
|
+
0b01 => (true, false),
|
|
1315
|
+
0b10 => (false, true),
|
|
1316
|
+
0b11 => (true, true),
|
|
1317
|
+
_ => bail!(pos, "invalid cast flags: {cast_flags:08b}"),
|
|
1318
|
+
};
|
|
1319
|
+
let from_heap_type = self.read()?;
|
|
1320
|
+
let from_ref_type =
|
|
1321
|
+
RefType::new(from_type_nullable, from_heap_type).ok_or_else(|| {
|
|
1322
|
+
format_err!(pos, "implementation error: type index too large")
|
|
1323
|
+
})?;
|
|
1324
|
+
let to_heap_type = self.read()?;
|
|
1325
|
+
let to_ref_type =
|
|
1326
|
+
RefType::new(to_type_nullable, to_heap_type).ok_or_else(|| {
|
|
1327
|
+
format_err!(pos, "implementation error: type index too large")
|
|
1328
|
+
})?;
|
|
1329
|
+
visitor.visit_br_on_cast(relative_depth, from_ref_type, to_ref_type)
|
|
1330
|
+
}
|
|
1331
|
+
0x19 => {
|
|
1332
|
+
let pos = self.original_position();
|
|
1333
|
+
let cast_flags = self.read_u8()?;
|
|
1334
|
+
let relative_depth = self.read_var_u32()?;
|
|
1335
|
+
let (from_type_nullable, to_type_nullable) = match cast_flags {
|
|
1336
|
+
0 => (false, false),
|
|
1337
|
+
1 => (true, false),
|
|
1338
|
+
2 => (false, true),
|
|
1339
|
+
3 => (true, true),
|
|
1340
|
+
_ => bail!(pos, "invalid cast flags: {cast_flags:08b}"),
|
|
1341
|
+
};
|
|
1342
|
+
let from_heap_type = self.read()?;
|
|
1343
|
+
let from_ref_type =
|
|
1344
|
+
RefType::new(from_type_nullable, from_heap_type).ok_or_else(|| {
|
|
1345
|
+
format_err!(pos, "implementation error: type index too large")
|
|
1346
|
+
})?;
|
|
1347
|
+
let to_heap_type = self.read()?;
|
|
1348
|
+
let to_ref_type =
|
|
1349
|
+
RefType::new(to_type_nullable, to_heap_type).ok_or_else(|| {
|
|
1350
|
+
format_err!(pos, "implementation error: type index too large")
|
|
1351
|
+
})?;
|
|
1352
|
+
visitor.visit_br_on_cast_fail(relative_depth, from_ref_type, to_ref_type)
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
0x1a => visitor.visit_any_convert_extern(),
|
|
1356
|
+
0x1b => visitor.visit_extern_convert_any(),
|
|
1357
|
+
|
|
1358
|
+
0x1c => visitor.visit_ref_i31(),
|
|
1359
|
+
0x1d => visitor.visit_i31_get_s(),
|
|
1360
|
+
0x1e => visitor.visit_i31_get_u(),
|
|
1361
|
+
|
|
1362
|
+
0x20 => {
|
|
1363
|
+
let type_index = self.read_var_u32()?;
|
|
1364
|
+
visitor.visit_struct_new_desc(type_index)
|
|
1365
|
+
}
|
|
1366
|
+
0x21 => {
|
|
1367
|
+
let type_index = self.read_var_u32()?;
|
|
1368
|
+
visitor.visit_struct_new_default_desc(type_index)
|
|
1369
|
+
}
|
|
1370
|
+
0x22 => visitor.visit_ref_get_desc(self.read()?),
|
|
1371
|
+
0x23 => visitor.visit_ref_cast_desc_non_null(self.read()?),
|
|
1372
|
+
0x24 => visitor.visit_ref_cast_desc_nullable(self.read()?),
|
|
1373
|
+
0x25 => {
|
|
1374
|
+
let pos = self.original_position();
|
|
1375
|
+
let cast_flags = self.read_u8()?;
|
|
1376
|
+
let relative_depth = self.read_var_u32()?;
|
|
1377
|
+
let (from_type_nullable, to_type_nullable) = match cast_flags {
|
|
1378
|
+
0b00 => (false, false),
|
|
1379
|
+
0b01 => (true, false),
|
|
1380
|
+
0b10 => (false, true),
|
|
1381
|
+
0b11 => (true, true),
|
|
1382
|
+
_ => bail!(pos, "invalid cast flags: {cast_flags:08b}"),
|
|
1383
|
+
};
|
|
1384
|
+
let from_heap_type = self.read()?;
|
|
1385
|
+
let from_ref_type =
|
|
1386
|
+
RefType::new(from_type_nullable, from_heap_type).ok_or_else(|| {
|
|
1387
|
+
format_err!(pos, "implementation error: type index too large")
|
|
1388
|
+
})?;
|
|
1389
|
+
let to_heap_type = self.read()?;
|
|
1390
|
+
let to_ref_type =
|
|
1391
|
+
RefType::new(to_type_nullable, to_heap_type).ok_or_else(|| {
|
|
1392
|
+
format_err!(pos, "implementation error: type index too large")
|
|
1393
|
+
})?;
|
|
1394
|
+
visitor.visit_br_on_cast_desc(relative_depth, from_ref_type, to_ref_type)
|
|
1395
|
+
}
|
|
1396
|
+
0x26 => {
|
|
1397
|
+
let pos = self.original_position();
|
|
1398
|
+
let cast_flags = self.read_u8()?;
|
|
1399
|
+
let relative_depth = self.read_var_u32()?;
|
|
1400
|
+
let (from_type_nullable, to_type_nullable) = match cast_flags {
|
|
1401
|
+
0 => (false, false),
|
|
1402
|
+
1 => (true, false),
|
|
1403
|
+
2 => (false, true),
|
|
1404
|
+
3 => (true, true),
|
|
1405
|
+
_ => bail!(pos, "invalid cast flags: {cast_flags:08b}"),
|
|
1406
|
+
};
|
|
1407
|
+
let from_heap_type = self.read()?;
|
|
1408
|
+
let from_ref_type =
|
|
1409
|
+
RefType::new(from_type_nullable, from_heap_type).ok_or_else(|| {
|
|
1410
|
+
format_err!(pos, "implementation error: type index too large")
|
|
1411
|
+
})?;
|
|
1412
|
+
let to_heap_type = self.read()?;
|
|
1413
|
+
let to_ref_type =
|
|
1414
|
+
RefType::new(to_type_nullable, to_heap_type).ok_or_else(|| {
|
|
1415
|
+
format_err!(pos, "implementation error: type index too large")
|
|
1416
|
+
})?;
|
|
1417
|
+
visitor.visit_br_on_cast_desc_fail(relative_depth, from_ref_type, to_ref_type)
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
_ => bail!(pos, "unknown 0xfb subopcode: 0x{code:x}"),
|
|
1421
|
+
})
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
fn visit_0xfc_operator<T>(
|
|
1425
|
+
&mut self,
|
|
1426
|
+
pos: usize,
|
|
1427
|
+
visitor: &mut T,
|
|
1428
|
+
) -> Result<<T as VisitOperator<'a>>::Output>
|
|
1429
|
+
where
|
|
1430
|
+
T: VisitOperator<'a>,
|
|
1431
|
+
{
|
|
1432
|
+
let code = self.read_var_u32()?;
|
|
1433
|
+
Ok(match code {
|
|
1434
|
+
0x00 => visitor.visit_i32_trunc_sat_f32_s(),
|
|
1435
|
+
0x01 => visitor.visit_i32_trunc_sat_f32_u(),
|
|
1436
|
+
0x02 => visitor.visit_i32_trunc_sat_f64_s(),
|
|
1437
|
+
0x03 => visitor.visit_i32_trunc_sat_f64_u(),
|
|
1438
|
+
0x04 => visitor.visit_i64_trunc_sat_f32_s(),
|
|
1439
|
+
0x05 => visitor.visit_i64_trunc_sat_f32_u(),
|
|
1440
|
+
0x06 => visitor.visit_i64_trunc_sat_f64_s(),
|
|
1441
|
+
0x07 => visitor.visit_i64_trunc_sat_f64_u(),
|
|
1442
|
+
|
|
1443
|
+
0x08 => {
|
|
1444
|
+
let segment = self.read_var_u32()?;
|
|
1445
|
+
let mem = self.read_var_u32()?;
|
|
1446
|
+
visitor.visit_memory_init(segment, mem)
|
|
1447
|
+
}
|
|
1448
|
+
0x09 => {
|
|
1449
|
+
let segment = self.read_var_u32()?;
|
|
1450
|
+
visitor.visit_data_drop(segment)
|
|
1451
|
+
}
|
|
1452
|
+
0x0a => {
|
|
1453
|
+
let dst = self.read_var_u32()?;
|
|
1454
|
+
let src = self.read_var_u32()?;
|
|
1455
|
+
visitor.visit_memory_copy(dst, src)
|
|
1456
|
+
}
|
|
1457
|
+
0x0b => {
|
|
1458
|
+
let mem = self.read_var_u32()?;
|
|
1459
|
+
visitor.visit_memory_fill(mem)
|
|
1460
|
+
}
|
|
1461
|
+
0x0c => {
|
|
1462
|
+
let segment = self.read_var_u32()?;
|
|
1463
|
+
let table = self.read_var_u32()?;
|
|
1464
|
+
visitor.visit_table_init(segment, table)
|
|
1465
|
+
}
|
|
1466
|
+
0x0d => {
|
|
1467
|
+
let segment = self.read_var_u32()?;
|
|
1468
|
+
visitor.visit_elem_drop(segment)
|
|
1469
|
+
}
|
|
1470
|
+
0x0e => {
|
|
1471
|
+
let dst_table = self.read_var_u32()?;
|
|
1472
|
+
let src_table = self.read_var_u32()?;
|
|
1473
|
+
visitor.visit_table_copy(dst_table, src_table)
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
0x0f => {
|
|
1477
|
+
let table = self.read_var_u32()?;
|
|
1478
|
+
visitor.visit_table_grow(table)
|
|
1479
|
+
}
|
|
1480
|
+
0x10 => {
|
|
1481
|
+
let table = self.read_var_u32()?;
|
|
1482
|
+
visitor.visit_table_size(table)
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
0x11 => {
|
|
1486
|
+
let table = self.read_var_u32()?;
|
|
1487
|
+
visitor.visit_table_fill(table)
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
0x12 => {
|
|
1491
|
+
let mem = self.read_var_u32()?;
|
|
1492
|
+
visitor.visit_memory_discard(mem)
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
0x13 => visitor.visit_i64_add128(),
|
|
1496
|
+
0x14 => visitor.visit_i64_sub128(),
|
|
1497
|
+
0x15 => visitor.visit_i64_mul_wide_s(),
|
|
1498
|
+
0x16 => visitor.visit_i64_mul_wide_u(),
|
|
1499
|
+
|
|
1500
|
+
_ => bail!(pos, "unknown 0xfc subopcode: 0x{code:x}"),
|
|
1501
|
+
})
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
#[cfg(feature = "simd")]
|
|
1505
|
+
pub(super) fn visit_0xfd_operator<T>(
|
|
1506
|
+
&mut self,
|
|
1507
|
+
pos: usize,
|
|
1508
|
+
visitor: &mut T,
|
|
1509
|
+
) -> Result<<T as VisitOperator<'a>>::Output>
|
|
1510
|
+
where
|
|
1511
|
+
T: VisitSimdOperator<'a>,
|
|
1512
|
+
{
|
|
1513
|
+
let code = self.read_var_u32()?;
|
|
1514
|
+
Ok(match code {
|
|
1515
|
+
0x00 => visitor.visit_v128_load(self.read_memarg(4)?),
|
|
1516
|
+
0x01 => visitor.visit_v128_load8x8_s(self.read_memarg(3)?),
|
|
1517
|
+
0x02 => visitor.visit_v128_load8x8_u(self.read_memarg(3)?),
|
|
1518
|
+
0x03 => visitor.visit_v128_load16x4_s(self.read_memarg(3)?),
|
|
1519
|
+
0x04 => visitor.visit_v128_load16x4_u(self.read_memarg(3)?),
|
|
1520
|
+
0x05 => visitor.visit_v128_load32x2_s(self.read_memarg(3)?),
|
|
1521
|
+
0x06 => visitor.visit_v128_load32x2_u(self.read_memarg(3)?),
|
|
1522
|
+
0x07 => visitor.visit_v128_load8_splat(self.read_memarg(0)?),
|
|
1523
|
+
0x08 => visitor.visit_v128_load16_splat(self.read_memarg(1)?),
|
|
1524
|
+
0x09 => visitor.visit_v128_load32_splat(self.read_memarg(2)?),
|
|
1525
|
+
0x0a => visitor.visit_v128_load64_splat(self.read_memarg(3)?),
|
|
1526
|
+
|
|
1527
|
+
0x0b => visitor.visit_v128_store(self.read_memarg(4)?),
|
|
1528
|
+
0x0c => visitor.visit_v128_const(self.read_v128()?),
|
|
1529
|
+
0x0d => {
|
|
1530
|
+
let mut lanes: [u8; 16] = [0; 16];
|
|
1531
|
+
for lane in &mut lanes {
|
|
1532
|
+
*lane = self.read_lane_index()?
|
|
1533
|
+
}
|
|
1534
|
+
visitor.visit_i8x16_shuffle(lanes)
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
0x0e => visitor.visit_i8x16_swizzle(),
|
|
1538
|
+
0x0f => visitor.visit_i8x16_splat(),
|
|
1539
|
+
0x10 => visitor.visit_i16x8_splat(),
|
|
1540
|
+
0x11 => visitor.visit_i32x4_splat(),
|
|
1541
|
+
0x12 => visitor.visit_i64x2_splat(),
|
|
1542
|
+
0x13 => visitor.visit_f32x4_splat(),
|
|
1543
|
+
0x14 => visitor.visit_f64x2_splat(),
|
|
1544
|
+
|
|
1545
|
+
0x15 => visitor.visit_i8x16_extract_lane_s(self.read_lane_index()?),
|
|
1546
|
+
0x16 => visitor.visit_i8x16_extract_lane_u(self.read_lane_index()?),
|
|
1547
|
+
0x17 => visitor.visit_i8x16_replace_lane(self.read_lane_index()?),
|
|
1548
|
+
0x18 => visitor.visit_i16x8_extract_lane_s(self.read_lane_index()?),
|
|
1549
|
+
0x19 => visitor.visit_i16x8_extract_lane_u(self.read_lane_index()?),
|
|
1550
|
+
0x1a => visitor.visit_i16x8_replace_lane(self.read_lane_index()?),
|
|
1551
|
+
0x1b => visitor.visit_i32x4_extract_lane(self.read_lane_index()?),
|
|
1552
|
+
|
|
1553
|
+
0x1c => visitor.visit_i32x4_replace_lane(self.read_lane_index()?),
|
|
1554
|
+
0x1d => visitor.visit_i64x2_extract_lane(self.read_lane_index()?),
|
|
1555
|
+
0x1e => visitor.visit_i64x2_replace_lane(self.read_lane_index()?),
|
|
1556
|
+
0x1f => visitor.visit_f32x4_extract_lane(self.read_lane_index()?),
|
|
1557
|
+
0x20 => visitor.visit_f32x4_replace_lane(self.read_lane_index()?),
|
|
1558
|
+
0x21 => visitor.visit_f64x2_extract_lane(self.read_lane_index()?),
|
|
1559
|
+
0x22 => visitor.visit_f64x2_replace_lane(self.read_lane_index()?),
|
|
1560
|
+
|
|
1561
|
+
0x23 => visitor.visit_i8x16_eq(),
|
|
1562
|
+
0x24 => visitor.visit_i8x16_ne(),
|
|
1563
|
+
0x25 => visitor.visit_i8x16_lt_s(),
|
|
1564
|
+
0x26 => visitor.visit_i8x16_lt_u(),
|
|
1565
|
+
0x27 => visitor.visit_i8x16_gt_s(),
|
|
1566
|
+
0x28 => visitor.visit_i8x16_gt_u(),
|
|
1567
|
+
0x29 => visitor.visit_i8x16_le_s(),
|
|
1568
|
+
0x2a => visitor.visit_i8x16_le_u(),
|
|
1569
|
+
0x2b => visitor.visit_i8x16_ge_s(),
|
|
1570
|
+
0x2c => visitor.visit_i8x16_ge_u(),
|
|
1571
|
+
0x2d => visitor.visit_i16x8_eq(),
|
|
1572
|
+
0x2e => visitor.visit_i16x8_ne(),
|
|
1573
|
+
0x2f => visitor.visit_i16x8_lt_s(),
|
|
1574
|
+
0x30 => visitor.visit_i16x8_lt_u(),
|
|
1575
|
+
0x31 => visitor.visit_i16x8_gt_s(),
|
|
1576
|
+
0x32 => visitor.visit_i16x8_gt_u(),
|
|
1577
|
+
0x33 => visitor.visit_i16x8_le_s(),
|
|
1578
|
+
0x34 => visitor.visit_i16x8_le_u(),
|
|
1579
|
+
0x35 => visitor.visit_i16x8_ge_s(),
|
|
1580
|
+
0x36 => visitor.visit_i16x8_ge_u(),
|
|
1581
|
+
0x37 => visitor.visit_i32x4_eq(),
|
|
1582
|
+
0x38 => visitor.visit_i32x4_ne(),
|
|
1583
|
+
0x39 => visitor.visit_i32x4_lt_s(),
|
|
1584
|
+
0x3a => visitor.visit_i32x4_lt_u(),
|
|
1585
|
+
0x3b => visitor.visit_i32x4_gt_s(),
|
|
1586
|
+
0x3c => visitor.visit_i32x4_gt_u(),
|
|
1587
|
+
0x3d => visitor.visit_i32x4_le_s(),
|
|
1588
|
+
0x3e => visitor.visit_i32x4_le_u(),
|
|
1589
|
+
0x3f => visitor.visit_i32x4_ge_s(),
|
|
1590
|
+
0x40 => visitor.visit_i32x4_ge_u(),
|
|
1591
|
+
0x41 => visitor.visit_f32x4_eq(),
|
|
1592
|
+
0x42 => visitor.visit_f32x4_ne(),
|
|
1593
|
+
0x43 => visitor.visit_f32x4_lt(),
|
|
1594
|
+
0x44 => visitor.visit_f32x4_gt(),
|
|
1595
|
+
0x45 => visitor.visit_f32x4_le(),
|
|
1596
|
+
0x46 => visitor.visit_f32x4_ge(),
|
|
1597
|
+
0x47 => visitor.visit_f64x2_eq(),
|
|
1598
|
+
0x48 => visitor.visit_f64x2_ne(),
|
|
1599
|
+
0x49 => visitor.visit_f64x2_lt(),
|
|
1600
|
+
0x4a => visitor.visit_f64x2_gt(),
|
|
1601
|
+
0x4b => visitor.visit_f64x2_le(),
|
|
1602
|
+
0x4c => visitor.visit_f64x2_ge(),
|
|
1603
|
+
0x4d => visitor.visit_v128_not(),
|
|
1604
|
+
0x4e => visitor.visit_v128_and(),
|
|
1605
|
+
0x4f => visitor.visit_v128_andnot(),
|
|
1606
|
+
0x50 => visitor.visit_v128_or(),
|
|
1607
|
+
0x51 => visitor.visit_v128_xor(),
|
|
1608
|
+
0x52 => visitor.visit_v128_bitselect(),
|
|
1609
|
+
0x53 => visitor.visit_v128_any_true(),
|
|
1610
|
+
|
|
1611
|
+
0x54 => {
|
|
1612
|
+
let memarg = self.read_memarg(0)?;
|
|
1613
|
+
let lane = self.read_lane_index()?;
|
|
1614
|
+
visitor.visit_v128_load8_lane(memarg, lane)
|
|
1615
|
+
}
|
|
1616
|
+
0x55 => {
|
|
1617
|
+
let memarg = self.read_memarg(1)?;
|
|
1618
|
+
let lane = self.read_lane_index()?;
|
|
1619
|
+
visitor.visit_v128_load16_lane(memarg, lane)
|
|
1620
|
+
}
|
|
1621
|
+
0x56 => {
|
|
1622
|
+
let memarg = self.read_memarg(2)?;
|
|
1623
|
+
let lane = self.read_lane_index()?;
|
|
1624
|
+
visitor.visit_v128_load32_lane(memarg, lane)
|
|
1625
|
+
}
|
|
1626
|
+
0x57 => {
|
|
1627
|
+
let memarg = self.read_memarg(3)?;
|
|
1628
|
+
let lane = self.read_lane_index()?;
|
|
1629
|
+
visitor.visit_v128_load64_lane(memarg, lane)
|
|
1630
|
+
}
|
|
1631
|
+
0x58 => {
|
|
1632
|
+
let memarg = self.read_memarg(0)?;
|
|
1633
|
+
let lane = self.read_lane_index()?;
|
|
1634
|
+
visitor.visit_v128_store8_lane(memarg, lane)
|
|
1635
|
+
}
|
|
1636
|
+
0x59 => {
|
|
1637
|
+
let memarg = self.read_memarg(1)?;
|
|
1638
|
+
let lane = self.read_lane_index()?;
|
|
1639
|
+
visitor.visit_v128_store16_lane(memarg, lane)
|
|
1640
|
+
}
|
|
1641
|
+
0x5a => {
|
|
1642
|
+
let memarg = self.read_memarg(2)?;
|
|
1643
|
+
let lane = self.read_lane_index()?;
|
|
1644
|
+
visitor.visit_v128_store32_lane(memarg, lane)
|
|
1645
|
+
}
|
|
1646
|
+
0x5b => {
|
|
1647
|
+
let memarg = self.read_memarg(3)?;
|
|
1648
|
+
let lane = self.read_lane_index()?;
|
|
1649
|
+
visitor.visit_v128_store64_lane(memarg, lane)
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
0x5c => visitor.visit_v128_load32_zero(self.read_memarg(2)?),
|
|
1653
|
+
0x5d => visitor.visit_v128_load64_zero(self.read_memarg(3)?),
|
|
1654
|
+
0x5e => visitor.visit_f32x4_demote_f64x2_zero(),
|
|
1655
|
+
0x5f => visitor.visit_f64x2_promote_low_f32x4(),
|
|
1656
|
+
0x60 => visitor.visit_i8x16_abs(),
|
|
1657
|
+
0x61 => visitor.visit_i8x16_neg(),
|
|
1658
|
+
0x62 => visitor.visit_i8x16_popcnt(),
|
|
1659
|
+
0x63 => visitor.visit_i8x16_all_true(),
|
|
1660
|
+
0x64 => visitor.visit_i8x16_bitmask(),
|
|
1661
|
+
0x65 => visitor.visit_i8x16_narrow_i16x8_s(),
|
|
1662
|
+
0x66 => visitor.visit_i8x16_narrow_i16x8_u(),
|
|
1663
|
+
0x67 => visitor.visit_f32x4_ceil(),
|
|
1664
|
+
0x68 => visitor.visit_f32x4_floor(),
|
|
1665
|
+
0x69 => visitor.visit_f32x4_trunc(),
|
|
1666
|
+
0x6a => visitor.visit_f32x4_nearest(),
|
|
1667
|
+
0x6b => visitor.visit_i8x16_shl(),
|
|
1668
|
+
0x6c => visitor.visit_i8x16_shr_s(),
|
|
1669
|
+
0x6d => visitor.visit_i8x16_shr_u(),
|
|
1670
|
+
0x6e => visitor.visit_i8x16_add(),
|
|
1671
|
+
0x6f => visitor.visit_i8x16_add_sat_s(),
|
|
1672
|
+
0x70 => visitor.visit_i8x16_add_sat_u(),
|
|
1673
|
+
0x71 => visitor.visit_i8x16_sub(),
|
|
1674
|
+
0x72 => visitor.visit_i8x16_sub_sat_s(),
|
|
1675
|
+
0x73 => visitor.visit_i8x16_sub_sat_u(),
|
|
1676
|
+
0x74 => visitor.visit_f64x2_ceil(),
|
|
1677
|
+
0x75 => visitor.visit_f64x2_floor(),
|
|
1678
|
+
0x76 => visitor.visit_i8x16_min_s(),
|
|
1679
|
+
0x77 => visitor.visit_i8x16_min_u(),
|
|
1680
|
+
0x78 => visitor.visit_i8x16_max_s(),
|
|
1681
|
+
0x79 => visitor.visit_i8x16_max_u(),
|
|
1682
|
+
0x7a => visitor.visit_f64x2_trunc(),
|
|
1683
|
+
0x7b => visitor.visit_i8x16_avgr_u(),
|
|
1684
|
+
0x7c => visitor.visit_i16x8_extadd_pairwise_i8x16_s(),
|
|
1685
|
+
0x7d => visitor.visit_i16x8_extadd_pairwise_i8x16_u(),
|
|
1686
|
+
0x7e => visitor.visit_i32x4_extadd_pairwise_i16x8_s(),
|
|
1687
|
+
0x7f => visitor.visit_i32x4_extadd_pairwise_i16x8_u(),
|
|
1688
|
+
0x80 => visitor.visit_i16x8_abs(),
|
|
1689
|
+
0x81 => visitor.visit_i16x8_neg(),
|
|
1690
|
+
0x82 => visitor.visit_i16x8_q15mulr_sat_s(),
|
|
1691
|
+
0x83 => visitor.visit_i16x8_all_true(),
|
|
1692
|
+
0x84 => visitor.visit_i16x8_bitmask(),
|
|
1693
|
+
0x85 => visitor.visit_i16x8_narrow_i32x4_s(),
|
|
1694
|
+
0x86 => visitor.visit_i16x8_narrow_i32x4_u(),
|
|
1695
|
+
0x87 => visitor.visit_i16x8_extend_low_i8x16_s(),
|
|
1696
|
+
0x88 => visitor.visit_i16x8_extend_high_i8x16_s(),
|
|
1697
|
+
0x89 => visitor.visit_i16x8_extend_low_i8x16_u(),
|
|
1698
|
+
0x8a => visitor.visit_i16x8_extend_high_i8x16_u(),
|
|
1699
|
+
0x8b => visitor.visit_i16x8_shl(),
|
|
1700
|
+
0x8c => visitor.visit_i16x8_shr_s(),
|
|
1701
|
+
0x8d => visitor.visit_i16x8_shr_u(),
|
|
1702
|
+
0x8e => visitor.visit_i16x8_add(),
|
|
1703
|
+
0x8f => visitor.visit_i16x8_add_sat_s(),
|
|
1704
|
+
0x90 => visitor.visit_i16x8_add_sat_u(),
|
|
1705
|
+
0x91 => visitor.visit_i16x8_sub(),
|
|
1706
|
+
0x92 => visitor.visit_i16x8_sub_sat_s(),
|
|
1707
|
+
0x93 => visitor.visit_i16x8_sub_sat_u(),
|
|
1708
|
+
0x94 => visitor.visit_f64x2_nearest(),
|
|
1709
|
+
0x95 => visitor.visit_i16x8_mul(),
|
|
1710
|
+
0x96 => visitor.visit_i16x8_min_s(),
|
|
1711
|
+
0x97 => visitor.visit_i16x8_min_u(),
|
|
1712
|
+
0x98 => visitor.visit_i16x8_max_s(),
|
|
1713
|
+
0x99 => visitor.visit_i16x8_max_u(),
|
|
1714
|
+
0x9b => visitor.visit_i16x8_avgr_u(),
|
|
1715
|
+
0x9c => visitor.visit_i16x8_extmul_low_i8x16_s(),
|
|
1716
|
+
0x9d => visitor.visit_i16x8_extmul_high_i8x16_s(),
|
|
1717
|
+
0x9e => visitor.visit_i16x8_extmul_low_i8x16_u(),
|
|
1718
|
+
0x9f => visitor.visit_i16x8_extmul_high_i8x16_u(),
|
|
1719
|
+
0xa0 => visitor.visit_i32x4_abs(),
|
|
1720
|
+
0xa1 => visitor.visit_i32x4_neg(),
|
|
1721
|
+
0xa3 => visitor.visit_i32x4_all_true(),
|
|
1722
|
+
0xa4 => visitor.visit_i32x4_bitmask(),
|
|
1723
|
+
0xa7 => visitor.visit_i32x4_extend_low_i16x8_s(),
|
|
1724
|
+
0xa8 => visitor.visit_i32x4_extend_high_i16x8_s(),
|
|
1725
|
+
0xa9 => visitor.visit_i32x4_extend_low_i16x8_u(),
|
|
1726
|
+
0xaa => visitor.visit_i32x4_extend_high_i16x8_u(),
|
|
1727
|
+
0xab => visitor.visit_i32x4_shl(),
|
|
1728
|
+
0xac => visitor.visit_i32x4_shr_s(),
|
|
1729
|
+
0xad => visitor.visit_i32x4_shr_u(),
|
|
1730
|
+
0xae => visitor.visit_i32x4_add(),
|
|
1731
|
+
0xb1 => visitor.visit_i32x4_sub(),
|
|
1732
|
+
0xb5 => visitor.visit_i32x4_mul(),
|
|
1733
|
+
0xb6 => visitor.visit_i32x4_min_s(),
|
|
1734
|
+
0xb7 => visitor.visit_i32x4_min_u(),
|
|
1735
|
+
0xb8 => visitor.visit_i32x4_max_s(),
|
|
1736
|
+
0xb9 => visitor.visit_i32x4_max_u(),
|
|
1737
|
+
0xba => visitor.visit_i32x4_dot_i16x8_s(),
|
|
1738
|
+
0xbc => visitor.visit_i32x4_extmul_low_i16x8_s(),
|
|
1739
|
+
0xbd => visitor.visit_i32x4_extmul_high_i16x8_s(),
|
|
1740
|
+
0xbe => visitor.visit_i32x4_extmul_low_i16x8_u(),
|
|
1741
|
+
0xbf => visitor.visit_i32x4_extmul_high_i16x8_u(),
|
|
1742
|
+
0xc0 => visitor.visit_i64x2_abs(),
|
|
1743
|
+
0xc1 => visitor.visit_i64x2_neg(),
|
|
1744
|
+
0xc3 => visitor.visit_i64x2_all_true(),
|
|
1745
|
+
0xc4 => visitor.visit_i64x2_bitmask(),
|
|
1746
|
+
0xc7 => visitor.visit_i64x2_extend_low_i32x4_s(),
|
|
1747
|
+
0xc8 => visitor.visit_i64x2_extend_high_i32x4_s(),
|
|
1748
|
+
0xc9 => visitor.visit_i64x2_extend_low_i32x4_u(),
|
|
1749
|
+
0xca => visitor.visit_i64x2_extend_high_i32x4_u(),
|
|
1750
|
+
0xcb => visitor.visit_i64x2_shl(),
|
|
1751
|
+
0xcc => visitor.visit_i64x2_shr_s(),
|
|
1752
|
+
0xcd => visitor.visit_i64x2_shr_u(),
|
|
1753
|
+
0xce => visitor.visit_i64x2_add(),
|
|
1754
|
+
0xd1 => visitor.visit_i64x2_sub(),
|
|
1755
|
+
0xd5 => visitor.visit_i64x2_mul(),
|
|
1756
|
+
0xd6 => visitor.visit_i64x2_eq(),
|
|
1757
|
+
0xd7 => visitor.visit_i64x2_ne(),
|
|
1758
|
+
0xd8 => visitor.visit_i64x2_lt_s(),
|
|
1759
|
+
0xd9 => visitor.visit_i64x2_gt_s(),
|
|
1760
|
+
0xda => visitor.visit_i64x2_le_s(),
|
|
1761
|
+
0xdb => visitor.visit_i64x2_ge_s(),
|
|
1762
|
+
0xdc => visitor.visit_i64x2_extmul_low_i32x4_s(),
|
|
1763
|
+
0xdd => visitor.visit_i64x2_extmul_high_i32x4_s(),
|
|
1764
|
+
0xde => visitor.visit_i64x2_extmul_low_i32x4_u(),
|
|
1765
|
+
0xdf => visitor.visit_i64x2_extmul_high_i32x4_u(),
|
|
1766
|
+
0xe0 => visitor.visit_f32x4_abs(),
|
|
1767
|
+
0xe1 => visitor.visit_f32x4_neg(),
|
|
1768
|
+
0xe3 => visitor.visit_f32x4_sqrt(),
|
|
1769
|
+
0xe4 => visitor.visit_f32x4_add(),
|
|
1770
|
+
0xe5 => visitor.visit_f32x4_sub(),
|
|
1771
|
+
0xe6 => visitor.visit_f32x4_mul(),
|
|
1772
|
+
0xe7 => visitor.visit_f32x4_div(),
|
|
1773
|
+
0xe8 => visitor.visit_f32x4_min(),
|
|
1774
|
+
0xe9 => visitor.visit_f32x4_max(),
|
|
1775
|
+
0xea => visitor.visit_f32x4_pmin(),
|
|
1776
|
+
0xeb => visitor.visit_f32x4_pmax(),
|
|
1777
|
+
0xec => visitor.visit_f64x2_abs(),
|
|
1778
|
+
0xed => visitor.visit_f64x2_neg(),
|
|
1779
|
+
0xef => visitor.visit_f64x2_sqrt(),
|
|
1780
|
+
0xf0 => visitor.visit_f64x2_add(),
|
|
1781
|
+
0xf1 => visitor.visit_f64x2_sub(),
|
|
1782
|
+
0xf2 => visitor.visit_f64x2_mul(),
|
|
1783
|
+
0xf3 => visitor.visit_f64x2_div(),
|
|
1784
|
+
0xf4 => visitor.visit_f64x2_min(),
|
|
1785
|
+
0xf5 => visitor.visit_f64x2_max(),
|
|
1786
|
+
0xf6 => visitor.visit_f64x2_pmin(),
|
|
1787
|
+
0xf7 => visitor.visit_f64x2_pmax(),
|
|
1788
|
+
0xf8 => visitor.visit_i32x4_trunc_sat_f32x4_s(),
|
|
1789
|
+
0xf9 => visitor.visit_i32x4_trunc_sat_f32x4_u(),
|
|
1790
|
+
0xfa => visitor.visit_f32x4_convert_i32x4_s(),
|
|
1791
|
+
0xfb => visitor.visit_f32x4_convert_i32x4_u(),
|
|
1792
|
+
0xfc => visitor.visit_i32x4_trunc_sat_f64x2_s_zero(),
|
|
1793
|
+
0xfd => visitor.visit_i32x4_trunc_sat_f64x2_u_zero(),
|
|
1794
|
+
0xfe => visitor.visit_f64x2_convert_low_i32x4_s(),
|
|
1795
|
+
0xff => visitor.visit_f64x2_convert_low_i32x4_u(),
|
|
1796
|
+
0x100 => visitor.visit_i8x16_relaxed_swizzle(),
|
|
1797
|
+
0x101 => visitor.visit_i32x4_relaxed_trunc_f32x4_s(),
|
|
1798
|
+
0x102 => visitor.visit_i32x4_relaxed_trunc_f32x4_u(),
|
|
1799
|
+
0x103 => visitor.visit_i32x4_relaxed_trunc_f64x2_s_zero(),
|
|
1800
|
+
0x104 => visitor.visit_i32x4_relaxed_trunc_f64x2_u_zero(),
|
|
1801
|
+
0x105 => visitor.visit_f32x4_relaxed_madd(),
|
|
1802
|
+
0x106 => visitor.visit_f32x4_relaxed_nmadd(),
|
|
1803
|
+
0x107 => visitor.visit_f64x2_relaxed_madd(),
|
|
1804
|
+
0x108 => visitor.visit_f64x2_relaxed_nmadd(),
|
|
1805
|
+
0x109 => visitor.visit_i8x16_relaxed_laneselect(),
|
|
1806
|
+
0x10a => visitor.visit_i16x8_relaxed_laneselect(),
|
|
1807
|
+
0x10b => visitor.visit_i32x4_relaxed_laneselect(),
|
|
1808
|
+
0x10c => visitor.visit_i64x2_relaxed_laneselect(),
|
|
1809
|
+
0x10d => visitor.visit_f32x4_relaxed_min(),
|
|
1810
|
+
0x10e => visitor.visit_f32x4_relaxed_max(),
|
|
1811
|
+
0x10f => visitor.visit_f64x2_relaxed_min(),
|
|
1812
|
+
0x110 => visitor.visit_f64x2_relaxed_max(),
|
|
1813
|
+
0x111 => visitor.visit_i16x8_relaxed_q15mulr_s(),
|
|
1814
|
+
0x112 => visitor.visit_i16x8_relaxed_dot_i8x16_i7x16_s(),
|
|
1815
|
+
0x113 => visitor.visit_i32x4_relaxed_dot_i8x16_i7x16_add_s(),
|
|
1816
|
+
|
|
1817
|
+
_ => bail!(pos, "unknown 0xfd subopcode: 0x{code:x}"),
|
|
1818
|
+
})
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
fn visit_0xfe_operator<T>(
|
|
1822
|
+
&mut self,
|
|
1823
|
+
pos: usize,
|
|
1824
|
+
visitor: &mut T,
|
|
1825
|
+
) -> Result<<T as VisitOperator<'a>>::Output>
|
|
1826
|
+
where
|
|
1827
|
+
T: VisitOperator<'a>,
|
|
1828
|
+
{
|
|
1829
|
+
let code = self.read_var_u32()?;
|
|
1830
|
+
Ok(match code {
|
|
1831
|
+
0x00 => visitor.visit_memory_atomic_notify(self.read_memarg(2)?),
|
|
1832
|
+
0x01 => visitor.visit_memory_atomic_wait32(self.read_memarg(2)?),
|
|
1833
|
+
0x02 => visitor.visit_memory_atomic_wait64(self.read_memarg(3)?),
|
|
1834
|
+
0x03 => {
|
|
1835
|
+
if self.read_u8()? != 0 {
|
|
1836
|
+
bail!(pos, "nonzero byte after `atomic.fence`");
|
|
1837
|
+
}
|
|
1838
|
+
visitor.visit_atomic_fence()
|
|
1839
|
+
}
|
|
1840
|
+
0x10 => visitor.visit_i32_atomic_load(self.read_memarg(2)?),
|
|
1841
|
+
0x11 => visitor.visit_i64_atomic_load(self.read_memarg(3)?),
|
|
1842
|
+
0x12 => visitor.visit_i32_atomic_load8_u(self.read_memarg(0)?),
|
|
1843
|
+
0x13 => visitor.visit_i32_atomic_load16_u(self.read_memarg(1)?),
|
|
1844
|
+
0x14 => visitor.visit_i64_atomic_load8_u(self.read_memarg(0)?),
|
|
1845
|
+
0x15 => visitor.visit_i64_atomic_load16_u(self.read_memarg(1)?),
|
|
1846
|
+
0x16 => visitor.visit_i64_atomic_load32_u(self.read_memarg(2)?),
|
|
1847
|
+
0x17 => visitor.visit_i32_atomic_store(self.read_memarg(2)?),
|
|
1848
|
+
0x18 => visitor.visit_i64_atomic_store(self.read_memarg(3)?),
|
|
1849
|
+
0x19 => visitor.visit_i32_atomic_store8(self.read_memarg(0)?),
|
|
1850
|
+
0x1a => visitor.visit_i32_atomic_store16(self.read_memarg(1)?),
|
|
1851
|
+
0x1b => visitor.visit_i64_atomic_store8(self.read_memarg(0)?),
|
|
1852
|
+
0x1c => visitor.visit_i64_atomic_store16(self.read_memarg(1)?),
|
|
1853
|
+
0x1d => visitor.visit_i64_atomic_store32(self.read_memarg(2)?),
|
|
1854
|
+
0x1e => visitor.visit_i32_atomic_rmw_add(self.read_memarg(2)?),
|
|
1855
|
+
0x1f => visitor.visit_i64_atomic_rmw_add(self.read_memarg(3)?),
|
|
1856
|
+
0x20 => visitor.visit_i32_atomic_rmw8_add_u(self.read_memarg(0)?),
|
|
1857
|
+
0x21 => visitor.visit_i32_atomic_rmw16_add_u(self.read_memarg(1)?),
|
|
1858
|
+
0x22 => visitor.visit_i64_atomic_rmw8_add_u(self.read_memarg(0)?),
|
|
1859
|
+
0x23 => visitor.visit_i64_atomic_rmw16_add_u(self.read_memarg(1)?),
|
|
1860
|
+
0x24 => visitor.visit_i64_atomic_rmw32_add_u(self.read_memarg(2)?),
|
|
1861
|
+
0x25 => visitor.visit_i32_atomic_rmw_sub(self.read_memarg(2)?),
|
|
1862
|
+
0x26 => visitor.visit_i64_atomic_rmw_sub(self.read_memarg(3)?),
|
|
1863
|
+
0x27 => visitor.visit_i32_atomic_rmw8_sub_u(self.read_memarg(0)?),
|
|
1864
|
+
0x28 => visitor.visit_i32_atomic_rmw16_sub_u(self.read_memarg(1)?),
|
|
1865
|
+
0x29 => visitor.visit_i64_atomic_rmw8_sub_u(self.read_memarg(0)?),
|
|
1866
|
+
0x2a => visitor.visit_i64_atomic_rmw16_sub_u(self.read_memarg(1)?),
|
|
1867
|
+
0x2b => visitor.visit_i64_atomic_rmw32_sub_u(self.read_memarg(2)?),
|
|
1868
|
+
0x2c => visitor.visit_i32_atomic_rmw_and(self.read_memarg(2)?),
|
|
1869
|
+
0x2d => visitor.visit_i64_atomic_rmw_and(self.read_memarg(3)?),
|
|
1870
|
+
0x2e => visitor.visit_i32_atomic_rmw8_and_u(self.read_memarg(0)?),
|
|
1871
|
+
0x2f => visitor.visit_i32_atomic_rmw16_and_u(self.read_memarg(1)?),
|
|
1872
|
+
0x30 => visitor.visit_i64_atomic_rmw8_and_u(self.read_memarg(0)?),
|
|
1873
|
+
0x31 => visitor.visit_i64_atomic_rmw16_and_u(self.read_memarg(1)?),
|
|
1874
|
+
0x32 => visitor.visit_i64_atomic_rmw32_and_u(self.read_memarg(2)?),
|
|
1875
|
+
0x33 => visitor.visit_i32_atomic_rmw_or(self.read_memarg(2)?),
|
|
1876
|
+
0x34 => visitor.visit_i64_atomic_rmw_or(self.read_memarg(3)?),
|
|
1877
|
+
0x35 => visitor.visit_i32_atomic_rmw8_or_u(self.read_memarg(0)?),
|
|
1878
|
+
0x36 => visitor.visit_i32_atomic_rmw16_or_u(self.read_memarg(1)?),
|
|
1879
|
+
0x37 => visitor.visit_i64_atomic_rmw8_or_u(self.read_memarg(0)?),
|
|
1880
|
+
0x38 => visitor.visit_i64_atomic_rmw16_or_u(self.read_memarg(1)?),
|
|
1881
|
+
0x39 => visitor.visit_i64_atomic_rmw32_or_u(self.read_memarg(2)?),
|
|
1882
|
+
0x3a => visitor.visit_i32_atomic_rmw_xor(self.read_memarg(2)?),
|
|
1883
|
+
0x3b => visitor.visit_i64_atomic_rmw_xor(self.read_memarg(3)?),
|
|
1884
|
+
0x3c => visitor.visit_i32_atomic_rmw8_xor_u(self.read_memarg(0)?),
|
|
1885
|
+
0x3d => visitor.visit_i32_atomic_rmw16_xor_u(self.read_memarg(1)?),
|
|
1886
|
+
0x3e => visitor.visit_i64_atomic_rmw8_xor_u(self.read_memarg(0)?),
|
|
1887
|
+
0x3f => visitor.visit_i64_atomic_rmw16_xor_u(self.read_memarg(1)?),
|
|
1888
|
+
0x40 => visitor.visit_i64_atomic_rmw32_xor_u(self.read_memarg(2)?),
|
|
1889
|
+
0x41 => visitor.visit_i32_atomic_rmw_xchg(self.read_memarg(2)?),
|
|
1890
|
+
0x42 => visitor.visit_i64_atomic_rmw_xchg(self.read_memarg(3)?),
|
|
1891
|
+
0x43 => visitor.visit_i32_atomic_rmw8_xchg_u(self.read_memarg(0)?),
|
|
1892
|
+
0x44 => visitor.visit_i32_atomic_rmw16_xchg_u(self.read_memarg(1)?),
|
|
1893
|
+
0x45 => visitor.visit_i64_atomic_rmw8_xchg_u(self.read_memarg(0)?),
|
|
1894
|
+
0x46 => visitor.visit_i64_atomic_rmw16_xchg_u(self.read_memarg(1)?),
|
|
1895
|
+
0x47 => visitor.visit_i64_atomic_rmw32_xchg_u(self.read_memarg(2)?),
|
|
1896
|
+
0x48 => visitor.visit_i32_atomic_rmw_cmpxchg(self.read_memarg(2)?),
|
|
1897
|
+
0x49 => visitor.visit_i64_atomic_rmw_cmpxchg(self.read_memarg(3)?),
|
|
1898
|
+
0x4a => visitor.visit_i32_atomic_rmw8_cmpxchg_u(self.read_memarg(0)?),
|
|
1899
|
+
0x4b => visitor.visit_i32_atomic_rmw16_cmpxchg_u(self.read_memarg(1)?),
|
|
1900
|
+
0x4c => visitor.visit_i64_atomic_rmw8_cmpxchg_u(self.read_memarg(0)?),
|
|
1901
|
+
0x4d => visitor.visit_i64_atomic_rmw16_cmpxchg_u(self.read_memarg(1)?),
|
|
1902
|
+
0x4e => visitor.visit_i64_atomic_rmw32_cmpxchg_u(self.read_memarg(2)?),
|
|
1903
|
+
|
|
1904
|
+
// Decode shared-everything-threads proposal.
|
|
1905
|
+
0x4f => visitor.visit_global_atomic_get(self.read_ordering()?, self.read_var_u32()?),
|
|
1906
|
+
0x50 => visitor.visit_global_atomic_set(self.read_ordering()?, self.read_var_u32()?),
|
|
1907
|
+
0x51 => {
|
|
1908
|
+
visitor.visit_global_atomic_rmw_add(self.read_ordering()?, self.read_var_u32()?)
|
|
1909
|
+
}
|
|
1910
|
+
0x52 => {
|
|
1911
|
+
visitor.visit_global_atomic_rmw_sub(self.read_ordering()?, self.read_var_u32()?)
|
|
1912
|
+
}
|
|
1913
|
+
0x53 => {
|
|
1914
|
+
visitor.visit_global_atomic_rmw_and(self.read_ordering()?, self.read_var_u32()?)
|
|
1915
|
+
}
|
|
1916
|
+
0x54 => visitor.visit_global_atomic_rmw_or(self.read_ordering()?, self.read_var_u32()?),
|
|
1917
|
+
0x55 => {
|
|
1918
|
+
visitor.visit_global_atomic_rmw_xor(self.read_ordering()?, self.read_var_u32()?)
|
|
1919
|
+
}
|
|
1920
|
+
0x56 => {
|
|
1921
|
+
visitor.visit_global_atomic_rmw_xchg(self.read_ordering()?, self.read_var_u32()?)
|
|
1922
|
+
}
|
|
1923
|
+
0x57 => {
|
|
1924
|
+
visitor.visit_global_atomic_rmw_cmpxchg(self.read_ordering()?, self.read_var_u32()?)
|
|
1925
|
+
}
|
|
1926
|
+
0x58 => visitor.visit_table_atomic_get(self.read_ordering()?, self.read_var_u32()?),
|
|
1927
|
+
0x59 => visitor.visit_table_atomic_set(self.read_ordering()?, self.read_var_u32()?),
|
|
1928
|
+
0x5a => {
|
|
1929
|
+
visitor.visit_table_atomic_rmw_xchg(self.read_ordering()?, self.read_var_u32()?)
|
|
1930
|
+
}
|
|
1931
|
+
0x5b => {
|
|
1932
|
+
visitor.visit_table_atomic_rmw_cmpxchg(self.read_ordering()?, self.read_var_u32()?)
|
|
1933
|
+
}
|
|
1934
|
+
0x5c => visitor.visit_struct_atomic_get(
|
|
1935
|
+
self.read_ordering()?,
|
|
1936
|
+
self.read_var_u32()?,
|
|
1937
|
+
self.read_var_u32()?,
|
|
1938
|
+
),
|
|
1939
|
+
0x5d => visitor.visit_struct_atomic_get_s(
|
|
1940
|
+
self.read_ordering()?,
|
|
1941
|
+
self.read_var_u32()?,
|
|
1942
|
+
self.read_var_u32()?,
|
|
1943
|
+
),
|
|
1944
|
+
0x5e => visitor.visit_struct_atomic_get_u(
|
|
1945
|
+
self.read_ordering()?,
|
|
1946
|
+
self.read_var_u32()?,
|
|
1947
|
+
self.read_var_u32()?,
|
|
1948
|
+
),
|
|
1949
|
+
0x5f => visitor.visit_struct_atomic_set(
|
|
1950
|
+
self.read_ordering()?,
|
|
1951
|
+
self.read_var_u32()?,
|
|
1952
|
+
self.read_var_u32()?,
|
|
1953
|
+
),
|
|
1954
|
+
0x60 => visitor.visit_struct_atomic_rmw_add(
|
|
1955
|
+
self.read_ordering()?,
|
|
1956
|
+
self.read_var_u32()?,
|
|
1957
|
+
self.read_var_u32()?,
|
|
1958
|
+
),
|
|
1959
|
+
0x61 => visitor.visit_struct_atomic_rmw_sub(
|
|
1960
|
+
self.read_ordering()?,
|
|
1961
|
+
self.read_var_u32()?,
|
|
1962
|
+
self.read_var_u32()?,
|
|
1963
|
+
),
|
|
1964
|
+
0x62 => visitor.visit_struct_atomic_rmw_and(
|
|
1965
|
+
self.read_ordering()?,
|
|
1966
|
+
self.read_var_u32()?,
|
|
1967
|
+
self.read_var_u32()?,
|
|
1968
|
+
),
|
|
1969
|
+
0x63 => visitor.visit_struct_atomic_rmw_or(
|
|
1970
|
+
self.read_ordering()?,
|
|
1971
|
+
self.read_var_u32()?,
|
|
1972
|
+
self.read_var_u32()?,
|
|
1973
|
+
),
|
|
1974
|
+
0x64 => visitor.visit_struct_atomic_rmw_xor(
|
|
1975
|
+
self.read_ordering()?,
|
|
1976
|
+
self.read_var_u32()?,
|
|
1977
|
+
self.read_var_u32()?,
|
|
1978
|
+
),
|
|
1979
|
+
0x65 => visitor.visit_struct_atomic_rmw_xchg(
|
|
1980
|
+
self.read_ordering()?,
|
|
1981
|
+
self.read_var_u32()?,
|
|
1982
|
+
self.read_var_u32()?,
|
|
1983
|
+
),
|
|
1984
|
+
0x66 => visitor.visit_struct_atomic_rmw_cmpxchg(
|
|
1985
|
+
self.read_ordering()?,
|
|
1986
|
+
self.read_var_u32()?,
|
|
1987
|
+
self.read_var_u32()?,
|
|
1988
|
+
),
|
|
1989
|
+
0x67 => visitor.visit_array_atomic_get(self.read_ordering()?, self.read_var_u32()?),
|
|
1990
|
+
0x68 => visitor.visit_array_atomic_get_s(self.read_ordering()?, self.read_var_u32()?),
|
|
1991
|
+
0x69 => visitor.visit_array_atomic_get_u(self.read_ordering()?, self.read_var_u32()?),
|
|
1992
|
+
0x6a => visitor.visit_array_atomic_set(self.read_ordering()?, self.read_var_u32()?),
|
|
1993
|
+
0x6b => visitor.visit_array_atomic_rmw_add(self.read_ordering()?, self.read_var_u32()?),
|
|
1994
|
+
0x6c => visitor.visit_array_atomic_rmw_sub(self.read_ordering()?, self.read_var_u32()?),
|
|
1995
|
+
0x6d => visitor.visit_array_atomic_rmw_and(self.read_ordering()?, self.read_var_u32()?),
|
|
1996
|
+
0x6e => visitor.visit_array_atomic_rmw_or(self.read_ordering()?, self.read_var_u32()?),
|
|
1997
|
+
0x6f => visitor.visit_array_atomic_rmw_xor(self.read_ordering()?, self.read_var_u32()?),
|
|
1998
|
+
0x70 => {
|
|
1999
|
+
visitor.visit_array_atomic_rmw_xchg(self.read_ordering()?, self.read_var_u32()?)
|
|
2000
|
+
}
|
|
2001
|
+
0x71 => {
|
|
2002
|
+
visitor.visit_array_atomic_rmw_cmpxchg(self.read_ordering()?, self.read_var_u32()?)
|
|
2003
|
+
}
|
|
2004
|
+
0x72 => visitor.visit_ref_i31_shared(),
|
|
2005
|
+
|
|
2006
|
+
_ => bail!(pos, "unknown 0xfe subopcode: 0x{code:x}"),
|
|
2007
|
+
})
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
fn read_memarg(&mut self, max_align: u8) -> Result<MemArg> {
|
|
2011
|
+
let flags_pos = self.original_position();
|
|
2012
|
+
let mut flags = self.read_var_u32()?;
|
|
2013
|
+
|
|
2014
|
+
let memory = if self.multi_memory() && flags & (1 << 6) != 0 {
|
|
2015
|
+
flags ^= 1 << 6;
|
|
2016
|
+
self.read_var_u32()?
|
|
2017
|
+
} else {
|
|
2018
|
+
0
|
|
2019
|
+
};
|
|
2020
|
+
let max_flag_bits = if self.multi_memory() { 6 } else { 5 };
|
|
2021
|
+
if flags >= (1 << max_flag_bits) {
|
|
2022
|
+
return Err(BinaryReaderError::new(
|
|
2023
|
+
"malformed memop alignment: alignment too large",
|
|
2024
|
+
flags_pos,
|
|
2025
|
+
));
|
|
2026
|
+
}
|
|
2027
|
+
let align = flags as u8;
|
|
2028
|
+
let offset = if self.memory64() {
|
|
2029
|
+
self.read_var_u64()?
|
|
2030
|
+
} else {
|
|
2031
|
+
u64::from(self.read_var_u32()?)
|
|
2032
|
+
};
|
|
2033
|
+
Ok(MemArg {
|
|
2034
|
+
align,
|
|
2035
|
+
max_align,
|
|
2036
|
+
offset,
|
|
2037
|
+
memory,
|
|
2038
|
+
})
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
fn read_ordering(&mut self) -> Result<Ordering> {
|
|
2042
|
+
let byte = self.read_var_u32()?;
|
|
2043
|
+
match byte {
|
|
2044
|
+
0 => Ok(Ordering::SeqCst),
|
|
2045
|
+
1 => Ok(Ordering::AcqRel),
|
|
2046
|
+
x => Err(BinaryReaderError::new(
|
|
2047
|
+
&format!("invalid atomic consistency ordering {x}"),
|
|
2048
|
+
self.original_position() - 1,
|
|
2049
|
+
)),
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
fn read_br_table(&mut self) -> Result<BrTable<'a>> {
|
|
2054
|
+
let cnt = self.read_size(MAX_WASM_BR_TABLE_SIZE, "br_table")?;
|
|
2055
|
+
let reader = self.skip(|reader| {
|
|
2056
|
+
for _ in 0..cnt {
|
|
2057
|
+
reader.read_var_u32()?;
|
|
2058
|
+
}
|
|
2059
|
+
Ok(())
|
|
2060
|
+
})?;
|
|
2061
|
+
let default = self.read_var_u32()?;
|
|
2062
|
+
Ok(BrTable {
|
|
2063
|
+
reader,
|
|
2064
|
+
cnt: cnt as u32,
|
|
2065
|
+
default,
|
|
2066
|
+
})
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
#[cfg(feature = "simd")]
|
|
2070
|
+
fn read_lane_index(&mut self) -> Result<u8> {
|
|
2071
|
+
self.read_u8()
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
#[cfg(feature = "simd")]
|
|
2075
|
+
fn read_v128(&mut self) -> Result<V128> {
|
|
2076
|
+
let mut bytes = [0; 16];
|
|
2077
|
+
bytes.clone_from_slice(self.read_bytes(16)?);
|
|
2078
|
+
Ok(V128(bytes))
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
fn read_memory_index_or_zero_if_not_multi_memory(&mut self) -> Result<u32> {
|
|
2082
|
+
if self.multi_memory() {
|
|
2083
|
+
self.read_var_u32()
|
|
2084
|
+
} else {
|
|
2085
|
+
// Before bulk memory this byte was required to be a single zero
|
|
2086
|
+
// byte, not a LEB-encoded zero, so require a precise zero byte.
|
|
2087
|
+
match self.read_u8()? {
|
|
2088
|
+
0 => Ok(0),
|
|
2089
|
+
_ => bail!(self.original_position() - 1, "zero byte expected"),
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
fn read_call_indirect_table_immediate(&mut self) -> Result<u32> {
|
|
2095
|
+
// If the `call_indirect_overlong` feature is enabled, then read this
|
|
2096
|
+
// immediate as a LEB. This feature is enabled as part of the
|
|
2097
|
+
// `reference_types` feature or the `lime1` feature.
|
|
2098
|
+
if self.call_indirect_overlong() {
|
|
2099
|
+
return self.read_var_u32();
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
// Before reference types this byte was required to be a single zero
|
|
2103
|
+
// byte, not a LEB-encoded zero, so require a precise zero byte.
|
|
2104
|
+
match self.read_u8()? {
|
|
2105
|
+
0 => Ok(0),
|
|
2106
|
+
_ => bail!(self.original_position() - 1, "zero byte expected"),
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
}
|