Cargo Features

[dependencies]
oxipng = { version = "9.1.4", default-features = false, features = ["binary", "parallel", "freestanding", "sanity-checks", "zopfli", "filetime", "system-libdeflate"] }
default = binary, filetime, parallel, zopfli

These default features are set whenever oxipng is added without default-features = false somewhere in the dependency tree.

binary default

Enables clap, env_logger, and glob

Required by the binary

parallel default

Enables crossbeam-channel, rayon, rayon of indexmap

freestanding

Enables freestanding of libdeflater

libdeflater:

Builds libdeflate in a freestanding mode (no reliance on libc).
This is useful for targets that don't have a C stdlib (e.g. wasm32-unknown-unknown).

sanity-checks

Enables image

zopfli default

Enables zopfli

filetime default

Enables filetime

system-libdeflate

Enables dynamic of libdeflater

libdeflater:

Link to system/external libdeflate library when available, instead of building it from source.