failure_ext/lib.rs
1//! Convenience extension traits for the failure error-handling crate
2//!
3//! This crate makes it possible to call `.context(...)` on the following types
4//! * `std::option::Option`
5//! * `futures::Future` (if the `future_ext` feature is enabled)
6
7#[cfg(feature = "future_ext")]
8mod future_ext;
9mod option_ext;
10
11#[cfg(feature = "future_ext")]
12pub use future_ext::FutureExt;
13pub use option_ext::OptionExt;