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

Download history 863/week @ 2025-12-16 266/week @ 2025-12-23 106/week @ 2025-12-30 274/week @ 2026-01-06 223/week @ 2026-01-13 127/week @ 2026-01-20 107/week @ 2026-01-27 845/week @ 2026-02-03 777/week @ 2026-02-10 224/week @ 2026-02-17 1458/week @ 2026-02-24 1179/week @ 2026-03-03 1301/week @ 2026-03-10 1309/week @ 2026-03-17 635/week @ 2026-03-24 717/week @ 2026-03-31

4,031 downloads per month
Used in 34 crates (21 directly)

GPL-3.0-or-later OR Apache-2…

135KB
3K SLoC

axio

Crates.io Docs.rs CI

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 alloc types like Vec<u8>, Box<T>, etc.
    • Enables BufWriter::with_capacity. (If alloc is disabled, only BufWriter::new is available.)
    • Removes the capacity limit on BufReader. (If alloc is disabled, BufReader::with_capacity will panic if the capacity is larger than a fixed limit.)

Differences to std::io

  • Error types from axerrno instead of std::io::Error.
  • No IoSlice and *_vectored APIs.

Limitations

  • Requires nightly Rust.

License

Licensed under either of

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