Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Temporarily re-export `anyhow` as `wasmtime_environ::error` (#12202)

Nick Fitzgeraldf8d2795b744f
diff --git a/crates/environ/src/lib.rs b/crates/environ/src/lib.rs
index d78640d137..8c4c9b254c 100644
--- a/crates/environ/src/lib.rs
+++ b/crates/environ/src/lib.rs
@@ -23,7 +23,6 @@ mod frame_table;
#[macro_use]
mod builtin;
mod demangling;
-mod error;
mod ext;
mod gc;
mod hostcall;
@@ -40,12 +39,12 @@ mod trap_encoding;
mod tunables;
mod types;
mod vmoffsets;
+mod wasm_error;
pub use self::ext::*;
pub use crate::address_map::*;
pub use crate::builtin::*;
pub use crate::demangling::*;
-pub use crate::error::*;
pub use crate::frame_table::*;
pub use crate::gc::*;
pub use crate::hostcall::*;
@@ -61,6 +60,7 @@ pub use crate::trap_encoding::*;
pub use crate::tunables::*;
pub use crate::types::*;
pub use crate::vmoffsets::*;
+pub use crate::wasm_error::*;
pub use object;
pub use wasmparser;
@@ -80,5 +80,9 @@ pub mod fact;
// one of three and making sure you're using the right one.
pub use cranelift_entity::*;
+// Temporarily re-export `anyhow` as `wasmtime_environ::error` to ease the
+// migration to the `wasmtime-internal-error` crate.
+pub use anyhow as error;
+
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
diff --git a/crates/environ/src/error.rs b/crates/environ/src/wasm_error.rs
similarity index 100%
rename from crates/environ/src/error.rs
rename to crates/environ/src/wasm_error.rs