#tar #bzip2 #gzip #zip #xz #format

archiver-rs

A library for easy interaction with multiple archive formats

2 releases

0.5.1 Feb 1, 2021
0.5.0 Jun 17, 2020
0.2.2 Jun 17, 2020
0.1.1 Jun 14, 2020

#585 in Compression

Download history 2307/week @ 2024-09-25 1261/week @ 2024-10-02 1485/week @ 2024-10-09 987/week @ 2024-10-16 1195/week @ 2024-10-23 1083/week @ 2024-10-30 581/week @ 2024-11-06 1532/week @ 2024-11-13 1553/week @ 2024-11-20 1837/week @ 2024-11-27 1630/week @ 2024-12-04 1576/week @ 2024-12-11 1633/week @ 2024-12-18 605/week @ 2024-12-25 948/week @ 2025-01-01 1276/week @ 2025-01-08

4,707 downloads per month
Used in 11 crates (5 directly)

MIT license

15KB
344 lines

archiver-rs

Crates.io Docs.rs Crates.io Crates.io

A library for easy interaction with multiple archive formats

Usage

let mut bz = archiver_rs::Bzip2::open("foo.tar.bz2");
bz.decompress("foo.tar");

let mut tar = archiver_rs::Tar::open("foo.tar");
tar.files();
tar.contains("bar.txt");
tar.extract("./foo/");
tar.extract_single("./foo/bar.txt", "bar.txt");

License

The MIT License

More info see LICENSE

Dependencies

~0.2–10MB
~112K SLoC