diff --git a/Cargo.lock b/Cargo.lock index 02a11f591..320e442ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -25,9 +25,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.91" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c042108f3ed77fd83760a5fd79b53be043192bb3b9dba91d8c574c0ada7850c8" +checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775" [[package]] name = "atty" @@ -81,7 +81,7 @@ dependencies = [ "bitflags 1.3.2", "strsim", "textwrap", - "unicode-width", + "unicode-width 0.1.14", "vec_map", ] @@ -93,9 +93,9 @@ checksum = "67ba02a97a2bd10f4b59b25c7973101c79642302776489e030cd13cdab09ed15" [[package]] name = "cranelift-bitset" -version = "0.113.0" +version = "0.114.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ab25ef3be935a80680e393183e1f94ef507e93a24a8369494d2c6818aedb3e3" +checksum = "005884e3649c3e5ff2dc79e8a94b138f11569cc08a91244a292714d2a86e9156" dependencies = [ "serde", "serde_derive", @@ -103,9 +103,9 @@ dependencies = [ [[package]] name = "cranelift-entity" -version = "0.113.0" +version = "0.114.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2d770e6605eccee15b49decdd82cd26f2b6404767802471459ea49c57379a98" +checksum = "305399fd781a2953ac78c1396f02ff53144f39c33eb7fc7789cf4e8936d13a96" dependencies = [ "cranelift-bitset", "serde", @@ -178,9 +178,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.15.0" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb" +checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" dependencies = [ "foldhash", ] @@ -222,7 +222,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" dependencies = [ "equivalent", - "hashbrown 0.15.0", + "hashbrown 0.15.1", "serde", ] @@ -237,9 +237,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +checksum = "7a73e9fe3c49d7afb2ace819fa181a287ce54a0983eda4e0eb05c22f82ffe534" [[package]] name = "jco" @@ -257,8 +257,8 @@ dependencies = [ "heck 0.5.0", "log", "semver", - "wasm-encoder 0.218.0", - "wasmparser 0.218.0", + "wasm-encoder 0.219.1", + "wasmparser 0.219.1", "wasmtime-environ", "wit-bindgen-core", "wit-component", @@ -290,9 +290,9 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" [[package]] name = "libc" -version = "0.2.161" +version = "0.2.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1" +checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" [[package]] name = "log" @@ -323,7 +323,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" dependencies = [ "crc32fast", - "hashbrown 0.15.0", + "hashbrown 0.15.1", "indexmap", "memchr", ] @@ -363,7 +363,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" dependencies = [ "proc-macro2", - "syn 2.0.85", + "syn 2.0.87", ] [[package]] @@ -425,29 +425,29 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.214" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f55c3193aca71c12ad7890f1785d2b73e1b9f63a0bbc353c08ef26fe03fc56b5" +checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.214" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766" +checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.85", + "syn 2.0.87", ] [[package]] name = "serde_json" -version = "1.0.132" +version = "1.0.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" +checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" dependencies = [ "itoa", "memchr", @@ -466,9 +466,9 @@ dependencies = [ [[package]] name = "spdx" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47317bbaf63785b53861e1ae2d11b80d6b624211d42cb20efcd210ee6f8a14bc" +checksum = "bae30cc7bfe3656d60ee99bf6836f472b0c53dddcbf335e253329abb16e535a2" dependencies = [ "smallvec", ] @@ -516,9 +516,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.85" +version = "2.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5023162dfcd14ef8f32034d8bcd4cc5ddc61ef7a247c024a33e24e1f24d21b56" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" dependencies = [ "proc-macro2", "quote", @@ -546,14 +546,14 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" dependencies = [ - "unicode-width", + "unicode-width 0.1.14", ] [[package]] name = "unicode-ident" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" +checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" [[package]] name = "unicode-segmentation" @@ -567,6 +567,12 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" +[[package]] +name = "unicode-width" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" + [[package]] name = "unicode-xid" version = "0.2.6" @@ -587,29 +593,29 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "wasm-encoder" -version = "0.218.0" +version = "0.219.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22b896fa8ceb71091ace9bcb81e853f54043183a1c9667cf93422c40252ffa0a" +checksum = "29cbbd772edcb8e7d524a82ee8cef8dd046fc14033796a754c3ad246d019fa54" dependencies = [ "leb128", - "wasmparser 0.218.0", + "wasmparser 0.219.1", ] [[package]] name = "wasm-encoder" -version = "0.219.1" +version = "0.220.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29cbbd772edcb8e7d524a82ee8cef8dd046fc14033796a754c3ad246d019fa54" +checksum = "ebf48234b389415b226a4daef6562933d38c7b28a8b8f64c5c4130dad1561ab7" dependencies = [ "leb128", - "wasmparser 0.219.1", + "wasmparser 0.220.0", ] [[package]] name = "wasm-metadata" -version = "0.218.0" +version = "0.219.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa5eeb071abe8a2132fdd5565dabffee70775ee8c24fc7e300ac43f51f4a8a91" +checksum = "2af5a8e37a5e996861e1813f8de30911c47609c9ff51a7284f7dbd754dc3a9f3" dependencies = [ "anyhow", "indexmap", @@ -617,8 +623,8 @@ dependencies = [ "serde_derive", "serde_json", "spdx", - "wasm-encoder 0.218.0", - "wasmparser 0.218.0", + "wasm-encoder 0.219.1", + "wasmparser 0.219.1", ] [[package]] @@ -626,9 +632,9 @@ name = "wasm-tools-js" version = "0.1.0" dependencies = [ "anyhow", - "wasm-encoder 0.218.0", + "wasm-encoder 0.219.1", "wasm-metadata", - "wasmparser 0.218.0", + "wasmparser 0.219.1", "wasmprinter", "wat", "wit-bindgen", @@ -638,9 +644,9 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.218.0" +version = "0.219.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b09e46c7fceceaa72b2dd1a8a137ea7fd8f93dfaa69806010a709918e496c5dc" +checksum = "5c771866898879073c53b565a6c7b49953795159836714ac56a5befb581227c5" dependencies = [ "ahash", "bitflags 2.6.0", @@ -652,9 +658,9 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.219.1" +version = "0.220.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c771866898879073c53b565a6c7b49953795159836714ac56a5befb581227c5" +checksum = "e246c2772ce3ebc83f89a2d4487ac5794cad6c309b2071818a88c7db7c36d87b" dependencies = [ "bitflags 2.6.0", "indexmap", @@ -662,26 +668,26 @@ dependencies = [ [[package]] name = "wasmprinter" -version = "0.218.0" +version = "0.219.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ace089155491837b75f474bf47c99073246d1b737393fe722d6dee311595ddc" +checksum = "228cdc1f30c27816da225d239ce4231f28941147d34713dee8f1fff7cb330e54" dependencies = [ "anyhow", "termcolor", - "wasmparser 0.218.0", + "wasmparser 0.219.1", ] [[package]] name = "wasmtime-component-util" -version = "26.0.0" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfe3c27d64af5f584014db9381c081223d27a57e1dce2f6280bbafea37575619" +checksum = "4a6db4f3ee18c699629eabb9c64e77efe5a93a5137f098db7cab295037ba41c2" [[package]] name = "wasmtime-environ" -version = "26.0.0" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3444c1759d5b906ff76a3cab073dd92135bdd06e5d1f46635ec40a58207d314" +checksum = "c25bfeaa16432d59a0706e2463d315ef4c9ebcfaf5605670b99d46373bdf9f27" dependencies = [ "anyhow", "cranelift-bitset", @@ -696,30 +702,30 @@ dependencies = [ "serde_derive", "smallvec", "target-lexicon", - "wasm-encoder 0.218.0", - "wasmparser 0.218.0", + "wasm-encoder 0.219.1", + "wasmparser 0.219.1", "wasmprinter", "wasmtime-component-util", ] [[package]] name = "wast" -version = "219.0.1" +version = "220.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f79a9d9df79986a68689a6b40bcc8d5d40d807487b235bebc2ac69a242b54a1" +checksum = "4e708c8de08751fd66e70961a32bae9d71901f14a70871e181cb8461a3bb3165" dependencies = [ "bumpalo", "leb128", "memchr", - "unicode-width", - "wasm-encoder 0.219.1", + "unicode-width 0.2.0", + "wasm-encoder 0.220.0", ] [[package]] name = "wat" -version = "1.219.1" +version = "1.220.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bc3cf014fb336883a411cd662f987abf6a1d2a27f2f0008616a0070bbf6bd0d" +checksum = "de4f1d7d59614ba690541360102b995c4eb1b9ed373701d5102cc1a968b1c5a3" dependencies = [ "wast", ] @@ -851,9 +857,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "wit-bindgen" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fcf26778671a2327bd237a32c6f2d1d9bb0ec077e482b0839552b00d4566544" +checksum = "7e11ad55616555605a60a8b2d1d89e006c2076f46c465c892cc2c153b20d4b30" dependencies = [ "wit-bindgen-rt", "wit-bindgen-rust-macro", @@ -861,9 +867,9 @@ dependencies = [ [[package]] name = "wit-bindgen-core" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b885a00e1c428fd12b7b7c4bccc4bad8b2a3ca0abe8eaf1e0f90adabb4c7ac7" +checksum = "163cee59d3d5ceec0b256735f3ab0dccac434afb0ec38c406276de9c5a11e906" dependencies = [ "anyhow", "heck 0.5.0", @@ -872,24 +878,24 @@ dependencies = [ [[package]] name = "wit-bindgen-rt" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c" +checksum = "744845cde309b8fa32408d6fb67456449278c66ea4dcd96de29797b302721f02" dependencies = [ "bitflags 2.6.0", ] [[package]] name = "wit-bindgen-rust" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "542608877814a54f6bea6b24dcbe249a2e293d67d709f4f8ec578d06b1c00730" +checksum = "f6919521fc7807f927a739181db93100ca7ed03c29509b84d5f96b27b2e49a9a" dependencies = [ "anyhow", "heck 0.5.0", "indexmap", "prettyplease", - "syn 2.0.85", + "syn 2.0.87", "wasm-metadata", "wit-bindgen-core", "wit-component", @@ -897,24 +903,24 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-macro" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30d462025f670fff96606ddbfe62500255b4fe3de7298cd9cbabb2de3d567183" +checksum = "c967731fc5d50244d7241ecfc9302a8929db508eea3c601fbc5371b196ba38a5" dependencies = [ "anyhow", "prettyplease", "proc-macro2", "quote", - "syn 2.0.85", + "syn 2.0.87", "wit-bindgen-core", "wit-bindgen-rust", ] [[package]] name = "wit-component" -version = "0.218.0" +version = "0.219.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa53aa7e6bf2b3e8ccaffbcc963fbdb672a603dc0af393a481b6cec24c266406" +checksum = "ad1673163c0cb14a6a19ddbf44dd4efe6f015ec1ebb8156710ac32501f19fba2" dependencies = [ "anyhow", "bitflags 2.6.0", @@ -923,9 +929,9 @@ dependencies = [ "serde", "serde_derive", "serde_json", - "wasm-encoder 0.218.0", + "wasm-encoder 0.219.1", "wasm-metadata", - "wasmparser 0.218.0", + "wasmparser 0.219.1", "wat", "wit-parser", ] @@ -943,9 +949,9 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.218.0" +version = "0.219.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d3d1066ab761b115f97fef2b191090faabcb0f37b555b758d3caf42d4ed9e55" +checksum = "4a86f669283257e8e424b9a4fc3518e3ade0b95deb9fbc0f93a1876be3eda598" dependencies = [ "anyhow", "id-arena", @@ -956,23 +962,23 @@ dependencies = [ "serde_derive", "serde_json", "unicode-xid", - "wasmparser 0.218.0", + "wasmparser 0.219.1", ] [[package]] name = "xshell" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db0ab86eae739efd1b054a8d3d16041914030ac4e01cd1dca0cf252fd8b6437" +checksum = "9e7290c623014758632efe00737145b6867b66292c42167f2ec381eb566a373d" dependencies = [ "xshell-macros", ] [[package]] name = "xshell-macros" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d422e8e38ec76e2f06ee439ccc765e9c6a9638b9e7c9f2e8255e4d41e8bd852" +checksum = "32ac00cd3f8ec9c1d33fb3e7958a82df6989c42d747bd326c822b1d625283547" [[package]] name = "xtask" @@ -1012,5 +1018,5 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.85", + "syn 2.0.87", ] diff --git a/Cargo.toml b/Cargo.toml index 02a64cc40..eca253abd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,19 +41,19 @@ log = "0.4.22" semver = "1.0.23" js-component-bindgen = { path = "./crates/js-component-bindgen" } structopt = "0.3.26" -wasm-encoder = "0.218.0" -wasm-metadata = "0.218.0" -wasmparser = "0.218.0" -wasmprinter = "0.218.0" -wasmtime-environ = { version = "26.0.0", features = [ +wasm-encoder = "0.219.1" +wasm-metadata = "0.219.1" +wasmparser = "0.219.1" +wasmprinter = "0.219.1" +wasmtime-environ = { version = "27.0.0", features = [ "component-model", "compile", ] } wat = "1.218.0" -wit-bindgen = "0.33.0" -wit-bindgen-core = "0.33.0" -wit-component = { version = "0.218.0", features = ["dummy-module"] } -wit-parser = "0.218.0" +wit-bindgen = "0.34.0" +wit-bindgen-core = "0.34.0" +wit-component = { version = "0.219.1", features = ["dummy-module"] } +wit-parser = "0.219.1" xshell = "0.2.6" [dev-dependencies] diff --git a/crates/js-component-bindgen/src/core.rs b/crates/js-component-bindgen/src/core.rs index b01583830..4f4736085 100644 --- a/crates/js-component-bindgen/src/core.rs +++ b/crates/js-component-bindgen/src/core.rs @@ -218,9 +218,6 @@ impl Augmenter<'_> { // records various bits of information about the module within `self`. for payload in Parser::new(0).parse_all(self.translation.wasm) { match payload? { - Payload::Version { .. } => {} - Payload::End(_) => {} - Payload::TypeSection(s) => { for grp in s.into_iter_err_on_gc_types() { self.types.push(grp?); @@ -246,29 +243,22 @@ impl Augmenter<'_> { self.imports.push(i); } } - Payload::ExportSection(s) => { for e in s { let e = e?; self.exports.push(e); } } - Payload::FunctionSection(s) => { for ty in s { let ty = ty?; self.local_func_tys.push(ty); } } - - Payload::CodeSectionStart { .. } => {} Payload::CodeSectionEntry(body) => { self.local_funcs.push(body); } - // Ignore all custom sections for now - Payload::CustomSection(_) => {} - // NB: these sections are theoretically possible to handle but // are not required at this time. Payload::DataCountSection { .. } @@ -297,6 +287,8 @@ impl Augmenter<'_> { | Payload::ComponentTypeSection(_) => { bail!("component section found in module using multiple memories") } + + _ => {} } } diff --git a/crates/wasm-tools-component/src/lib.rs b/crates/wasm-tools-component/src/lib.rs index 64fb4e8f9..75bedcc36 100644 --- a/crates/wasm-tools-component/src/lib.rs +++ b/crates/wasm-tools-component/src/lib.rs @@ -4,7 +4,7 @@ use std::path::PathBuf; use wasm_encoder::{Encode, Section}; use wasm_metadata::Producers; use wit_component::{ComponentEncoder, DecodedWasm, WitPrinter}; -use wit_parser::Resolve; +use wit_parser::{Mangling, Resolve}; use exports::local::wasm_tools::tools::{ EmbedOpts, EnabledFeatureSet, Guest, ModuleMetaType, ModuleMetadata, ProducersFields, @@ -122,7 +122,7 @@ impl Guest for WasmToolsJs { .. } ) { - wit_component::dummy_module(&resolve, world) + wit_component::dummy_module(&resolve, world, Mangling::Standard32) } else { if binary.is_none() { return Err( diff --git a/lib/wasi_snapshot_preview1.command.wasm b/lib/wasi_snapshot_preview1.command.wasm index 61cb60a1c..645dbd06a 100644 Binary files a/lib/wasi_snapshot_preview1.command.wasm and b/lib/wasi_snapshot_preview1.command.wasm differ diff --git a/lib/wasi_snapshot_preview1.reactor.wasm b/lib/wasi_snapshot_preview1.reactor.wasm index c91abe378..f65b51ee3 100644 Binary files a/lib/wasi_snapshot_preview1.reactor.wasm and b/lib/wasi_snapshot_preview1.reactor.wasm differ diff --git a/submodules/WASI-Virt b/submodules/WASI-Virt index 8900d799f..4ea3e769b 160000 --- a/submodules/WASI-Virt +++ b/submodules/WASI-Virt @@ -1 +1 @@ -Subproject commit 8900d799fa38a43ad5f55d446e8acf6df1a53adb +Subproject commit 4ea3e769b396df1f894b65a8095904846c6f3ca3 diff --git a/submodules/wasm-tools b/submodules/wasm-tools index c9218cf2f..8f17e78ac 160000 --- a/submodules/wasm-tools +++ b/submodules/wasm-tools @@ -1 +1 @@ -Subproject commit c9218cf2f439ff38bdb6fbf172fcc237b971ea03 +Subproject commit 8f17e78ac927c8af60a46f81e2ee0e22d96c743b diff --git a/submodules/wasmtime b/submodules/wasmtime index e01f9508f..d9a6d5a9e 160000 --- a/submodules/wasmtime +++ b/submodules/wasmtime @@ -1 +1 @@ -Subproject commit e01f9508f71ef176de2e517672fcc440ce9ff478 +Subproject commit d9a6d5a9edb07e1893725d89c71ec2795b1cf9a8 diff --git a/submodules/wit-bindgen b/submodules/wit-bindgen index 20d33b525..d92b53b26 160000 --- a/submodules/wit-bindgen +++ b/submodules/wit-bindgen @@ -1 +1 @@ -Subproject commit 20d33b525e766451a621f57a48d5d2cbe7f779fd +Subproject commit d92b53b261433e946c144349298d079b14f1dbc1 diff --git a/test/api.js b/test/api.js index ee9197842..57e9d4f0c 100644 --- a/test/api.js +++ b/test/api.js @@ -148,13 +148,13 @@ export async function apiTest(_fixtures) { const meta = await metadataShow(newComponent); deepStrictEqual(meta[0].metaType, { tag: "component", - val: 4, + val: 5, }); deepStrictEqual(meta[1].producers, [ [ "processed-by", [ - ["wit-component", "0.218.0"], + ["wit-component", "0.219.1"], ["dummy-gen", "test"], ], ], @@ -189,13 +189,13 @@ export async function apiTest(_fixtures) { const meta = await metadataShow(newComponent); deepStrictEqual(meta[0].metaType, { tag: "component", - val: 1, + val: 2, }); deepStrictEqual(meta[1].producers, [ [ "processed-by", [ - ["wit-component", "0.218.0"], + ["wit-component", "0.219.1"], ["dummy-gen", "test"], ], ], diff --git a/test/cli.js b/test/cli.js index 806aed85b..923f051c4 100644 --- a/test/cli.js +++ b/test/cli.js @@ -455,12 +455,12 @@ export async function cliTest(_fixtures) { ); strictEqual(stderr, ""); const meta = JSON.parse(stdout); - deepStrictEqual(meta[0].metaType, { tag: "component", val: 4 }); + deepStrictEqual(meta[0].metaType, { tag: "component", val: 5 }); deepStrictEqual(meta[1].producers, [ [ "processed-by", [ - ["wit-component", "0.218.0"], + ["wit-component", "0.219.1"], ["dummy-gen", "test"], ], ], diff --git a/test/fixtures/components/borrowing-duplicate-if-necessary.component.wasm b/test/fixtures/components/borrowing-duplicate-if-necessary.component.wasm index f9e2cabcd..b4b890403 100644 Binary files a/test/fixtures/components/borrowing-duplicate-if-necessary.component.wasm and b/test/fixtures/components/borrowing-duplicate-if-necessary.component.wasm differ diff --git a/test/fixtures/components/borrowing.component.wasm b/test/fixtures/components/borrowing.component.wasm index 05ff43ad3..bb70fb7ab 100644 Binary files a/test/fixtures/components/borrowing.component.wasm and b/test/fixtures/components/borrowing.component.wasm differ diff --git a/test/fixtures/components/flavorful.component.wasm b/test/fixtures/components/flavorful.component.wasm index 18cb52573..176e94185 100644 Binary files a/test/fixtures/components/flavorful.component.wasm and b/test/fixtures/components/flavorful.component.wasm differ diff --git a/test/fixtures/components/import-fn.component.wasm b/test/fixtures/components/import-fn.component.wasm index 6b395f795..a92cf44fb 100644 Binary files a/test/fixtures/components/import-fn.component.wasm and b/test/fixtures/components/import-fn.component.wasm differ diff --git a/test/fixtures/components/lists.component.wasm b/test/fixtures/components/lists.component.wasm index b5edd5b6a..9f828b594 100644 Binary files a/test/fixtures/components/lists.component.wasm and b/test/fixtures/components/lists.component.wasm differ diff --git a/test/fixtures/components/many-arguments.component.wasm b/test/fixtures/components/many-arguments.component.wasm index e332bd036..50b6a3205 100644 Binary files a/test/fixtures/components/many-arguments.component.wasm and b/test/fixtures/components/many-arguments.component.wasm differ diff --git a/test/fixtures/components/many_arguments.component.wasm b/test/fixtures/components/many_arguments.component.wasm index 6182615e3..07c9d7832 100644 Binary files a/test/fixtures/components/many_arguments.component.wasm and b/test/fixtures/components/many_arguments.component.wasm differ diff --git a/test/fixtures/components/numbers.component.wasm b/test/fixtures/components/numbers.component.wasm index 2edd5befd..391e6f8a8 100644 Binary files a/test/fixtures/components/numbers.component.wasm and b/test/fixtures/components/numbers.component.wasm differ diff --git a/test/fixtures/components/options.component.wasm b/test/fixtures/components/options.component.wasm index df0b58f36..2b022c7b8 100644 Binary files a/test/fixtures/components/options.component.wasm and b/test/fixtures/components/options.component.wasm differ diff --git a/test/fixtures/components/other-dependencies.component.wasm b/test/fixtures/components/other-dependencies.component.wasm index fb55ccc50..72f17be81 100644 Binary files a/test/fixtures/components/other-dependencies.component.wasm and b/test/fixtures/components/other-dependencies.component.wasm differ diff --git a/test/fixtures/components/owning.component.wasm b/test/fixtures/components/owning.component.wasm index d4efade1c..3b575fcd6 100644 Binary files a/test/fixtures/components/owning.component.wasm and b/test/fixtures/components/owning.component.wasm differ diff --git a/test/fixtures/components/records.component.wasm b/test/fixtures/components/records.component.wasm index 3560ee9e4..213d4d1d8 100644 Binary files a/test/fixtures/components/records.component.wasm and b/test/fixtures/components/records.component.wasm differ diff --git a/test/fixtures/components/resource-borrow-simple.component.wasm b/test/fixtures/components/resource-borrow-simple.component.wasm index b7c1b2d58..32d8acfe8 100644 Binary files a/test/fixtures/components/resource-borrow-simple.component.wasm and b/test/fixtures/components/resource-borrow-simple.component.wasm differ diff --git a/test/fixtures/components/resource-import-and-export.component.wasm b/test/fixtures/components/resource-import-and-export.component.wasm index 3ec3d6879..958ab3dca 100644 Binary files a/test/fixtures/components/resource-import-and-export.component.wasm and b/test/fixtures/components/resource-import-and-export.component.wasm differ diff --git a/test/fixtures/components/resource_aggregates.component.wasm b/test/fixtures/components/resource_aggregates.component.wasm index 850677a8c..564295cf3 100644 Binary files a/test/fixtures/components/resource_aggregates.component.wasm and b/test/fixtures/components/resource_aggregates.component.wasm differ diff --git a/test/fixtures/components/resource_alias.component.wasm b/test/fixtures/components/resource_alias.component.wasm index 1dafc240f..b7c354a4c 100644 Binary files a/test/fixtures/components/resource_alias.component.wasm and b/test/fixtures/components/resource_alias.component.wasm differ diff --git a/test/fixtures/components/resource_alias_redux.component.wasm b/test/fixtures/components/resource_alias_redux.component.wasm index d2a32aad6..af69ad23f 100644 Binary files a/test/fixtures/components/resource_alias_redux.component.wasm and b/test/fixtures/components/resource_alias_redux.component.wasm differ diff --git a/test/fixtures/components/resource_borrow_export.component.wasm b/test/fixtures/components/resource_borrow_export.component.wasm index 8bccb6cc7..43315dce3 100644 Binary files a/test/fixtures/components/resource_borrow_export.component.wasm and b/test/fixtures/components/resource_borrow_export.component.wasm differ diff --git a/test/fixtures/components/resource_borrow_import.component.wasm b/test/fixtures/components/resource_borrow_import.component.wasm index 573740540..d6b53fe55 100644 Binary files a/test/fixtures/components/resource_borrow_import.component.wasm and b/test/fixtures/components/resource_borrow_import.component.wasm differ diff --git a/test/fixtures/components/resource_borrow_in_record.component.wasm b/test/fixtures/components/resource_borrow_in_record.component.wasm index 895f11c21..ee40d572a 100644 Binary files a/test/fixtures/components/resource_borrow_in_record.component.wasm and b/test/fixtures/components/resource_borrow_in_record.component.wasm differ diff --git a/test/fixtures/components/resource_borrow_simple.component.wasm b/test/fixtures/components/resource_borrow_simple.component.wasm index 32110409d..002fc0b2a 100644 Binary files a/test/fixtures/components/resource_borrow_simple.component.wasm and b/test/fixtures/components/resource_borrow_simple.component.wasm differ diff --git a/test/fixtures/components/resource_floats.component.wasm b/test/fixtures/components/resource_floats.component.wasm index f429640e5..7be36ba95 100644 Binary files a/test/fixtures/components/resource_floats.component.wasm and b/test/fixtures/components/resource_floats.component.wasm differ diff --git a/test/fixtures/components/resource_import_and_export.component.wasm b/test/fixtures/components/resource_import_and_export.component.wasm index 9ef96fa8e..169437ec8 100644 Binary files a/test/fixtures/components/resource_import_and_export.component.wasm and b/test/fixtures/components/resource_import_and_export.component.wasm differ diff --git a/test/fixtures/components/resource_into_inner.component.wasm b/test/fixtures/components/resource_into_inner.component.wasm index d592d556b..e2ad6c17b 100644 Binary files a/test/fixtures/components/resource_into_inner.component.wasm and b/test/fixtures/components/resource_into_inner.component.wasm differ diff --git a/test/fixtures/components/resource_with_lists.component.wasm b/test/fixtures/components/resource_with_lists.component.wasm index 7b1c4ab53..3ef09bedc 100644 Binary files a/test/fixtures/components/resource_with_lists.component.wasm and b/test/fixtures/components/resource_with_lists.component.wasm differ diff --git a/test/fixtures/components/resources.component.wasm b/test/fixtures/components/resources.component.wasm index b16da4ec7..58d5453ad 100644 Binary files a/test/fixtures/components/resources.component.wasm and b/test/fixtures/components/resources.component.wasm differ diff --git a/test/fixtures/components/results.component.wasm b/test/fixtures/components/results.component.wasm index e511fa592..7583f8804 100644 Binary files a/test/fixtures/components/results.component.wasm and b/test/fixtures/components/results.component.wasm differ diff --git a/test/fixtures/components/rust_xcrate.component.wasm b/test/fixtures/components/rust_xcrate.component.wasm index f468741d7..a5229f25a 100644 Binary files a/test/fixtures/components/rust_xcrate.component.wasm and b/test/fixtures/components/rust_xcrate.component.wasm differ diff --git a/test/fixtures/components/smoke.component.wasm b/test/fixtures/components/smoke.component.wasm index d6b2bd4ec..51ef235b2 100644 Binary files a/test/fixtures/components/smoke.component.wasm and b/test/fixtures/components/smoke.component.wasm differ diff --git a/test/fixtures/components/strings.component.wasm b/test/fixtures/components/strings.component.wasm index ffb07172b..3f6e6f7dc 100644 Binary files a/test/fixtures/components/strings.component.wasm and b/test/fixtures/components/strings.component.wasm differ diff --git a/test/fixtures/components/type_section_suffix.component.wasm b/test/fixtures/components/type_section_suffix.component.wasm index d6a72b8cf..33df31622 100644 Binary files a/test/fixtures/components/type_section_suffix.component.wasm and b/test/fixtures/components/type_section_suffix.component.wasm differ diff --git a/test/fixtures/components/variants.component.wasm b/test/fixtures/components/variants.component.wasm index 82af0cdb0..e437cdb10 100644 Binary files a/test/fixtures/components/variants.component.wasm and b/test/fixtures/components/variants.component.wasm differ diff --git a/test/fixtures/components/versions.component.wasm b/test/fixtures/components/versions.component.wasm index ac646eca6..898edcf19 100644 Binary files a/test/fixtures/components/versions.component.wasm and b/test/fixtures/components/versions.component.wasm differ diff --git a/test/fixtures/env-allow.composed.wasm b/test/fixtures/env-allow.composed.wasm index a88c61a40..a14801de9 100644 Binary files a/test/fixtures/env-allow.composed.wasm and b/test/fixtures/env-allow.composed.wasm differ diff --git a/test/fixtures/stdio.composed.wasm b/test/fixtures/stdio.composed.wasm index 6824b167d..50e79ea10 100644 Binary files a/test/fixtures/stdio.composed.wasm and b/test/fixtures/stdio.composed.wasm differ