Expand description
This project is a 7z compressor/decompressor written in pure Rust.
This is a fork of the original, unmaintained sevenz-rust crate to continue the development and maintenance.
§Supported Codecs & filters
| Codec | Decompression | Compression |
|---|---|---|
| COPY | ✓ | ✓ |
| LZMA | ✓ | ✓ |
| LZMA2 | ✓ | ✓ |
| BROTLI (*) | ✓ | ✓ |
| BZIP2 (*) | ✓ | ✓ |
| DEFLATE (*) | ✓ | ✓ |
| PPMD (*) | ✓ | ✓ |
| LZ4 (*) | ✓ | ✓ |
| ZSTD (*) | ✓ | ✓ |
(*) Require optional cargo feature.
| Filter | Decompression | Compression |
|---|---|---|
| BCJ X86 | ✓ | |
| BCJ PPC | ✓ | |
| BCJ IA64 | ✓ | |
| BCJ ARM | ✓ | |
| BCJ ARM_THUMB | ✓ | |
| BCJ SPARC | ✓ | |
| DELTA | ✓ | ✓ |
| BCJ2 | ✓ |
Re-exports§
pub use lzma_rust2 as lzma;pub use nt_time;
Structs§
- Aes256
Sha256 Decoder aes256 - Aes256
Sha256 Encoder aes256 - AesEncoder
Options aes256 - Archive
- Block
Decoder - Brotli
Options brotli - Bzip2
Options bzip2 - Counting
Writer - Deflate
Options deflate - Delta
Options compress - LZ4Options
lz4 - PPMD
Options ppmd - Password
- SeqReader
- SevenZ
Archive Entry - SevenZ
Method - SevenZ
Method Configuration - SevenZ
Reader - Reads a 7z file.
- SevenZ
Writer compress - Writes a 7z file.
- Source
Reader - Stream
Map - SubStreams
Info - ZStandard
Options zstd
Enums§
Functions§
- compress
compressandutil - Helper function to compress
srcpath todestwriter. - compress_
encrypted aes256andcompressandutil - compress_
to_ path compressandutil - Helper function to compress
srcpath todestpath. - compress_
to_ path_ encrypted aes256andcompressandutil - decompress
util - Decompresses a source reader to
destpath. - decompress_
file util - Decompresses a 7z file.
- decompress_
file_ with_ extract_ fn util - decompress_
file_ with_ password aes256andutil - Decompresses an encrypted file with the given password.
- decompress_
with_ extract_ fn util - decompress_
with_ extract_ fn_ and_ password aes256andutil - decompress_
with_ password aes256andutil - default_
entry_ extract_ fn util