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