Thanks to visit codestin.com
Credit goes to lib.rs

Cargo Features

[dependencies]
lopdf = { version = "0.38.0", default-features = false, features = ["async", "chrono", "embed_image", "jiff", "wasm_js", "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

wasm_js

Enables wasm_js of getrandom

getrandom:

Optional backend: wasm_js
This flag enables the backend but does not select it. To use the backend, use this flag *and* set getrandom_backend=wasm_js (see README).
WARNING: It is highly recommended to enable this feature only for binary crates and tests,
i.e. avoid unconditionally enabling it in library crates.

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?