From 393233d0199b89a68036c1a43af3f8fd1dbdb466 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 30 Sep 2022 12:32:17 -0600 Subject: [PATCH] Allow apps to set iced debug feature --- Cargo.toml | 4 ++++ examples/cosmic/Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c4c5cf55..01097e08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,10 @@ edition = "2021" [lib] name = "cosmic" +[features] +default = [] +debug = ["iced/debug"] + [dependencies] freedesktop-icons = "0.2.1" diff --git a/examples/cosmic/Cargo.toml b/examples/cosmic/Cargo.toml index 38e2cff2..076e627b 100644 --- a/examples/cosmic/Cargo.toml +++ b/examples/cosmic/Cargo.toml @@ -6,4 +6,4 @@ edition = "2021" publish = false [dependencies] -libcosmic = { path = "../.." } +libcosmic = { path = "../..", features = ["debug"] }