tar-parser2

Crates.iotar-parser2
lib.rstar-parser2
version0.9.1
sourcesrc
created_at2023-01-29 03:43:25.235064
updated_at2023-03-18 17:27:20.43536
descriptiontar archive parser using nom
homepage
repositoryhttps://github.com/Berrysoft/tar-parser.rs
max_upload_size
id770721
size85,825
王宇逸 (Berrysoft)

documentation

README

tar-parser

Implementation of a tar archive parser written in rust using nom.

let file = std::fs::read("foo.tar")?;
let (_, entries) = tar_parser2::parse_tar(&file[..])?;
for entry in entries {
    println!("{}", entry.header.name);
}

For more robust example of listing TAR contents, see example ls.

Commit count: 173

cargo fmt