cpio_reader 0.1.2

A library to read the contents of cpio files
Documentation
  • Coverage
  • 100%
    59 out of 59 items documented1 out of 40 items with examples
  • Size
  • Source code size: 46.69 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.35 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • toku-sa-n/cpio_reader
    8 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • toku-sa-n

cpio_reader

GitHub Actions Crates.io Crates.io docs.rs

A library to read the contents of the cpio file. (.cpio)

This library is based on the design written man 5 cpio and supports these four formats.

  • Old Binary Format
  • Portable ASCII Format
  • New ASCII Format
  • New CRC Format

This library is #![no_std] compatible.

Examples

use std::fs;

let cpio = fs::read("tests/newc.cpio").unwrap();

for entry in cpio_reader::iter_files(&cpio) {
    println!("Entry name: {}, content: {:?}", entry.name(), entry.file());
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.