Cargo Features

[dependencies]
pdfium-render = { version = "0.8.20", default-features = false, features = ["bindings", "static", "thread_safe", "libc++", "sync", "image"] }
default = image, thread_safe

The image feature is implicit because the image dependency is optional.

bindings
static libc++? libstdc++?
thread_safe default sync?
libstdc++ libc++ = static
sync = thread_safe

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 default

Enables image

DynamicImage trait definitions changed between 0.23.14 and 0.24.0; we use trait from version 0.24.0 and later.

Affects page_objects_common::PdfPageObjectsCommon.create_image_object