laminapdf-syntax 0.9.0

PDF syntax in Rust: the object model, lexer and parser, stream filters, decryption, and resource limits for untrusted input.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.97"
name = "laminapdf-syntax"
version = "0.9.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PDF syntax in Rust: the object model, lexer and parser, stream filters, decryption, and resource limits for untrusted input."
homepage = "https://laminapdf.com"
documentation = "https://docs.laminapdf.com"
readme = "README.md"
keywords = [
    "pdf",
    "parser",
    "lexer",
    "syntax",
    "decryption",
]
categories = [
    "parser-implementations",
    "encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/laudebugs/laminapdf"

[package.metadata.laminapdf]
layer = "core"

[package.metadata.docs.rs]
all-features = true

[features]
default = ["saslprep"]
json = [
    "dep:serde",
    "dep:serde_json",
]
saslprep = ["dep:stringprep"]

[lib]
name = "laminapdf_syntax"
path = "src/lib.rs"

[dependencies.aes]
version = "0.9.3"
default-features = false

[dependencies.md-5]
version = "0.11.0"
default-features = false

[dependencies.miniz_oxide]
version = "0.9.1"
features = ["with-alloc"]
default-features = false

[dependencies.serde]
version = "1.0.229"
features = [
    "std",
    "derive",
]
optional = true
default-features = false

[dependencies.serde_json]
version = "1.0.154"
optional = true

[dependencies.sha2]
version = "0.11.1"
default-features = false

[dependencies.stringprep]
version = "0.1.5"
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.21"
default-features = false

[dependencies.zeroize]
version = "1.9.1"
features = ["std"]
default-features = false

[dev-dependencies.serde_json]
version = "1.0.154"

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
cognitive_complexity = "warn"
dbg_macro = "deny"
expect_used = "deny"
indexing_slicing = "deny"
must_use_candidate = "allow"
panic = "deny"
redundant_clone = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "deny"
unreachable_pub = "warn"
unsafe_code = "deny"
unused_qualifications = "warn"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.nonstandard_style]
level = "deny"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(laminapdf_unstable_redaction)"]

[lints.rustdoc]
broken_intra_doc_links = "deny"