core2/io/
mod.rs

1#[cfg(feature = "nightly")]
2mod buffered;
3mod cursor;
4mod error;
5mod impls;
6mod traits;
7mod util;
8
9#[cfg(not(feature = "std"))]
10pub use cursor::Cursor;
11#[cfg(not(feature = "std"))]
12pub use error::{Error, ErrorKind, Result};
13#[cfg(not(feature = "std"))]
14pub use traits::{BufRead, Bytes, Chain, Read, Seek, SeekFrom, Take, Write};
15
16#[cfg(feature = "std")]
17pub 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")]
23pub use buffered::{BufReader, BufWriter, LineWriter};
24
25#[cfg(feature = "nightly")]
26pub use util::copy;