mod any; mod macros; mod result_ext; /// Publicly exporting the error stack crate, to prevent every dependent depending on it too. pub use error_stack; pub use any::AnyErr; /// Shorthand for a [`Result`] with a [`error_stack::Report`] as the error variant pub type RResult = Result>; pub use result_ext::*; /// Easily import all useful error items. Useful to put inside a crate prelude. pub mod prelude { #[allow(unused_imports)] pub use error_stack::{Report, ResultExt}; #[allow(unused_imports)] pub use super::{AnyErr, BitbazaarResultExt, RResult, RecordAndConsumeResult}; #[allow(unused_imports)] pub use crate::{anyerr, err, panic_on_err, panic_on_err_async}; }