mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
The gate's shard check failed on every shard: vectorcraft-doc's tests run in the Rest shard, where no crate turned the swatch-scans feature on, so they built with other features than under `cargo test --workspace`, where vectorcraft-ui-egui's dev-dependency turns it on. vectorcraft-doc now lists itself as a dev-dependency with swatch-scans on, as vectorcraft-pdf and vectorcraft-eps do for their counters, so its tests build with the same features in their shard and with the whole workspace.
47 lines
1.8 KiB
TOML
47 lines
1.8 KiB
TOML
[package]
|
|
name = "vectorcraft-doc"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "VectorCraft document model: artboards, layers, objects, appearance (pure data + serde)"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
# `vectorcraft_doc::blend::spines_built` for other crates' tests (dev-dependencies only).
|
|
spine-count = []
|
|
# `vectorcraft_doc::symbols_read` for other crates' tests (dev-dependencies only).
|
|
symbol-read-count = []
|
|
# `vectorcraft_doc::locked_artboard_measures` for other crates' tests (dev-dependencies only).
|
|
locked-artboard-count = []
|
|
# `vectorcraft_doc::swatches::swatch_scans` for other crates' tests (dev-dependencies only).
|
|
swatch-scans = []
|
|
|
|
[dependencies]
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-color = { workspace = true }
|
|
kurbo = { workspace = true }
|
|
image = { workspace = true }
|
|
# Image headers (PNG and JPEG sizes, `pixels::header_size`) and CMYK JPEG inks (`cmyk`).
|
|
craft-image-codecs = { workspace = true }
|
|
tiff = { workspace = true }
|
|
# 1-bit TIFFs compressed with CCITT Group 3 (Compression 2 and 3).
|
|
craft-stream-codecs = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
# The hash of a generated art object's art, which its file holds (`generated`).
|
|
sha2 = { version = "0.10", default-features = false }
|
|
thiserror = { workspace = true }
|
|
chrono = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
flate2 = { workspace = true }
|
|
# The CMYK JPEG reader `cmyk` had before craft-image-codecs, kept as the reference its inks match.
|
|
zune-jpeg = { workspace = true }
|
|
jpeg-encoder = { workspace = true }
|
|
proptest = { workspace = true }
|
|
# The counter vectorcraft-ui-egui's tests turn on, also when this crate is tested without
|
|
# vectorcraft-ui-egui (`cargo xtask ci shard`).
|
|
vectorcraft-doc = { path = ".", features = ["swatch-scans"] }
|