sevenzipx

Crates.iosevenzipx
lib.rssevenzipx
version0.1.0
sourcesrc
created_at2018-01-28 12:26:40.831658
updated_at2018-01-28 12:26:40.831658
descriptionA 7z extraction/inspection library, backed by 7zx.
homepage
repositoryhttps://github.com/j-selby/sevenzipx
max_upload_size
id48635
size391,678
James (j-selby)

documentation

README

sevenzipx

Bindings to 7zx for a simple way to inspect and extract .7z files.

Examples

  • Listing the contents of a .7z file:
use sevenzipx::list_7z_contents;
use sevenzipx::FileEntry;

let contents : Vec<FileEntry> = list_7z_contents("test.7z").unwrap();
for file in contents {
    // ...
}
  • Extracting the contents of .7z file (note, due to a limitation in 7zx, the CWD is temporally changed):
use sevenzipx::extract_7z_contents_to;

extract_7z_contents_to("test.7z", "./test_extracted/").unwrap();

Building

Ensure you have your submodules up to date.

Run:

cargo build

And run the tests:

cargo test

License

sevenzip-rs is licensed to you under either the Apache 2.0, or the MIT license, at your option.

7z and 7zx are licensed under the public domain - see those respective projects for more.

Commit count: 0

cargo fmt