Commit Graph
25577 Commits
Author SHA1 Message Date
dotCooCoo 8387f54b97 Doc tests: count only crate-level attributes in the unsafe-code check
The check read every #![...] attribute in a library root, including
ones inside a module's braces. A root with
mod tests { #![doc(test(attr(deny(unsafe_code))))] } and no crate-level
attribute passed, although an attribute inside a module does not apply
to the crate's other doc tests. A #![forbid(unsafe_code)] inside a
module was also read as the library forbidding unsafe code.

Attributes inside braces are now skipped, with a test for each case.
2026-12-03 12:05:15 -08:00
dotCooCoo a520deb991 Doc tests: assert the exact report in the unsafe-code check's tests
CI's test-lint step failed with only-weak at xtask/src/doc_tests.rs:250:
every assertion in comments_other_lints_and_allow_do_not_count checked
only that problem() returned Some. Such a test still passes when the
check reports the wrong problem, for example when a commented-out
#![forbid(unsafe_code)] is counted and the forbid message is returned
instead of the deny message.

The tests now compare problem() with the exact message for each case,
and two cases cover a commented-out forbid on either side. The other
tests in the file that checked only is_some, is_none or a substring
compare the full result too.
2026-12-03 11:55:35 -08:00
dotCooCoo a7176b835a Merge main into fix/doc-tests-unsafe-code 2026-12-03 11:34:34 -08:00
.CooCoo 64a7515fea Merge pull request #9147 from dotCooCoo/feat/scripts-scriptui-palettes
Scripts: ScriptUI palettes stay open after the run and run their handlers in line
2026-12-03 11:24:20 -08:00
.CooCoo 7fcf5f33e4 Merge pull request #10735 from dotCooCoo/feat/curvature-comb
View: Curvature Comb overlay on selected paths (Fixes #10659)
2026-12-03 10:46:43 -08:00
.CooCoo 6ec7bdd244 Merge pull request #10696 from dotCooCoo/fix/global-edit-stale-points
Scripts: path points of other Global Edit members go stale when Global Edit changes them
2026-12-03 10:46:39 -08:00
dotCooCoo 104ebc9dd1 Merge main into fix/doc-tests-unsafe-code 2026-12-03 10:20:49 -08:00
dotCooCoo e6ca6ed1a9 Doc tests: read whole attributes and skip comments in the unsafe-code check
The check read crate-root attributes one physical line at a time and
compared whole attribute strings. It accepted a doc-test attribute that
sat inside a block comment or a string literal, rejected a valid
attribute split over several lines, and did not see `unsafe_code` in a
grouped list such as `#![forbid(unsafe_code, unused_must_use)]`, so it
accepted `deny` in the doc tests of such a library.

The check now removes comments and literal contents, reads each
`#![...]` attribute up to its matching bracket, and reads lint lists
item by item, in the library's own attribute and in the doc-test one.
2026-12-03 10:20:43 -08:00
.CooCoo de5157cf88 Merge pull request #10729 from dotCooCoo/fix/issue-10639
Color Picker: the canvas stays undimmed while the picker and preview dialogs are open
2026-12-03 10:14:03 -08:00
dotCooCoo 9c11c47f75 Doc tests: unsafe code is denied in doc tests too
Rustdoc builds each doc test as its own crate, without the workspace's
`unsafe_code = "deny"` and without a library's `#![forbid(unsafe_code)]`,
so a doc test holding an `unsafe` block passed `cargo test --doc`.

- Every library root now carries `#![doc(test(attr(forbid(unsafe_code))))]`,
  or `deny` in cad, eps and metafile, which rely on the workspace lint.
- `cargo xtask layers` reports a library whose doc tests are missing the
  attribute, or use `deny` where the library forbids unsafe code.
- AGENTS.md names the rule next to the `unsafe` allowlist.
2026-12-03 09:51:28 -08:00
dotCooCoo c4a737f255 Merge main into feat/scripts-scriptui-palettes 2026-12-03 09:29:28 -08:00
.CooCoo 3055e36ad5 Merge pull request #10736 from dotCooCoo/fix/rounded-bevel-cap-triangulation
3D: large caps are cut into triangles without testing every corner per ear
2026-12-03 09:08:22 -08:00
.CooCoo 4cf5678434 Merge pull request #10737 from dotCooCoo/fix/xtask-check-line-endings
xtask: ui-commands --check passes in a checkout with core.autocrlf
2026-12-03 09:07:06 -08:00
dotCooCoo c618b9b22c View: Curvature Comb does not close across segments a capped comb skips
When a long subpath has more segments than the tooth budget, only every
k-th segment gets teeth. comb_closes compared only the first and last
tooth positions, so a last sampled segment that ended on the first anchor
joined its tip to the first tooth across the skipped closing segment.

Each tooth now records its segment, and the comb closes only when the
segments between the last tooth and the first across the seam have no
length.
2026-12-03 09:02:42 -08:00
dotCooCoo 5ff65970f9 Merge main into fix/global-edit-stale-points 2026-12-03 08:56:53 -08:00
.CooCoo abe50250fa Merge pull request #10728 from dotCooCoo/fix/artboard-name-edit-target
Artboards: an unentered name stays with its artboard
2026-12-03 08:49:36 -08:00
.CooCoo c55947d2c1 Merge pull request #10727 from dotCooCoo/fix/cli-export-size
CLI: convert and run --export take --width, --height and --background
2026-12-03 08:49:20 -08:00
.CooCoo e8aa48f1fa Merge pull request #10715 from dotCooCoo/fix/gradient-stop-draft-follows-stop
Gradient: an unfinished field value stays with the stop, point or gradient it was typed for
2026-12-03 08:49:03 -08:00
.CooCoo d91cf654b3 Merge pull request #10699 from dotCooCoo/fix/script-point-undo-selection
Scripts: undoing a point write selects the anchors it dropped again
2026-12-03 08:48:47 -08:00
.CooCoo dc8a26be02 Merge pull request #10695 from dotCooCoo/fix/hyphenation-dialog-zone-gate
Hyphenation: the dialog disables the options that do not apply to the paragraphs
2026-12-03 08:48:30 -08:00
.CooCoo 9a2a06a136 Merge pull request #10693 from dotCooCoo/chore/script-dom-coverage
Tests: cover script DOM range checks, PrintOptions groups and evalFile refusals
2026-12-03 08:48:14 -08:00
.CooCoo e6ef622acb Merge pull request #10688 from dotCooCoo/fix/eps-embedded-font-tests
EPS import: tests for Type 1 encrypted-part lexing and CIDFont metrics, glyph directories and data limit
2026-12-03 08:47:58 -08:00
.CooCoo 70c734d72a Merge pull request #10687 from dotCooCoo/fix/coverage-recolor-theme-legends
Tests: cover the theme picker's masks and blends, and pie legend contrast past the wedge limit
2026-12-03 08:47:42 -08:00
.CooCoo dbacda04ee Merge pull request #10698 from dotCooCoo/fix/script-text-spot-color
Scripts: a text color assigned in a CMYK document is compared as the document stores it
2026-12-03 08:47:10 -08:00
.CooCoo 71feb45ef1 Merge pull request #10745 from dotCooCoo/fix/main-see-all-points-result
Main: removeAll on a clipping path passes on a stale-point error
2026-12-03 08:46:49 -08:00
dotCooCoo a857b49af4 Main: removeAll on a clipping path passes on a stale-point error
#10682 made paths::see_all_points return a Result; d22384d6 had added a call in the mask-release path of removeAll that ignored it, so clippy -D warnings fails on main. The call now passes the error on with ?, as the other three callers do.
2026-12-03 08:46:32 -08:00
.CooCoo 989d4512e7 Merge pull request #10683 from dotCooCoo/test/coverage-gaps-engine-file-limits
Tests: cover the script gate's checked writes and three file-size limits
2026-12-03 08:22:49 -08:00
.CooCoo fff1c92179 Merge pull request #10682 from dotCooCoo/fix/script-point-scan-charged
Scripts: the look for changed path points after each command is charged
2026-12-03 08:22:32 -08:00
.CooCoo 554c0ab1c2 Merge pull request #10681 from dotCooCoo/fix/eps-interpreter-coverage
EPS import: tests for LZW data, skipped image data, save limits and cvs text
2026-12-03 08:22:15 -08:00
.CooCoo 04330419a0 Merge pull request #10679 from dotCooCoo/chore/geom-coverage-batch-18
Tests: cover geom arc, straightness, quad length and anchor table checks
2026-12-03 08:21:59 -08:00
.CooCoo 61ac3d5d57 Merge pull request #10647 from dotCooCoo/fix/raster-400-worker
Canvas: pans at high zoom keep the paths the canvas drew while waiting for the worker
2026-12-03 08:21:40 -08:00
BFlat b8e3576f17 Merge pull request #10558 from ruchirguitar/plate-row-menu
Separations Preview: add a context menu to ink plate rows
2026-12-03 23:15:43 +07:00
BFlat ceb282a6b8 Merge pull request #10561 from ruchirguitar/cleanup-row-menu
Artwork Cleanup: offer actions on scan results
2026-12-03 23:15:23 +07:00
BFlat e4dbbe9521 Merge pull request #10562 from ruchirguitar/codex/fold-finding-menu
Packaging: add a row menu to Fold Lines findings
2026-12-03 23:14:33 +07:00
BFlat 9daf4163eb Merge pull request #10568 from ruchirguitar/fix/web-served-fonts
Web: the site publishes the interface's served fonts under fonts/ui/
2026-12-03 23:14:15 +07:00
BFlat 9f781011b3 Merge pull request #10604 from ruchirguitar/feat/4602-canvas-menu-icons
Canvas context menu: common rows show an icon
2026-12-03 23:13:38 +07:00
dotCooCoo 80e8c74d55 View: Curvature Comb breaks at a cusp on an anchor
The direction of the last curved tooth now carries from one segment to
the next, so a cusp where two curved segments meet starts a new line
through the tips. It is cleared wherever a tooth is left out, on a
line and between strided segments.

A closed comb now closes at its first anchor when the curve goes on
there without turning back (comb_closes), instead of only when the
comb has no break at all, so a cusp elsewhere does not open the join.
2026-12-03 07:57:29 -08:00
dotCooCoo 96e3535c45 Merge main into fix/global-edit-stale-points 2026-12-03 07:45:26 -08:00
.CooCoo f1c39395eb Merge pull request #10677 from dotCooCoo/chore/coverage-gaps-batch3-path-select
Tests: path joins, Pathfinder refusals and unknown selection modes
2026-12-03 07:37:19 -08:00
.CooCoo 557a98c866 Merge pull request #10672 from dotCooCoo/fix/format-write-and-unpack-budget-tests
Tests: checked saves keep the original, compressed files capped on both paths
2026-12-03 07:37:03 -08:00
.CooCoo 6524160f3d Merge pull request #10671 from dotCooCoo/fix/eps-writer-coverage-tests
Tests: cover aligned and pattern strokes in EPS, live art in legacy .ai and top-object grids
2026-12-03 07:36:46 -08:00
.CooCoo 8934a24a27 Merge pull request #10670 from dotCooCoo/fix/eps-ai-reading-limit-tests
Tests: cover the .ai reading limits for text data, meshes and variable libraries
2026-12-03 07:36:29 -08:00
.CooCoo fc19f5a42d Merge pull request #10664 from dotCooCoo/fix/action-playback-current-artboard
Scripts: doScript steps act on the artboard the script made active
2026-12-03 07:36:06 -08:00
dotCooCoo 9711371ab9 Color picker: say the picker adds no dimming of its own
Another open dialog, such as New Swatch, keeps its own scrim over the
canvas while the picker is open. The doc line in docs/mcp.md and the
comment in dialogs/color_picker.rs now say so.
2026-12-03 07:36:01 -08:00
.CooCoo 041c6cbfe9 Merge pull request #10660 from dotCooCoo/fix/newgroup-keeps-tracing
Image Trace: object.newGroup at index 0 no longer ends a tracing
2026-12-03 07:35:43 -08:00
.CooCoo a64c923e04 Merge pull request #10658 from dotCooCoo/fix/layer-selection-scans
Scripts: hasSelectedArtwork selects inside an isolated group and charges its scans
2026-12-03 07:35:25 -08:00
.CooCoo 80b6acf602 Merge pull request #10656 from dotCooCoo/fix/print-paper-null-and-socket-ppd
Print: file.print refuses a null paper, and only the local scheduler's sockets read its PPDs
2026-12-03 07:35:06 -08:00
.CooCoo de71cfc9ef Merge pull request #10654 from dotCooCoo/fix/script-image-matrix-locks
Scripts: image matrix assignment refuses locked and hidden images
2026-12-03 07:34:43 -08:00
.CooCoo 6d2b626597 Merge pull request #10653 from dotCooCoo/fix/script-transform-stroke-limit-empty-path
Scripts: transforms keep path strokes within 1000 points and take empty paths
2026-12-03 07:34:28 -08:00
.CooCoo 06d4971200 Merge pull request #10648 from dotCooCoo/fix/dxf-unit-scale-ratio-percent
Scripts: ExportOptionsAutoCAD.unitScaleRatio is a percentage
2026-12-03 07:34:11 -08:00