[package]
edition = "2021"
name = "rasgapdf"
version = "0.3.1"
authors = ["Messias Martins"]
build = false
exclude = [
"bindings/*",
"space_hf/*",
"upload_to_hf.py",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Blazing-fast spatial 2D PDF parser in pure Rust with multi-language bindings (Python, Node.js, Go, C#) for RAG, LLMs, bounding boxes, and table extraction"
homepage = "https://martinsmessias.github.io/rasgapdf/"
documentation = "https://docs.rs/rasgapdf"
readme = "README.md"
keywords = [
"pdf",
"spatial",
"parser",
"layout-analysis",
"bounding-box",
]
categories = [
"text-processing",
"parsing",
"command-line-utilities",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/MartinsMessias/rasgapdf"
[lib]
name = "rasgapdf"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bin]]
name = "rasgapdf"
path = "src/main.rs"
[[test]]
name = "extraction"
path = "tests/extraction.rs"
[dependencies.clap]
version = "4.5"
features = ["derive"]
[dependencies.flate2]
version = "1.0"
features = ["rust_backend"]
default-features = false
[dependencies.rayon]
version = "1.10"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.11"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true