Crate ctb_formats_compression_cli

Crate ctb_formats_compression_cli 

Source
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, .C file format).
compress
Unix compress LZW formats:
freeze
Implementation of the freeze / melt compression format.
libraries
Compression algorithms provided by external libraries.
pack
System III/V pack (0x1F 0x1E) and Early Unix old_pack (0x1F 0x1F) compression and decompression formats.
rzip
Implementation of the rzip 2.1 compression format.
sco_compress
SCO compress -H (LZH / -lh1-) compression and decompression format.
szip
Implementation of the szip 1.11+ compression format (Michael Schindler, 1997-2000).

Structs§

CliCompressArgs
Execution options for compressing a file via the CLI.
CliDecompressArgs
Execution options for decompressing a file via the CLI.

Enums§

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

CompressionFormatExt
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 reader into writer using 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 reader directly into writer without verification.
compress_stream_with_verify
Compresses a stream from reader into writer using 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 reader into writer using the specified algorithm format.
detect
Performs multi-signal detection using both header bytes and file extension.
detect_entity
Detects the compression format given a FileEntity and PayloadSource.
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 FormatId is 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