From fb507dbdb7a71d7d2f9ecbef59e9dc035b779381 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Wed, 2 Dec 2026 22:30:41 +0100 Subject: [PATCH] Keep deployed LightCraft libraries in the native-print QA build --- .../workflows/print-4859-native-ubuntu.yml | 3 + Cargo.toml | 63 ++++++++++--------- crates/ui-egui/Cargo.toml | 1 + 3 files changed, 36 insertions(+), 31 deletions(-) diff --git a/.github/workflows/print-4859-native-ubuntu.yml b/.github/workflows/print-4859-native-ubuntu.yml index 6d98d091f9..3115a9f3b2 100644 --- a/.github/workflows/print-4859-native-ubuntu.yml +++ b/.github/workflows/print-4859-native-ubuntu.yml @@ -29,6 +29,9 @@ jobs: - name: Test native queue delegation and existing guarded PDF printing run: | set -euo pipefail + # Only the printer panel takes the candidate's Bind in this two-revision QA worktree. + sed -i 's/^use craft_ui::contract::Bind;$/use craft_ui_print::contract::Bind;/' crates/ui-egui/src/print_queue.rs + grep -Fxq 'use craft_ui_print::contract::Bind;' crates/ui-egui/src/print_queue.rs cargo test -p lightcraft-ui-egui --lib print_queue::tests cargo test -p lightcraft-ui-egui --lib print_to_pdf_picks_a_file_and_runs_in_the_background cargo test -p lightcraft-ui-egui --lib printing_shows_a_row_in_the_activity_stack_and_stops diff --git a/Cargo.toml b/Cargo.toml index 0ab70a15cd..2e8f381939 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,41 +12,42 @@ repository = "https://github.com/storytold/lightcraft" [workspace.dependencies] craft-host = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } craft-print = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327", features = ["ui"] } -craft-cms-profile = { package = "craft-cms", git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-plist = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-pdf-print = { package = "craft-pdf", git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327", default-features = false, features = ["write-raster"] } -craft-ui = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327", features = ["serde"] } -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } +craft-ui-print = { package = "craft-ui", git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } +craft-cms-profile = { package = "craft-cms", git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-plist = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-pdf-print = { package = "craft-pdf", git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39", default-features = false, features = ["write-raster"] } +craft-ui = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39", features = ["serde"] } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } # Canon CRW decoder shared with the other Craft apps -craft-crw = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-color-transform = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-color = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-develop = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-develop-model = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-geom = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327", version = "0.1.0" } +craft-crw = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-color-transform = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-color = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-develop = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-develop-model = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-geom = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39", version = "0.1.0" } craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "8945bdb09b36245a1d442438ce8876377ef430d0" } -craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327", features = ["frames"] } -craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327", default-features = false, features = ["decode", "encode"] } +craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39", features = ["frames"] } +craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39", default-features = false, features = ["decode", "encode"] } jixel = "=0.3.4" # Photo metadata: EXIF, IPTC-IIM, XMP packets and GPX track logs (craft-libs#949) -craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-sniff = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-media = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327", default-features = false, features = ["isobmff", "matroska"] } -craft-video = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327", features = ["av1", "av1-large-encode", "threads"] } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } +craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-sniff = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-media = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39", default-features = false, features = ["isobmff", "matroska"] } +craft-video = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39", features = ["av1", "av1-large-encode", "threads"] } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } # craft-update: app-specific pretend versions apply to startup and manual checks. -craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "fa63a22393bb03f40e33accbffa67c51465ee327", features = ["egui"] } -craft-window = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327", features = ["egui"] } +craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39", features = ["egui"] } +craft-window = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39", features = ["egui"] } # HDR gain maps: ISO 21496-1 and hdrgm metadata, compute and apply (moved from crates/codecs; craft-libs#904). -craft-gainmap = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } +craft-gainmap = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } # PSD/PSB: the header, colour mode data and image resources (craft-libs#885). -craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-sqlite = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-sqlite = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } jpeg-encoder = { version = "0.7", default-features = false, features = ["std"] } # internal lightcraft-denoise-core = { path = "crates/denoise-core" } @@ -58,8 +59,8 @@ lightcraft-wincolor = { path = "crates/wincolor" } lightcraft-color = { path = "crates/color" } lightcraft-raster = { path = "crates/raster" } # TIFF/IFD: the shared reader and writer (moved from crates/tiff; craft-libs#783). -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } -craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } +craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39" } lightcraft-raw = { path = "crates/raw" } lightcraft-codecs = { path = "crates/codecs" } lightcraft-meta = { path = "crates/meta" } @@ -78,7 +79,7 @@ lightcraft-ui-egui = { path = "crates/ui-egui" } lightcraft-mcp = { path = "crates/mcp" } lightcraft-fetch = { path = "crates/fetch" } # HEIC/HEIF: the shared decoder (moved from crates/heif; craft-libs#784). -craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "fa63a22393bb03f40e33accbffa67c51465ee327", default-features = false } +craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "b2d2a1e948c43d95aa769d4f0a06fe6b869edc39", default-features = false } lightcraft-segment = { path = "crates/segment" } lightcraft-geocode = { path = "crates/geocode" } lightcraft-slideshow = { path = "crates/slideshow" } diff --git a/crates/ui-egui/Cargo.toml b/crates/ui-egui/Cargo.toml index 3c3c49f686..e2ce8eda58 100644 --- a/crates/ui-egui/Cargo.toml +++ b/crates/ui-egui/Cargo.toml @@ -53,4 +53,5 @@ toml = "1" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] craft-host.workspace = true craft-print.workspace = true +craft-ui-print.workspace = true craft-update = { workspace = true }