Skip to content

Commit f8d2795

Browse files
authored
Temporarily re-export anyhow as wasmtime_environ::error (#12202)
* Temporarily re-export `anyhow` as `wasmtime_environ::error` This is intended to ease the migration to the `wasmtime-internal-error` crate. Follow up PRs will start moving crates in our workspace over to using this re-export and not depending on `anyhow` directly themselves. Finally, we will swap out this re-export for a re-export of the `wasmtime-internal-error` crate. * rename existing `error` module to `wasm_error`
1 parent 96e5797 commit f8d2795

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

crates/environ/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ mod frame_table;
2323
#[macro_use]
2424
mod builtin;
2525
mod demangling;
26-
mod error;
2726
mod ext;
2827
mod gc;
2928
mod hostcall;
@@ -40,12 +39,12 @@ mod trap_encoding;
4039
mod tunables;
4140
mod types;
4241
mod vmoffsets;
42+
mod wasm_error;
4343

4444
pub use self::ext::*;
4545
pub use crate::address_map::*;
4646
pub use crate::builtin::*;
4747
pub use crate::demangling::*;
48-
pub use crate::error::*;
4948
pub use crate::frame_table::*;
5049
pub use crate::gc::*;
5150
pub use crate::hostcall::*;
@@ -61,6 +60,7 @@ pub use crate::trap_encoding::*;
6160
pub use crate::tunables::*;
6261
pub use crate::types::*;
6362
pub use crate::vmoffsets::*;
63+
pub use crate::wasm_error::*;
6464
pub use object;
6565

6666
pub use wasmparser;
@@ -80,5 +80,9 @@ pub mod fact;
8080
// one of three and making sure you're using the right one.
8181
pub use cranelift_entity::*;
8282

83+
// Temporarily re-export `anyhow` as `wasmtime_environ::error` to ease the
84+
// migration to the `wasmtime-internal-error` crate.
85+
pub use anyhow as error;
86+
8387
/// Version number of this crate.
8488
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

0 commit comments

Comments
 (0)