ui-contract and imaging build without the testing features

A consumer build of the craft facade has no dev-dependencies, so craft-ui's
testing feature is off. access.rs used pass_state outside its testing-only
import, the pass-local services listed the testing-only Elisions, and four
craft-imaging stories modules lacked the screen-testing gate.
This commit is contained in:
aiongg
2026-11-12 14:32:46 +00:00
parent 7665c90527
commit 0f4b85a930
6 changed files with 5 additions and 1 deletions
+1
View File
@@ -26,6 +26,7 @@ mod overlay;
mod panel;
mod preview_pane;
mod session;
#[cfg(feature = "screen-testing")]
pub(crate) mod stories;
mod tool;
mod words;
+1
View File
@@ -44,6 +44,7 @@ mod canvas;
mod commands;
mod panel;
mod session;
#[cfg(feature = "screen-testing")]
pub(crate) mod stories;
mod tools;
mod words;
+1
View File
@@ -36,6 +36,7 @@ mod commands;
mod edits;
mod panel;
mod session;
#[cfg(feature = "screen-testing")]
pub(crate) mod stories;
mod tools;
mod words;
+1
View File
@@ -18,6 +18,7 @@ mod commands;
mod lines;
mod panel;
mod session;
#[cfg(feature = "screen-testing")]
pub(crate) mod stories;
mod tool;
mod words;
@@ -9,7 +9,6 @@ mod text;
#[cfg(feature = "testing")]
mod tree;
#[cfg(feature = "testing")]
use crate::runtime::pass_state;
use egui::FullOutput;
use egui::{Context, Id, ViewportId};
@@ -81,6 +81,7 @@ pass_state! {
root_tokens: crate::runtime::env::tokens::RootTokenCache,
styles: crate::style::cache::StyleCache,
style_groups: crate::style::cx::GroupCache,
#[cfg(feature = "testing")]
elisions: crate::runtime::egui::painted::Elisions,
tooltip_grace: crate::contract::tooltip::Grace,
gestures: crate::runtime::edit::Gestures,