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 (*)
PPMD
LZ4 (*)
ZSTD (*)

(*) Require optional cargo feature.

FilterDecompressionCompression
BCJ X86
BCJ PPC
BCJ IA64
BCJ ARM
BCJ ARM64
BCJ ARM_THUMB
BCJ SPARC
DELTA
BCJ2

Modules§

encoder_optionscompress
Encoding options when compressing.

Structs§

Archive
ArchiveEntry
ArchiveReader
Reads a 7z archive file.
ArchiveWritercompress
Writes a 7z archive file.
Block
BlockDecoder
Coder
EncoderConfigurationcompress
EncoderMethod
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.
OrderedCoderIter
Password
A password used for password protected, encrypted files.
SourceReader
StreamMap

Enums§

Error
The error type of the crate.

Functions§

compresscompress and util
Compresses a source file or directory to a destination writer.
compress_encryptedaes256 and compress and util
Compresses a source file or directory to a destination writer with password encryption.
compress_to_pathcompress and util
Compresses a source file or directory to a destination file path.
compress_to_path_encryptedaes256 and compress and util
Compresses a source file or directory to a destination file path with password encryption.
decompressutil
Decompresses an archive from a reader to a destination directory.
decompress_fileutil
Decompresses an archive file to a destination directory.
decompress_file_with_extract_fnutil
Decompresses an archive file to a destination directory with a custom extraction function.
decompress_file_with_passwordaes256 and util
Decompresses an encrypted archive file with the given password.
decompress_with_extract_fnutil
Decompresses an archive from a reader to a destination directory with a custom extraction function.
decompress_with_extract_fn_and_passwordaes256 and util
Decompresses an encrypted archive from a reader with a custom extraction function and password.
decompress_with_passwordaes256 and util
Decompresses an encrypted archive from a reader with the given password.
default_entry_extract_fnutil
Default extraction function that handles standard file and directory extraction.