From 6901085b22bd1a366f387b1cb90b52708de711b2 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Wed, 26 Aug 2026 17:17:09 +0200 Subject: [PATCH] fix(wizer): enable `wasmtime/anyhow` Enabling both `wasmtime` and `component-model` features fails with regular `cargo build`. Note, that this issue is not reproducible using `cargo test`, because `wasmtime/anyhow` is unconditionally enabled in `dev-dependencies` ``` $ cargo build --features wasmtime,component-model ... error[E0599]: no associated function or constant named `from_anyhow` found for struct `wasmtime::Error` in the current scope --> crates/wizer/src/component/wasmtime.rs:54:43 | 54 | .map_err(wasmtime::Error::from_anyhow) | ^^^^^^^^^^^ associated function or constant not found in `wasmtime::Error` error[E0599]: no associated function or constant named `from_anyhow` found for struct `wasmtime::Error` in the current scope --> crates/wizer/src/component/wasmtime.rs:61:47 | 61 | .map_err(wasmtime::Error::from_anyhow) | ^^^^^^^^^^^ associated function or constant not found in `wasmtime::Error` ... ``` Signed-off-by: Roman Volosatovs --- crates/wizer/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/wizer/Cargo.toml b/crates/wizer/Cargo.toml index 9f76326c3e83..1559e6ac2639 100644 --- a/crates/wizer/Cargo.toml +++ b/crates/wizer/Cargo.toml @@ -68,7 +68,7 @@ wasmtime = [ ] # Enable support for wizening components. -component-model = ['wasmtime/component-model'] +component-model = ['wasmtime/component-model', 'wasmtime/anyhow'] [[test]] name = "all"