Cargo Features
[dependencies]
oxipng = { version = "9.1.1", default-features = false, features = ["binary", "parallel", "freestanding", "sanity-checks", "zopfli", "filetime"] }
- default = binary, filetime, parallel, zopfli
-
These default features are set whenever
oxipng
is added without
somewhere in the dependency tree.default-features = false - binary default = clap, env_logger, glob
-
Required by the binary
- parallel default = crossbeam-channel, rayon
- 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 = image
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.
- zopfli default
- clap binary
- crossbeam-channel parallel
- env_logger binary
- filetime default
- glob win binary
- image sanity-checks?
- rayon parallel