| 1 |
#[cfg(feature = "nightly")] |
| 2 |
mod buffered; |
| 3 |
mod cursor; |
| 4 |
mod error; |
| 5 |
mod impls; |
| 6 |
mod traits; |
| 7 |
mod util; |
| 8 |
|
| 9 |
#[cfg(not(feature = "std"))] |
| 10 |
pub use cursor::Cursor; |
| 11 |
#[cfg(not(feature = "std"))] |
| 12 |
pub use error::{Error, ErrorKind, Result}; |
| 13 |
#[cfg(not(feature = "std"))] |
| 14 |
pub use traits::{BufRead, Bytes, Chain, Read, Seek, SeekFrom, Take, Write}; |
| 15 |
|
| 16 |
#[cfg(feature = "std")] |
| 17 |
pub use std::io::{ |
| 18 |
BufRead, Bytes, Chain, Cursor, Error, ErrorKind, Read, Result, Seek, SeekFrom, Take, Write, |
| 19 |
}; |
| 20 |
|
| 21 |
// Use this crate's implementation on both std and no_std |
| 22 |
#[cfg(feature = "nightly")] |
| 23 |
pub use buffered::{BufReader, BufWriter, LineWriter}; |
| 24 |
|
| 25 |
#[cfg(feature = "nightly")] |
| 26 |
pub use util::copy; |