Skip to content

Conversation

@fitzgen
Copy link
Member

@fitzgen fitzgen commented Dec 29, 2025

Instead of anyhow::Error.

This commit re-exports wasmtime_environ::error as the wasmtime::error module, updates the prelude to include these new error-handling types, redirects our top-level wasmtime::{Error, Result} re-exports to re-export wasmtime::error::{Error, Result}, and updates various use sites that were directly using anyhow to use the new wasmtime versions.

This process also required updating the component macro and wit-bindgen macro to use the new error types instead of anyhow.

Part of #12069

@fitzgen fitzgen requested a review from alexcrichton December 29, 2025 22:04
@fitzgen fitzgen requested review from a team as code owners December 29, 2025 22:04
@fitzgen fitzgen force-pushed the migrate-wasmtime-to-wasmtime-error branch from a6c7162 to 9b06a14 Compare December 29, 2025 22:06
Instead of `anyhow::Error`.

This commit re-exports the `wasmtime_environ::error` as the `wasmtime::error`
module, updates the prelude to include these new error-handling types, redirects
our top-level `wasmtime::{Error, Result}` re-exports to re-export
`wasmtime::error::{Error, Result}`, and updates various use sites that were
directly using `anyhow` to use the new `wasmtime` versions.

This process also required updating the component macro and wit-bindgen macro to
use the new error types instead of `anyhow`.

Part of bytecodealliance#12069
@fitzgen fitzgen force-pushed the migrate-wasmtime-to-wasmtime-error branch from 9b06a14 to 0b4fae7 Compare December 29, 2025 22:08
@fitzgen fitzgen changed the title Migrate the wasmtime crate to wasmtime_internal_error::Error Migrate the wasmtime crate to wasmtime_environ::error::* Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant