mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-26 11:08:48 -06:00
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>
34 lines
994 B
TOML
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
|