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

#681 in Compression

Download history 191/week @ 2024-01-10 383/week @ 2024-01-17 332/week @ 2024-01-24 358/week @ 2024-01-31 280/week @ 2024-02-07 215/week @ 2024-02-14 325/week @ 2024-02-21 274/week @ 2024-02-28 315/week @ 2024-03-06 367/week @ 2024-03-13 438/week @ 2024-03-20 242/week @ 2024-03-27 210/week @ 2024-04-03 349/week @ 2024-04-10 259/week @ 2024-04-17 255/week @ 2024-04-24

1,130 downloads per month
Used in 9 crates (3 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
~106K SLoC