diff --git a/Cargo.lock b/Cargo.lock index 9389a8a10ac5..8d24b3e07b93 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1351,7 +1351,7 @@ dependencies = [ name = "example-component-wasm" version = "0.0.0" dependencies = [ - "wit-bindgen 0.63.0", + "wit-bindgen 0.64.0", ] [[package]] @@ -1362,7 +1362,7 @@ version = "0.0.0" name = "example-resource-component-wasm" version = "0.1.0" dependencies = [ - "wit-bindgen 0.63.0", + "wit-bindgen 0.64.0", ] [[package]] @@ -2224,14 +2224,14 @@ dependencies = [ [[package]] name = "json-from-wast" -version = "0.263.0" +version = "0.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22fa7acd574900a0144c8e6c4d99425c613c42d5e749a79fd86ab81b0b67cce4" +checksum = "e44446f2558e40fa13adfe74db1b38fbc44b98116e18151de68fd0f378e61761" dependencies = [ "anyhow", "serde", "serde_derive", - "wast 263.0.0", + "wast 264.0.0", ] [[package]] @@ -3818,7 +3818,7 @@ dependencies = [ "wasi-nn", "wasip1", "wasip2", - "wit-bindgen 0.63.0", + "wit-bindgen 0.64.0", ] [[package]] @@ -3833,7 +3833,7 @@ dependencies = [ "wasmtime", "wasmtime-test-util", "wat", - "wit-component 0.263.0", + "wit-component 0.264.0", ] [[package]] @@ -4309,7 +4309,7 @@ name = "verify-component-adapter" version = "52.0.0-dev" dependencies = [ "anyhow", - "wasmparser 0.263.0", + "wasmparser 0.264.0", "wat", ] @@ -4385,8 +4385,8 @@ dependencies = [ "byte-array-literals", "object 0.40.0", "wasip1", - "wasm-encoder 0.263.0", - "wit-bindgen-rust-macro 0.63.0", + "wasm-encoder 0.264.0", + "wit-bindgen-rust-macro 0.64.0", ] [[package]] @@ -4415,17 +4415,17 @@ dependencies = [ [[package]] name = "wasm-compose" -version = "0.263.0" +version = "0.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "556cf3f0ea89f5944d254f94fcda920e3e6f79d892dc8558dfee493e52d775b4" +checksum = "efacb402fe2b477d5b975c4f53064b5f89431c3ca0cbf050e03ee14ba3b234ff" dependencies = [ "anyhow", "indexmap 2.14.0", "log", "petgraph", "smallvec 1.15.1", - "wasm-encoder 0.263.0", - "wasmparser 0.263.0", + "wasm-encoder 0.264.0", + "wasmparser 0.264.0", "wat", ] @@ -4441,22 +4441,12 @@ dependencies = [ [[package]] name = "wasm-encoder" -version = "0.262.0" +version = "0.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4495a6f85dd94c411c749303efcbc5defade0b0cbdbc0541495241ab917a9b5a" +checksum = "574848c680febb315739f766586b322da8ef271572c495ff5504c780d5de40ad" dependencies = [ "leb128fmt", - "wasmparser 0.262.0", -] - -[[package]] -name = "wasm-encoder" -version = "0.263.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b883a26aea02eaabe2d2c3fba7eb039ef5cdcb5d5201ae5551e73d5e251a81f" -dependencies = [ - "leb128fmt", - "wasmparser 0.263.0", + "wasmparser 0.264.0", ] [[package]] @@ -4473,67 +4463,55 @@ dependencies = [ [[package]] name = "wasm-metadata" -version = "0.262.0" +version = "0.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c86ff6668190d9fb70372b306b4f9fe8930f0e2f57ce72e4922bf2f117900949" +checksum = "7835b37c16a0fb026135e368a75fd555c75329e38650fc2fb8f39bd34e2941f3" dependencies = [ "anyhow", "indexmap 2.14.0", - "wasm-encoder 0.262.0", - "wasmparser 0.262.0", -] - -[[package]] -name = "wasm-metadata" -version = "0.263.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8997a297f42413bee775d73a750def062ee1ec4a6d904703cb08046c0296774d" -dependencies = [ - "anyhow", - "indexmap 2.14.0", - "wasm-encoder 0.263.0", - "wasmparser 0.263.0", + "wasm-encoder 0.264.0", + "wasmparser 0.264.0", ] [[package]] name = "wasm-mutate" -version = "0.263.0" +version = "0.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f98a0627474a54264353d4d5177a80840dda0ff05a1d25e22f5004ccd3cf474" +checksum = "1931d4562f52bd2744719b9c23c737381471437ac67f17dd94d19f343cc79f51" dependencies = [ "egg", "log", "rand 0.10.1", "thiserror 2.0.17", - "wasm-encoder 0.263.0", - "wasmparser 0.263.0", + "wasm-encoder 0.264.0", + "wasmparser 0.264.0", ] [[package]] name = "wasm-smith" -version = "0.263.0" +version = "0.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1102593f74a5b8b496683ea553f55a899a54461a5ad370d1a9eafd32e698a29d" +checksum = "a145f0c9b4ede88d139cac72068aa28415b85f71c1b76148260b012f6d08e047" dependencies = [ "anyhow", "arbitrary", "flagset", "serde", "serde_derive", - "wasm-encoder 0.263.0", + "wasm-encoder 0.264.0", "wat", ] [[package]] name = "wasm-wave" -version = "0.263.0" +version = "0.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee6d8d3340761c0f41fe624a1e88be7ae81c17a2c086a2286ada584d3c475188" +checksum = "3999b6ee452d0986afb9061a4433857d70a4376cd266d8491681aaab09202647" dependencies = [ "anyhow", "logos", "thiserror 2.0.17", - "wit-parser 0.263.0", + "wit-parser 0.264.0", ] [[package]] @@ -4600,21 +4578,9 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.262.0" +version = "0.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "974d643b125b272607e2fff8012ea14a8328acd7621e4bafa7afb32500052b1b" -dependencies = [ - "bitflags 2.11.1", - "hashbrown 0.17.0", - "indexmap 2.14.0", - "semver", -] - -[[package]] -name = "wasmparser" -version = "0.263.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f5fa0a054ae153606df820eb0a84213e28cda41bbe04ba2628e71b6ba100fcb" +checksum = "fef67d509e777f18cd3854c71b8ed194dec928860e306f620077d9b7c9b32224" dependencies = [ "bitflags 2.11.1", "hashbrown 0.17.0", @@ -4625,13 +4591,13 @@ dependencies = [ [[package]] name = "wasmprinter" -version = "0.263.0" +version = "0.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b40c3aedc383a68866a7bae302578765c3f05c9e11ea6d242e5cc450f8300a26" +checksum = "919b0b7c9ec22fd71b2691218d445b736c2d3a583ed7cb388403768c0159f7bd" dependencies = [ "anyhow", "termcolor", - "wasmparser 0.263.0", + "wasmparser 0.264.0", ] [[package]] @@ -4675,9 +4641,9 @@ dependencies = [ "tempfile", "tokio", "wasm-compose", - "wasm-encoder 0.263.0", + "wasm-encoder 0.264.0", "wasm-wave", - "wasmparser 0.263.0", + "wasmparser 0.264.0", "wasmtime-environ", "wasmtime-internal-cache", "wasmtime-internal-component-macro", @@ -4694,7 +4660,7 @@ dependencies = [ "wasmtime-test-util", "wat", "windows-sys 0.61.2", - "wit-parser 0.263.0", + "wit-parser 0.264.0", ] [[package]] @@ -4798,8 +4764,8 @@ dependencies = [ "toml", "tracing", "walkdir", - "wasm-encoder 0.263.0", - "wasmparser 0.263.0", + "wasm-encoder 0.264.0", + "wasmparser 0.264.0", "wasmprinter", "wasmtime", "wasmtime-bench-util", @@ -4822,10 +4788,10 @@ dependencies = [ "wasmtime-wasi-tls", "wasmtime-wast", "wasmtime-wizer", - "wast 263.0.0", + "wast 264.0.0", "wat", "windows-sys 0.61.2", - "wit-component 0.263.0", + "wit-component 0.264.0", ] [[package]] @@ -4869,8 +4835,8 @@ dependencies = [ "sha2", "smallvec 1.15.1", "target-lexicon 0.13.5", - "wasm-encoder 0.263.0", - "wasmparser 0.263.0", + "wasm-encoder 0.264.0", + "wasmparser 0.264.0", "wasmprinter", "wasmtime-internal-component-util", "wasmtime-internal-core", @@ -4884,7 +4850,7 @@ dependencies = [ "arbitrary", "env_logger", "libfuzzer-sys", - "wasmparser 0.263.0", + "wasmparser 0.264.0", "wasmprinter", "wasmtime-environ", "wasmtime-test-util", @@ -4916,7 +4882,7 @@ dependencies = [ "rand 0.10.1", "smallvec 1.15.1", "target-lexicon 0.13.5", - "wasmparser 0.263.0", + "wasmparser 0.264.0", "wasmtime", "wasmtime-fuzzing", "wasmtime-internal-core", @@ -4942,11 +4908,11 @@ dependencies = [ "tempfile", "tokio", "v8", - "wasm-encoder 0.263.0", + "wasm-encoder 0.264.0", "wasm-mutate", "wasm-smith", "wasmi", - "wasmparser 0.263.0", + "wasmparser 0.264.0", "wasmprinter", "wasmtime", "wasmtime-cli-flags", @@ -5004,7 +4970,7 @@ dependencies = [ "wasmtime", "wasmtime-internal-component-util", "wasmtime-internal-wit-bindgen", - "wit-parser 0.263.0", + "wit-parser 0.264.0", ] [[package]] @@ -5037,7 +5003,7 @@ dependencies = [ "pulley-interpreter", "smallvec 1.15.1", "target-lexicon 0.13.5", - "wasmparser 0.263.0", + "wasmparser 0.264.0", "wasmtime-environ", "wasmtime-internal-core", "wasmtime-internal-unwinder", @@ -5098,7 +5064,7 @@ dependencies = [ "gdbstub_arch", "log", "wasip2", - "wit-bindgen 0.63.0", + "wit-bindgen 0.64.0", "wstd", ] @@ -5156,7 +5122,7 @@ dependencies = [ "log", "object 0.40.0", "target-lexicon 0.13.5", - "wasmparser 0.263.0", + "wasmparser 0.264.0", "wasmtime-environ", "wasmtime-internal-cranelift", "winch-codegen", @@ -5170,8 +5136,8 @@ dependencies = [ "bitflags 2.11.1", "heck", "indexmap 2.14.0", - "wit-component 0.263.0", - "wit-parser 0.263.0", + "wit-component 0.264.0", + "wit-parser 0.264.0", ] [[package]] @@ -5216,7 +5182,7 @@ dependencies = [ "serde_derive", "target-lexicon 0.13.5", "toml", - "wasmparser 0.263.0", + "wasmparser 0.264.0", "wasmprinter", "wasmtime", "wasmtime-cli-flags", @@ -5365,9 +5331,9 @@ dependencies = [ "log", "serde_json", "tokio", - "wasmparser 0.263.0", + "wasmparser 0.264.0", "wasmtime", - "wast 263.0.0", + "wast 264.0.0", ] [[package]] @@ -5381,8 +5347,8 @@ dependencies = [ "rayon", "test-programs-artifacts", "tokio", - "wasm-encoder 0.263.0", - "wasmparser 0.263.0", + "wasm-encoder 0.264.0", + "wasmparser 0.264.0", "wasmprinter", "wasmtime", "wasmtime-wasi", @@ -5400,25 +5366,25 @@ dependencies = [ [[package]] name = "wast" -version = "263.0.0" +version = "264.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69d90bcf581b501aa1c358bc5dc0faa979cd375796908860ebcb6d1d70b907c7" +checksum = "398d8ec24feb170a7225c6111ed41b3a25ed592c1fdd12671669036570352ef5" dependencies = [ "bumpalo", "gimli 0.34.0", "leb128fmt", "memchr", "unicode-width 0.2.0", - "wasm-encoder 0.263.0", + "wasm-encoder 0.264.0", ] [[package]] name = "wat" -version = "1.263.0" +version = "1.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbc9c5aca783b3f1838be89f3f9937c528b90ec5faa6fb62d809726c16a7d8f7" +checksum = "503b6b35edf5f4dd672a2a3104a377744f340d65d10d4214546fe6892f956f93" dependencies = [ - "wast 263.0.0", + "wast 264.0.0", ] [[package]] @@ -5544,7 +5510,7 @@ dependencies = [ "smallvec 1.15.1", "target-lexicon 0.13.5", "thiserror 2.0.17", - "wasmparser 0.263.0", + "wasmparser 0.264.0", "wasmtime-environ", "wasmtime-internal-core", "wasmtime-internal-cranelift", @@ -5716,13 +5682,13 @@ dependencies = [ [[package]] name = "wit-bindgen" -version = "0.63.0" +version = "0.64.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b85a987ab61d365382d25c7d47e26edd48941b3bf6e3fbf76eff918bc71dab06" +checksum = "d21697886cf446ab875ae73f86177a988995a70b3b64f630564bcfb5a332f8e1" dependencies = [ "bitflags 2.11.1", "futures", - "wit-bindgen-rust-macro 0.63.0", + "wit-bindgen-rust-macro 0.64.0", ] [[package]] @@ -5738,13 +5704,13 @@ dependencies = [ [[package]] name = "wit-bindgen-core" -version = "0.63.0" +version = "0.64.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "775e122e390603abfacd548027016cd0113a6e2bf2f8ce6bdd3658b013456ea8" +checksum = "3c6867b6847414aa0a615dde361dacb9b575ea1feff3934e90a9c55b363a36d1" dependencies = [ "anyhow", "heck", - "wit-parser 0.262.0", + "wit-parser 0.264.0", ] [[package]] @@ -5774,18 +5740,18 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.63.0" +version = "0.64.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84e26e13b9d972026778d2ffb7985736de116026fdc8d9464f966e12df2eb240" +checksum = "94333f13cee499930e21d577ba3c7b8b223358481c33f287ff28733c30ce8037" dependencies = [ "anyhow", "heck", "indexmap 2.14.0", "prettyplease 0.3.0", "syn 3.0.10", - "wasm-metadata 0.262.0", - "wit-bindgen-core 0.63.0", - "wit-component 0.262.0", + "wasm-metadata 0.264.0", + "wit-bindgen-core 0.64.0", + "wit-component 0.264.0", ] [[package]] @@ -5805,9 +5771,9 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-macro" -version = "0.63.0" +version = "0.64.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16a008a0d6b4840677326beb4edbeb210a2f1b7d0183fb7cc33f466b90fd7fb6" +checksum = "0abcc527a511256e40d3f998e3cebd0bf545f155851eb8a8e0ba63d8659573eb" dependencies = [ "anyhow", "macro-string", @@ -5815,8 +5781,8 @@ dependencies = [ "proc-macro2", "quote", "syn 3.0.10", - "wit-bindgen-core 0.63.0", - "wit-bindgen-rust 0.63.0", + "wit-bindgen-core 0.64.0", + "wit-bindgen-rust 0.64.0", ] [[package]] @@ -5840,28 +5806,9 @@ dependencies = [ [[package]] name = "wit-component" -version = "0.262.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "078def49fdb49cab405c3006e05793b3fdaf7069126ba6b9c97d01ec8c98fe4c" -dependencies = [ - "anyhow", - "bitflags 2.11.1", - "indexmap 2.14.0", - "log", - "serde", - "serde_derive", - "serde_json", - "wasm-encoder 0.262.0", - "wasm-metadata 0.262.0", - "wasmparser 0.262.0", - "wit-parser 0.262.0", -] - -[[package]] -name = "wit-component" -version = "0.263.0" +version = "0.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4189bd180353b942b788715519dff886517b540e648c6f6e5129f57429945bf7" +checksum = "098639bb161401c9ad8b97ba20203cbb016a4b11af5fdaa10c30c6801baf16e7" dependencies = [ "anyhow", "bitflags 2.11.1", @@ -5870,10 +5817,10 @@ dependencies = [ "serde", "serde_derive", "serde_json", - "wasm-encoder 0.263.0", - "wasm-metadata 0.263.0", - "wasmparser 0.263.0", - "wit-parser 0.263.0", + "wasm-encoder 0.264.0", + "wasm-metadata 0.264.0", + "wasmparser 0.264.0", + "wit-parser 0.264.0", ] [[package]] @@ -5896,28 +5843,9 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.262.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00f0dc051466ffe46787721fca3d088536f158ae400be044f1b1c386ba9397ad" -dependencies = [ - "anyhow", - "hashbrown 0.17.0", - "id-arena", - "indexmap 2.14.0", - "log", - "semver", - "serde", - "serde_derive", - "serde_json", - "unicode-ident", - "wasmparser 0.262.0", -] - -[[package]] -name = "wit-parser" -version = "0.263.0" +version = "0.264.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "874d6ce9db4261cb66980ab14f3da066b24292497b6f46f988c0d1b9b27913f3" +checksum = "c62a5e118a3aa2d08948efed16b3ee18dfe5290bffdd8a6239f004e655c9e334" dependencies = [ "anyhow", "hashbrown 0.17.0", @@ -5929,7 +5857,7 @@ dependencies = [ "serde_derive", "serde_json", "unicode-ident", - "wasmparser 0.263.0", + "wasmparser 0.264.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index d275a12727f5..f70134aecd70 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -372,22 +372,22 @@ wasip1 = { version = "1.0.0", default-features = false } target-lexicon = "0.13.5" rustix = "1.1.6" # wit-bindgen: -wit-bindgen = { version = "0.63.0", default-features = false } -wit-bindgen-rust-macro = { version = "0.63.0", default-features = false } +wit-bindgen = { version = "0.64.0", default-features = false } +wit-bindgen-rust-macro = { version = "0.64.0", default-features = false } # wasm-tools family: -wasmparser = { version = "0.263.0", default-features = false, features = ['simd'] } -wat = "1.263.0" -wast = "263.0.0" -wasmprinter = "0.263.0" -wasm-encoder = "0.263.0" -wasm-smith = "0.263.0" -wasm-mutate = "0.263.0" -wit-parser = "0.263.0" -wit-component = "0.263.0" -wasm-wave = "0.263.0" -wasm-compose = { version = "0.263.0", default-features = false } -json-from-wast = "0.263.0" +wasmparser = { version = "0.264.0", default-features = false, features = ['simd'] } +wat = "1.264.0" +wast = "264.0.0" +wasmprinter = "0.264.0" +wasm-encoder = "0.264.0" +wasm-smith = "0.264.0" +wasm-mutate = "0.264.0" +wit-parser = "0.264.0" +wit-component = "0.264.0" +wasm-wave = "0.264.0" +wasm-compose = { version = "0.264.0", default-features = false } +json-from-wast = "0.264.0" wstd = "0.6.5" wasip2 = "1.0" diff --git a/crates/test-util/src/wast.rs b/crates/test-util/src/wast.rs index 4d206f4fbd31..1dfa70d46d54 100644 --- a/crates/test-util/src/wast.rs +++ b/crates/test-util/src/wast.rs @@ -631,6 +631,8 @@ impl WastTest { // Wasmtime doesn't implement `assert_{invalid,malformed}_custom` "spec_testsuite/proposals/extended-name-section/custom/name_annot.wast", "spec_testsuite/proposals/extended-name-section/custom/name.wast", + // Waiting on WebAssembly/component-model#776 + "component-model/test/validation/outer-alias.wast", ]; if unsupported.iter().any(|part| self.path.ends_with(part)) { return true; diff --git a/crates/wasi-preview1-component-adapter/src/lib.rs b/crates/wasi-preview1-component-adapter/src/lib.rs index 3d094ca09f28..d45f7644079d 100644 --- a/crates/wasi-preview1-component-adapter/src/lib.rs +++ b/crates/wasi-preview1-component-adapter/src/lib.rs @@ -118,6 +118,38 @@ pub mod bindings { pub mod wit_bindgen_rt_shim { pub use bitflags; + #[macro_export] + macro_rules! __extern_wasm { + ( + #[link(wasm_import_module = $module:literal)] + unsafe extern "C" { + $( + #[link_name = $name:literal] + $vis:vis fn $func_name:ident ( $($arg:ident : $ty:ty),* $(,)? ) $(-> $ret:ty)?; + )* + } + ) => { + $( + #[cfg(not(target_family = "wasm"))] + $vis unsafe fn $func_name($($arg: $ty),*) $(-> $ret)? { + $(let _ = $arg;)* + unreachable!(); + } + )* + + #[cfg(target_family = "wasm")] + #[link(wasm_import_module = $module)] + unsafe extern "C" { + $( + #[link_name = $name] + $vis fn $func_name($($arg: $ty),*) $(-> $ret)?; + )* + } + }; + } + + pub use crate::__extern_wasm as extern_wasm; + pub fn maybe_link_cabi_realloc() {} } } diff --git a/crates/wit-bindgen/src/lib.rs b/crates/wit-bindgen/src/lib.rs index 45b284e4696f..dc07d0391a32 100644 --- a/crates/wit-bindgen/src/lib.rs +++ b/crates/wit-bindgen/src/lib.rs @@ -232,7 +232,7 @@ impl Opts { } let mut r = Wasmtime::default(); - r.sizes.fill(resolve)?; + r.sizes.fill(resolve, world)?; r.opts = self.clone(); r.populate_world_and_interface_options(resolve, world); r.generate(resolve, world) diff --git a/supply-chain/imports.lock b/supply-chain/imports.lock index 1089ced4c057..51e4e0d0161b 100644 --- a/supply-chain/imports.lock +++ b/supply-chain/imports.lock @@ -1399,8 +1399,8 @@ user-login = "alexcrichton" user-name = "Alex Crichton" [[publisher.json-from-wast]] -version = "0.263.0" -when = "2026-10-30" +version = "0.264.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.libc]] @@ -1891,8 +1891,8 @@ user-login = "alexcrichton" user-name = "Alex Crichton" [[publisher.wasm-compose]] -version = "0.263.0" -when = "2026-10-30" +version = "0.264.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wasm-encoder]] @@ -1901,13 +1901,8 @@ when = "2026-01-06" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wasm-encoder]] -version = "0.262.0" -when = "2026-10-13" -trusted-publisher = "github:bytecodealliance/wasm-tools" - -[[publisher.wasm-encoder]] -version = "0.263.0" -when = "2026-10-30" +version = "0.264.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wasm-metadata]] @@ -1917,18 +1912,13 @@ user-id = 73222 user-login = "wasmtime-publish" [[publisher.wasm-metadata]] -version = "0.262.0" -when = "2026-10-13" -trusted-publisher = "github:bytecodealliance/wasm-tools" - -[[publisher.wasm-metadata]] -version = "0.263.0" -when = "2026-10-30" +version = "0.264.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wasm-wave]] -version = "0.263.0" -when = "2026-10-30" +version = "0.264.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wasmparser]] @@ -1937,18 +1927,13 @@ when = "2026-01-06" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wasmparser]] -version = "0.262.0" -when = "2026-10-13" -trusted-publisher = "github:bytecodealliance/wasm-tools" - -[[publisher.wasmparser]] -version = "0.263.0" -when = "2026-10-30" +version = "0.264.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wasmprinter]] -version = "0.263.0" -when = "2026-10-30" +version = "0.264.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wasmtime]] @@ -2102,13 +2087,13 @@ when = "2026-10-29" trusted-publisher = "github:bytecodealliance/wasmtime" [[publisher.wast]] -version = "263.0.0" -when = "2026-10-30" +version = "264.0.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wat]] -version = "1.263.0" -when = "2026-10-30" +version = "1.264.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wiggle]] @@ -2276,8 +2261,8 @@ when = "2026-01-12" trusted-publisher = "github:bytecodealliance/wit-bindgen" [[publisher.wit-bindgen]] -version = "0.63.0" -when = "2026-10-14" +version = "0.64.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wit-bindgen" [[publisher.wit-bindgen-core]] @@ -2286,8 +2271,8 @@ when = "2026-01-12" trusted-publisher = "github:bytecodealliance/wit-bindgen" [[publisher.wit-bindgen-core]] -version = "0.63.0" -when = "2026-10-14" +version = "0.64.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wit-bindgen" [[publisher.wit-bindgen-rt]] @@ -2302,8 +2287,8 @@ when = "2026-01-12" trusted-publisher = "github:bytecodealliance/wit-bindgen" [[publisher.wit-bindgen-rust]] -version = "0.63.0" -when = "2026-10-14" +version = "0.64.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wit-bindgen" [[publisher.wit-bindgen-rust-macro]] @@ -2312,8 +2297,8 @@ when = "2026-01-12" trusted-publisher = "github:bytecodealliance/wit-bindgen" [[publisher.wit-bindgen-rust-macro]] -version = "0.63.0" -when = "2026-10-14" +version = "0.64.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wit-bindgen" [[publisher.wit-component]] @@ -2322,13 +2307,8 @@ when = "2026-01-06" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wit-component]] -version = "0.262.0" -when = "2026-10-13" -trusted-publisher = "github:bytecodealliance/wasm-tools" - -[[publisher.wit-component]] -version = "0.263.0" -when = "2026-10-30" +version = "0.264.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wit-parser]] @@ -2337,13 +2317,8 @@ when = "2026-01-06" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.wit-parser]] -version = "0.262.0" -when = "2026-10-13" -trusted-publisher = "github:bytecodealliance/wasm-tools" - -[[publisher.wit-parser]] -version = "0.263.0" -when = "2026-10-30" +version = "0.264.0" +when = "2026-12-02" trusted-publisher = "github:bytecodealliance/wasm-tools" [[publisher.witx]] diff --git a/tests/all/component_model/nested.rs b/tests/all/component_model/nested.rs index 83245b0f0b5f..3e9263908335 100644 --- a/tests/all/component_model/nested.rs +++ b/tests/all/component_model/nested.rs @@ -127,8 +127,8 @@ fn thread_options_through_inner() -> Result<()> { #[test] fn issue_14506_long_reexport_chain_compiles_quickly() -> Result<()> { - const FUNCS: usize = 500; - const CHAIN: usize = 500; + const FUNCS: usize = 400; + const CHAIN: usize = 400; let mut wat = String::from( " (component\n\ diff --git a/tests/misc_testsuite/component-model-threading/thread-new-indirect-declared-type.wast b/tests/misc_testsuite/component-model-threading/thread-new-indirect-declared-type.wast deleted file mode 100644 index 874c4c91ed47..000000000000 --- a/tests/misc_testsuite/component-model-threading/thread-new-indirect-declared-type.wast +++ /dev/null @@ -1,222 +0,0 @@ -;;! component_model_async = true -;;! component_model_threading = true -;;! reference_types = true -;;! function_references = true -;;! gc = true - -;; `thread.new-indirect` traps if the start function's type isn't exactly the -;; core function type named by the canonical built-in, using core wasm's type -;; canonicalization rules. Validation only requires that type to be -;; structurally `[i32] -> []`, so it may be non-final, have a supertype, or be -;; part of a larger rec group. -;; -;; Each `spawn-*` export below uses a `thread.new-indirect` with a different -;; declared type, and spawns the start function at the given table index. Only -;; the function whose type is the same as the declared type should be accepted. - -(component definition $C - (core module $libc - (table (export "__indirect_function_table") 7 funcref)) - (core instance $libc (instantiate $libc)) - (alias core export $libc "__indirect_function_table" (core table $table)) - - (core type $final (func (param i32))) - (core type $non-final (sub (func (param i32)))) - (core rec (type $rec (func (param i32))) (type (struct))) - (core type $super (sub (func (param i32)))) - (core type $sub (sub $super (func (param i32)))) - (core type $s (struct)) - (core rec - (type $rec-outer (func (param i32))) - (type (struct (field (ref $s))))) - - (core func $thread.new-indirect-final - (canon thread.new-indirect $final (core table $table))) - (core func $thread.new-indirect-non-final - (canon thread.new-indirect $non-final (core table $table))) - (core func $thread.new-indirect-rec - (canon thread.new-indirect $rec (core table $table))) - (core func $thread.new-indirect-sub - (canon thread.new-indirect $sub (core table $table))) - (core func $thread.new-indirect-rec-outer - (canon thread.new-indirect $rec-outer (core table $table))) - (core func $thread.yield-then-resume (canon thread.yield-then-resume)) - - (core module $m - (type $final (func (param i32))) - (type $non-final (sub (func (param i32)))) - (rec (type $rec (func (param i32))) (type (struct))) - (rec (type $rec-other (func (param i32))) (type (array i8))) - (type $super (sub (func (param i32)))) - (type $sub (sub $super (func (param i32)))) - (type $s (struct)) - (rec - (type $rec-outer (func (param i32))) - (type (struct (field (ref $s))))) - - (import "" "thread.new-indirect-final" - (func $thread.new-indirect-final (param i32 i32) (result i32))) - (import "" "thread.new-indirect-non-final" - (func $thread.new-indirect-non-final (param i32 i32) (result i32))) - (import "" "thread.new-indirect-rec" - (func $thread.new-indirect-rec (param i32 i32) (result i32))) - (import "" "thread.new-indirect-sub" - (func $thread.new-indirect-sub (param i32 i32) (result i32))) - (import "" "thread.new-indirect-rec-outer" - (func $thread.new-indirect-rec-outer (param i32 i32) (result i32))) - (import "" "thread.yield-then-resume" - (func $thread.yield-then-resume (param i32) (result i32))) - (import "libc" "__indirect_function_table" (table $table 7 funcref)) - - (global $ran (mut i32) (i32.const 0)) - - (func $start-final (type $final) (param i32) - (global.set $ran (local.get 0))) - (func $start-non-final (type $non-final) (param i32) - (global.set $ran (local.get 0))) - (func $start-rec (type $rec) (param i32) - (global.set $ran (local.get 0))) - (func $start-rec-other (type $rec-other) (param i32) - (global.set $ran (local.get 0))) - (func $start-super (type $super) (param i32) - (global.set $ran (local.get 0))) - (func $start-sub (type $sub) (param i32) - (global.set $ran (local.get 0))) - (func $start-rec-outer (type $rec-outer) (param i32) - (global.set $ran (local.get 0))) - (elem (table $table) (i32.const 0) func - $start-final ;; 0 - $start-non-final ;; 1 - $start-rec ;; 2 - $start-rec-other ;; 3 - $start-super ;; 4 - $start-sub ;; 5 - $start-rec-outer) ;; 6 - - ;; Runs the new thread to completion and returns what it stored in `$ran`. - (func $run (param $thread i32) (result i32) - (global.set $ran (i32.const 0)) - (drop (call $thread.yield-then-resume (local.get $thread))) - (global.get $ran)) - - (func (export "spawn-final") (param i32) (result i32) - (call $run - (call $thread.new-indirect-final (local.get 0) (i32.const 42)))) - (func (export "spawn-non-final") (param i32) (result i32) - (call $run - (call $thread.new-indirect-non-final (local.get 0) (i32.const 42)))) - (func (export "spawn-rec") (param i32) (result i32) - (call $run - (call $thread.new-indirect-rec (local.get 0) (i32.const 42)))) - (func (export "spawn-sub") (param i32) (result i32) - (call $run - (call $thread.new-indirect-sub (local.get 0) (i32.const 42)))) - (func (export "spawn-rec-outer") (param i32) (result i32) - (call $run - (call $thread.new-indirect-rec-outer (local.get 0) (i32.const 42))))) - - (core instance $i (instantiate $m - (with "" (instance - (export "thread.new-indirect-final" (func $thread.new-indirect-final)) - (export "thread.new-indirect-non-final" - (func $thread.new-indirect-non-final)) - (export "thread.new-indirect-rec" (func $thread.new-indirect-rec)) - (export "thread.new-indirect-sub" (func $thread.new-indirect-sub)) - (export "thread.new-indirect-rec-outer" - (func $thread.new-indirect-rec-outer)) - (export "thread.yield-then-resume" (func $thread.yield-then-resume)))) - (with "libc" (instance $libc)))) - - (func (export "spawn-final") async (param "i" u32) (result u32) - (canon lift (core func $i "spawn-final"))) - (func (export "spawn-non-final") async (param "i" u32) (result u32) - (canon lift (core func $i "spawn-non-final"))) - (func (export "spawn-rec") async (param "i" u32) (result u32) - (canon lift (core func $i "spawn-rec"))) - (func (export "spawn-sub") async (param "i" u32) (result u32) - (canon lift (core func $i "spawn-sub"))) - (func (export "spawn-rec-outer") async (param "i" u32) (result u32) - (canon lift (core func $i "spawn-rec-outer"))) -) - -;; A final `(func (param i32))` matches only itself. -(component instance $C $C) -(assert_return (invoke "spawn-final" (u32.const 0)) (u32.const 42)) -(component instance $C $C) -(assert_trap (invoke "spawn-final" (u32.const 1)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-final" (u32.const 2)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-final" (u32.const 3)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-final" (u32.const 4)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-final" (u32.const 5)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-final" (u32.const 6)) "does not match") - -;; A non-final type with no supertype matches the identical `$super`, but not a -;; subtype of it. -(component instance $C $C) -(assert_trap (invoke "spawn-non-final" (u32.const 0)) "does not match") -(component instance $C $C) -(assert_return (invoke "spawn-non-final" (u32.const 1)) (u32.const 42)) -(component instance $C $C) -(assert_trap (invoke "spawn-non-final" (u32.const 2)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-non-final" (u32.const 3)) "does not match") -(component instance $C $C) -(assert_return (invoke "spawn-non-final" (u32.const 4)) (u32.const 42)) -(component instance $C $C) -(assert_trap (invoke "spawn-non-final" (u32.const 5)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-non-final" (u32.const 6)) "does not match") - -;; A rec group member matches the same member of a structurally identical rec -;; group, but not one of a different rec group. -(component instance $C $C) -(assert_trap (invoke "spawn-rec" (u32.const 0)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-rec" (u32.const 1)) "does not match") -(component instance $C $C) -(assert_return (invoke "spawn-rec" (u32.const 2)) (u32.const 42)) -(component instance $C $C) -(assert_trap (invoke "spawn-rec" (u32.const 3)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-rec" (u32.const 4)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-rec" (u32.const 5)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-rec" (u32.const 6)) "does not match") - -;; A type with a supertype matches only the same subtype. -(component instance $C $C) -(assert_trap (invoke "spawn-sub" (u32.const 0)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-sub" (u32.const 1)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-sub" (u32.const 2)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-sub" (u32.const 3)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-sub" (u32.const 4)) "does not match") -(component instance $C $C) -(assert_return (invoke "spawn-sub" (u32.const 5)) (u32.const 42)) -(component instance $C $C) -(assert_trap (invoke "spawn-sub" (u32.const 6)) "does not match") - -;; A rec group member whose group refers to a type outside of the group. -(component instance $C $C) -(assert_trap (invoke "spawn-rec-outer" (u32.const 0)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-rec-outer" (u32.const 1)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-rec-outer" (u32.const 2)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-rec-outer" (u32.const 3)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-rec-outer" (u32.const 4)) "does not match") -(component instance $C $C) -(assert_trap (invoke "spawn-rec-outer" (u32.const 5)) "does not match") -(component instance $C $C) -(assert_return (invoke "spawn-rec-outer" (u32.const 6)) (u32.const 42))