mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 01:44:25 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -44,6 +44,7 @@ mod canvas;
|
||||
mod commands;
|
||||
mod panel;
|
||||
mod session;
|
||||
#[cfg(feature = "screen-testing")]
|
||||
pub(crate) mod stories;
|
||||
mod tools;
|
||||
mod words;
|
||||
|
||||
@@ -36,6 +36,7 @@ mod commands;
|
||||
mod edits;
|
||||
mod panel;
|
||||
mod session;
|
||||
#[cfg(feature = "screen-testing")]
|
||||
pub(crate) mod stories;
|
||||
mod tools;
|
||||
mod words;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user