#[cfg(feature = "backtrace")]
mod backtrace;
mod boxed;
mod context;
mod error;
mod oom;
mod ptr;
#[cfg(feature = "anyhow")]
mod to_wasmtime_result;
mod vtable;
#[doc(hidden)]
pub mod macros;
pub use crate::{bail, ensure, format_err};
#[cfg(feature = "backtrace")]
pub use backtrace::disable_backtrace;
pub use context::Context;
pub use error::*;
pub use oom::OutOfMemory;
#[cfg(feature = "anyhow")]
pub use to_wasmtime_result::ToWasmtimeResult;
pub type Result<T, E = Error> = core::result::Result<T, E>;
#[allow(non_snake_case, reason = "matching anyhow API")]
pub fn Ok<T>(value: T) -> Result<T> {
core::result::Result::Ok(value)
}