mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 20:01:07 +01:00
* Dock: rail_cards is now column_cards in craft-libs * Dock: pill panel tabs and rounded floating bodies, as production drew them * Root looks: neutral link labels, hover command highlight, strong choices, accent slider tracks, filled dialog buttons, spaced sections * Canvas: artboard edges black for the active artboard and grey for the others, as production drew them * Canvas: smart guide labels in their overlay's colour, as production drew them * Canvas: bleed in the error red and artboard marks in the grid grey, as production drew them * Document tabs: production's strip heights, regular and large * Floating window close test: aim at the title bar above the window's tab strip * Place the selection widgets over the canvas, so a frame runs its UI once SelectionWidgets was laid out in the canvas body's flow, which the layout check found changed in every frame the canvas drew: the frame was discarded and its whole UI ran a second time. It is placed over the canvas's rect, as the other canvas controls are. * Give nine trials the frames their behaviour needs now that a frame runs its UI once * Give the merge-press and corner-list trials what their behaviour needs now that a frame runs its UI once A merge the press frame applies changes the layout, so that frame runs again and its second pass already makes the held press: the check accepts the lent tool once the merge is no longer pending. The picked corner list fades out on the clock, which the trial now moves past before it checks the list is gone. * Pin craft-libs at 357f332549af53e1a273c2952c3e9c44157bef72 * Field labels in the normal ink, semibold document tabs, Stroke and Opacity without a colon, a plain Properties Rotate field, as production drew them * Only the shown pass of the canvas body starts the frame's panes, so a release over a floating window in the frame the pointer reached it drops the art * Pin craft-libs at 75efd247498d47e41604f418bceb2adaf0e3b329 * A collapsed panel column's icon groups stand apart by a hairline, as production drew them * Fill and Stroke chips: production's small square wells with their arrow, in the Properties panel and the Control bar * The dock's columns stand flush and square at production's widths: a 310-point panel column and a 38-point icon column, the panel tabs in the framework's plain look * The app bar's end shows Discord, a search icon and the workspace switcher, as production 0.24.1 does; tutorials and Arrange Documents stay in the Window menu * Home: StartScreen's Column layout as production lays it out: the centred welcome title and subtitle, New and Open, the recent files as rows, Learn, the presets as page cards under Quickly start a new file, and Community's links with Join our Discord as the call to action; the Home title is 26-point (typography.display). The recent-files trial finds rows by name and folder. Needs the framework's StartLayout::Column (craft-libs fix/vc-home) * Properties: the kind line heads the sections under it (QuietHeader::Heads), so the first draws no divider above it, as production's did * Link labels (Stroke, Opacity:) draw their underline inside the label (LinkLabelUnderline::Inside), under the text as production drew it; it was clipped away * Push buttons stand 24 points high (size.button), as production's flat buttons; fields stay 26 * Quiet headings (the kind line, Ellipse Properties:) stand a line of text high over their fields (QuietTitleRow::Text), as production's did * Layers rows: the thumbnail with a tight gap and 14 points of indent per level (ThumbRows::Tight): 26-point rows as production's * Layers: the Objects search field fills the filter bar up to its Filter button (ObjectsSearch::Fill), as production's did * Home: production's "New file" and "Open" words, 60 points of page margin above the title and a 36-point Join our Discord (size.page.margin, size.page.action); New Document's preset cards show blank paper on flat cards (PresetCardLook::Page), as production drew them. Needs craft-libs fix/vc-home 9cf00b80e or later * Control screenshots: frames keep coming until a capture is answered, not only until it is issued; its readback finishes in a later frame, so with nothing else repainting (the Color flyout open) a screenshot waited for the next wake, where production's capture kept painting * Icon buttons draw 16-point glyphs (size.icon.glyph_md) in their 26-point buttons, as production's did (60% of the button): Align, the Transform flips, More Options * craft-libs at next 461493afc: the panel spacing options, the menu Copy after Select All and Home's Column page options; pdf-deps follows * Files dropped on a floating panel window open as before: the dock now names the panel each drop landed on (craft-libs a2967e3cc), which the app does not use * The dock takes production 0.24.1's frame: block panel tabs on canvas strips with the column bars 14 points high, the tool column the only card with a square canvas strip on top, docks flush against the canvas with framed icon columns and square docked flyouts, the open panel's icon on the control surface; the status bar's rotation and artboard selects are filled * craft-libs at next 4bed21baa: VectorCraft's dock frame options (block panel tabs, stepped column cards, flush docks, ruled icon groups with production's grip bands, filled status selects); egui follows the framework to b15ffe9bf; pdf-deps follows * Color Wheel: the opacity row reads the target and color from the rows' pick #7642's opacity row used the target, color and color settings of the old panel function, which #9256 split into show_rows. It now reads them from the Pick show_rows gets, and leaves the gap to the stack, as the other rows do.
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.24.1"
|
||
edition = "2024"
|
||
license = "MIT OR Apache-2.0"
|
||
rust-version = "1.95"
|
||
repository = "https://github.com/storytold/vectorcraft"
|
||
|
||
[workspace.dependencies]
|
||
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043", default-features = false, features = ["interpret", "write"] }
|
||
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
# 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 = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
# Native Affinity documents (craft-libs#914).
|
||
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
# Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778).
|
||
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
# SVG parsing, limits, SVGZ and writer (craft-libs#778).
|
||
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043", features = ["tree"] }
|
||
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
# EPS container, previews, ASCII85 and DSC comments (craft-libs#778).
|
||
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
# DXF tags, reader and writer (craft-libs#778, #926, #927).
|
||
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
# WMF, EMF and EMF+ reader (craft-libs#778).
|
||
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043", default-features = false, features = ["read", "write"] }
|
||
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
# 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 = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
# 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 = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
# 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"] }
|
||
peniko = "0.6"
|
||
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"
|
||
rfd = "0.17"
|
||
arboard = { version = "3.6", default-features = false }
|
||
clipboard-win = "5.4"
|
||
webbrowser = "1"
|
||
|
||
[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 = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
krilla = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "4bed21baaa41d2b47bef90879c04df521f6f6043" }
|
||
ecolor = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
emath = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
epaint = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
egui = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
egui-winit = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
egui_glow = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
egui_extras = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
egui_system_font_provider = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
eframe = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
egui_demo_lib = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
egui_inspection = { git = "https://github.com/storytold/egui.git", rev = "b15ffe9bfc2c8e6748533b32b708e10abaf2afec" }
|
||
winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" }
|