From daecad43c9c6b34a32aea341a49d555bc277f45b Mon Sep 17 00:00:00 2001 From: TimothyBanks Date: Tue, 8 Sep 2026 09:58:32 -0400 Subject: [PATCH] chore: Upgrade to Wasmi 2.0 --- crates/Cargo.lock | 16 ++++++++-------- crates/xrpl-wasm-vm/Cargo.toml | 2 +- src/benchmarks/libxrpl/wasm/README.md | 3 +-- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/crates/Cargo.lock b/crates/Cargo.lock index dc45bd9a24..cecf09688b 100644 --- a/crates/Cargo.lock +++ b/crates/Cargo.lock @@ -348,9 +348,9 @@ dependencies = [ [[package]] name = "wasmi" -version = "2.0.0-beta.10" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab57cbb8db5ee46c6667b642544d7664adfbc0ea6a1ab219c92d734b795f36b1" +checksum = "78693fcdd618e0fc34af59c6b8efa9ac5d58c68df940beff4bedddb6acfe7c27" dependencies = [ "spin", "wasmi_collections", @@ -361,27 +361,27 @@ dependencies = [ [[package]] name = "wasmi_collections" -version = "2.0.0-beta.10" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ea3ee266456966465c55a1f440e33116caf2b05a4fc30da36cb0c9813059d5" +checksum = "8a8be2aa467cf2d29e96ff759472c36eeb44a3c81c67fc9cb76c9a24c519c557" dependencies = [ "string-interner", ] [[package]] name = "wasmi_core" -version = "2.0.0-beta.10" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f8285efe48a9e1afbcdfcc19cd807b3eb20129b7e199c7a99efd30ba192926b" +checksum = "69372d5fda3ea3d1e0aa6603c7888110e0187e88ea17cd8fc2e2df0a0e1f37fa" dependencies = [ "libm", ] [[package]] name = "wasmi_ir" -version = "2.0.0-beta.10" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6227be1aebba39b4815ab6a312d0528590f0db2473621ec9285606410889b0a6" +checksum = "8f17b774caa13c618c7244f1ee51fe23c5e7b8538a471fa46d9949779758aed6" dependencies = [ "wasmi_core", ] diff --git a/crates/xrpl-wasm-vm/Cargo.toml b/crates/xrpl-wasm-vm/Cargo.toml index 02c4ec15bb..dc01cd86e9 100644 --- a/crates/xrpl-wasm-vm/Cargo.toml +++ b/crates/xrpl-wasm-vm/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition.workspace = true [dependencies] -wasmi = { version = "2.0.0-beta.10", default-features = false, features = ["std", "validate", "portable-dispatch"] } +wasmi = { version = "2.0.0", default-features = false, features = ["std", "validate", "portable-dispatch"] } xrpl-host-functions = { path = "../xrpl-host-functions" } [dev-dependencies] diff --git a/src/benchmarks/libxrpl/wasm/README.md b/src/benchmarks/libxrpl/wasm/README.md index e50afdec01..65b7677762 100644 --- a/src/benchmarks/libxrpl/wasm/README.md +++ b/src/benchmarks/libxrpl/wasm/README.md @@ -145,8 +145,7 @@ rows, all blaming cases that were innocent. **Outside the suite it is worth a look.** A validator compiles twice per programmable-escrow transaction against that same static engine. Whether that is unbounded growth in production depends -on wasmi internals not checked here — this is the C++-visible symptom, not a diagnosis. wasmi is -pinned at `2.0.0-beta.10`, a beta, so try a version bump first. +on wasmi internals not checked here — this is the C++-visible symptom, not a diagnosis. ## Gotchas, each of which has already cost someone an afternoon