An open API service indexing awesome lists of open source software.

https://github.com/spa5k/chronicles

A simple crate to handle extraction of various types of archives through universal API.
https://github.com/spa5k/chronicles

archive crate rust tar zip

Last synced: 8 months ago
JSON representation

A simple crate to handle extraction of various types of archives through universal API.

Awesome Lists containing this project

README

          

# Chronicles - A crate for extracting various types of Archive files.

## Currently supporting the following formats:

- [Zip](https://www.info-zip.org/)
- [Tar](https://www.gnu.org/software/tar/)
- [Gz](https://www.gnu.org/software/gzip/)

## How to use -

```rust
use chronicles::extract;

let file = path::Path::new("someZip.zip");
// Path to extract to
let to = path::Path::new("./extracted");
let res = extract(file, to);
```

## Supported extensions -

- `.zip`
- `.tar.gz`
- `.tar.xz`

## Todo -

- Support conversion between files.
- Support async operations.
- More formats.