#compression #archive

compress-tools

Utility functions for compressed and archive files handling

19 releases (11 breaking)

0.12.1 Sep 3, 2021
0.11.2 May 29, 2021
0.11.1 Mar 8, 2021
0.9.0 Dec 25, 2020
0.1.0 Apr 25, 2019

#20 in Compression

Download history 272/week @ 2021-05-29 218/week @ 2021-06-05 94/week @ 2021-06-12 119/week @ 2021-06-19 125/week @ 2021-06-26 118/week @ 2021-07-03 91/week @ 2021-07-10 107/week @ 2021-07-17 66/week @ 2021-07-24 210/week @ 2021-07-31 75/week @ 2021-08-07 205/week @ 2021-08-14 211/week @ 2021-08-21 66/week @ 2021-08-28 81/week @ 2021-09-04 155/week @ 2021-09-11

560 downloads per month
Used in 2 crates

MIT/Apache

71KB
1K SLoC

Coverage Status Documentation

compress-tools

The compress-tools crate aims to provide a convenient and easy to use set of methods which builds on top of libarchive exposing a small set of it’s functionalities.

Platform Build Status
Linux - x86_64 build status
Linux - AArch64 build status
Linux - ARMv7 build status
macOS - x86_64 build status
Windows - x86_64 build status

Dependencies

You must have libarchive, 3.2.0 or newer, properly installed on your system in order to use this. If building on *nix and Windows GNU systems, pkg-config is used to locate the libarchive; on Windows MSVC, vcpkg will be used to locating the libarchive.

The minimum supported Rust version is 1.46.

Features

This crate is capable of extracting:

  • compressed files
  • archive files
  • single file from an archive

For example, to extract an archive file it is as simple as:

use compress_tools::*;
use std::fs::File;
use std::path::Path;

let mut source = File::open("tree.tar.gz")?;
let dest = Path::new("/tmp/dest");

uncompress_archive(&mut source, &dest, Ownership::Preserve)?;

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.5–2MB
~42K SLoC