mi-simple-io 0.1.0

Small synchronous IO utilities for common file and terminal workflows.
Documentation
  • Coverage
  • 89.47%
    34 out of 38 items documented1 out of 34 items with examples
  • Size
  • Source code size: 21.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 300.7 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • miyaya33/mi-io-utils
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • miyaya33

mi-io-utils

Rust IO utility crates collected in one workspace.

Crates

Crate Description Version
mi-simple-io Synchronous IO utilities Crates.io

Current Crate

A simple and practical IO utility library for Rust.

[dependencies]
mi-simple-io = "0.1.0"
use mi_simple_io::{append_file, read_file, write_file};

fn main() -> std::io::Result<()> {
    write_file("hello.txt", "Hello")?;
    append_file("hello.txt", ", Rust!")?;
    assert_eq!(read_file("hello.txt")?, "Hello, Rust!");
    Ok(())
}

Planned Crates

  • simple-io/: synchronous file, directory, temp file, input, and stats helpers.
  • async-io/: future async IO utilities.
  • io-extras/: future higher-level IO extensions.
  • io-macros/: future procedural macros if they become useful.

Only simple-io/ is currently implemented.

Local Verification

cargo fmt --all -- --check
cargo test -p mi-simple-io
cargo test -p mi-simple-io --doc
cargo run -p mi-simple-io --example quick_start
cargo package -p mi-simple-io --allow-dirty