Cargo Features

[dependencies]
pdfshrink = { version = "0.2.0", default-features = false, features = ["build-binary", "logging"] }
default = build-binary

The build-binary feature is set by default whenever pdfshrink is added without default-features = false somewhere in the dependency tree.

build-binary default = env_logger, logging, shell-escape

Required by the binary

logging build-binary = log

required to compile the library with the "log" dependency

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.

log logging?
env_logger build-binary

Enables env_logger ^0.8.3

optional dependencies to build the binary

shell-escape build-binary