Cargo Features

[dependencies]
micropdf = { version = "0.16.0", default-features = false, features = ["jpeg2000", "jbig2", "parallel", "async", "signatures", "tsa", "ryan-fixtures"] }
default = jbig2

The jbig2 feature is set by default whenever micropdf is added without default-features = false somewhere in the dependency tree.

jpeg2000 = jpeg2k

Affects jpx::decode_jpx, jpx::encode_jpx

jbig2 default = hayro-jbig2

Affects jbig2::decode_jbig2

parallel = rayon

Affects fitz::parallel, writer::parallel, stream::parallel

async = futures, tokio

Affects buffered_io::async_writer, fitz::async_io, writer::async_ops, stream::async_stream

signatures tsa? = ecdsa, p256, p384, rsa

Digital signature support

tsa = reqwest, signatures

Time-stamping authority support

Affects enhanced_signatures::check_ocsp, enhanced_signatures::request_tsa_timestamp

ryan-fixtures

Enable integration tests using Ryan's real-world PDFs

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.

jpeg2k jpeg2000?

Enables jpeg2k ^0.8

hayro-jbig2 jbig2

Enables hayro-jbig2 ^0.1

rayon parallel?
tokio async?
futures async?
rsa signatures?

Enables rsa

Digital signature dependencies (optional)

ecdsa signatures?
p256 signatures?
p384 signatures?
reqwest tsa?

Enables reqwest ^0.12