tar_light for Rust
A simple tar archive reader and writer library in Rust. Only packs and unpacks basic tar files without compression.
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
Sample Usage
Packing files into a TAR archive
use pack;
let file1 = "file1.txt".to_string;
let file2 = "file2.txt".to_string;
let files = vec!;
pack;
// Creates archive.tar containing file1.txt and file2.txt
Unpacking files from a TAR archive
use unpack;
unpack;
// Extracts all files from archive.tar to output_directory/
Listing files in a TAR archive
use list;
match list
Command line tool
# Pack files
# Unpack archive
# List files in archive