Cargo Features

[dependencies]
lopdf = { version = "0.34.0", default-features = false, features = ["async", "chrono_time", "embed_image", "nom_parser", "pom_parser", "serde", "rayon"] }
default = chrono_time, nom_parser, rayon

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

async

Enables macros and rt-multi-thread of tokio

chrono_time default = chrono
embed_image = image

Affects xobject::image, xobject::image_from

nom_parser default = nom
pom_parser = pom
serde

Enables serde

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.

chrono chrono_time
image embed_image?
nom nom_parser
pom pom_parser?
rayon default
tokio async?