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

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

#595 in Compression

Download history 1712/week @ 2024-12-14 694/week @ 2024-12-21 1022/week @ 2024-12-28 1241/week @ 2025-01-04 1255/week @ 2025-01-11 2000/week @ 2025-01-18 1048/week @ 2025-01-25 1486/week @ 2025-02-01 1108/week @ 2025-02-08 1865/week @ 2025-02-15 2499/week @ 2025-02-22 1254/week @ 2025-03-01 1368/week @ 2025-03-08 2145/week @ 2025-03-15 993/week @ 2025-03-22 1039/week @ 2025-03-29

5,776 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
~119K SLoC