mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-25 10:39:01 -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>
159 lines
3.3 KiB
TOML
159 lines
3.3 KiB
TOML
# 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.88"
|
|
name = "vello_common"
|
|
version = "0.0.8"
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Core data structures and utilities shared across the Vello rendering, including geometry processing and tiling logic."
|
|
readme = "README.md"
|
|
keywords = [
|
|
"2d",
|
|
"vector-graphics",
|
|
]
|
|
categories = [
|
|
"rendering",
|
|
"graphics",
|
|
]
|
|
license = "Apache-2.0 OR MIT"
|
|
repository = "https://github.com/linebender/vello"
|
|
resolver = "2"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
default-target = "x86_64-unknown-linux-gnu"
|
|
targets = []
|
|
|
|
[features]
|
|
default = [
|
|
"std",
|
|
"png",
|
|
]
|
|
libm = [
|
|
"peniko/libm",
|
|
"dep:libm",
|
|
"fearless_simd/libm",
|
|
]
|
|
multithreading = ["std"]
|
|
pico_svg = ["dep:roxmltree"]
|
|
png = [
|
|
"std",
|
|
"dep:png",
|
|
]
|
|
probe = []
|
|
std = [
|
|
"peniko/std",
|
|
"fearless_simd/std",
|
|
]
|
|
|
|
[lib]
|
|
name = "vello_common"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies.bytemuck]
|
|
version = "1.25.0"
|
|
features = [
|
|
"derive",
|
|
"derive",
|
|
]
|
|
|
|
[dependencies.fearless_simd]
|
|
version = "0.4.0"
|
|
default-features = false
|
|
|
|
[dependencies.guillotiere]
|
|
version = "0.7.0"
|
|
default-features = false
|
|
|
|
[dependencies.hashbrown]
|
|
version = "0.17.1"
|
|
features = [
|
|
"default-hasher",
|
|
"raw-entry",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.libm]
|
|
version = "0.2.16"
|
|
optional = true
|
|
|
|
[dependencies.log]
|
|
version = "0.4.29"
|
|
|
|
[dependencies.peniko]
|
|
version = "0.6.1"
|
|
features = ["bytemuck"]
|
|
default-features = false
|
|
|
|
[dependencies.png]
|
|
version = "0.18.1"
|
|
optional = true
|
|
|
|
[dependencies.roxmltree]
|
|
version = "0.20.0"
|
|
optional = true
|
|
|
|
[dependencies.smallvec]
|
|
version = "1.15.1"
|
|
|
|
[dependencies.thiserror]
|
|
version = "2.0.18"
|
|
default-features = false
|
|
|
|
[lints.clippy]
|
|
allow_attributes_without_reason = "warn"
|
|
cargo_common_metadata = "warn"
|
|
cast_possible_truncation = "warn"
|
|
collection_is_never_read = "warn"
|
|
dbg_macro = "warn"
|
|
debug_assert_with_mut_call = "warn"
|
|
default_trait_access = "warn"
|
|
doc_markdown = "warn"
|
|
fn_to_numeric_cast_any = "warn"
|
|
infinite_loop = "warn"
|
|
large_stack_arrays = "warn"
|
|
mismatching_type_param_order = "warn"
|
|
missing_assert_message = "warn"
|
|
missing_fields_in_debug = "warn"
|
|
negative_feature_names = "warn"
|
|
redundant_feature_names = "warn"
|
|
same_functions_in_if_condition = "warn"
|
|
semicolon_if_nothing_returned = "warn"
|
|
should_panic_without_expect = "warn"
|
|
todo = "warn"
|
|
too_many_arguments = "allow"
|
|
unseparated_literal_suffix = "warn"
|
|
use_self = "warn"
|
|
wildcard_dependencies = "warn"
|
|
|
|
[lints.rust]
|
|
elided_lifetimes_in_paths = "warn"
|
|
keyword_idents_2024 = "forbid"
|
|
missing_debug_implementations = "warn"
|
|
missing_docs = "warn"
|
|
non_ascii_idents = "forbid"
|
|
non_local_definitions = "forbid"
|
|
trivial_numeric_casts = "warn"
|
|
unnameable_types = "warn"
|
|
unreachable_pub = "warn"
|
|
unsafe_op_in_unsafe_fn = "forbid"
|
|
unused_import_braces = "warn"
|
|
unused_lifetimes = "warn"
|
|
unused_macro_rules = "warn"
|
|
unused_qualifications = "warn"
|