mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 18:25:34 +01:00
The Layers panel built its row order again on every selection change: each change made a new Tracked for the rows, and the rows reported no order revision, so the panel asked every row for the rows inside it (7 calls for the 6 rows of the new test's document). - LayerRows reports LayerTree::order_revision: a hash of the document, the open rows, Show Layers Only and the isolated node. The selection, the highlighted rows, the current layer and the names are not in it. - refresh_rows writes new rows into the kept Tracked while the document (uid and revert count) stays the same, and makes a new Tracked for another document or after File > Revert. - The craft-libs pin moves from 186a229c8 to aa7e668ec, current craft-libs main, which has craft-libs#4319 (LayerTree::order_revision). The winit rev moves to 0dfcec0eb, as craft-libs pins it; egui stays at 14c39fed1. xtask pdf-deps checks the new rev. craft-nightly keeps the rev main pins it at. Two tests failed on the new craft-libs: - canvas::tests::a_selection_drag_draws_its_marks_in_the_frame_the_pointer_moves: since craft-libs#4143 a frame runs one pass where it ran two, and the bounding box, Live Corners, hollow corners and shape widgets were drawn before the tool host took the frame's pointer event, so the box showed at the old corner. They are now drawn after it, into paint slots kept in their old order. - tests::nativemenu::applying_a_dialog_preview_reads_the_menus: since craft-libs#4350 the closed dialog's angle field gives up the keys one frame sooner, so the menus are sent again without the text-editing gate within the frames the test ran. The test now waits for the gate and counts the read and that send apart.
216 lines
14 KiB
TOML
216 lines
14 KiB
TOML
[workspace]
|
||
resolver = "3"
|
||
members = ["crates/*", "apps/*", "xtask"]
|
||
default-members = ["crates/*", "apps/vectorcraft", "apps/vectorcraft-cli", "xtask"]
|
||
|
||
[workspace.package]
|
||
version = "0.25.0"
|
||
edition = "2024"
|
||
license = "MIT OR Apache-2.0"
|
||
rust-version = "1.95"
|
||
|
||
[workspace.dependencies]
|
||
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b", default-features = false, features = ["interpret", "write"] }
|
||
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
# Language packs: the Craft apps' shared font store installs them (#4936).
|
||
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
# The `.vectorcraft` envelope: its members, version, embedded images and the data after the JSON.
|
||
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
# `.pcraft` documents: their manifest, full-size composite, preview, layer pixels and ICC profile.
|
||
craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b", features = ["pcraft-pixels"] }
|
||
# Native Affinity documents (craft-libs#914).
|
||
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
# Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778).
|
||
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
# SVG parsing, limits, SVGZ and writer (craft-libs#778).
|
||
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b", features = ["tree"] }
|
||
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
# EPS container, previews, ASCII85 and DSC comments (craft-libs#778).
|
||
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
# DXF tags, reader and writer (craft-libs#778, #926, #927).
|
||
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
# WMF, EMF and EMF+ reader (craft-libs#778).
|
||
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b", default-features = false, features = ["read", "write"] }
|
||
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
# The framework facade (`craft::ui`, `craft::settings`, `craft::platform`, ...). No default features: each crate names
|
||
# the members it imports.
|
||
craft = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
# Below the egui layer, so not through the facade: the colour harmony rules and their settings (craft-color-ui
|
||
# without its `ui` feature), the colour type they work in, and the craft-fonts tables the text crate's build writes.
|
||
craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
# Nightly profile isolation, launch protocol, and security fence.
|
||
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "1f6c3a21f85ed96f8fd4ddd5a959d4e1edbedb24" }
|
||
# internal
|
||
vectorcraft-geom = { path = "crates/geom" }
|
||
vectorcraft-color = { path = "crates/color" }
|
||
vectorcraft-doc = { path = "crates/doc" }
|
||
vectorcraft-pathops = { path = "crates/pathops" }
|
||
vectorcraft-brush = { path = "crates/brush" }
|
||
vectorcraft-trace = { path = "crates/trace" }
|
||
# Without its default `bundled-fonts`: a crate that wants the fonts asks for them (the apps and
|
||
# vectorcraft-testkit through the engine's `bundled-fonts`), so a library crate never forces them on
|
||
# an embedder that supplies its fonts at run time.
|
||
vectorcraft-text = { path = "crates/text", default-features = false }
|
||
vectorcraft-effects = { path = "crates/effects" }
|
||
vectorcraft-three-d = { path = "crates/three-d" }
|
||
vectorcraft-render = { path = "crates/render" }
|
||
vectorcraft-svg = { path = "crates/svg" }
|
||
vectorcraft-pdf = { path = "crates/pdf" }
|
||
vectorcraft-format = { path = "crates/format" }
|
||
vectorcraft-tools = { path = "crates/tools" }
|
||
# Without its default `bundled-fonts`, as vectorcraft-text: each crate that wants the fonts asks for
|
||
# them, so an embedder can build without them (docs/development.md › Leaving out the bundled fonts).
|
||
vectorcraft-engine = { path = "crates/engine", default-features = false }
|
||
vectorcraft-ui-egui = { path = "crates/ui-egui" }
|
||
vectorcraft-mcp = { path = "crates/mcp" }
|
||
vectorcraft-testkit = { path = "crates/testkit" }
|
||
vectorcraft-cad = { path = "crates/cad" }
|
||
vectorcraft-eps = { path = "crates/eps" }
|
||
vectorcraft-metafile = { path = "crates/metafile" }
|
||
vectorcraft-plugins = { path = "crates/plugins" }
|
||
vectorcraft-affinity = { path = "crates/affinity" }
|
||
vectorcraft-scriptcheck = { path = "crates/scriptcheck" }
|
||
vectorcraft-js = { path = "crates/js" }
|
||
vectorcraft-apischema = { path = "crates/apischema" }
|
||
|
||
# foundation
|
||
kurbo = { version = "0.13", features = ["serde"] }
|
||
thiserror = "2"
|
||
serde = { version = "1", features = ["derive", "rc"] }
|
||
serde_json = { version = "1", features = ["float_roundtrip"] }
|
||
log = "0.4"
|
||
# All date/time conversion goes through chrono (no hand-rolled calendar code beyond the 400-year range extension; AGENTS.md).
|
||
chrono = { version = "0.4.45", default-features = false, features = ["std"] }
|
||
proptest = "1"
|
||
crc32fast = "1.5"
|
||
# tests: a TCP port bound without listening (connections to it are refused)
|
||
socket2 = "0.6"
|
||
# Sandboxed WebAssembly plug-ins: a pure-Rust interpreter (MIT OR Apache-2.0) that builds for wasm32
|
||
# too. Without `wat` (text parsing is test-only) and memory64; `validate` keeps full module
|
||
# validation on; the portable dispatcher can't overflow the host stack on long-running modules.
|
||
wasmi = { version = "2.0.0", default-features = false, features = ["std", "validate", "stable", "portable-dispatch"] }
|
||
# The plug-in host's check of the WebAssembly features a module uses (Apache-2.0 WITH
|
||
# LLVM-exception). It is the version wasmi 2.0.0 uses.
|
||
wasmparser = { version = "0.228.0", default-features = false, features = ["std", "validate", "features"] }
|
||
# Tests: WebAssembly text -> binary for the plug-in fixtures (Apache-2.0 WITH LLVM-exception).
|
||
wat = "1.228"
|
||
|
||
# rendering / formats
|
||
# Without `text` (glyph runs, through glifo and a second skrifa): the renderer draws the outlines
|
||
# vectorcraft-text gives it. The other default features stay.
|
||
vello_cpu = { version = "0.2", default-features = false, features = ["std", "png", "u8_pipeline", "f32_pipeline"] }
|
||
# The image crate still decodes and encodes for the readers not yet moved to craft-image-codecs
|
||
# (File › Open's raster path, PDF and SVG images, the renderer's image paint, DIBs). Its format
|
||
# features stay until the last of those moves, so no file that opens today stops opening.
|
||
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "webp", "gif", "tiff", "bmp", "tga"] }
|
||
# Without `text` and the system fonts (fontdb, harfrust and skrifa, at other versions than ours):
|
||
# SVG import reads `<text>` from the XML itself and never gives usvg a font.
|
||
usvg = { version = "0.48", default-features = false, features = ["svgz"] }
|
||
# Without `simple-text` (its text shaping, the only user of rustybuzz and ttf-parser, which are
|
||
# unmaintained, #1730): the PDF writer places glyphs itself. A test of the PDF crate turns it on.
|
||
krilla = { version = "0.8", default-features = false, features = ["raster-images"] }
|
||
skrifa = "0.47"
|
||
harfrust = "0.13"
|
||
linesweeper = "0.5"
|
||
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
|
||
rustix = { version = "1.1", default-features = false }
|
||
# Zstandard decoder (pure Rust, builds for wasm32 too): the editing copy an EPS carries of its art.
|
||
ruzstd = { version = "0.9.1", default-features = false, features = ["std"] }
|
||
# vectorcraft-doc's CMYK TIFF reader and writer (src/cmyk.rs) still use `tiff`. `zune-jpeg` and
|
||
# `hayro-ccitt` are only the references tests compare craft-image-codecs' CMYK JPEG inks and
|
||
# craft-stream-codecs' Group 3 rows with (vectorcraft-doc's and vectorcraft-engine's dev-dependencies).
|
||
tiff = "0.11"
|
||
zune-jpeg = "0.5"
|
||
# JPEG XL decoder (pure Rust, MIT OR Apache-2.0): File › Open and Place read `.jxl` images. It is
|
||
# built without its default `rayon` feature and decodes on one thread.
|
||
jxl-oxide = { version = "0.12.6", default-features = false }
|
||
# jxl-oxide's color conversions, run on colors after their alpha is divided out.
|
||
jxl-color = "0.11.0"
|
||
# jxl-oxide's buffer allocation error, told apart from other decoding errors.
|
||
jxl-grid = "0.6.2"
|
||
# Tests: a lossless JPEG XL encoder (pure Rust, MIT OR Apache-2.0 OR Zlib) for the `.jxl` test files.
|
||
zune-jpegxl = { version = "0.5.2", default-features = false, features = ["std"] }
|
||
zune-core = "0.5"
|
||
hayro-ccitt = "0.3"
|
||
jpeg-encoder = { version = "0.6", default-features = false, features = ["std"] }
|
||
# Substring search for the EPS reader's PostScript `search`.
|
||
memchr = "2"
|
||
# The WHATWG Encoding Standard's legacy encodings: names in legacy .ai files read in the code page
|
||
# the user picks (Mac OS Roman, Korean, Japanese, Chinese).
|
||
encoding_rs = "0.8.42"
|
||
|
||
# ui
|
||
egui = "0.37"
|
||
egui_extras = { version = "0.37", default-features = false, features = ["svg"] }
|
||
eframe = { version = "0.37", default-features = false }
|
||
egui_kittest = "0.37"
|
||
arboard = { version = "3.6", default-features = false }
|
||
clipboard-win = "5.4"
|
||
|
||
[workspace.lints.rust]
|
||
unsafe_code = "deny"
|
||
|
||
[workspace.lints.clippy]
|
||
cognitive_complexity = "deny"
|
||
too_many_arguments = "deny"
|
||
wildcard_imports = "deny"
|
||
dbg_macro = "warn"
|
||
# VectorCraft never crashes: shipped code returns `Result`/`Option` instead of panicking (see
|
||
# AGENTS.md › Robustness). Tests may unwrap (clippy.toml).
|
||
unwrap_used = "deny"
|
||
expect_used = "deny"
|
||
panic = "deny"
|
||
todo = "deny"
|
||
unimplemented = "deny"
|
||
unreachable = "deny"
|
||
|
||
# Workspace crates keep line tables, so panics and backtraces name file and line; dependencies
|
||
# carry no debug info. Full debug info would make the dev target dir several times larger.
|
||
[profile.dev.package."*"]
|
||
opt-level = 2
|
||
debug = false
|
||
|
||
[profile.dev]
|
||
opt-level = 1
|
||
debug = "line-tables-only"
|
||
|
||
[profile.release]
|
||
lto = "thin"
|
||
codegen-units = 1
|
||
|
||
[patch.crates-io]
|
||
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
krilla = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
|
||
ecolor = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
|
||
emath = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
|
||
epaint = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
|
||
epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
|
||
egui = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
|
||
egui-winit = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
|
||
egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
|
||
egui_glow = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
|
||
egui_extras = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
|
||
egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
|
||
eframe = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
|
||
winit = { git = "https://github.com/storytold/winit.git", rev = "0dfcec0eb62fda5904137a63a6dd0c3d83295f45" }
|