From 50f565a643f23fcaa1b3848304726321db868b93 Mon Sep 17 00:00:00 2001 From: mfw78 Date: Sat, 30 May 2026 10:06:11 +0000 Subject: [PATCH] chore(deps): bump wasmtime and wasmtime-wasi from 41 to 45 Combined replacement for the two split Dependabot PRs (#1, #2). The crates re-export types from each other and must move in lockstep; bumping only one produces 'mismatched types' between wasmtime::Error and wasmtime_internal_core::error::error::Error. Source changes required by v45: - wasmtime::Error no longer implements std::error::Error, so the anyhow::Context trait no longer applies to Result<_, wasmtime::Error>. Switch to wasmtime's own error::Context trait, which provides the same .context() method on those Results. - Config::async_support is deprecated and a no-op in v45 (async support is always enabled when the component-model feature is on). Drop the call. --- crates/nxm-engine/Cargo.toml | 4 ++-- crates/nxm-engine/src/main.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/nxm-engine/Cargo.toml b/crates/nxm-engine/Cargo.toml index 6bfd631..91eb722 100644 --- a/crates/nxm-engine/Cargo.toml +++ b/crates/nxm-engine/Cargo.toml @@ -6,7 +6,7 @@ license.workspace = true repository.workspace = true [dependencies] -wasmtime = { version = "41", features = ["component-model"] } -wasmtime-wasi = "41" +wasmtime = { version = "45", features = ["component-model"] } +wasmtime-wasi = "45" anyhow = "1" tokio = { version = "1", features = ["full"] } diff --git a/crates/nxm-engine/src/main.rs b/crates/nxm-engine/src/main.rs index 58773d7..6771d42 100644 --- a/crates/nxm-engine/src/main.rs +++ b/crates/nxm-engine/src/main.rs @@ -223,7 +223,6 @@ async fn main() -> anyhow::Result<()> { let mut config = wasmtime::Config::new(); config.wasm_component_model(true); - config.async_support(true); let engine = Engine::new(&config)?; let start = Instant::now(); @@ -284,4 +283,4 @@ async fn main() -> anyhow::Result<()> { Ok(()) } -use anyhow::Context as _; +use wasmtime::error::Context as _;