axio
std::io for no_std environment.
Features
- alloc:
- Enables extra methods on
Read:read_to_end,read_to_string. - Enables extra methods on
BufRead:read_until,read_line,split,lines. - Enables implementations of axio traits for
alloctypes likeVec<u8>,Box<T>, etc. - Enables
BufWriter::with_capacity. (Ifallocis disabled, onlyBufWriter::newis available.) - Removes the capacity limit on
BufReader. (Ifallocis disabled,BufReader::with_capacitywill panic if the capacity is larger than a fixed limit.)
- Enables extra methods on
Differences to std::io
- Error types from
axerrnoinstead ofstd::io::Error. - No
IoSliceand*_vectoredAPIs.
Limitations
- Requires nightly Rust.
License
Licensed under either of
- GNU General Public License v3.0 or later, (https://www.gnu.org/licenses/gpl-3.0.html)
- Apache License, Version 2.0, (https://www.apache.org/licenses/LICENSE-2.0)
- Mulan Permissive Software License, Version 2, (https://license.coscl.org.cn/MulanPSL2)
at your option.
Almost all of the code in this repository is a copy of the Rust language codebase with minor modifications.
For attributions, see https://thanks.rust-lang.org/.