From 3aabd61a13c697b10a5f86c9a36ebe865c502665 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 20 Nov 2023 13:26:23 -0800 Subject: [PATCH 1/2] Update to Wasmtime 15.0.0 --- ci/download-wasmtime.py | 4 +- rust/Cargo.lock | 95 ++++++++++++++++++++++++----------------- rust/Cargo.toml | 4 +- rust/bindgen.wit | 4 +- rust/bindgen/Cargo.toml | 6 +-- setup.py | 2 +- tests/test_store.py | 17 ++++---- wasmtime/_bindings.py | 90 ++++++++++++++++++++++++-------------- wasmtime/_store.py | 27 +++--------- 9 files changed, 141 insertions(+), 108 deletions(-) diff --git a/ci/download-wasmtime.py b/ci/download-wasmtime.py index a5913fd0..bd8682ab 100644 --- a/ci/download-wasmtime.py +++ b/ci/download-wasmtime.py @@ -10,7 +10,7 @@ import zipfile from pathlib import Path -WASMTIME_VERSION = "v14.0.0" +WASMTIME_VERSION = "v15.0.0" def main(platform, arch): @@ -58,6 +58,8 @@ def final_loc(name): if len(parts) > 1 and name.endswith('.h'): return Path('wasmtime') / 'include' / parts[1] elif name.endswith('.dll') or name.endswith('.so') or name.endswith('.dylib'): + if '-min.' in name: + return None return dst else: return None diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 9ae603e4..92566cad 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -47,9 +47,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cranelift-entity" -version = "0.101.0" +version = "0.102.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2fe6b7e49820893691aea497f36257e9d6f52061d8c4758d61d802d5f101a3d" +checksum = "2f871ada808b58158d84dfc43a6a2e2d2756baaf4ed1c51fd969ca8330e6ca5c" dependencies = [ "serde", "serde_derive", @@ -262,9 +262,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.6" +version = "0.12.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5" +checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a" [[package]] name = "thiserror" @@ -326,18 +326,27 @@ dependencies = [ [[package]] name = "wasm-encoder" -version = "0.35.0" +version = "0.36.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ca90ba1b5b0a70d3d49473c5579951f3bddc78d47b59256d2f9d4922b150aca" +checksum = "822b645bf4f2446b949776ffca47e2af60b167209ffb70814ef8779d299cd421" +dependencies = [ + "leb128", +] + +[[package]] +name = "wasm-encoder" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b09bc5df933a3dabbdb72ae4b6b71be8ae07f58774d5aa41bd20adcd41a235a" dependencies = [ "leb128", ] [[package]] name = "wasm-metadata" -version = "0.10.9" +version = "0.10.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14abc161bfda5b519aa229758b68f2a52b45a12b993808665c857d1a9a00223c" +checksum = "3b4a14bbedb07737809c00843d1f2f88ba0b8950c114283e0387e30b1b6ee558" dependencies = [ "anyhow", "indexmap", @@ -345,15 +354,25 @@ dependencies = [ "serde_derive", "serde_json", "spdx", - "wasm-encoder", - "wasmparser", + "wasm-encoder 0.38.0", + "wasmparser 0.118.0", +] + +[[package]] +name = "wasmparser" +version = "0.116.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a58e28b80dd8340cb07b8242ae654756161f6fc8d0038123d679b7b99964fa50" +dependencies = [ + "indexmap", + "semver", ] [[package]] name = "wasmparser" -version = "0.115.0" +version = "0.118.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e06c0641a4add879ba71ccb3a1e4278fd546f76f1eafb21d8f7b07733b547cd5" +checksum = "ebbb91574de0011ded32b14db12777e7dd5e9ea2f9d7317a1ab51a9495c75924" dependencies = [ "indexmap", "semver", @@ -361,25 +380,25 @@ dependencies = [ [[package]] name = "wasmprinter" -version = "0.2.70" +version = "0.2.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e74458a9bc5cc9c7108abfa0fe4dc88d5abf1f3baf194df3264985f17d559b5e" +checksum = "61a7a046e6636d25c06a5df00bdc34e02f9e6e0e8a356d738299b961a6126114" dependencies = [ "anyhow", - "wasmparser", + "wasmparser 0.118.0", ] [[package]] name = "wasmtime-component-util" -version = "14.0.0" +version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed152c380638b46115bfeef8779a0ecdf2c50b445d9c42fee1bb95040f135cce" +checksum = "3e85f1319a7ed36aa59446ab7e967d0c2fb0cd179bf56913633190b44572023e" [[package]] name = "wasmtime-environ" -version = "14.0.0" +version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7679dbbd0eb6ea23fc8c29dc8c46f77a951f6154bb25af969bda18b0386b4680" +checksum = "c0116108e7d231cce15fe7dd642c66c3abb14dbcf169b0130e11f223ce8d1ad7" dependencies = [ "anyhow", "cranelift-entity", @@ -391,8 +410,8 @@ dependencies = [ "serde_derive", "target-lexicon", "thiserror", - "wasm-encoder", - "wasmparser", + "wasm-encoder 0.36.2", + "wasmparser 0.116.1", "wasmprinter", "wasmtime-component-util", "wasmtime-types", @@ -400,22 +419,22 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "14.0.0" +version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dea1bc99dcd41d510b6f3535baefe56ec55741f0a9bd812b3323a1668b2eb50" +checksum = "447973db3dc5c24db14130ab0922795c58790aec296d198ad9d253b82ec67471" dependencies = [ "cranelift-entity", "serde", "serde_derive", "thiserror", - "wasmparser", + "wasmparser 0.116.1", ] [[package]] name = "wit-bindgen" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7d92ce0ca6b6074059413a9581a637550c3a740581c854f9847ec293c8aed71" +checksum = "0205c6e67438f9d657318e0d7ee407a8017cd7bc5f1636cd4a280d4ccbc8d4a0" dependencies = [ "bitflags", "wit-bindgen-rust-macro", @@ -423,9 +442,9 @@ dependencies = [ [[package]] name = "wit-bindgen-core" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "565b945ae074886071eccf9cdaf8ccd7b959c2b0d624095bea5fe62003e8b3e0" +checksum = "4dfc34e539edf78da2efed167549962a4d26000db04694408285f52d90703fee" dependencies = [ "anyhow", "wit-component", @@ -434,9 +453,9 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5695ff4e41873ed9ce56d2787e6b5772bdad9e70e2c1d2d160621d1762257f4f" +checksum = "e898ad170a2796e9ecc495ce52cc2518dc35364ec042a4e108dd3c454e2a24c6" dependencies = [ "anyhow", "heck", @@ -447,9 +466,9 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-macro" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a91835ea4231da1fe7971679d505ba14be7826e192b6357f08465866ef482e08" +checksum = "cde5bc98cd9ebc817e7a0325120b5cf047643c2cc4583b917e66914215f94cff" dependencies = [ "anyhow", "proc-macro2", @@ -462,9 +481,9 @@ dependencies = [ [[package]] name = "wit-component" -version = "0.16.0" +version = "0.18.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e87488b57a08e2cbbd076b325acbe7f8666965af174d69d5929cd373bd54547f" +checksum = "5b8a35a2a9992898c9d27f1664001860595a4bc99d32dd3599d547412e17d7e2" dependencies = [ "anyhow", "bitflags", @@ -473,17 +492,17 @@ dependencies = [ "serde", "serde_derive", "serde_json", - "wasm-encoder", + "wasm-encoder 0.38.0", "wasm-metadata", - "wasmparser", + "wasmparser 0.118.0", "wit-parser", ] [[package]] name = "wit-parser" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ace9943d89bbf3dbbc71b966da0e7302057b311f36a4ac3d65ddfef17b52cf" +checksum = "15df6b7b28ce94b8be39d8df5cb21a08a4f3b9f33b631aedb4aa5776f785ead3" dependencies = [ "anyhow", "id-arena", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index f2e77f89..de246035 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -3,8 +3,8 @@ members = ['bindgen', 'wasi_snapshot_preview1'] resolver = "2" [workspace.dependencies] -wit-bindgen = { version = "0.13.0", default-features = false, features = ['macros'] } -wit-bindgen-core = "0.13.0" +wit-bindgen = { version = "0.14.0", default-features = false, features = ['macros'] } +wit-bindgen-core = "0.14.0" [profile.release] strip = 'debuginfo' diff --git a/rust/bindgen.wit b/rust/bindgen.wit index dd2dc395..51d364f7 100644 --- a/rust/bindgen.wit +++ b/rust/bindgen.wit @@ -1,5 +1,5 @@ -package wasmtime:python +package wasmtime:python; world bindgen { - export generate: func(name: string, wit: list) -> result>>, string> + export generate: func(name: string, wit: list) -> result>>, string>; } diff --git a/rust/bindgen/Cargo.toml b/rust/bindgen/Cargo.toml index 0344542d..2c6a990a 100644 --- a/rust/bindgen/Cargo.toml +++ b/rust/bindgen/Cargo.toml @@ -11,10 +11,10 @@ crate-type = ['cdylib', 'rlib'] [dependencies] anyhow = "1.0" heck = { version = "0.4", features = ["unicode"] } -wit-parser = "0.12.1" -wit-component = "0.16.0" +wit-parser = "0.13.0" +wit-component = "0.18.0" indexmap = "2.0" -wasmtime-environ = { version = "14.0.0", features = ['component-model'] } +wasmtime-environ = { version = "15.0.0", features = ['component-model'] } wit-bindgen = { workspace = true, features = ['default'] } wit-bindgen-core = { workspace = true } diff --git a/setup.py b/setup.py index 18035616..f7486a46 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README.md", "r") as fh: long_description = fh.read() -version = "14.0.0" +version = "15.0.0" # Give unique version numbers to all commits so our publication-on-each commit # works on main diff --git a/tests/test_store.py b/tests/test_store.py index 239f017a..1ed88f2a 100644 --- a/tests/test_store.py +++ b/tests/test_store.py @@ -53,20 +53,19 @@ def test_fuel(self): store = Store() with self.assertRaises(WasmtimeError): - store.add_fuel(1) + store.set_fuel(1) with self.assertRaises(WasmtimeError): - store.fuel_consumed() + store.get_fuel() config = Config() config.consume_fuel = True store = Store(Engine(config)) - store.add_fuel(1) - assert(store.fuel_consumed() == 0) - assert(store.consume_fuel(0) == 1) - store.add_fuel(1) - assert(store.consume_fuel(1) == 1) - with self.assertRaises(WasmtimeError): - store.consume_fuel(2) + store.set_fuel(1) + assert(store.get_fuel() == 1) + store.set_fuel(2) + assert(store.get_fuel() == 2) + store.set_fuel(0) + assert(store.get_fuel() == 0) def test_limits(self): store = Store() diff --git a/wasmtime/_bindings.py b/wasmtime/_bindings.py index fc5c4693..6c1a4d1b 100644 --- a/wasmtime/_bindings.py +++ b/wasmtime/_bindings.py @@ -2218,6 +2218,12 @@ class wasmtime_memory_creator(Structure): def wasmtime_config_host_memory_creator_set(arg0: Any, arg1: Any) -> None: return _wasmtime_config_host_memory_creator_set(arg0, arg1) # type: ignore +_wasmtime_config_memory_init_cow_set = dll.wasmtime_config_memory_init_cow_set +_wasmtime_config_memory_init_cow_set.restype = None +_wasmtime_config_memory_init_cow_set.argtypes = [POINTER(wasm_config_t), c_bool] +def wasmtime_config_memory_init_cow_set(arg0: Any, arg1: Any) -> None: + return _wasmtime_config_memory_init_cow_set(arg0, arg1) # type: ignore + _wasmtime_engine_increment_epoch = dll.wasmtime_engine_increment_epoch _wasmtime_engine_increment_epoch.restype = None _wasmtime_engine_increment_epoch.argtypes = [POINTER(wasm_engine_t)] @@ -2341,29 +2347,17 @@ def wasmtime_context_set_data(context: Any, data: Any) -> None: def wasmtime_context_gc(context: Any) -> None: return _wasmtime_context_gc(context) # type: ignore -_wasmtime_context_add_fuel = dll.wasmtime_context_add_fuel -_wasmtime_context_add_fuel.restype = POINTER(wasmtime_error_t) -_wasmtime_context_add_fuel.argtypes = [POINTER(wasmtime_context_t), c_uint64] -def wasmtime_context_add_fuel(store: Any, fuel: Any) -> ctypes._Pointer: - return _wasmtime_context_add_fuel(store, fuel) # type: ignore - -_wasmtime_context_fuel_consumed = dll.wasmtime_context_fuel_consumed -_wasmtime_context_fuel_consumed.restype = c_bool -_wasmtime_context_fuel_consumed.argtypes = [POINTER(wasmtime_context_t), POINTER(c_uint64)] -def wasmtime_context_fuel_consumed(context: Any, fuel: Any) -> bool: - return _wasmtime_context_fuel_consumed(context, fuel) # type: ignore - -_wasmtime_context_fuel_remaining = dll.wasmtime_context_fuel_remaining -_wasmtime_context_fuel_remaining.restype = c_bool -_wasmtime_context_fuel_remaining.argtypes = [POINTER(wasmtime_context_t), POINTER(c_uint64)] -def wasmtime_context_fuel_remaining(context: Any, fuel: Any) -> bool: - return _wasmtime_context_fuel_remaining(context, fuel) # type: ignore - -_wasmtime_context_consume_fuel = dll.wasmtime_context_consume_fuel -_wasmtime_context_consume_fuel.restype = POINTER(wasmtime_error_t) -_wasmtime_context_consume_fuel.argtypes = [POINTER(wasmtime_context_t), c_uint64, POINTER(c_uint64)] -def wasmtime_context_consume_fuel(context: Any, fuel: Any, remaining: Any) -> ctypes._Pointer: - return _wasmtime_context_consume_fuel(context, fuel, remaining) # type: ignore +_wasmtime_context_set_fuel = dll.wasmtime_context_set_fuel +_wasmtime_context_set_fuel.restype = POINTER(wasmtime_error_t) +_wasmtime_context_set_fuel.argtypes = [POINTER(wasmtime_context_t), c_uint64] +def wasmtime_context_set_fuel(store: Any, fuel: Any) -> ctypes._Pointer: + return _wasmtime_context_set_fuel(store, fuel) # type: ignore + +_wasmtime_context_get_fuel = dll.wasmtime_context_get_fuel +_wasmtime_context_get_fuel.restype = POINTER(wasmtime_error_t) +_wasmtime_context_get_fuel.argtypes = [POINTER(wasmtime_context_t), POINTER(c_uint64)] +def wasmtime_context_get_fuel(context: Any, fuel: Any) -> ctypes._Pointer: + return _wasmtime_context_get_fuel(context, fuel) # type: ignore _wasmtime_context_set_wasi = dll.wasmtime_context_set_wasi _wasmtime_context_set_wasi.restype = POINTER(wasmtime_error_t) @@ -2779,7 +2773,7 @@ def wasmtime_linker_get(linker: Any, store: Any, module: Any, module_len: Any, n _wasmtime_linker_instantiate_pre = dll.wasmtime_linker_instantiate_pre _wasmtime_linker_instantiate_pre.restype = POINTER(wasmtime_error_t) -_wasmtime_linker_instantiate_pre.argtypes = [POINTER(wasmtime_linker_t), POINTER(wasmtime_module_t), POINTER(POINTER(wasmtime_instance_t))] +_wasmtime_linker_instantiate_pre.argtypes = [POINTER(wasmtime_linker_t), POINTER(wasmtime_module_t), POINTER(POINTER(wasmtime_instance_pre_t))] def wasmtime_linker_instantiate_pre(linker: Any, module: Any, instance_pre: Any) -> ctypes._Pointer: return _wasmtime_linker_instantiate_pre(linker, module, instance_pre) # type: ignore @@ -2917,16 +2911,16 @@ def wasmtime_config_async_support_set(arg0: Any, arg1: Any) -> None: def wasmtime_config_async_stack_size_set(arg0: Any, arg1: Any) -> None: return _wasmtime_config_async_stack_size_set(arg0, arg1) # type: ignore -_wasmtime_context_out_of_fuel_async_yield = dll.wasmtime_context_out_of_fuel_async_yield -_wasmtime_context_out_of_fuel_async_yield.restype = None -_wasmtime_context_out_of_fuel_async_yield.argtypes = [POINTER(wasmtime_context_t), c_uint64, c_uint64] -def wasmtime_context_out_of_fuel_async_yield(context: Any, injection_count: Any, fuel_to_inject: Any) -> None: - return _wasmtime_context_out_of_fuel_async_yield(context, injection_count, fuel_to_inject) # type: ignore +_wasmtime_context_fuel_async_yield_interval = dll.wasmtime_context_fuel_async_yield_interval +_wasmtime_context_fuel_async_yield_interval.restype = POINTER(wasmtime_error_t) +_wasmtime_context_fuel_async_yield_interval.argtypes = [POINTER(wasmtime_context_t), c_uint64] +def wasmtime_context_fuel_async_yield_interval(context: Any, interval: Any) -> ctypes._Pointer: + return _wasmtime_context_fuel_async_yield_interval(context, interval) # type: ignore _wasmtime_context_epoch_deadline_async_yield_and_update = dll.wasmtime_context_epoch_deadline_async_yield_and_update -_wasmtime_context_epoch_deadline_async_yield_and_update.restype = None +_wasmtime_context_epoch_deadline_async_yield_and_update.restype = POINTER(wasmtime_error_t) _wasmtime_context_epoch_deadline_async_yield_and_update.argtypes = [POINTER(wasmtime_context_t), c_uint64] -def wasmtime_context_epoch_deadline_async_yield_and_update(context: Any, delta: Any) -> None: +def wasmtime_context_epoch_deadline_async_yield_and_update(context: Any, delta: Any) -> ctypes._Pointer: return _wasmtime_context_epoch_deadline_async_yield_and_update(context, delta) # type: ignore wasmtime_func_async_continuation_callback_t = CFUNCTYPE(c_bool, c_void_p) @@ -2984,6 +2978,40 @@ def wasmtime_linker_instantiate_async(linker: Any, store: Any, module: Any, inst def wasmtime_instance_pre_instantiate_async(instance_pre: Any, store: Any, instance: Any, trap_ret: Any, error_ret: Any) -> ctypes._Pointer: return _wasmtime_instance_pre_instantiate_async(instance_pre, store, instance, trap_ret, error_ret) # type: ignore +wasmtime_stack_memory_get_callback_t = CFUNCTYPE(c_size_t, c_void_p, POINTER(c_size_t)) + +class wasmtime_stack_memory(Structure): + _fields_ = [ + ("env", c_void_p), + ("get_stack_memory", wasmtime_stack_memory_get_callback_t), + ("finalizer", CFUNCTYPE(None, c_void_p)), + ] + env: ctypes._Pointer + get_stack_memory: ctypes._Pointer + finalizer: ctypes._Pointer + +wasmtime_stack_memory_t = wasmtime_stack_memory + +wasmtime_new_stack_memory_callback_t = CFUNCTYPE(c_size_t, c_void_p, c_size_t, POINTER(wasmtime_stack_memory_t)) + +class wasmtime_stack_creator(Structure): + _fields_ = [ + ("env", c_void_p), + ("new_stack", wasmtime_new_stack_memory_callback_t), + ("finalizer", CFUNCTYPE(None, c_void_p)), + ] + env: ctypes._Pointer + new_stack: ctypes._Pointer + finalizer: ctypes._Pointer + +wasmtime_stack_creator_t = wasmtime_stack_creator + +_wasmtime_config_host_stack_creator_set = dll.wasmtime_config_host_stack_creator_set +_wasmtime_config_host_stack_creator_set.restype = None +_wasmtime_config_host_stack_creator_set.argtypes = [POINTER(wasm_config_t), POINTER(wasmtime_stack_creator_t)] +def wasmtime_config_host_stack_creator_set(arg0: Any, arg1: Any) -> None: + return _wasmtime_config_host_stack_creator_set(arg0, arg1) # type: ignore + _wasmtime_wat2wasm = dll.wasmtime_wat2wasm _wasmtime_wat2wasm.restype = POINTER(wasmtime_error_t) _wasmtime_wat2wasm.argtypes = [POINTER(c_char), c_size_t, POINTER(wasm_byte_vec_t)] diff --git a/wasmtime/_store.py b/wasmtime/_store.py index 3d70badf..4f69d1ce 100644 --- a/wasmtime/_store.py +++ b/wasmtime/_store.py @@ -49,9 +49,9 @@ def gc(self) -> None: """ ffi.wasmtime_context_gc(self._context) - def add_fuel(self, fuel: int) -> None: + def set_fuel(self, fuel: int) -> None: """ - Adds the specified amount of fuel into this store. + Sets the amount of fuel in this store to `fuel`. This is only relevant when `Config.consume_fuel` is configured. @@ -61,36 +61,21 @@ def add_fuel(self, fuel: int) -> None: Raises a `WasmtimeError` if this store's configuration is not configured to consume fuel. """ - err = ffi.wasmtime_context_add_fuel(self._context, fuel) + err = ffi.wasmtime_context_set_fuel(self._context, fuel) if err: raise WasmtimeError._from_ptr(err) - def fuel_consumed(self) -> int: + def get_fuel(self) -> int: """ - Returns the amount of fuel consumed by this `Store` so far. - - Raises a `WasmtimeError` if this store's configuration is not configured - to consume fuel. - """ - fuel = c_uint64(0) - ok = ffi.wasmtime_context_fuel_consumed(self._context, byref(fuel)) - if ok: - return fuel.value - raise WasmtimeError("fuel is not enabled in this store's configuration") - - def consume_fuel(self, fuel: int) -> int: - """ - Consumes the specified amount of fuel from this store. + Returns the amount of fuel left in the store. This is only relevant when `Config.consume_fuel` is configured. Raises a `WasmtimeError` if this store's configuration is not configured to consume fuel or if the store doesn't have enough fuel remaining. - - Returns the remaining amount of fuel left in the store. """ remaining = c_uint64(0) - err = ffi.wasmtime_context_consume_fuel(self._context, fuel, byref(remaining)) + err = ffi.wasmtime_context_get_fuel(self._context, byref(remaining)) if err: raise WasmtimeError._from_ptr(err) return remaining.value From 8fd1ced180bfcf7f4d8508e69a35ab9a4980a221 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 20 Nov 2023 13:51:35 -0800 Subject: [PATCH 2/2] Update wasm-tools on CI --- .github/actions/setup/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 76680c96..488880cc 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -39,7 +39,7 @@ runs: # Install the `wasm-tools` binary with the `component` subcommand that is all # that's needed here. - run: | - echo WASM_TOOLS=wasm-tools-1.0.35 >> $GITHUB_ENV + echo WASM_TOOLS=wasm-tools-1.0.53 >> $GITHUB_ENV mkdir -p '${{ runner.tool_cache }}/wasm-tools' echo '${{ runner.tool_cache }}/wasm-tools' >> $GITHUB_PATH shell: bash