Crate sevenz_rust2

Source
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

CodecDecompressionCompression
COPY
LZMA
LZMA2
BROTLI (*)
BZIP2 (*)
DEFLATE (*)
LZ4 (*)
ZSTD (*)

(*) Require optional feature.

All optional codes are a best effort implementation, since there is no definite specification about their implementation in 7z. We use the IDs provided by the specification provided by Py7zr.

FilterDecompressionCompression
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§

Archive
BlockDecoder
Password
SeqReader
SevenZArchiveEntry
SevenZMethod
SevenZMethodConfiguration
SevenZReader
Reads a 7z file.
SevenZWriter
Writes a 7z file.
SourceReader
StreamMap
SubStreamsInfo

Enums§

Error
MethodOptions

Functions§

compress
Helper function to compress src path to dest writer.
compress_to_path
Helper function to compress src path to dest path.
decompress
Decompresses a source reader to dest path.
decompress_file
Decompresses a 7z file.
decompress_file_with_extract_fn
decompress_with_extract_fn
default_entry_extract_fn