axio

Crates.ioaxio
lib.rsaxio
version0.3.0-pre.1
created_at2024-07-18 08:05:59.117901+00
updated_at2025-12-25 05:16:06.496133+00
description`std::io` for `no_std` environment
homepagehttps://github.com/arceos-org/arceos
repositoryhttps://github.com/arceos-org/axio
max_upload_size
id1307126
size220,112
core (github:arceos-org:core)

documentation

https://docs.rs/axio

README

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

Commit count: 6

cargo fmt