# 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"
rust-version = "1.92"
name = "pdq"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PDF operations library"
readme = "README.md"
keywords = [
    "pdf",
    "split",
    "merge",
    "cli",
]
categories = ["command-line-utilities"]
license = "Artistic-2.0"
repository = "https://github.com/meistrari/pdq"

[features]
default = ["render"]
render = ["dep:hayro"]

[lib]
name = "pdq"
path = "src/lib.rs"

[[bin]]
name = "pdq"
path = "src/bin/pdq.rs"

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

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

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

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

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

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

[dependencies.clap]
version = "4.6.1"
features = ["derive"]

[dependencies.hayro]
version = "0.7.1"
features = ["embed-fonts"]
optional = true

[dependencies.lopdf]
version = "0.43.0"

[dependencies.memchr]
version = "2.7"

[dependencies.memmap2]
version = "0.9.9"

[dependencies.rayon]
version = "1.12.0"

[dependencies.thiserror]
version = "2.0.17"

[dev-dependencies.assert_cmd]
version = "2.1.1"

[dev-dependencies.flate2]
version = "1.0"

[dev-dependencies.predicates]
version = "3.1.3"

[dev-dependencies.tempfile]
version = "3.23.0"
