#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

#567 in Compression

Download history 124/week @ 2023-12-13 115/week @ 2023-12-20 100/week @ 2023-12-27 59/week @ 2024-01-03 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 439/week @ 2024-03-20 225/week @ 2024-03-27

1,383 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–12MB
~113K SLoC