cpio_reader

Crates.iocpio_reader
lib.rscpio_reader
version0.1.1
sourcesrc
created_at2021-08-23 12:41:29.633362
updated_at2022-07-21 00:54:11.136299
descriptionA library to read the contents of cpio files
homepage
repositoryhttps://github.com/toku-sa-n/cpio_reader
max_upload_size
id441160
size37,950
Hiroki Tokunaga (toku-sa-n)

documentation

README

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.

Commit count: 14

cargo fmt