axio 0.3.0-pre.1

`std::io` for `no_std` environment
Documentation

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/.