[package]
edition = "2024"
rust-version = "1.85"
name = "rusty-pdfgrep"
version = "0.1.0"
authors = ["James Han <jsh562@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "rusty-pdfgrep"
description = "Grep through PDF files — a Rust port of Hans-Peter Deifel's `pdfgrep(1)` with lopdf-backed text extraction, regex + fancy-regex pluggable engines, --password retry for encrypted PDFs, GNU-grep-compatible color output, recursive walking with fnmatch include/exclude, and a typed library API."
homepage = "https://github.com/jsh562/rusty-pdfgrep"
documentation = "https://docs.rs/rusty-pdfgrep"
readme = "README.md"
keywords = [
"pdfgrep",
"pdf",
"grep",
"search",
"cli",
]
categories = [
"command-line-utilities",
"text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jsh562/rusty-pdfgrep"
[package.metadata.binstall]
bin-dir = "{ name }-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ archive-suffix }"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[features]
cli = [
"dep:clap",
"dep:clap_complete",
"dep:anyhow",
"dep:termcolor",
"dep:anstyle",
"dep:walkdir",
"dep:globset",
]
default = ["cli"]
[lib]
name = "rusty_pdfgrep"
path = "src/lib.rs"
[[bin]]
name = "rusty-pdfgrep"
path = "src/main.rs"
required-features = ["cli"]
[[test]]
name = "compat_default"
path = "tests/compat_default.rs"
[[test]]
name = "compat_strict"
path = "tests/compat_strict.rs"
[[test]]
name = "completions_drift"
path = "tests/completions_drift.rs"
[[test]]
name = "library_api"
path = "tests/library_api.rs"
[dependencies.anstyle]
version = "1"
optional = true
[dependencies.anyhow]
version = "1"
optional = true
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
optional = true
[dependencies.clap_complete]
version = "4"
optional = true
[dependencies.fancy-regex]
version = "0.13"
[dependencies.globset]
version = "0.4"
optional = true
[dependencies.lopdf]
version = "0.40"
[dependencies.regex]
version = "1"
[dependencies.termcolor]
version = "1"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.walkdir]
version = "2"
optional = true
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.static_assertions]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"