Cargo Features

[dependencies]
lopdf = { version = "0.36.0", default-features = false, features = ["async", "chrono", "embed_image", "jiff", "serde", "time", "rayon"] }
default = chrono, jiff, rayon, time

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 default

Enables chrono

embed_image = image

Affects xobject::image, xobject::image_from

jiff default

Enables jiff

serde

Enables serde

time default

Enables time

Affects creator::tests.get_timestamp

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.

image embed_image?
rayon default
tokio async?