From 750129f09bb5d9a1bdcfe11aa7011d9572431d96 Mon Sep 17 00:00:00 2001 From: aiongg Date: Wed, 18 Nov 2026 15:38:06 +0000 Subject: [PATCH] ui-egui builds on its own: egui serde and toml display asked for by the crate `cargo test -p photocraft-ui-egui` failed to compile because egui's serde feature and toml's display feature came only from other workspace crates. Also drops the stale allowlist note in AUTO-219-8 (the panel-commands allowlist is empty). --- crates/ui-egui/Cargo.toml | 6 +++++- scorecard/automation.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/Cargo.toml b/crates/ui-egui/Cargo.toml index f1577962f5..1cf6b437c8 100644 --- a/crates/ui-egui/Cargo.toml +++ b/crates/ui-egui/Cargo.toml @@ -34,7 +34,9 @@ photocraft-codecs = { workspace = true } photocraft-formats = { workspace = true } # Reading embedded thumbnail resources (1036/1033) for recent files in Home screen. craft-psd = { workspace = true } -egui = { workspace = true } +# `serde`: the dialog state the control channel and the saved memories read holds `egui::Id`s. Asked for +# here so this crate builds on its own (`cargo test -p photocraft-ui-egui`) and in the browser build. +egui = { workspace = true, features = ["serde"] } egui_extras = { version = "0.37", default-features = false, features = ["svg"] } eframe = { workspace = true, features = ["wgpu", "accesskit", "clipboard"] } serde = { workspace = true } @@ -77,6 +79,8 @@ tempfile = "3" # The framework's test helpers, e.g. the thumbnail and fx badge rects of a Layers panel row # (`craft::layers::testing`), and the in-memory settings files (`craft::settings::testing`). craft = { workspace = true, features = ["screen-testing", "settings-testing"] } +# The prefs tests write a saved settings file (`toml::to_string`). +toml = { version = "1.1", default-features = false, features = ["std", "serde", "display"] } [build-dependencies] serde_json = { workspace = true } diff --git a/scorecard/automation.toml b/scorecard/automation.toml index 12ca0d2ecb..682763ac43 100644 --- a/scorecard/automation.toml +++ b/scorecard/automation.toml @@ -65,7 +65,7 @@ id = "AUTO-219-8" target = "xtask check that every panel button routes through a command id" status = "partial" issue = 219 -note = "cargo xtask panel-commands (run by xtask ci and CI) fails on a shell click handler that changes the document or session directly; 1 allowlisted function left (panels/color.rs color_field assigns the foreground/background colour instead of tools.setColors)" +note = "cargo xtask panel-commands (run by xtask ci and CI) fails on a shell click handler that changes the document or session directly; no allowlisted function left (the Color panel field dispatches tools.setColors)" [[item]] id = "AUTO-219-9"