Expand description
CLI execution helpers for compression and decompression.
Modules§
- compact
- New implementation of Colin L.
McMaster’s 1979 Online Adaptive Huffman Coding format (compact/uncompact,.Cfile format). - compress
- Unix
compressLZW formats: - freeze
- Implementation of the
freeze/meltcompression format. - libraries
- Compression algorithms provided by external libraries.
- pack
- System III/V
pack(0x1F 0x1E) and Early Unixold_pack(0x1F 0x1F) compression and decompression formats. - rzip
- Implementation of the
rzip2.1 compression format. - sco_
compress - SCO
compress -H(LZH /-lh1-) compression and decompression format. - szip
- Implementation of the
szip1.11+ compression format (Michael Schindler, 1997-2000).
Structs§
- CliCompress
Args - Execution options for compressing a file via the CLI.
- CliDecompress
Args - Execution options for decompressing a file via the CLI.
Enums§
- CliCompression
Output - Result of executing a CLI compression/decompression command.
Constants§
- SUPPORTED
- Ordered list of all compression formats supported by this crate.
Statics§
- COMPRESSION_
AFTER_ HELP - Global static lazy string containing the formatted compression help table.
Traits§
- Compression
Format Ext - Extension trait adding compression-specific utilities to [
FormatId].
Functions§
- compress
- Compresses in-memory byte slice using the specified compression format. Uses the format’s default verification setting (verify for in-repo formats, no-verify for crates).
- compress_
stream - Compresses a stream from
readerintowriterusing the specified algorithm format. Uses the format’s default verification setting (verify for in-repo formats, no-verify for crates). - compress_
stream_ direct - Compresses a stream from
readerdirectly intowriterwithout verification. - compress_
stream_ with_ verify - Compresses a stream from
readerintowriterusing the specified algorithm format and verification option. - compress_
with_ verify - Compresses in-memory byte slice using the specified compression format and verification option.
- decompress
- Decompresses in-memory byte slice using the specified compression format.
- decompress_
stream - Decompresses a stream from
readerintowriterusing the specified algorithm format. - detect
- Performs multi-signal detection using both header bytes and file extension.
- detect_
entity - Detects the compression format given a
FileEntityandPayloadSource. - detect_
path - Detects the compression format for a given file path (or “-” for stdin).
- execute_
cli_ compress - Executes compression logic for CLI invocations.
- execute_
cli_ decompress - Executes decompression logic for CLI invocations.
- format_
help_ table - Generates a detailed help table of supported compression formats and their shorthand aliases.
- get_
compression_ data - Returns a fixture asset byte vector if present.
- infer_
decompressed_ filename - Infer output filename when decompressing without an explicit output path.
- is_
supported - Returns true if the given
FormatIdis supported for compression/decompression by this crate. - parse_
compression_ format - Parses a compression format from a format name or extension.
- parse_
decompression_ format - Parses a decompression format from a format name or extension.
- run_
compress - run_
decompress