Crates.io | rar |
lib.rs | rar |
version | 0.2.0 |
source | src |
created_at | 2018-08-31 14:07:46.86974 |
updated_at | 2018-08-31 14:07:46.86974 |
description | Rust native RAR extractor based upon nom |
homepage | https://github.com/Roba1993/RAR |
repository | https://github.com/Roba1993/RAR |
max_upload_size | |
id | 82360 |
size | 67,989 |
This crate provides a Rust native functionality to list and extract RAR files (Right now with limited functionality!)
Please have a look in the test section of the file src/lib.rs
to see in detail which features are supported right now and how to use this crate.
A basic example to extract the complete archive:
extern crate rar;
// Get the archive information and extract everything
let archive = rar::Archive::extract_all(
"assets/rar5-save-32mb-txt.rar",
"target/rar-test/rar5-save-32mb-txt/",
"").unwrap();
// Print out the archive structure information
println!("Result: {:?}", archive);
RAR 5
RAR 4
Please contribute!
The goal is to make this crate feature complete :)
If you need any kind of help, open an issue or write me an mail. Pull requests are welcome!
Copyright © 2018 Robert Schütte
Distributed under the MIT License.