From 65a6f04ded09de4579e47e27f9c69d92bb193686 Mon Sep 17 00:00:00 2001 From: Humza Khan Date: Tue, 22 Sep 2026 21:04:23 +0100 Subject: [PATCH 1/3] removed unused dependency and bumped global-hotkey and tray-icon versions --- Cargo.lock | 113 ++++++++++++----------------------------------------- Cargo.toml | 8 ++-- 2 files changed, 29 insertions(+), 92 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9bd91ca..8c1dc67 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -709,12 +709,6 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "byteorder" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" - [[package]] name = "byteorder-lite" version = "0.1.0" @@ -1011,7 +1005,7 @@ dependencies = [ "atomicwrites", "cosmic-config-derive", "cosmic-settings-daemon", - "dirs", + "dirs 6.0.0", "futures-util", "iced_futures", "known-folders", @@ -1088,7 +1082,7 @@ dependencies = [ "configparser", "cosmic-config", "csscolorparser", - "dirs", + "dirs 6.0.0", "hex_color", "palette", "ron", @@ -1325,6 +1319,15 @@ dependencies = [ "dirs-sys", ] +[[package]] +name = "dirs" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f" +dependencies = [ + "dirs-sys", +] + [[package]] name = "dirs-sys" version = "0.5.0" @@ -1349,20 +1352,6 @@ dependencies = [ "objc2 0.6.4", ] -[[package]] -name = "display-info" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ba4b5ddb26d674c9cd40b7a747e42658ffe1289843615b838532f660e0e3dd0" -dependencies = [ - "anyhow", - "core-graphics", - "fxhash", - "widestring", - "windows 0.52.0", - "xcb", -] - [[package]] name = "displaydoc" version = "0.2.6" @@ -1905,15 +1894,6 @@ dependencies = [ "slab", ] -[[package]] -name = "fxhash" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" -dependencies = [ - "byteorder", -] - [[package]] name = "gdk" version = "0.18.2" @@ -2124,9 +2104,9 @@ dependencies = [ [[package]] name = "global-hotkey" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9247516746aa8e53411a0db9b62b0e24efbcf6a76e0ba73e5a91b512ddabed7" +checksum = "8c386b0a4a70cb2d39fffd74480f985b6f0bfbcb934b6a6b6b7e630e448f242e" dependencies = [ "crossbeam-channel", "keyboard-types 0.7.0", @@ -3467,23 +3447,23 @@ dependencies = [ [[package]] name = "muda" -version = "0.17.2" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c9fec5a4e89860383d778d10563a605838f8f0b2f9303868937e5ff32e86177" +checksum = "cca139e57da4383727f189e43e66e84fa372347027fc996f9f1a007ec0a37996" dependencies = [ "crossbeam-channel", "dpi 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "gtk", - "keyboard-types 0.7.0", + "keyboard-types 0.8.3", "libxdo", "objc2 0.6.4", "objc2-app-kit 0.3.2", "objc2-core-foundation", "objc2-foundation 0.3.2", "once_cell", - "png 0.17.16", + "png 0.18.1", "thiserror 2.0.19", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -4334,15 +4314,6 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" -[[package]] -name = "quick-xml" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eff6510e86862b57b210fd8cbe8ed3f0d7d600b9c2863cd4549a2e033c66e956" -dependencies = [ - "memchr", -] - [[package]] name = "quick-xml" version = "0.39.4" @@ -5456,12 +5427,12 @@ dependencies = [ [[package]] name = "tray-icon" -version = "0.21.3" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5e85aa143ceb072062fc4d6356c1b520a51d636e7bc8e77ec94be3608e5e80c" +checksum = "b2b9c52859a94554803ccd4a24b98f74148ebc73b90676d783f3490b1bff9d72" dependencies = [ "crossbeam-channel", - "dirs", + "dirs 7.0.0", "libappindicator", "muda", "objc2 0.6.4", @@ -5470,9 +5441,9 @@ dependencies = [ "objc2-core-graphics", "objc2-foundation 0.3.2", "once_cell", - "png 0.17.16", + "png 0.18.1", "thiserror 2.0.19", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -5910,7 +5881,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c324a910fd86ebdc364a3e61ec1f11737d3b1d6c273c0239ee8ff4bc0d24b4a" dependencies = [ "proc-macro2", - "quick-xml 0.39.4", + "quick-xml", "quote", ] @@ -6141,15 +6112,13 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windisplaymanager_rs" -version = "0.1.5" +version = "0.1.6" dependencies = [ "anyhow", "ddc", "ddc-winapi", - "dirs", - "display-info", + "dirs 6.0.0", "env_logger", - "futures-util", "global-hotkey", "libcosmic", "log", @@ -6178,16 +6147,6 @@ dependencies = [ "thiserror 1.0.69", ] -[[package]] -name = "windows" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be" -dependencies = [ - "windows-core 0.52.0", - "windows-targets 0.52.6", -] - [[package]] name = "windows" version = "0.61.3" @@ -6231,15 +6190,6 @@ dependencies = [ "windows-core 0.62.2", ] -[[package]] -name = "windows-core" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" -dependencies = [ - "windows-targets 0.52.6", -] - [[package]] name = "windows-core" version = "0.61.2" @@ -6934,17 +6884,6 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" -[[package]] -name = "xcb" -version = "1.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee4c580d8205abb0a5cf4eb7e927bd664e425b6c3263f9c5310583da96970cf6" -dependencies = [ - "bitflags 1.3.2", - "libc", - "quick-xml 0.30.0", -] - [[package]] name = "xcursor" version = "0.3.10" diff --git a/Cargo.toml b/Cargo.toml index f0ff524..3006c4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windisplaymanager_rs" -version = "0.1.5" +version = "0.1.6" edition = "2024" description = "Windows Display Manager - DDC/CI monitor control with GUI" license = "MIT" @@ -19,17 +19,15 @@ winres = "0.1" [dependencies] ddc = "0.2" ddc-winapi = "0.2" -display-info = "0.4" -global-hotkey = "0.7" +global-hotkey = "0.8" thiserror = "2.0" tokio = { version = "1", features = ["full"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" dirs = "6.0" -futures-util = "0.3" log = "0.4" env_logger = "0.11" -tray-icon = "0.21" +tray-icon = "0.25" winreg = "0.55" anyhow = "1" windows-sys = { version = "0.61", features = [ From 2c219dd630d8ff2ba1253bfafa7bd8c729706ecf Mon Sep 17 00:00:00 2001 From: Humza Khan Date: Tue, 22 Sep 2026 21:04:55 +0100 Subject: [PATCH 2/3] Revert "removed unused dependency and bumped global-hotkey and tray-icon versions" This reverts commit 65a6f04ded09de4579e47e27f9c69d92bb193686. --- Cargo.lock | 113 +++++++++++++++++++++++++++++++++++++++++------------ Cargo.toml | 8 ++-- 2 files changed, 92 insertions(+), 29 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8c1dc67..9bd91ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -709,6 +709,12 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + [[package]] name = "byteorder-lite" version = "0.1.0" @@ -1005,7 +1011,7 @@ dependencies = [ "atomicwrites", "cosmic-config-derive", "cosmic-settings-daemon", - "dirs 6.0.0", + "dirs", "futures-util", "iced_futures", "known-folders", @@ -1082,7 +1088,7 @@ dependencies = [ "configparser", "cosmic-config", "csscolorparser", - "dirs 6.0.0", + "dirs", "hex_color", "palette", "ron", @@ -1319,15 +1325,6 @@ dependencies = [ "dirs-sys", ] -[[package]] -name = "dirs" -version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f" -dependencies = [ - "dirs-sys", -] - [[package]] name = "dirs-sys" version = "0.5.0" @@ -1352,6 +1349,20 @@ dependencies = [ "objc2 0.6.4", ] +[[package]] +name = "display-info" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ba4b5ddb26d674c9cd40b7a747e42658ffe1289843615b838532f660e0e3dd0" +dependencies = [ + "anyhow", + "core-graphics", + "fxhash", + "widestring", + "windows 0.52.0", + "xcb", +] + [[package]] name = "displaydoc" version = "0.2.6" @@ -1894,6 +1905,15 @@ dependencies = [ "slab", ] +[[package]] +name = "fxhash" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +dependencies = [ + "byteorder", +] + [[package]] name = "gdk" version = "0.18.2" @@ -2104,9 +2124,9 @@ dependencies = [ [[package]] name = "global-hotkey" -version = "0.8.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c386b0a4a70cb2d39fffd74480f985b6f0bfbcb934b6a6b6b7e630e448f242e" +checksum = "b9247516746aa8e53411a0db9b62b0e24efbcf6a76e0ba73e5a91b512ddabed7" dependencies = [ "crossbeam-channel", "keyboard-types 0.7.0", @@ -3447,23 +3467,23 @@ dependencies = [ [[package]] name = "muda" -version = "0.20.0" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cca139e57da4383727f189e43e66e84fa372347027fc996f9f1a007ec0a37996" +checksum = "7c9fec5a4e89860383d778d10563a605838f8f0b2f9303868937e5ff32e86177" dependencies = [ "crossbeam-channel", "dpi 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "gtk", - "keyboard-types 0.8.3", + "keyboard-types 0.7.0", "libxdo", "objc2 0.6.4", "objc2-app-kit 0.3.2", "objc2-core-foundation", "objc2-foundation 0.3.2", "once_cell", - "png 0.18.1", + "png 0.17.16", "thiserror 2.0.19", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -4314,6 +4334,15 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" +[[package]] +name = "quick-xml" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eff6510e86862b57b210fd8cbe8ed3f0d7d600b9c2863cd4549a2e033c66e956" +dependencies = [ + "memchr", +] + [[package]] name = "quick-xml" version = "0.39.4" @@ -5427,12 +5456,12 @@ dependencies = [ [[package]] name = "tray-icon" -version = "0.25.1" +version = "0.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2b9c52859a94554803ccd4a24b98f74148ebc73b90676d783f3490b1bff9d72" +checksum = "a5e85aa143ceb072062fc4d6356c1b520a51d636e7bc8e77ec94be3608e5e80c" dependencies = [ "crossbeam-channel", - "dirs 7.0.0", + "dirs", "libappindicator", "muda", "objc2 0.6.4", @@ -5441,9 +5470,9 @@ dependencies = [ "objc2-core-graphics", "objc2-foundation 0.3.2", "once_cell", - "png 0.18.1", + "png 0.17.16", "thiserror 2.0.19", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -5881,7 +5910,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c324a910fd86ebdc364a3e61ec1f11737d3b1d6c273c0239ee8ff4bc0d24b4a" dependencies = [ "proc-macro2", - "quick-xml", + "quick-xml 0.39.4", "quote", ] @@ -6112,13 +6141,15 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windisplaymanager_rs" -version = "0.1.6" +version = "0.1.5" dependencies = [ "anyhow", "ddc", "ddc-winapi", - "dirs 6.0.0", + "dirs", + "display-info", "env_logger", + "futures-util", "global-hotkey", "libcosmic", "log", @@ -6147,6 +6178,16 @@ dependencies = [ "thiserror 1.0.69", ] +[[package]] +name = "windows" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be" +dependencies = [ + "windows-core 0.52.0", + "windows-targets 0.52.6", +] + [[package]] name = "windows" version = "0.61.3" @@ -6190,6 +6231,15 @@ dependencies = [ "windows-core 0.62.2", ] +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets 0.52.6", +] + [[package]] name = "windows-core" version = "0.61.2" @@ -6884,6 +6934,17 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" +[[package]] +name = "xcb" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee4c580d8205abb0a5cf4eb7e927bd664e425b6c3263f9c5310583da96970cf6" +dependencies = [ + "bitflags 1.3.2", + "libc", + "quick-xml 0.30.0", +] + [[package]] name = "xcursor" version = "0.3.10" diff --git a/Cargo.toml b/Cargo.toml index 3006c4e..f0ff524 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windisplaymanager_rs" -version = "0.1.6" +version = "0.1.5" edition = "2024" description = "Windows Display Manager - DDC/CI monitor control with GUI" license = "MIT" @@ -19,15 +19,17 @@ winres = "0.1" [dependencies] ddc = "0.2" ddc-winapi = "0.2" -global-hotkey = "0.8" +display-info = "0.4" +global-hotkey = "0.7" thiserror = "2.0" tokio = { version = "1", features = ["full"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" dirs = "6.0" +futures-util = "0.3" log = "0.4" env_logger = "0.11" -tray-icon = "0.25" +tray-icon = "0.21" winreg = "0.55" anyhow = "1" windows-sys = { version = "0.61", features = [ From af2d49c028942692e27c74290f7972233d73b2dd Mon Sep 17 00:00:00 2001 From: Humza Khan Date: Tue, 22 Sep 2026 21:07:39 +0100 Subject: [PATCH 3/3] removed unused dependency and bumped global-hotkey and tray-icon versions --- Cargo.lock | 39 ++++++++++++++++++++++++--------------- Cargo.toml | 4 ++-- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9bd91ca..5370407 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1011,7 +1011,7 @@ dependencies = [ "atomicwrites", "cosmic-config-derive", "cosmic-settings-daemon", - "dirs", + "dirs 6.0.0", "futures-util", "iced_futures", "known-folders", @@ -1088,7 +1088,7 @@ dependencies = [ "configparser", "cosmic-config", "csscolorparser", - "dirs", + "dirs 6.0.0", "hex_color", "palette", "ron", @@ -1325,6 +1325,15 @@ dependencies = [ "dirs-sys", ] +[[package]] +name = "dirs" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f" +dependencies = [ + "dirs-sys", +] + [[package]] name = "dirs-sys" version = "0.5.0" @@ -2124,9 +2133,9 @@ dependencies = [ [[package]] name = "global-hotkey" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9247516746aa8e53411a0db9b62b0e24efbcf6a76e0ba73e5a91b512ddabed7" +checksum = "8c386b0a4a70cb2d39fffd74480f985b6f0bfbcb934b6a6b6b7e630e448f242e" dependencies = [ "crossbeam-channel", "keyboard-types 0.7.0", @@ -3467,23 +3476,23 @@ dependencies = [ [[package]] name = "muda" -version = "0.17.2" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c9fec5a4e89860383d778d10563a605838f8f0b2f9303868937e5ff32e86177" +checksum = "cca139e57da4383727f189e43e66e84fa372347027fc996f9f1a007ec0a37996" dependencies = [ "crossbeam-channel", "dpi 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "gtk", - "keyboard-types 0.7.0", + "keyboard-types 0.8.3", "libxdo", "objc2 0.6.4", "objc2-app-kit 0.3.2", "objc2-core-foundation", "objc2-foundation 0.3.2", "once_cell", - "png 0.17.16", + "png 0.18.1", "thiserror 2.0.19", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -5456,12 +5465,12 @@ dependencies = [ [[package]] name = "tray-icon" -version = "0.21.3" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5e85aa143ceb072062fc4d6356c1b520a51d636e7bc8e77ec94be3608e5e80c" +checksum = "b2b9c52859a94554803ccd4a24b98f74148ebc73b90676d783f3490b1bff9d72" dependencies = [ "crossbeam-channel", - "dirs", + "dirs 7.0.0", "libappindicator", "muda", "objc2 0.6.4", @@ -5470,9 +5479,9 @@ dependencies = [ "objc2-core-graphics", "objc2-foundation 0.3.2", "once_cell", - "png 0.17.16", + "png 0.18.1", "thiserror 2.0.19", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -6146,7 +6155,7 @@ dependencies = [ "anyhow", "ddc", "ddc-winapi", - "dirs", + "dirs 6.0.0", "display-info", "env_logger", "futures-util", diff --git a/Cargo.toml b/Cargo.toml index f0ff524..77d43d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ winres = "0.1" ddc = "0.2" ddc-winapi = "0.2" display-info = "0.4" -global-hotkey = "0.7" +global-hotkey = "0.8" thiserror = "2.0" tokio = { version = "1", features = ["full"] } serde = { version = "1.0", features = ["derive"] } @@ -29,7 +29,7 @@ dirs = "6.0" futures-util = "0.3" log = "0.4" env_logger = "0.11" -tray-icon = "0.21" +tray-icon = "0.25" winreg = "0.55" anyhow = "1" windows-sys = { version = "0.61", features = [