1 unstable release

Uses old Rust 2015

0.2.0 Aug 31, 2018

#694 in Compression

Download history 29/week @ 2024-02-26 16/week @ 2024-03-04 16/week @ 2024-03-11 7/week @ 2024-03-18 3/week @ 2024-03-25 33/week @ 2024-04-01 4/week @ 2024-04-08 7/week @ 2024-04-15 4/week @ 2024-04-22 22/week @ 2024-04-29 6/week @ 2024-05-13 9/week @ 2024-05-20 84/week @ 2024-05-27 10/week @ 2024-06-03 5/week @ 2024-06-10

109 downloads per month

MIT license

67KB
1.5K SLoC

RAR Rust

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);

Features

RAR 5

  • Extract archive with single File
  • Extract archive with multible Files
  • Extract splittet archive with multible files
  • Extract encrypted archive
  • Extract compression SAVE
  • Extract compression FASTEST
  • Extract compression FAST
  • Extract compression NORMAL
  • Extract compression GOOD
  • Extract compression BEST

RAR 4

  • Extract archive with single File
  • Extract archive with multible Files
  • Extract splittet archive with multible files
  • Extract encrypted archive
  • Extract compression SAVE
  • Extract compression FASTEST
  • Extract compression FAST
  • Extract compression NORMAL
  • Extract compression GOOD
  • Extract compression BEST

Contributing

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!

License

Copyright © 2018 Robert Schütte

Distributed under the MIT License.

Dependencies

~6MB
~87K SLoC