Merge PR #15608: fix(xtask): classify craft as a UI dependency

This commit is contained in:
David Mann committed 2026-11-19 01:40:38 +01:00
commit d808ad0805
1 file changed
+2 -2
+2 -2
View File
@@ -98,7 +98,7 @@ fn standalone_exception(from: &str, to: &str) -> bool {
/// External crates that constitute a UI toolkit / windowing dependency.
/// Entries ending in `*` are prefixes.
pub const UI_CRATES: &[&str] = &["egui", "eframe", "winit", "egui_kittest", "craft-ui", "rfd", "bevy*"];
pub const UI_CRATES: &[&str] = &["egui", "eframe", "winit", "egui_kittest", "craft-ui", "craft", "rfd", "bevy*"];
/// First layer allowed to use UI crates.
pub const UI_MIN_LAYER: u8 = 6;
@@ -340,7 +340,7 @@ mod tests {
#[test]
fn ui_crates_below_l6_flagged() {
for dep in ["egui", "eframe", "winit", "egui_kittest", "craft-ui", "rfd", "bevy_ecs", "bevy"] {
for dep in ["egui", "eframe", "winit", "egui_kittest", "craft-ui", "craft", "rfd", "bevy_ecs", "bevy"] {
let v = check(&[c("photocraft-engine", &[(dep, Normal, false)])]);
assert!(matches!(v[..], [Violation::UiBelowL6 { layer: 5, .. }]), "{dep}");
}