Commit Graph
67 Commits
Author SHA1 Message Date
aiongg 53ac626a31 next CI: derive Preview's Default, restore flatten_write's Cyan ink and main's craft-zip README line, gate the embedded-SVG test on tree, fix doc links
- craft-behavior: Preview<V> derives Default with #[default] Unchanged (clippy::derivable_impls on Rust 1.100).
- craft-prepress tests/flatten_write.rs: main's even-odd test needs the Cyan ink const.
- craft-svg: the embedded-SVG scene test needs the data-URL image resolver, which is behind feature tree.
- Docs: no links to private items (markdown, dwg, ui-patterns), no link to a crate that is not a dependency (frame), write() for the function (doc-binary), an autolink for the URL (update), Self::from_bytes (psd). craft-midi's source_timed and craft-pdf's cos::content keep only their inner docs, so their links resolve inside the module.
- README: main's craft-zip entry with its lenient reader sentence, lost in the 17 Nov merge.
2026-11-17 14:28:37 +00:00
aiongg ac3dfd1f53 Merge storytold main into next (17 Nov sync)
storytold main 83cb1133dd (291 commits) into the integration head bab1a99b85; 47 conflicted files.

- Domain test files (metafile, prepress, pdf plates, settings store, heif, media-testkit, atomic): tests next cut stay cut; tests new on main are kept, as trials where the crate's test target runs trials.
- atomic: main's group-bits test and Faulty::set_group go to src/tests.rs. audio: main's GSM and SBC oracles join tests/main.rs. cms constructors, pdf knockout_backdrop and testing_pdf join their crates' one test binary; timeline's preflight tests become src/preflight_tests.rs trials.
- update: main's changes to detect, install (linux, macos) and the tests land in next's split modules. The app's own offer is inspected on a thread of its own, picked up by tick's polling; settle_for_tests settles offers too. Later on a ready update drops the close it asked for. updater_pin_tests.rs stays deleted; its new pin test is in tests/it/update.rs.
- craft-color: main added a different crate at crates/color (the colour tags of compositor and display frames); it is next's craft-color module `tags`, re-exported at the root.
- Old crates/ui (combo, docking, testing, README) and keymap's ui/view.rs stay deleted; main's new crates/ui/src/testing files are dropped with them.
- New crates in the craft facade: ai, control, dds, frame, ipc, media-source, palette, press-print, score, ssip. testkit and xtask are listed outside it.
- Cargo.lock: the union of both locks, resolved by cargo metadata. Workflow: main's nextest Windows leg, with next's --keep-going clippy.
2026-11-17 12:44:52 +00:00
Dylan M. Taylor 06496f5bf2 craft-psd: decode strict PackBits rows into caller-owned slices (#1978) 2026-11-16 22:22:35 -05:00
.CooCoo e62945a8da craft-psd: test-support is the name of the testgen feature, which stays as an alias (#1380) 2026-11-16 21:36:00 -05:00
Dylan M. Taylor 62145a3e63 psd: preserve PhotoCraft lenient TySh prefix parsing (#1923)
(cherry picked from commit 20220807a4)
2026-11-16 23:36:08 +00:00
Dylan M. Taylor 20220807a4 psd: preserve PhotoCraft lenient TySh prefix parsing (#1923) 2026-11-16 15:51:27 -05:00
FredApps 30cad49e95 Merge pull request #1907 from FredApps/fix/786-psd-consumer-resource-limits
fix(psd): preserve consumer parsing limits and borrow placed pixels
2026-11-16 19:53:51 +01:00
Dylan M. Taylor ce2ec507c2 Merge pull request #1893 from storytold/feat/psd-unpredict-scratch
psd: support caller-budgeted prediction scratch
2026-11-16 11:38:15 -05:00
FredApps 10a585c3e2 fix(psd): preserve consumer resource limits (#786) 2026-11-16 17:14:31 +01:00
FredApps 9fc471fc5c psd: add Descriptor::parse_prefix for mid-stream reads (#1887)
from_bytes still requires the slice to be fully consumed. parse_prefix
returns the descriptor and the number of bytes used, matching
VersionedDescriptor, so apps can read a descriptor that is followed by
more data (layer effects, fill and adjustment blocks).

Part of #778 and effectcraft#786.
2026-11-16 10:09:54 -05:00
Dylan M. Taylor a4fbe4e392 Merge main preserving PackBits and prediction regressions 2026-11-16 10:05:24 -05:00
Dylan M. Taylor b774e4d168 psd: add bounded PackBits recovery decoding for app cutovers (#1885)
* psd: expose bounded PackBits recovery row decoding

* Clarify recovery row budget and partial-error contract
2026-11-16 09:55:44 -05:00
Dylan M. Taylor c864e1e8c9 psd: support caller-budgeted prediction scratch 2026-11-16 09:46:17 -05:00
aiongg 2df33d2f01 Merge remote-tracking branch 'upstream/main' into sync/main-1116
# Conflicts:
#	Cargo.lock
#	crates/audio/src/lib.rs
#	crates/exr/src/decode.rs
#	crates/font-catalog/src/lib.rs
#	crates/ps/src/lib.rs
#	crates/svg/Cargo.toml
#	crates/text/Cargo.toml
#	crates/text/src/lib.rs
#	crates/video/Cargo.toml
#	crates/video/src/lib.rs
2026-11-16 14:23:07 +00:00
FredApps 083920ebd7 psd: keep a layer record's blocks before an overlong one (#1845) 2026-11-16 07:19:08 -05:00
FredApps a1540d3039 Merge pull request #1696 from storytold/codex/psd-head-metadata
Share PSD EXIF and XMP resource selection
2026-11-16 06:48:01 +01:00
aiongg 286c5d0ecd Fix CI lints: ungate ChordChip sample, rustdoc links, level table, api-map, facade features, components index 2026-11-16 03:49:11 +00:00
aiongg dffc61a7e0 Merge storytold main 832883b5 (sync 16 Nov)
961 upstream commits since 7bb6c900. Resolutions:
- Test-only conflicts: upstream tests from before the base that our side
  cut stay cut; tests new upstream are kept (audio aac/config, layout,
  encode_format; cms lutfile; media mux; print windows_native, ticket;
  update self_update; xml hostile).
- Code our side moved, with upstream's change carried to the new place:
  craft-media mux roll sample groups (mux/boxes.rs) and writer-start
  offsets with overflow checks (mux/progressive.rs); craft-print's
  shrink-to-fit scale guard (sheets/plan.rs); craft-update's nextest
  archive detection (self_update/detect.rs); craft-vectorcraft-format's
  Tail::write_to_with (container.rs); craft-i18n's pedantic fixes
  (bidi.rs, negotiation.rs).
- craft-ui: the old crate's modules stay removed; gpu_test_lock guarded
  their per-test wgpu renderers, which the snapshot kit does not have.
- New upstream tests in crates that build their integration tests into
  the library's test executable are modules of tests/main.rs (audio
  flac_decode and qoa_oracle, cms, docpath, pcraft-format,
  vectorcraft-format).
- The 22 new crates are optional members of the craft facade.
2026-11-16 01:52:09 +00:00
FredApps 19675a61ec Merge pull request #1708 from storytold/extract/psd-duotone-records
craft-psd: share raw Duotone ink records and block writer
2026-11-16 00:07:29 +01:00
Dylan M. Taylor 040b5202f9 Merge pull request #1743 from storytold/extract/psd-unicode-names
psd: share borrowed Unicode channel-name record framing
2026-11-15 17:04:49 -05:00
Dylan M. Taylor b841da4124 Merge pull request #1737 from storytold/extract/psd-channel-resources
psd: share DisplayInfo and alternate spot-color raw records
2026-11-15 17:01:58 -05:00
9d56699be8 psd: share borrowed Unicode channel-name record framing
Extract framing from PhotoCraft 16941f7198da9ae1811a8928f4c256b5cb37c1cb, retaining the overflow protection added by 3b45e8baee7117e53847523b5bc3ae2b337966d4. Allocation-free adaptation leaves text policy with callers.

Co-authored-by: Valentin Klein <vangel1976@googlemail.com>

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-15 15:08:20 -05:00
5e2bc54a48 psd: share raw channel display and alternate spot records
Port raw framing from PhotoCraft f7f8fdcd89 and 9a390661b5; preserve tolerant import semantics and keep colour policy with consumers.

Co-authored-by: Khawar Zamman Wani <wanikhawar@gmail.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-15 14:38:21 -05:00
Dylan M. Taylor ebdff8b931 Document Duotone public record fields and counts 2026-11-15 13:59:18 -05:00
Dylan M. Taylor b9c22554ce Make serialized Duotone ink count valid by construction 2026-11-15 13:35:18 -05:00
Gert PellinandDavid Mann 689eff839d Share raw PSD Duotone ink record layout
Extract the fixed layout from PhotoCraft 772cf39c09930229e11b920196f486239bbbfab8, incorporating alternate-colour handling from 2d7c62055ee47497f8cb77bbdfd3befa29718f4a. Keep document colour/curve policy out of the codec.

Co-authored-by: David Mann <daaavid.mann@gmail.com>
2026-11-15 13:28:14 -05:00
Bram Heerink 6d590ce432 Extract PSD guide resource decoding for shared consumers
Adapt PhotoCraft f49564d281bf8892db58ed154767717223aff4f6 to a validated allocation-free iterator; retain caller-owned guide policy.
2026-11-15 13:17:03 -05:00
Dylan M. Taylor 32ae528fa1 Share PSD EXIF and XMP resource selection 2026-11-15 18:08:21 +00:00
Dylan M. Taylor d181e08d3d Read selected merged PSD planes without parsing layers (#1623)
* Read selected merged PSD planes without parsing layers

* Validate merged PSD payload bounds without decoding

* Expose declared dimensions for limit reporting

* Cover complete and truncated merged payloads
2026-11-15 13:04:18 -05:00
Dylan M. Taylor 16d838105b Write flat PSD from borrowed samples (#1620)
* Write flat PSD from borrowed interleaved samples

* Cover multiple PSD rows and planes

* Document flat PSD inputs and satisfy lint
2026-11-15 12:59:08 -05:00
Dylan M. Taylor 2d0d993c6d Merge pull request #1594 from storytold/feat/psd-tysh-envelope
psd: share editable TySh binary envelope
2026-11-15 12:23:02 -05:00
Dylan M. Taylor 2bb5d0344f docs(psd): document editable TySh envelope fields 2026-11-15 10:10:41 -05:00
Dylan M. Taylor 1e204c51df psd: bound TySh serialization and reject unsafe geometry 2026-11-15 09:33:38 -05:00
Dylan M. Taylor d0feabc6c8 Exercise displacement dimension guards independently of mode 2026-11-15 09:30:43 -05:00
4d594a1130 psd: share editable TySh binary envelope from PhotoCraft
Preserve transform safety work and compatibility recovery; adapt to shared array geometry and add regression tests.

Co-authored-by: David Mann <daaavid.mann@gmail.com>
Co-authored-by: Sean Lavery <Theseanlavery@gmail.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-15 09:30:30 -05:00
Dylan M. Taylor f2106054e0 Support bounded streaming displacement samples without plane copies 2026-11-15 09:30:28 -05:00
Dylan M. Taylor 46cd009367 Add exact-plane payload writer and hostile-input regression tests 2026-11-15 09:29:01 -05:00
Scott Macdonald 8322a1166c Port bounded Displace payload reader from PhotoCraft 2026-11-15 09:28:27 -05:00
Dylan M. Taylor 2284a6bf76 Merge pull request #1582 from storytold/extract/psd-annotations
craft-psd: bounded annotation record views and writer
2026-11-15 09:17:31 -05:00
Dylan M. Taylor 09188c3bbf Merge pull request #1565 from storytold/extract/psd-linked-views
craft-psd: bounded header-only linked records for deferred consumers
2026-11-15 08:47:29 -05:00
Dylan M. Taylor 22c9a0933d psd: expose bounded annotation record views and serialization 2026-11-15 07:43:59 -05:00
David Mann 2c3171d734 psd: retain the non-advancing annotation length guard 2026-11-15 07:43:59 -05:00
Brandon Thomas 2af0575279 psd: import annotation reader primitives from PhotoCraft 2026-11-15 07:39:16 -05:00
Dylan M. Taylor 25abb43bde craft-psd: pin that a length not fitting 32 bits is refused, not truncated 2026-11-14 14:44:05 -05:00
aiongg bb277cc3ac Lints: doc links, ungate the click event helper, api map entry for AppPaint, test allowances 2026-11-14 02:51:47 +00:00
aiongg deeb91802f Lints: doc links, test lint allowances, struct update in tests, wildcard imports, dead code 2026-11-14 02:35:35 +00:00
aiongg 894ecc6390 Lints: unambiguous write doc links, private doc links, contains 2026-11-14 01:58:46 +00:00
Dylan M. Taylor 1cb33dabdd Cover incremental PSD zlib stream draining 2026-11-13 08:17:32 -05:00
Dylan M. Taylor 6c505b0ce0 Expose incremental PSD zlib stream encoding 2026-11-13 08:14:16 -05:00
Dylan M. Taylor 47107f6601 craft-mesh: retain glTF texture and sampler inventory (#1151)
* craft-mesh: expose unreferenced glTF texture variants

* mesh: validate texture inventory image indices

* Fix PR 1151 validation and workspace checks

* Fix remaining Rust 1.95 workspace lint findings

* Fix proof workspace Clippy warning

* Fix remaining workspace Clippy findings

* Fix video all-features Clippy warning

* KRA: parse nested layers without recursion

* Preserve KRA layer limit traversal order

* Avoid expect in iterative KRA parser

* OpenRaster: parse nested stacks without recursion

* Plate tests honor optional font fixtures

* Keep bundled font index bytes unchanged

* Preserve font build license fixture bytes

* ci: allow longer workspace test matrix

* test: respect Windows Hunspell path behavior

* ci: provision keymap fonts for all-feature tests

* ci: provision PSD corpus for full workspace tests
2026-11-13 02:17:30 -05:00