From 88a22a5a7c281d66c174885aeb01476c061911d3 Mon Sep 17 00:00:00 2001 From: pml68 Date: Mon, 7 Apr 2025 02:06:41 +0200 Subject: feat(material_theme): add feature flag based iced_anim support --- material_theme/Cargo.toml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'material_theme/Cargo.toml') diff --git a/material_theme/Cargo.toml b/material_theme/Cargo.toml index 0597d78..5a48dc0 100644 --- a/material_theme/Cargo.toml +++ b/material_theme/Cargo.toml @@ -11,12 +11,21 @@ categories = ["gui"] keywords = ["gui", "ui", "graphics", "interface", "widgets"] rust-version = "1.85" +[features] +default = [] +animate = ["dep:iced_anim"] + [dependencies] iced_widget = "0.14.0-dev" serde.workspace = true toml.workspace = true dark-light = "2.0.0" +[dependencies.iced_anim] +workspace = true +features = ["derive"] +optional = true + [lints.rust] unsafe_code = "deny" unused_results = "deny" -- cgit v1.2.3