[package]
edition = "2021"
rust-version = "1.75"
name = "unpdf"
version = "0.4.2"
authors = ["iyulab"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance PDF content extraction to Markdown, text, and JSON"
homepage = "https://github.com/iyulab/unpdf"
documentation = "https://docs.rs/unpdf"
readme = "README.md"
keywords = [
"pdf",
"markdown",
"text-extraction",
"document",
"parser",
]
categories = [
"parser-implementations",
"text-processing",
]
license = "MIT"
repository = "https://github.com/iyulab/unpdf"
[features]
async = ["tokio"]
default = ["fast-parse"]
fast-parse = []
ffi = []
[lib]
name = "unpdf"
crate-type = [
"lib",
"cdylib",
]
path = "src/lib.rs"
[[example]]
name = "realworld_test"
path = "examples/realworld_test.rs"
[[test]]
name = "acroform_test"
path = "tests/acroform_test.rs"
[[test]]
name = "bidi_test"
path = "tests/bidi_test.rs"
[[test]]
name = "cjk_extraction_test"
path = "tests/cjk_extraction_test.rs"
[[test]]
name = "converter_test"
path = "tests/converter_test.rs"
[[test]]
name = "diagnostics_test"
path = "tests/diagnostics_test.rs"
[[test]]
name = "raw_parser_test"
path = "tests/raw_parser_test.rs"
[[test]]
name = "streaming_equivalence"
path = "tests/streaming_equivalence.rs"
[[test]]
name = "streaming_test"
path = "tests/streaming_test.rs"
[[test]]
name = "visitor_test"
path = "tests/visitor_test.rs"
[[test]]
name = "xycut_test"
path = "tests/xycut_test.rs"
[[bench]]
name = "parse_benchmark"
path = "benches/parse_benchmark.rs"
harness = false
[dependencies.aes]
version = "0.8"
[dependencies.cbc]
version = "0.1"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.crossbeam-channel]
version = "0.5"
[dependencies.flate2]
version = "1.1"
[dependencies.log]
version = "0.4"
[dependencies.md-5]
version = "0.10"
[dependencies.rayon]
version = "1.10"
[dependencies.rc4]
version = "0.2"
[dependencies.regex]
version = "1.11"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.42"
features = [
"rt",
"fs",
]
optional = true
[dependencies.unicode-bidi]
version = "0.3"
[dependencies.unicode-normalization]
version = "0.1"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.peak_alloc]
version = "0.3"
[dev-dependencies.tempfile]
version = "3.14"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1