From 7ea8b7c8a9f7a73850d827e034ba34de8f05c140 Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 23 Nov 2026 03:56:31 +0000 Subject: [PATCH] Engine split step 6: trait imports where only CI's builds use them (Linux print, app tests, GPU trials) --- apps/photocraft/src/main.rs | 4 +++- crates/automation/tests/it/gpu_backend.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/photocraft/src/main.rs b/apps/photocraft/src/main.rs index 8d6e39283f7..c6ec5f2c2ab 100644 --- a/apps/photocraft/src/main.rs +++ b/apps/photocraft/src/main.rs @@ -63,7 +63,7 @@ mod ui_state; mod window_frame; use photocraft_engine::Session; -use photocraft_engine::prefs::SavedPrefsExt; +#[cfg(target_os = "linux")] use photocraft_engine::print_cmds::PrintExt; use photocraft_ui_egui::PhotocraftApp; use photocraft_ui_egui::Prefix; @@ -842,6 +842,8 @@ pub(crate) fn no_child_spawns() -> std::sync::RwLockWriteGuard<'static, ()> { #[cfg(test)] mod tests { + use photocraft_engine::prefs::SavedPrefsExt; + /// Schema-probe `ui.ron` shapes *reconstructed* from the documented 0.14/0.15/0.37 layouts, /// not recorded machine saves: 0.14 and 0.15 both store the flat window entry, which the /// first 0.37 launch rewrites; a 0.37 file is left alone. Keeping all three probes makes a diff --git a/crates/automation/tests/it/gpu_backend.rs b/crates/automation/tests/it/gpu_backend.rs index a80e557ebec..8cb004ed7f5 100644 --- a/crates/automation/tests/it/gpu_backend.rs +++ b/crates/automation/tests/it/gpu_backend.rs @@ -13,6 +13,7 @@ mod gpu_tests { use photocraft_automation::workspace::AuthorizedWorkspace; use photocraft_automation::{GpuRenderer, Headless}; + use photocraft_engine::color_cmds::ColorExt; fn make_test_doc(w: u32, h: u32, depth: SampleType) -> Document { let mut doc = Document::with_background("test_doc", Size::new(w, h), ColorMode::Rgb, depth, Color::WHITE);