#tar #zip #xz #gzip #bzip2 #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

#823 in Compression

Download history 1321/week @ 2024-11-17 1761/week @ 2024-11-24 2112/week @ 2024-12-01 1410/week @ 2024-12-08 1741/week @ 2024-12-15 657/week @ 2024-12-22 1022/week @ 2024-12-29 1243/week @ 2025-01-05 1277/week @ 2025-01-12 1984/week @ 2025-01-19 1090/week @ 2025-01-26 1465/week @ 2025-02-02 1111/week @ 2025-02-09 1845/week @ 2025-02-16 2497/week @ 2025-02-23 1233/week @ 2025-03-02

6,718 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
~118K SLoC