#archive #fs-file #extract #libarchive #set #status

compress-tools

Utility functions for compressed and archive files handling

27 unstable releases

0.14.3 May 26, 2023
0.14.1 Mar 21, 2023
0.14.0 Nov 20, 2022
0.12.3 Jun 22, 2022
0.1.0 Apr 25, 2019

#60 in Compression

Download history 228/week @ 2024-01-02 267/week @ 2024-01-09 157/week @ 2024-01-16 433/week @ 2024-01-23 275/week @ 2024-01-30 366/week @ 2024-02-06 288/week @ 2024-02-13 282/week @ 2024-02-20 314/week @ 2024-02-27 331/week @ 2024-03-05 282/week @ 2024-03-12 312/week @ 2024-03-19 198/week @ 2024-03-26 349/week @ 2024-04-02 204/week @ 2024-04-09 142/week @ 2024-04-16

964 downloads per month
Used in 14 crates (9 directly)

MIT/Apache

79KB
1.5K 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
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.59.

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

~1–13MB
~117K SLoC