7 unstable releases (3 breaking)
Uses new Rust 2024
| new 0.5.0 | Apr 2, 2026 |
|---|---|
| 0.3.0-pre.1 | Dec 25, 2025 |
| 0.2.1 | Dec 19, 2025 |
| 0.1.2 | Dec 19, 2025 |
| 0.1.0 | Jul 18, 2024 |
#16 in No standard library
4,031 downloads per month
Used in 34 crates
(21 directly)
135KB
3K
SLoC
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/.
Dependencies
~1–1.6MB
~31K SLoC