Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "pdf"
version = "0.10.0"
authors = [
    "Erlend Langseth <3rlendhl@gmail.com>",
    "Sebastian Köln <s3bk@protonmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PDF reader"
documentation = "https://docs.rs/pdf"
readme = "README.md"
keywords = ["pdf"]
license = "MIT"
repository = "https://github.com/pdf-rs/pdf"

[features]
cache = ["globalcache"]
default = [
    "sync",
    "cache",
]
dump = ["tempfile"]
mmap = ["memmap2"]
sync = []
threads = ["jpeg-decoder/default"]

[lib]
name = "pdf"
path = "src/lib.rs"
doctest = false

[[example]]
name = "content"
path = "examples/content.rs"

[[example]]
name = "metadata"
path = "examples/metadata.rs"

[[example]]
name = "names"
path = "examples/names.rs"

[[example]]
name = "other_page_content"
path = "examples/other_page_content.rs"

[[example]]
name = "read"
path = "examples/read.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "write"
path = "tests/write.rs"

[[test]]
name = "xref"
path = "tests/xref.rs"

[dependencies.aes]
version = "0.8.2"

[dependencies.bitflags]
version = "2.5"

[dependencies.cbc]
version = "0.1"

[dependencies.datasize]
version = "0.2.13"

[dependencies.deflate]
version = "1.0.0"

[dependencies.euclid]
version = "0.22.7"
optional = true

[dependencies.fax]
version = "0.2.0"

[dependencies.globalcache]
version = "0.3.2"
features = ["sync"]
optional = true

[dependencies.indexmap]
version = "2.1.0"

[dependencies.istring]
version = "0.3.3"
features = [
    "std",
    "size",
]

[dependencies.itertools]
version = "0.13.0"

[dependencies.jpeg-decoder]
version = "0.3.0"
default-features = false

[dependencies.libflate]
version = "2.0.0"

[dependencies.log]
version = "0.4.14"

[dependencies.md5]
version = "0.7"

[dependencies.memmap2]
version = "0.9.4"
optional = true

[dependencies.once_cell]
version = "1.21"

[dependencies.pdf_derive]
version = "0.3.0"

[dependencies.sha2]
version = "0.10.2"

[dependencies.snafu]
version = "0.8.3"

[dependencies.stringprep]
version = "0.1.2"

[dependencies.tempfile]
version = "3.2.0"
optional = true

[dependencies.weezl]
version = "0.1.4"

[dev-dependencies.glob]
version = "0.3.0"