Files
pdfcraft/vendor/hayro/Cargo.toml.orig
1f0466fcae M2: bound image resampling buffers before allocation (#592)
Check source, destination, convolution and filter-plan sizes before allocation. Preserve original image geometry when a resize exceeds the policy, while allowing valid wide sources to shrink.

Co-authored-by: OpenAI Codex <codex@openai.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-10-09 18:53:56 -04:00

34 lines
994 B
TOML

[package]
name = "hayro"
version = "0.7.1"
description = "A rasterizer for PDF files."
edition = { workspace = true }
rust-version = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
readme = "README.md"
[dependencies]
hayro-interpret = { workspace = true }
kurbo = { workspace = true }
image = { workspace = true, features = ["png"] }
bytemuck = { workspace = true, features = ["bytemuck_derive"] }
vello_cpu = { workspace = true }
pic-scale = { workspace = true }
# PdfCraft patch: report image resampling fallbacks through the application's logger.
log = { workspace = true }
[dev-dependencies]
log = { workspace = true }
[features]
default = ["embed-fonts", "embed-cmaps"]
embed-fonts = ["hayro-interpret/embed-fonts"]
# Embed the 61 predefined cmaps into the binary. Adds about ~250KB of brotli-encoded data.
embed-cmaps = ["hayro-interpret/embed-cmaps"]
logging = ["hayro-interpret/logging"]
[lints]
workspace = true