7 unstable releases (3 breaking)

Uses new Rust 2024

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

#323 in No standard library

Download history 1105/week @ 2026-04-15 1257/week @ 2026-04-22 945/week @ 2026-04-29 932/week @ 2026-05-06 833/week @ 2026-05-13 737/week @ 2026-05-20 911/week @ 2026-05-27 823/week @ 2026-06-03 1356/week @ 2026-06-10 192/week @ 2026-06-17 386/week @ 2026-06-24 43/week @ 2026-07-01 264/week @ 2026-07-08 496/week @ 2026-07-15 708/week @ 2026-07-22 367/week @ 2026-07-29

1,845 downloads per month
Used in 44 crates (26 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.6–2.3MB
~50K SLoC