From 73f80c25bb26701bfb05578110ac412e46eb4a0d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 20 Nov 2024 10:44:39 -0700 Subject: [PATCH] Bump to 27.0.0 (#258) --- ci/download-wasmtime.py | 5 ++-- rust/Cargo.lock | 60 ++++++++++++++++++++--------------------- rust/Cargo.toml | 12 ++++----- setup.py | 2 +- wasmtime/_bindings.py | 32 +++++++++++----------- 5 files changed, 56 insertions(+), 55 deletions(-) diff --git a/ci/download-wasmtime.py b/ci/download-wasmtime.py index 344d6c0..15ee445 100644 --- a/ci/download-wasmtime.py +++ b/ci/download-wasmtime.py @@ -10,8 +10,9 @@ import zipfile from pathlib import Path - # set to "dev" to download the latest or pick a tag from https://github.com/bytecodealliance/wasmtime/tags -WASMTIME_VERSION = "dev" +# set to "dev" to download the latest or pick a tag from +# https://github.com/bytecodealliance/wasmtime/tags +WASMTIME_VERSION = "v27.0.0" def main(platform, arch): diff --git a/rust/Cargo.lock b/rust/Cargo.lock index a78c38b..40f2eb1 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -55,9 +55,9 @@ checksum = "67ba02a97a2bd10f4b59b25c7973101c79642302776489e030cd13cdab09ed15" [[package]] name = "cranelift-bitset" -version = "0.113.1" +version = "0.114.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7cb269598b9557ab942d687d3c1086d77c4b50dcf35813f3a65ba306fd42279" +checksum = "005884e3649c3e5ff2dc79e8a94b138f11569cc08a91244a292714d2a86e9156" dependencies = [ "serde", "serde_derive", @@ -65,9 +65,9 @@ dependencies = [ [[package]] name = "cranelift-entity" -version = "0.113.1" +version = "0.114.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "963c17147b80df351965e57c04d20dbedc85bcaf44c3436780a59a3f1ff1b1c2" +checksum = "305399fd781a2953ac78c1396f02ff53144f39c33eb7fc7789cf4e8936d13a96" dependencies = [ "cranelift-bitset", "serde", @@ -366,9 +366,9 @@ 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", @@ -376,9 +376,9 @@ dependencies = [ [[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", @@ -392,9 +392,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", @@ -406,9 +406,9 @@ 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", @@ -417,15 +417,15 @@ dependencies = [ [[package]] name = "wasmtime-component-util" -version = "26.0.1" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35e87a1212270dbb84a49af13d82594e00a92769d6952b0ea7fc4366c949f6ad" +checksum = "4a6db4f3ee18c699629eabb9c64e77efe5a93a5137f098db7cab295037ba41c2" [[package]] name = "wasmtime-environ" -version = "26.0.1" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8613075e89e94a48c05862243c2b718eef1b9c337f51493ebf951e149a10fa19" +checksum = "c25bfeaa16432d59a0706e2463d315ef4c9ebcfaf5605670b99d46373bdf9f27" dependencies = [ "anyhow", "cranelift-bitset", @@ -530,9 +530,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", @@ -540,9 +540,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", @@ -551,18 +551,18 @@ 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", ] [[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", @@ -576,9 +576,9 @@ 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", @@ -591,9 +591,9 @@ dependencies = [ [[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", @@ -610,9 +610,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", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 0511217..8b6fa65 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -9,13 +9,13 @@ crate-type = ['cdylib', 'rlib'] [dependencies] anyhow = "1.0" heck = { version = "0.4", features = ["unicode"] } -wit-parser = "0.218.0" -wit-component = "0.218.0" +wit-parser = "0.219.0" +wit-component = "0.219.0" indexmap = "2.0" -wasmtime-environ = { version = "26.0.1", features = ['component-model', 'compile'] } -wit-bindgen = { version = "0.33.0" } -wit-bindgen-core = "0.33.0" -wasmparser = "0.218.0" # this can be removed once wasmtime-environ re-exports wasmparser (wasmtime 27) +wasmtime-environ = { version = "27.0.0", features = ['component-model', 'compile'] } +wit-bindgen = { version = "0.34.0" } +wit-bindgen-core = "0.34.0" +wasmparser = "0.219.0" # this can be removed once wasmtime-environ re-exports wasmparser (wasmtime 27) [features] diff --git a/setup.py b/setup.py index fcda27f..1aee401 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README.md", "r") as fh: long_description = fh.read() -version = "25.0.0" +version = "27.0.0" # Give unique version numbers to all commits so our publication-on-each commit # works on main diff --git a/wasmtime/_bindings.py b/wasmtime/_bindings.py index 5709afc..33bb357 100644 --- a/wasmtime/_bindings.py +++ b/wasmtime/_bindings.py @@ -2184,17 +2184,17 @@ def wasmtime_config_cranelift_opt_level_set(arg0: Any, arg1: Any) -> None: def wasmtime_config_profiler_set(arg0: Any, arg1: Any) -> None: return _wasmtime_config_profiler_set(arg0, arg1) # type: ignore -_wasmtime_config_memory_may_move_set = dll.wasmtime_config_memory_may_move_set -_wasmtime_config_memory_may_move_set.restype = None -_wasmtime_config_memory_may_move_set.argtypes = [POINTER(wasm_config_t), c_bool] -def wasmtime_config_memory_may_move_set(arg0: Any, arg1: Any) -> None: - return _wasmtime_config_memory_may_move_set(arg0, arg1) # type: ignore - -_wasmtime_config_memory_reservation_set = dll.wasmtime_config_memory_reservation_set -_wasmtime_config_memory_reservation_set.restype = None -_wasmtime_config_memory_reservation_set.argtypes = [POINTER(wasm_config_t), c_uint64] -def wasmtime_config_memory_reservation_set(arg0: Any, arg1: Any) -> None: - return _wasmtime_config_memory_reservation_set(arg0, arg1) # type: ignore +_wasmtime_config_static_memory_forced_set = dll.wasmtime_config_static_memory_forced_set +_wasmtime_config_static_memory_forced_set.restype = None +_wasmtime_config_static_memory_forced_set.argtypes = [POINTER(wasm_config_t), c_bool] +def wasmtime_config_static_memory_forced_set(arg0: Any, arg1: Any) -> None: + return _wasmtime_config_static_memory_forced_set(arg0, arg1) # type: ignore + +_wasmtime_config_static_memory_maximum_size_set = dll.wasmtime_config_static_memory_maximum_size_set +_wasmtime_config_static_memory_maximum_size_set.restype = None +_wasmtime_config_static_memory_maximum_size_set.argtypes = [POINTER(wasm_config_t), c_uint64] +def wasmtime_config_static_memory_maximum_size_set(arg0: Any, arg1: Any) -> None: + return _wasmtime_config_static_memory_maximum_size_set(arg0, arg1) # type: ignore _wasmtime_config_memory_guard_size_set = dll.wasmtime_config_memory_guard_size_set _wasmtime_config_memory_guard_size_set.restype = None @@ -2202,11 +2202,11 @@ def wasmtime_config_memory_reservation_set(arg0: Any, arg1: Any) -> None: def wasmtime_config_memory_guard_size_set(arg0: Any, arg1: Any) -> None: return _wasmtime_config_memory_guard_size_set(arg0, arg1) # type: ignore -_wasmtime_config_memory_reservation_for_growth_set = dll.wasmtime_config_memory_reservation_for_growth_set -_wasmtime_config_memory_reservation_for_growth_set.restype = None -_wasmtime_config_memory_reservation_for_growth_set.argtypes = [POINTER(wasm_config_t), c_uint64] -def wasmtime_config_memory_reservation_for_growth_set(arg0: Any, arg1: Any) -> None: - return _wasmtime_config_memory_reservation_for_growth_set(arg0, arg1) # type: ignore +_wasmtime_config_dynamic_memory_reserved_for_growth_set = dll.wasmtime_config_dynamic_memory_reserved_for_growth_set +_wasmtime_config_dynamic_memory_reserved_for_growth_set.restype = None +_wasmtime_config_dynamic_memory_reserved_for_growth_set.argtypes = [POINTER(wasm_config_t), c_uint64] +def wasmtime_config_dynamic_memory_reserved_for_growth_set(arg0: Any, arg1: Any) -> None: + return _wasmtime_config_dynamic_memory_reserved_for_growth_set(arg0, arg1) # type: ignore _wasmtime_config_native_unwind_info_set = dll.wasmtime_config_native_unwind_info_set _wasmtime_config_native_unwind_info_set.restype = None