Skip to content

fix(wizer): enable wasmtime/anyhow - #14214

Open
rvolosatovs wants to merge 1 commit into
bytecodealliance:mainfrom
rvolosatovs:fix/wizer-features
Open

fix(wizer): enable wasmtime/anyhow#14214
rvolosatovs wants to merge 1 commit into
bytecodealliance:mainfrom
rvolosatovs:fix/wizer-features

Conversation

@rvolosatovs

Copy link
Copy Markdown
Member

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`
...

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 <rvolosatovs@riseup.net>
@rvolosatovs
rvolosatovs requested a review from a team as a code owner August 26, 2026 15:20
@rvolosatovs
rvolosatovs requested review from pchickey and removed request for a team August 26, 2026 15:20
@pchickey
pchickey enabled auto-merge August 26, 2026 15:50
@github-actions github-actions Bot added the wizer Issues related to Wizer snapshotting, pre-initialization, and the `wasmtime wizer` subcommand label Aug 26, 2026
@github-actions

Copy link
Copy Markdown

Subscribe to Label Action

cc @fitzgen

Details This issue or pull request has been labeled: "wizer"

Thus the following users have been cc'd because of the following labels:

  • fitzgen: wizer

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wizer Issues related to Wizer snapshotting, pre-initialization, and the `wasmtime wizer` subcommand

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants