From 05f2f022e07ff162db36b1f29c7a35ebe53c7ddb Mon Sep 17 00:00:00 2001 From: Ashley Ruglys Date: Fri, 10 Apr 2026 12:03:37 +0200 Subject: [PATCH 1/4] Make muda/gtk and libappindicator optional --- Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9e6047f2..06497008 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,9 +15,10 @@ default = ["libxdo"] libxdo = ["muda/libxdo"] serde = ["muda/serde", "dep:serde"] common-controls-v6 = ["muda/common-controls-v6"] +gtk = ["muda/gtk", "dep:libappindicator"] [dependencies] -muda = { version = "0.17", default-features = false, features = ["gtk"] } +muda = { version = "0.17", default-features = false } crossbeam-channel = "0.5" once_cell = "1" thiserror = "2" @@ -34,7 +35,7 @@ features = [ ] [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"netbsd\", target_os = \"openbsd\"))".dependencies] -libappindicator = "0.9" +libappindicator = { version = "0.9", optional = true } dirs = "6" [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"netbsd\", target_os = \"openbsd\"))".dev-dependencies] From e5718e4e048056b75cbd768ae844a4a7c8a3f1d8 Mon Sep 17 00:00:00 2001 From: Ashley Ruglys Date: Mon, 20 Apr 2026 11:55:54 +0200 Subject: [PATCH 2/4] Make gtk feature default --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 06497008..8cd6d7e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ rust-version = "1.73" include = ["README.md", "src/**/*.rs", "Cargo.toml", "LICENSE-APACHE", "LICENSE-MIT", "LICENSE.spdx"] [features] -default = ["libxdo"] +default = ["libxdo", "gtk"] libxdo = ["muda/libxdo"] serde = ["muda/serde", "dep:serde"] common-controls-v6 = ["muda/common-controls-v6"] From cac80cc004a443265f8388ab6343f502fdf4ad38 Mon Sep 17 00:00:00 2001 From: Ashley Ruglys Date: Mon, 20 Apr 2026 15:32:59 +0200 Subject: [PATCH 3/4] Add .changes/gtk-feature.md --- .changes/gtk-feature.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changes/gtk-feature.md diff --git a/.changes/gtk-feature.md b/.changes/gtk-feature.md new file mode 100644 index 00000000..6807df3c --- /dev/null +++ b/.changes/gtk-feature.md @@ -0,0 +1,5 @@ +--- +"tray_icon": minor +--- + +Make gtk an optional feature (enabled by default) From 223835e3306226cbf33c3065a3da22690877317a Mon Sep 17 00:00:00 2001 From: Ashley Ruglys Date: Tue, 21 Apr 2026 14:34:35 +0200 Subject: [PATCH 4/4] tray_icon -> tray-icon --- .changes/gtk-feature.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changes/gtk-feature.md b/.changes/gtk-feature.md index 6807df3c..8805b7ce 100644 --- a/.changes/gtk-feature.md +++ b/.changes/gtk-feature.md @@ -1,5 +1,5 @@ --- -"tray_icon": minor +"tray-icon": minor --- Make gtk an optional feature (enabled by default)