361 Commits
Author SHA1 Message Date
Dylan M. Taylor 69dc6f3097 eps: delegate AI editing-data lexer to craft_eps::ai_lex (craft-libs#790) (#9037) 2026-11-21 15:24:11 -05:00
Dylan M. Taylor f72c56711a doc: share PNG pHYs chunk writing via craft-image-codecs (craft-libs#785) (#9033) 2026-11-21 14:16:05 -05:00
BFlat f593dff00c Merge pull request #8903 from dotCooCoo/fix/plugins-folder-special-files
Plug-ins: the plug-ins folder can't block startup on a special file
2026-11-21 11:02:50 +07:00
BFlat e33f3d3f7c Merge pull request #8901 from dotCooCoo/feat/plugin-wasm-features 2026-11-21 09:07:52 +07:00
dotCooCoo 2adc433f5e Plug-ins: the plug-ins folder can't block startup on a special file
A folder load checked each .wasm path and then opened it with a blocking
open. When a named pipe replaced the file between the two, the open held
the load until something wrote to the pipe, and with it startup or a
prefs.set of the folder. On Unix the file is now opened
without waiting and without making a terminal the controlling terminal,
and the opened file is checked again: anything that is not a regular file,
or is over the module limit, is refused and listed in the folder report.

A folder load still reads at most 1,000 .wasm files, the first by file
name, and now holds only those paths while it lists the folder. The
files past the first 1,000 were dropped and not reported; plugin.reload
and plugin.list now return their count as leftOut. An error while the
folder is listed fails the load, as an error opening the folder does,
instead of dropping the entries after it.
2026-11-20 17:28:22 -08:00
Dylan M. TayloranddotCooCoo 82d5aabeec refactor(cdr): use shared craft-cdr from craft-libs (#8857)
* refactor(cdr): depend on shared craft-cdr from craft-libs (#1665)

Replaces the local crates/cdr (vectorcraft-cdr) crate with craft-cdr
from storytold/craft-libs#2697 (storytold/craft-libs#778), keeping
VectorCraft's document/artboard/layer/shape mapping in crates/engine.

Co-authored-by: dotCooCoo <[email protected]>

* build(cdr): pin craft-cdr to craft-libs main (75d179f8df)

* build(cdr): pin craft-cdr to craft-libs main (9b28b56bc7)

* docs(cdr): point CDR/CMX provenance and test paths to craft-cdr

---------

Co-authored-by: dotCooCoo <[email protected]>
2026-11-20 20:27:55 -05:00
dotCooCoo b0fba57f4a Plug-ins: the host checks the WebAssembly features a plug-in uses
Plugin::load now validates each module with wasmparser and a fixed list
of WebAssembly features before wasmi reads it: mutable globals, sign
extension, saturating conversions, multi-value, bulk memory, reference
types, tail calls, extended constant expressions and floats. A module
that uses any other feature is refused, so a wasmi upgrade, a change to
its defaults or one of its crate features turned on elsewhere in the
build does not change what a plug-in may use. wasmi's Config is set to
the same list for every setter it has in this build.

The list is the set wasmi accepted before, without multi-memory. A
second memory was already refused by the one-memory limit; its error
now says "multiple memories". No module that loaded before is refused.

wasmparser 0.228.0 is the version wasmi 2.0.0 already uses.

A new test loads a plug-in that uses each listed feature and checks
that modules using SIMD, relaxed SIMD, memory64, a second memory,
custom page sizes, wide arithmetic, threads, exceptions, legacy
exceptions, function references or garbage collection are refused with
an error that names the feature.

docs/plugins.md lists the whole set; it named only four of the allowed
features before.
2026-11-20 17:25:01 -08:00
dotCooCoo 7f6c5349e0 Merge main into fix/ci-shard-test-build 2026-11-20 05:07:23 -08:00
dotCooCoo 49be5fb875 CI: the gate builds and runs the tests in five shards
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.
2026-11-20 01:56:01 -08:00
Dylan M. Taylor f987648e96 eps: delegate scene-writer shading, image stream, and line style syntax to craft-ps (#8810)
* eps: delegate scene-writer shading, image stream, and line style syntax to craft-ps

* chore(eps): repin craft-ps to merged craft-libs main (cfcc86242)
2026-11-20 03:01:58 -05:00
Dylan M. Taylor 54f58fff31 eps: cut over PostScript scanner (lex.rs) to craft-ps (#8793)
* eps: cut over PostScript scanner (lex.rs) to craft-ps

* chore: repin craft-ps to craft-libs main
2026-11-19 21:05:18 -05:00
Dylan M. Taylor b8c15be445 Merge remote-tracking branch 'origin/main' into cutover/jpeg-icc-replace
# Conflicts:
#	Cargo.toml
2026-11-19 16:47:43 -05:00
Dylan M. Taylor 7d44f644e8 color: use shared craft-cms palette codecs with localized errors 2026-11-19 13:52:36 -05:00
Dylan M. Taylor 05fffe3020 doc: delegate JPEG ICC replacement to craft-image-codecs 2026-11-19 11:00:14 -05:00
FredAppsandCodex cb8f5e0405 chore: unify shared craft-libs pin for HPGL and palette (#8703)
* 778: align shared dependencies on merged HPGL repair [skip ci]

* 778: record Windows-resolved unified shared lock [skip ci]

* 778: prepare unified merged palette dependency revision [skip ci]

* 778: record Windows-resolved palette revision lock [skip ci]

---------

Co-authored-by: Codex <[email protected]>
2026-11-19 09:18:36 -05:00
dotCooCoo c103a88649 Merge main into feat/cdr-import-all 2026-11-18 14:27:18 -08:00
bflatastic 338a3f13bc Merge main into #5341
# Conflicts:
#	docs/gaps.md
2026-11-19 01:05:05 +07:00
dotCooCoo c1c2619146 Merge main into feat/cdr-import-all 2026-11-18 08:21:04 -08:00
bflatastic 11b6ae8203 text: pin craft-font-catalog to craft-libs main and restore the shared outline call 2026-11-18 22:02:41 +07:00
Dylan M. Taylor 1b150df493 Merge remote-tracking branch 'origin/main' into pr-7877 2026-11-18 09:21:41 -05:00
dotCooCoo dace34d9a8 Merge main into feat/cdr-import-all 2026-11-17 20:24:50 -08:00
BFlat 3dfd692304 Merge pull request #8078 from dotCooCoo/feat/text-import-character-sets
Text Import Options: Character Set offers the other documented encodings
2026-11-18 10:31:10 +07:00
BFlat e1b12a5640 Merge pull request #8060 from dotCooCoo/feat/hyphenation-languages
Type: text hyphenates in Bulgarian, Turkish and Russian, and in German, Polish, Portuguese and Italian with CRAFT_I18N_DIR
2026-11-18 03:22:00 +07:00
dotCooCoo 61abac22bf Merge main into chore/craft-libs-exr-deep-offsets
# Conflicts:
#	Cargo.toml
2026-11-17 07:20:10 -08:00
Dylan M. Taylor 2dd120c0fe Use shared contextual run shaping (#7878) 2026-11-17 08:14:14 -05:00
Dylan M. Taylor 34dd4b53ab Pin shared HP-GL lexer to merged prerequisite 2026-11-17 07:45:20 -05:00
Dylan M. Taylor 6d91dde84c Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/text/src/fontdb/lookup.rs
2026-11-16 23:23:16 -05:00
dotCooCoo ff6e3ad8b9 Merge main into feat/text-import-character-sets 2026-11-16 19:55:55 -08:00
dotCooCoo fc1ed0acb6 Merge main into chore/craft-libs-exr-deep-offsets 2026-11-16 19:51:24 -08:00
Dylan M. Taylor 09fbf82e0e cad: use shared HP-GL byte lexer, preserve interpreter and writer (#8282) 2026-11-16 22:34:09 -05:00
Dylan M. Taylor 23ba5c8d47 SVG: use the shared standard Base64 encoder (#8280) 2026-11-16 22:22:39 -05:00
dotCooCoo 07afd411bb Dependencies: take every craft-libs crate from craft-libs main at 64b181977a
Every storytold/craft-libs git dependency, the hayro, krilla and
linesweeper patches and the web app's craft-web-api now use one
revision, 64b181977a, so Cargo.lock holds one copy of each craft-libs
crate. craft-ui's docking Monitor has a new work_area field; the
monitors VectorCraft lists set it to None, as winit reports no work
area.
2026-11-16 18:57:11 -08:00
dotCooCoo be5c81f366 Merge main into chore/craft-libs-exr-deep-offsets 2026-11-16 18:45:23 -08:00
FredApps 9a01d266b0 Merge pull request #8152 from storytold/cutover/shared-packbits
refactor: share TIFF and EPS PackBits encoding
2026-11-16 23:30:20 +01:00
Dylan M. Taylor ca7ad8db03 fix(deps): pin PackBits and PDF cohort to merged shared revision 2026-11-16 16:04:48 -05:00
Dylan M. Taylor 9c61c0b66e Merge pull request #8103 from storytold/refactor/eps-shared-write
refactor(eps): delegate PostScript write primitives to craft-ps
2026-11-16 15:55:40 -05:00
dotCooCoo f9f311d081 Dependencies: take craft-image-codecs from craft-libs main at 3af718585c
craft-image-codecs moves from a499742a93 to 3af718585c on craft-libs main.
It brings in storytold/craft-libs#1758: a deep EXR file with more than one
part now finds each part's chunks after every part's offset table, and an
offset table that runs past the end of the file is an error.

The move also brings in the other merged changes to craft-image-codecs and
the craft-jpeg, craft-metadata and craft-tiff copies it uses: #1646, #1686,
#1837, #1838, #1867 and #1889. #1774 moves DDS reading and writing into the
new craft-dds crate, which adds BC4 and BC5 textures. The other craft-libs
crates stay at their current revisions. craft-svg keeps its own
craft-image-codecs at 431f704478, which it only uses for PNG, JPEG, GIF and
WebP images.
2026-11-16 11:56:21 -08:00
dotCooCoo ded0208da2 Merge main into feat/cdr-import-all 2026-11-16 10:34:24 -08:00
dotCooCoo 6f131341b2 Merge main into feat/text-import-character-sets 2026-11-16 10:05:40 -08:00
Dylan M. Taylor aa5d042441 deps: synchronize PDF backend pins with shared stream codecs 2026-11-16 11:25:29 -05:00
BFlat 36c1f37ac6 Merge pull request #8096 from dotCooCoo/feat/packaging-check-fold-lines
Packaging Tools: Check Fold Lines finds the panels and hinges of a blank and lists what is wrong
2026-11-16 23:08:07 +07:00
dotCooCoo 6a66f9ad94 Type: decomposed Cyrillic and capital words hyphenate as their composed spelling
A Russian or Bulgarian word written with a combining breve (`и` + U+0306
for `й`) failed the Cyrillic script check and stayed whole; the check now
reads the composed word, so it breaks at the same characters as `чайник`.
A stress mark, which composes with nothing, still keeps the word whole.

The all-capitals guard skipped a decomposed capital such as `O` + U+0308,
since a combining mark has no case, so `ÖĞRENCİ` spelled that way was
hyphenated in Turkish; the guard now counts only the letters.
2026-11-16 07:33:39 -08:00
Dylan M. Taylor ae86489406 render: delegate TIFF and EPS PackBits encoding to craft-stream-codecs 2026-11-16 10:08:08 -05:00
dotCooCoo 4ded8dcdb5 Merge main into feat/hyphenation-languages 2026-11-16 07:07:41 -08:00
FredApps 4a328df848 Merge remote-tracking branch 'origin/main' into refactor/eps-shared-write 2026-11-16 14:56:00 +01:00
Dylan M. Taylor 568d25bf17 Merge main and preserve EPS shared writer dependency 2026-11-16 07:34:47 -05:00
Dylan M. Taylor ebf49351e6 build(eps): pin merged shared PostScript writer 2026-11-16 07:15:30 -05:00
FredApps 631441ce86 svg: write the document wrapper through craft-svg (#778, #789)
The XML declaration, DOCTYPE entity subset and root <svg> open now go
through SvgWriter. Mapping and the rest of the document stay in the app.
Width and height stay unitless in one place so #7105 can rebase.
2026-11-16 13:10:03 +01:00
Dylan M. Taylor 7b895f0bf0 refactor(eps): delegate PostScript write primitives to craft-ps 2026-11-16 06:23:46 -05:00
dotCooCoo 532d2ea6d7 Packaging Tools: Check Fold Lines finds the panels and hinges of a blank and lists what is wrong
Object › Plug-ins › Packaging Tools › Check Fold Lines, and the Fold Lines
panel's Check button, check the fold lines of the selection, or of the
document while nothing is selected (`addon.packaging.check`).

- Cut lines bound the material: each connected piece that encloses an
  area is one blank, its largest closed cut line is the outline, and a
  closed cut line inside it is a hole. A slot drawn as a rectangle across
  the outline leaves the same material as a notch drawn in it, and an
  outline drawn as several open cut lines works too.
- Creases, partial cuts and perforations divide a blank into panels; the
  pieces between the same two panels form one hinge.
- 15 issue codes, errors and warnings, each naming its lines; cut line
  ends within a tolerance (0.1 pt, 0.01 to 10) are joined and reported as
  a gap. With `select`, the lines the issues name are selected.
- The panel lists the issues in the interface language, with a summary
  line; clicking an issue or its Select button selects its lines. The
  list is kept until the document changes.

`vectorcraft_pathops::adjacency` maps paths as live_paint does and keeps,
for each edge, every input it lies on and the faces on both sides; the
blank model is `vectorcraft_three_d::fold::blanks`. The engine now depends
on vectorcraft-three-d directly.

Docs: docs/mcp.md (Check Fold Lines), crates/pathops/README.md, ROADMAP.
2026-11-16 01:47:15 -08:00