| Crates.io | rar |
| lib.rs | rar |
| version | 0.4.0 |
| created_at | 2018-08-31 14:07:46.86974+00 |
| updated_at | 2025-11-05 17:26:08.565191+00 |
| 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 | 78,164 |
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);
This version is functionally equivalent to 0.3.0 but includes:
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.