[package]
edition = "2024"
rust-version = "1.92"
name = "pdfops"
version = "0.4.1"
build = false
exclude = [
"npm/",
"scripts/",
".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast PDF operations with JSON output for AI agents: CLI, MCP server and library"
readme = "README.md"
keywords = [
"pdf",
"mcp",
"agent",
"cli",
]
categories = [
"command-line-utilities",
"text-processing",
]
license = "MIT"
repository = "https://github.com/KayZedd/pdfops"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ archive-suffix }"
bin-dir = "{ name }-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[lib]
name = "pdfops"
path = "src/lib.rs"
[[bin]]
name = "pdfops"
path = "src/main.rs"
[[test]]
name = "features"
path = "tests/features.rs"
[[test]]
name = "interfaces"
path = "tests/interfaces.rs"
[[test]]
name = "ops"
path = "tests/ops.rs"
[[test]]
name = "scan"
path = "tests/scan.rs"
[[test]]
name = "tables"
path = "tests/tables.rs"
[dependencies.anyhow]
version = "1.0.104"
[dependencies.clap]
version = "4.6.7"
features = [
"derive",
"env",
]
[dependencies.cms]
version = "0.2.3"
features = ["builder"]
[dependencies.der]
version = "0.7"
[dependencies.flate2]
version = "1.1"
[dependencies.fontdb]
version = "0.24.0"
[dependencies.getrandom]
version = "0.4"
[dependencies.hayro]
version = "0.8.0"
[dependencies.image]
version = "0.25.10"
features = [
"jpeg",
"png",
]
default-features = false
[dependencies.lopdf]
version = "0.45"
[dependencies.p12-keystore]
version = "0.3.2"
[dependencies.p256]
version = "0.13"
features = [
"ecdsa",
"pkcs8",
]
[dependencies.png]
version = "0.18"
[dependencies.pulldown-cmark]
version = "0.13.4"
default-features = false
[dependencies.qrcode]
version = "0.14.1"
default-features = false
[dependencies.rayon]
version = "1.12.0"
[dependencies.regex]
version = "1.13.1"
[dependencies.rsa]
version = "0.9.10"
features = ["sha2"]
[dependencies.rustybuzz]
version = "0.20"
[dependencies.schemars]
version = "1.2.2"
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.151"
[dependencies.sha2]
version = "0.10"
[dependencies.subsetter]
version = "0.2.6"
[dependencies.ttf-parser]
version = "0.25"
[dependencies.unicode-bidi]
version = "0.3"
[dependencies.ureq]
version = "3.4.2"
[dependencies.x509-cert]
version = "0.2"
[dev-dependencies.lopdf]
version = "0.45"
[dev-dependencies.png]
version = "0.18"
[dev-dependencies.rcgen]
version = "0.14.10"
[dev-dependencies.tempfile]
version = "3.27.0"
[profile.dev.package."*"]
opt-level = 2
[profile.release]
lto = "thin"
codegen-units = 1
strip = true