Crates.io | tar-parser2 |
lib.rs | tar-parser2 |
version | 0.9.1 |
source | src |
created_at | 2023-01-29 03:43:25.235064 |
updated_at | 2023-03-18 17:27:20.43536 |
description | tar archive parser using nom |
homepage | |
repository | https://github.com/Berrysoft/tar-parser.rs |
max_upload_size | |
id | 770721 |
size | 85,825 |
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
.