forkable/lib.rs
1#![cfg_attr(not(feature = "std"), no_std)]
2#![cfg_attr(feature = "nightly", feature(error_in_core))]
3
4#[cfg(feature = "nightly")]
5pub use core::error::Error;
6#[cfg(all(feature = "std", not(feature = "nightly")))]
7pub use std::error::Error;
8
9#[cfg(all(not(feature = "std"), not(feature = "nightly")))]
10compile_error!("no_std version of the crate must make use of a nightly compiler");
11
12
13pub extern crate alloc;
14
15pub mod sync;
16
17pub use sync::*;
18
19pub mod maybe;