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 ARM64 | ✓ | |
| BCJ ARM_THUMB | ✓ | |
| BCJ SPARC | ✓ | |
| DELTA | ✓ | ✓ |
| BCJ2 | ✓ |
Modules§
- encoder_
options compress - Encoding options when compressing.
Structs§
- Archive
- Archive
Entry - Archive
Reader - Reads a 7z archive file.
- Archive
Writer compress - Writes a 7z archive file.
- Block
- Block
Decoder - Coder
- Encoder
Configuration compress - Encoder
Method - Encoder method that can be chained (filter, compression and encryption).
- NtTime
- A type that represents a Windows file time and is used in the 7z archive format.
- Ordered
Coder Iter - Password
- A password used for password protected, encrypted files.
- Source
Reader - Stream
Map
Enums§
- Error
- The error type of the crate.
Functions§
- compress
compressandutil - Compresses a source file or directory to a destination writer.
- compress_
encrypted aes256andcompressandutil - Compresses a source file or directory to a destination writer with password encryption.
- compress_
to_ path compressandutil - Compresses a source file or directory to a destination file path.
- compress_
to_ path_ encrypted aes256andcompressandutil - Compresses a source file or directory to a destination file path with password encryption.
- decompress
util - Decompresses an archive from a reader to a destination directory.
- decompress_
file util - Decompresses an archive file to a destination directory.
- decompress_
file_ with_ extract_ fn util - Decompresses an archive file to a destination directory with a custom extraction function.
- decompress_
file_ with_ password aes256andutil - Decompresses an encrypted archive file with the given password.
- decompress_
with_ extract_ fn util - Decompresses an archive from a reader to a destination directory with a custom extraction function.
- decompress_
with_ extract_ fn_ and_ password aes256andutil - Decompresses an encrypted archive from a reader with a custom extraction function and password.
- decompress_
with_ password aes256andutil - Decompresses an encrypted archive from a reader with the given password.
- default_
entry_ extract_ fn util - Default extraction function that handles standard file and directory extraction.