core_error/lib.rs
1//! Traits for working with Errors.
2//!
3//! # Usage
4//!
5//! If you're a library, you should reexport *all the features* exposed by this
6//! crate.
7
8// If std feature is disabled, this crate is no_std.
9// This avoids making this crate fail on std build in version 1.5.0 and under
10#![cfg_attr(not(feature = "std"), no_std)]
11
12#[cfg(feature = "std")]
13pub use std::error::*;
14
15#[cfg(not(feature = "std"))]
16mod error_trait;
17
18#[cfg(not(feature = "std"))]
19pub use error_trait::*;