[package]
edition = "2024"
rust-version = "1.97"
name = "laminapdf-render"
version = "0.9.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Render PDF pages to RGBA pixel tiles in Rust behind one renderer interface, with limits on output size, cancellation, and a pure-Rust backend (hayro) behind a feature."
homepage = "https://laminapdf.com"
documentation = "https://docs.laminapdf.com"
readme = "README.md"
keywords = [
"pdf",
"render",
"rendering",
"raster",
"pdf-renderer",
]
categories = [
"rendering",
"graphics",
]
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]
export = [
"dep:png",
"dep:jpeg-encoder",
"tiff",
]
hayro = ["dep:hayro"]
tiff = ["dep:tiff"]
[lib]
name = "laminapdf_render"
path = "src/lib.rs"
[[test]]
name = "appearance_colours"
path = "tests/appearance_colours.rs"
[[test]]
name = "content_edits"
path = "tests/content_edits.rs"
[[test]]
name = "export"
path = "tests/export.rs"
[[test]]
name = "flatten"
path = "tests/flatten.rs"
[[test]]
name = "hayro"
path = "tests/hayro.rs"
[dependencies.hayro]
version = "=0.8.0"
optional = true
[dependencies.jpeg-encoder]
version = "0.7.1"
features = ["std"]
optional = true
default-features = false
[dependencies.laminapdf-cos]
version = "0.9.0"
default-features = false
[dependencies.laminapdf-model]
version = "0.9.0"
default-features = false
[dependencies.laminapdf-syntax]
version = "0.9.0"
features = ["json"]
default-features = false
[dependencies.png]
version = "0.18.1"
optional = true
default-features = false
[dependencies.serde_json]
version = "1.0.154"
[dependencies.thiserror]
version = "2.0.21"
default-features = false
[dependencies.tiff]
version = "0.11.3"
features = ["deflate"]
optional = true
default-features = false
[dev-dependencies.boon]
version = "0.6.1"
[dev-dependencies.png]
version = "0.18.1"
default-features = false
[dev-dependencies.tiff]
version = "0.11.3"
features = ["deflate"]
default-features = false
[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"