diff --git a/Cargo.lock b/Cargo.lock index 15844698..5073cd8b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1339,7 +1339,6 @@ dependencies = [ "criterion", "document-features", "egui", - "egui_demo_lib", "egui_extras", "egui_kittest", "serde", diff --git a/crates/egui_demo_lib/Cargo.toml b/crates/egui_demo_lib/Cargo.toml index f8f1f47f..b494e18a 100644 --- a/crates/egui_demo_lib/Cargo.toml +++ b/crates/egui_demo_lib/Cargo.toml @@ -55,9 +55,6 @@ serde = { workspace = true, optional = true } [dev-dependencies] -# when running tests we always want to use the `chrono` feature -egui_demo_lib = { workspace = true, features = ["chrono"] } - criterion.workspace = true egui_kittest = { workspace = true, features = ["wgpu", "snapshot"] } wgpu = { workspace = true, features = ["metal"] } diff --git a/crates/egui_demo_lib/src/demo/widget_gallery.rs b/crates/egui_demo_lib/src/demo/widget_gallery.rs index c579576b..b69d0f1c 100644 --- a/crates/egui_demo_lib/src/demo/widget_gallery.rs +++ b/crates/egui_demo_lib/src/demo/widget_gallery.rs @@ -286,6 +286,7 @@ fn doc_link_label_with_crate<'a>( } } +#[cfg(feature = "chrono")] #[cfg(test)] mod tests { use super::*;