no_std_io/lib.rs
1#![cfg_attr(feature = "nightly", feature(never_type))]
2#![cfg_attr(not(feature = "std"), no_std)]
3#![cfg_attr(feature = "std", allow(dead_code))]
4
5#[cfg(not(feature = "std"))]
6pub mod error;
7
8#[cfg(feature = "std")]
9pub use std::error as error;
10
11#[cfg(not(feature = "std"))]
12pub mod io;
13
14#[cfg(feature = "std")]
15pub use std::io as io;
16
17#[cfg(feature = "alloc")]
18extern crate alloc;