#zip #gzip #tar #xz #bzip2

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

#582 in Compression

Download history 743/week @ 2024-07-20 1286/week @ 2024-07-27 1373/week @ 2024-08-03 955/week @ 2024-08-10 848/week @ 2024-08-17 831/week @ 2024-08-24 1723/week @ 2024-08-31 1418/week @ 2024-09-07 1999/week @ 2024-09-14 1987/week @ 2024-09-21 1662/week @ 2024-09-28 1131/week @ 2024-10-05 1343/week @ 2024-10-12 1080/week @ 2024-10-19 1137/week @ 2024-10-26 785/week @ 2024-11-02

4,541 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.3–10MB
~109K SLoC