fitzgen opened PR #12334 from fitzgen:fix-anyhow-in-wit-bindgen to bytecodealliance:main:
The trait was still declared as using
wasmtime::Result. It now useswasmtime::anyhow::Resultand we re-exportanyhowthroughwasmtime::anyhow-- withdoc(hidden)since it is only for macro-generated code -- when theanyhowcargo feature is enabled.This fixes the CI failures in https://github.com/bytecodealliance/wasmtime/pull/12309 when we replace
anyhowwithwasmtime::Error.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
fitzgen requested pchickey for a review on PR #12334.
fitzgen requested wasmtime-core-reviewers for a review on PR #12334.
fitzgen commented on PR #12334:
Note that we have to use
anyhowthrough awasmtimere-export or else ouranyhow_for_testingthing means that the generated code won't use the right name foranyhow.
alexcrichton submitted PR review.
fitzgen updated PR #12334.
fitzgen has enabled auto merge for PR #12334.
fitzgen merged PR #12334.
Last updated: Jan 29 2026 at 13:25 UTC