Crate tar_parser2

source ·
Expand description

A nom-based parser for TAR files. This parser only accepts byte slice and doesn’t deal with IO.

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

Structs

Enums

Functions