Cargo Features

gzp = { version = "0.11.3", default-features = false, features = ["snappy_default", "deflate_default", "deflate_rust", "deflate_zlib", "deflate_zlib_ng", "deflate", "libdeflate", "snappy", "any_zlib"] }
default = deflate_default, libdeflate

Feature Sets

snappy_default = deflate_rust, snap, snappy

needs flate2 for compression type

deflate_default default = deflate_zlib_ng
deflate_rust snappy_default? = deflate

Enables rust_backend of flate2

deflate_zlib = any_zlib, deflate, libz-sys

Enables zlib of flate2, libc of libz-sys

deflate_zlib_ng deflate_default = any_zlib, deflate, libz-sys

Enables zlib-ng-compat of flate2

deflate deflate_rust? deflate_zlib? deflate_zlib_ng?

Feature flags used internally

Affects check::Crc32, gzp::deflate

libdeflate default = libdeflater

Affects bgzf::decompress, bgzf::compress, check::LibDeflateCrc, mgzip::decompress, mgzip::compress

snappy snappy_default?

Affects gzp::snap

any_zlib deflate_zlib? deflate_zlib_ng?

Enables any_zlib of flate2


note: this is not a real user-facing feature

Affects check::Adler32, deflate::Zlib

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

flate2 any_zlib? deflate_rust? deflate_zlib? deflate_zlib_ng?
libdeflater libdeflate

Enables libdeflater ^0.12.0

libz-sys deflate_zlib? deflate_zlib_ng?
snap snappy_default?