Stream: git-wasmtime

Topic: wasmtime / PR #12334 Fix generated code for `anyhow: true...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 13 2026 at 20:40):

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 uses wasmtime::anyhow::Result and we re-export anyhow through wasmtime::anyhow -- with doc(hidden) since it is only for macro-generated code -- when the anyhow cargo feature is enabled.

This fixes the CI failures in https://github.com/bytecodealliance/wasmtime/pull/12309 when we replace anyhow with wasmtime::Error.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jan 13 2026 at 20:40):

fitzgen requested pchickey for a review on PR #12334.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 13 2026 at 20:40):

fitzgen requested wasmtime-core-reviewers for a review on PR #12334.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 13 2026 at 20:43):

fitzgen commented on PR #12334:

Note that we have to use anyhow through a wasmtime re-export or else our anyhow_for_testing thing means that the generated code won't use the right name for anyhow.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 13 2026 at 21:47):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 13 2026 at 21:47):

fitzgen updated PR #12334.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 13 2026 at 21:47):

fitzgen has enabled auto merge for PR #12334.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 13 2026 at 22:23):

fitzgen merged PR #12334.


Last updated: Jan 29 2026 at 13:25 UTC