| Crates.io | cpio_reader |
| lib.rs | cpio_reader |
| version | 0.1.2 |
| created_at | 2021-08-23 12:41:29.633362+00 |
| updated_at | 2025-05-17 02:25:17.131625+00 |
| description | A library to read the contents of cpio files |
| homepage | |
| repository | https://github.com/toku-sa-n/cpio_reader |
| max_upload_size | |
| id | 441160 |
| size | 47,175 |
cpio_readerA 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.
This library is #![no_std] compatible.
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());
}
Licensed under either of
at your option.
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.