rzopfli

Crates.iorzopfli
lib.rsrzopfli
version0.1.3
sourcesrc
created_at2024-07-22 04:19:02.599524
updated_at2024-08-04 10:37:29.440801
descriptionA lossless data compression tool using Zopfli
homepagehttps://sorairolake.github.io/rzopfli/
repositoryhttps://github.com/sorairolake/rzopfli
max_upload_size
id1310835
size86,043
Shun Sakai (sorairolake)

documentation

README

rzopfli

CI Version MSRV License

rzopfli is a lossless data compression tool which uses the Zopfli compression algorithm.

Installation

From source

cargo install rzopfli

From binaries

The release page contains pre-built binaries for Linux, macOS and Windows.

How to build

Please see BUILD.adoc.

Usage

The command line syntax of rzopfli is similar to gzip and zstd, and some options derived from the Zopfli reference implementation. rzopfli preserves input files by default, just like zstd. It's possible to remove them automatically by using --rm.

Basic usage

Compress a file into the gzip format:

rzopfli foo.txt

Write the processed data to standard output:

rzopfli -c foo.txt

Remove an input file after successful compression:

rzopfli --rm foo.txt

Performs 50 compression iterations:

rzopfli -i 50 foo.txt

Compress a file into the zlib format:

rzopfli --format zlib foo.txt

Generate shell completion

--generate-completion option generates shell completions to standard output.

The following shells are supported:

  • bash
  • elvish
  • fish
  • nushell
  • powershell
  • zsh

Example:

rzopfli --generate-completion bash > rzopfli.bash

Command-line options

Please see the following:

Changelog

Please see CHANGELOG.adoc.

Contributing

Please see CONTRIBUTING.adoc.

License

Copyright © 2024 Shun Sakai (see AUTHORS.adoc)

  1. This program is distributed under the terms of either the Apache License 2.0 or the MIT License.
  2. Some files are distributed under the terms of the Creative Commons Attribution 4.0 International Public License.

This project is compliant with version 3.2 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.

Commit count: 0

cargo fmt