mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-25 18:47:22 -06:00
* M2: clip intersection starts its row walk at the first shared row clip::intersect in vello_common, the step every clipped path passes through, began its walk over strip rows at the earlier of the two paths' first rows. Each path therefore visited every row above it, although rows where one path has no strips produce no output. Every page is clipped (the crop box is a clip), so this ran for every stroke of every render: on the A1 engineering sample it was the hottest function in a full-page render. Start at the later first row, as vello_common 0.1 does. The strips and the pixels are unchanged; a test counts the rows the walk visits and fails without the change. vello_common 0.0.8 is vendored with that one-line PdfCraft patch (marked in the source), its unit test, the vendor/README.md row and an ATTRIBUTION.toml entry for its reference image. Cargo.lock records it as a path crate. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> * Refresh catalog hashes after merging main --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>
54 lines
1.8 KiB
TOML
54 lines
1.8 KiB
TOML
[package]
|
|
name = "vello_common"
|
|
# When updating, also update the version in the workspace dependency in the root Cargo.toml
|
|
version = "0.0.8"
|
|
description = "Core data structures and utilities shared across the Vello rendering, including geometry processing and tiling logic."
|
|
categories = ["rendering", "graphics"]
|
|
keywords = ["2d", "vector-graphics"]
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
# There are no platform specific docs.
|
|
default-target = "x86_64-unknown-linux-gnu"
|
|
targets = []
|
|
|
|
[dependencies]
|
|
bytemuck = { workspace = true, features = ["derive"] }
|
|
peniko = { workspace = true, features = ["bytemuck"] }
|
|
fearless_simd = { workspace = true }
|
|
hashbrown = { workspace = true, features = ["raw-entry"] }
|
|
png = { workspace = true, optional = true }
|
|
roxmltree = { version = "0.20.0", optional = true }
|
|
smallvec = { workspace = true }
|
|
thiserror = { workspace = true, default-features = false }
|
|
guillotiere = { workspace = true }
|
|
libm = { version = "0.2.16", optional = true }
|
|
log = { workspace = true }
|
|
|
|
[features]
|
|
# If adding new features, also document in `src/lib.rs`
|
|
default = ["std", "png"]
|
|
# Get floating point functions from the standard library (likely using your target's libc).
|
|
std = ["peniko/std", "fearless_simd/std"]
|
|
# Use floating point implementations from libm.
|
|
libm = ["peniko/libm", "dep:libm", "fearless_simd/libm"]
|
|
# Allow loading Pixmap from PNG, and drawing png glyphs.
|
|
png = ["std", "dep:png"]
|
|
# Add helpers for drawing a probe scene.
|
|
probe = []
|
|
# Enable multi-threaded rendering.
|
|
multithreading = ["std"]
|
|
# Development only features
|
|
|
|
# Enable a simple version of SVG drawing.
|
|
# This is only intended for development of Vello CPU itself,
|
|
# and is likely to be removed/moved.
|
|
pico_svg = ["dep:roxmltree"]
|
|
|
|
[lints]
|
|
workspace = true
|