[package]
edition = "2024"
rust-version = "1.100"
name = "pdf2"
version = "1.7.3"
authors = ["Alexander Korolev <alexander.korolev.germany@gmail.com>"]
build = false
exclude = [
"corpus",
"vendor",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A PDF 2.0 (ISO 32000-2) reader, writer and text extractor."
homepage = "https://pdf2-rs.github.io/pdf2/"
readme = "README.md"
keywords = [
"pdf",
"pdf2",
"parser",
"writer",
"iso32000",
]
categories = [
"parser-implementations",
"text-processing",
]
license = "Unlicense OR MIT"
repository = "https://github.com/pdf2-rs/pdf2"
[features]
alloc = []
default = ["std"]
std = []
[lib]
name = "pdf2"
path = "src/lib.rs"
[[example]]
name = "make_encrypted_fixture"
path = "examples/make_encrypted_fixture.rs"
[[example]]
name = "write"
path = "examples/write.rs"
[[test]]
name = "bounds"
path = "tests/bounds.rs"
[[test]]
name = "content"
path = "tests/content.rs"
[[test]]
name = "document"
path = "tests/document.rs"
[[test]]
name = "edit"
path = "tests/edit.rs"
[[test]]
name = "encryption"
path = "tests/encryption.rs"
[[test]]
name = "filters"
path = "tests/filters.rs"
[[test]]
name = "objects"
path = "tests/objects.rs"
[[test]]
name = "pages"
path = "tests/pages.rs"
[[test]]
name = "robustness"
path = "tests/robustness.rs"
[[test]]
name = "writer"
path = "tests/writer.rs"
[[test]]
name = "xref_streams"
path = "tests/xref_streams.rs"
[dependencies.aes]
version = "0.8.4"
default-features = false
[dependencies.cbc]
version = "0.1.2"
features = ["block-padding"]
default-features = false
[dependencies.miniz_oxide]
version = "0.9"
[dependencies.sha2]
version = "0.10.9"
default-features = false
[dev-dependencies.miniz_oxide]
version = "0.9"
[lints.clippy]
dbg_macro = "deny"
todo = "deny"
unimplemented = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.rust]
unsafe_code = "deny"