mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 14:34:34 +00:00
The gate's one job builds all 106 test binaries on a 4-CPU, 16 GB runner,
and it is often stopped with exit code 143 ("The runner has received a
shutdown signal") during that build. ci.yml now runs the gate as five
legs:
- Shards 1 to 4 run `cargo xtask ci shard`, which builds and runs the
tests and doctests of its own crates: ui-egui, engine, the apps with
mcp and xtask, and every other crate.
- Shard 5 runs the other `cargo xtask ci` steps.
- On pushes to main, a `cache warm` leg runs `cargo xtask ci warm`,
which builds what every shard builds and saves the dependency cache.
`gate (ubuntu-24.04)` passes only when all five legs passed.
`cargo xtask ci` with no argument runs every step, as before.
`cargo xtask shards` lists each shard's crates. It fails when a crate
named in xtask/src/shards.rs is not a workspace member or is named
twice, and when a crate builds with other features in its shard than in
`cargo test --workspace`. Every shard runs it first. vectorcraft-affinity
and vectorcraft-pdf now turn on `synth` and `read-count` in their own
dev-dependencies, which vectorcraft-engine's dev-dependencies turned on
before. Without that, 39 tests of affinity's `it` binary do not build in
a shard without the engine.
The gate also sets dev-debug "0" and dev-strip: true, so the workspace
crates build without line tables and the test binaries without debug
info or symbols.
68 lines
2.8 KiB
TOML
68 lines
2.8 KiB
TOML
[package]
|
|
name = "vectorcraft-pdf"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "VectorCraft PDF export and import"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
# `vectorcraft_pdf::reads_of` and `imports_of` for other crates' tests (dev-dependencies only).
|
|
read-count = []
|
|
|
|
[dependencies]
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-doc = { workspace = true }
|
|
vectorcraft-effects = { workspace = true }
|
|
vectorcraft-brush = { workspace = true }
|
|
vectorcraft-color = { workspace = true }
|
|
vectorcraft-text = { workspace = true }
|
|
skrifa = { workspace = true }
|
|
kurbo = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
flate2 = { workspace = true, features = ["zlib-rs"] }
|
|
image = { workspace = true }
|
|
craft-image-codecs = { workspace = true }
|
|
# CMYK JPEGs (src/images.rs; the image crate writes RGB and grey ones only).
|
|
jpeg-encoder = { workspace = true }
|
|
craft-pdf = { workspace = true }
|
|
craft-stream-codecs = { workspace = true }
|
|
log = { workspace = true }
|
|
chrono = { workspace = true }
|
|
smallvec = "1"
|
|
siphasher = "1"
|
|
serde = { workspace = true }
|
|
# The XMP packet that File Info is read from (file_info.rs).
|
|
craft-xml = { workspace = true }
|
|
# PDF security (encrypt.rs): pure Rust, MIT OR Apache-2.0, builds for wasm.
|
|
aes = "0.8"
|
|
md-5 = { version = "0.10", default-features = false }
|
|
sha2 = { version = "0.10", default-features = false }
|
|
# The seed of the file key, salts and IVs (encrypt.rs).
|
|
getrandom = "0.4"
|
|
|
|
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
|
|
# The browser's crypto.getRandomValues.
|
|
getrandom = { version = "0.4", features = ["wasm_js"] }
|
|
|
|
[dev-dependencies]
|
|
vectorcraft-testkit = { workspace = true }
|
|
# A variable font built in code (no font file is committed).
|
|
vectorcraft-text = { workspace = true, features = ["test-fonts"] }
|
|
serde_json = { workspace = true }
|
|
# `draw_text`, to write test files with live text as other writers do.
|
|
krilla = { workspace = true, features = ["simple-text"] }
|
|
# How many times the symbol list is read to find symbols by name.
|
|
vectorcraft-doc = { workspace = true, features = ["symbol-read-count"] }
|
|
# The counters vectorcraft-engine's tests turn on, also when this crate is tested without
|
|
# vectorcraft-engine (`cargo xtask ci shard`).
|
|
vectorcraft-pdf = { path = ".", features = ["read-count"] }
|
|
|
|
# An independent raster oracle for gradient placement in PDF forms. These are test-only macOS
|
|
# bindings; the exporter stays portable Rust and does not depend on an OS PDF renderer.
|
|
[target.'cfg(target_os = "macos")'.dev-dependencies]
|
|
objc2-core-foundation = { version = "0.3", default-features = false, features = ["std", "CFData"] }
|
|
objc2-core-graphics = { version = "0.3", default-features = false, features = ["std", "CGBitmapContext", "CGColorSpace", "CGContext", "CGDataProvider", "CGImage", "CGPDFDocument", "CGPDFPage"] }
|