From ca8c674014f99f8732cd0d79c13344d22e27c0b3 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Fri, 15 Mar 2024 15:07:48 +0100 Subject: [PATCH] chore(cargo): remove unused dependencies --- Cargo.lock | 166 +++---------------------- cosmic-app-list/Cargo.toml | 5 - cosmic-applet-audio/Cargo.toml | 2 - cosmic-applet-bluetooth/Cargo.toml | 3 - cosmic-applet-minimize/Cargo.toml | 3 - cosmic-applet-network/Cargo.toml | 2 - cosmic-applet-notifications/Cargo.toml | 4 - cosmic-applet-power/Cargo.toml | 4 - cosmic-applet-workspaces/Cargo.toml | 1 - 9 files changed, 17 insertions(+), 173 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ac4dbceb..dac09b12 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -371,8 +371,8 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "251e0b7d90e33e0ba930891a505a9a35ece37b2dd37a14f3ffc306c13b980009" dependencies = [ - "glib-sys 0.18.1", - "gobject-sys 0.18.0", + "glib-sys", + "gobject-sys", "libc", "system-deps", ] @@ -873,20 +873,16 @@ dependencies = [ name = "cosmic-app-list" version = "0.1.0" dependencies = [ - "anyhow", "cosmic-client-toolkit", "cosmic-protocols", "futures", - "futures-util", "i18n-embed", "i18n-embed-fl", "itertools", "libcosmic", "once_cell", "rand", - "ron", "rust-embed", - "rust-embed-utils", "serde", "switcheroo-control", "tokio", @@ -894,7 +890,6 @@ dependencies = [ "tracing-log", "tracing-subscriber", "url", - "xdg", "zbus", ] @@ -907,10 +902,8 @@ dependencies = [ "i18n-embed-fl", "libcosmic", "libpulse-binding", - "libpulse-glib-binding", "mpris2-zbus", "rust-embed", - "rust-embed-utils", "serde", "tokio", "tracing", @@ -949,15 +942,12 @@ dependencies = [ "bluer", "cosmic-time", "futures", - "futures-util", "i18n-embed", "i18n-embed-fl", - "itertools", "libcosmic", "once_cell", "rand", "rust-embed", - "slotmap", "tokio", "tracing", "tracing-log", @@ -975,11 +965,8 @@ dependencies = [ "libcosmic", "memmap2 0.9.4", "once_cell", - "png", "rust-embed", - "rust-embed-utils", "rustix 0.38.31", - "tempfile", "tokio", "tracing", "tracing-log", @@ -1000,8 +987,6 @@ dependencies = [ "itertools", "libcosmic", "rust-embed", - "rust-embed-utils", - "slotmap", "tokio", "tracing", "tracing-log", @@ -1014,17 +999,13 @@ name = "cosmic-applet-notifications" version = "0.1.0" dependencies = [ "anyhow", - "bytemuck", "cosmic-notifications-config", "cosmic-notifications-util", "cosmic-time", "i18n-embed", "i18n-embed-fl", "libcosmic", - "ron", "rust-embed", - "rust-embed-utils", - "sendfd", "tokio", "tracing", "tracing-log", @@ -1040,14 +1021,10 @@ dependencies = [ "i18n-embed", "i18n-embed-fl", "libcosmic", - "libpulse-binding", - "libpulse-glib-binding", "logind-zbus", "once_cell", "rust-embed", - "rust-embed-utils", "rustix 0.38.31", - "tokio", "tracing", "tracing-log", "tracing-subscriber", @@ -1121,7 +1098,6 @@ dependencies = [ "tracing", "tracing-log", "tracing-subscriber", - "xdg", ] [[package]] @@ -2304,8 +2280,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7" dependencies = [ "gio-sys", - "glib-sys 0.18.1", - "gobject-sys 0.18.0", + "glib-sys", + "gobject-sys", "libc", "system-deps", ] @@ -2319,8 +2295,8 @@ dependencies = [ "cairo-sys-rs", "gdk-pixbuf-sys", "gio-sys", - "glib-sys 0.18.1", - "gobject-sys 0.18.0", + "glib-sys", + "gobject-sys", "libc", "pango-sys", "pkg-config", @@ -2410,8 +2386,8 @@ version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2" dependencies = [ - "glib-sys 0.18.1", - "gobject-sys 0.18.0", + "glib-sys", + "gobject-sys", "libc", "system-deps", "winapi", @@ -2434,40 +2410,6 @@ version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5418c17512bdf42730f9032c74e1ae39afc408745ebb2acf72fbc4691c17945" -[[package]] -name = "glib" -version = "0.19.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab9e86540b5d8402e905ad4ce7d6aa544092131ab564f3102175af176b90a053" -dependencies = [ - "bitflags 2.4.2", - "futures-channel", - "futures-core", - "futures-executor", - "futures-task", - "futures-util", - "glib-macros", - "glib-sys 0.19.0", - "gobject-sys 0.19.0", - "libc", - "memchr", - "smallvec", - "thiserror", -] - -[[package]] -name = "glib-macros" -version = "0.19.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f5897ca27a83e4cdc7b4666850bade0a2e73e17689aabafcc9acddad9d823b8" -dependencies = [ - "heck", - "proc-macro-crate 3.1.0", - "proc-macro2", - "quote", - "syn 2.0.52", -] - [[package]] name = "glib-sys" version = "0.18.1" @@ -2478,16 +2420,6 @@ dependencies = [ "system-deps", ] -[[package]] -name = "glib-sys" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "630f097773d7c7a0bb3258df4e8157b47dc98bbfa0e60ad9ab56174813feced4" -dependencies = [ - "libc", - "system-deps", -] - [[package]] name = "glow" version = "0.13.1" @@ -2526,18 +2458,7 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44" dependencies = [ - "glib-sys 0.18.1", - "libc", - "system-deps", -] - -[[package]] -name = "gobject-sys" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c85e2b1080b9418dd0c58b498da3a5c826030343e0ef07bde6a955d28de54979" -dependencies = [ - "glib-sys 0.19.0", + "glib-sys", "libc", "system-deps", ] @@ -2611,8 +2532,8 @@ dependencies = [ "gdk-pixbuf-sys", "gdk-sys", "gio-sys", - "glib-sys 0.18.1", - "gobject-sys 0.18.0", + "glib-sys", + "gobject-sys", "libc", "pango-sys", "system-deps", @@ -3316,29 +3237,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "libpulse-glib-binding" -version = "2.28.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72bb604d4f32d4c60e02581a67f9d9fd7500cb963ad984cee032013edeaf6bee" -dependencies = [ - "glib", - "glib-sys 0.19.0", - "libpulse-binding", - "libpulse-mainloop-glib-sys", -] - -[[package]] -name = "libpulse-mainloop-glib-sys" -version = "1.21.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00f9e6fbee0a60ac3f5751e3cc68eeaf9bff9d2687502df17b5c726220217531" -dependencies = [ - "glib-sys 0.19.0", - "libpulse-sys", - "pkg-config", -] - [[package]] name = "libpulse-sys" version = "1.21.0" @@ -3952,8 +3850,8 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5" dependencies = [ - "glib-sys 0.18.1", - "gobject-sys 0.18.0", + "glib-sys", + "gobject-sys", "libc", "system-deps", ] @@ -4192,15 +4090,6 @@ dependencies = [ "toml_edit 0.19.15", ] -[[package]] -name = "proc-macro-crate" -version = "3.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" -dependencies = [ - "toml_edit 0.21.1", -] - [[package]] name = "proc-macro-error" version = "1.0.4" @@ -4484,8 +4373,8 @@ dependencies = [ "ashpd 0.6.8", "block", "dispatch", - "glib-sys 0.18.1", - "gobject-sys 0.18.0", + "glib-sys", + "gobject-sys", "gtk-sys", "js-sys", "log", @@ -4674,16 +4563,6 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "58bf37232d3bb9a2c4e641ca2a11d83b5062066f88df7fed36c28772046d65ba" -[[package]] -name = "sendfd" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "604b71b8fc267e13bb3023a2c901126c8f349393666a6d98ac1ae5729b701798" -dependencies = [ - "libc", - "tokio", -] - [[package]] name = "serde" version = "1.0.197" @@ -5367,17 +5246,6 @@ dependencies = [ "winnow 0.5.40", ] -[[package]] -name = "toml_edit" -version = "0.21.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" -dependencies = [ - "indexmap", - "toml_datetime", - "winnow 0.5.40", -] - [[package]] name = "toml_edit" version = "0.22.7" @@ -6416,7 +6284,7 @@ version = "3.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7131497b0f887e8061b430c530240063d33bf9455fa34438f388a245da69e0a5" dependencies = [ - "proc-macro-crate 1.3.1", + "proc-macro-crate", "proc-macro2", "quote", "regex", @@ -6491,7 +6359,7 @@ version = "3.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37c24dc0bed72f5f90d1f8bb5b07228cbf63b3c6e9f82d82559d4bae666e7ed9" dependencies = [ - "proc-macro-crate 1.3.1", + "proc-macro-crate", "proc-macro2", "quote", "syn 1.0.109", diff --git a/cosmic-app-list/Cargo.toml b/cosmic-app-list/Cargo.toml index 03035faa..6e381d94 100644 --- a/cosmic-app-list/Cargo.toml +++ b/cosmic-app-list/Cargo.toml @@ -5,10 +5,8 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anyhow.workspace = true cctk.workspace = true cosmic-protocols.workspace = true -futures-util.workspace = true futures.workspace = true i18n-embed.workspace = true i18n-embed-fl.workspace = true @@ -16,9 +14,7 @@ itertools = "0.12.1" libcosmic.workspace = true once_cell = "1.19" rand = "0.8.5" -ron = "0.8" rust-embed.workspace = true -rust-embed-utils.workspace = true serde = { version = "1.0", features = ["derive"] } switcheroo-control = { git = "https://github.com/pop-os/dbus-settings-bindings" } tokio = { version = "1.36.0", features = ["sync", "rt", "rt-multi-thread", "macros", "process"] } @@ -26,5 +22,4 @@ tracing-log.workspace = true tracing-subscriber.workspace = true tracing.workspace = true url = "2.5.0" -xdg = "2.5" zbus.workspace = true diff --git a/cosmic-applet-audio/Cargo.toml b/cosmic-applet-audio/Cargo.toml index 14aa9eb0..dc190234 100644 --- a/cosmic-applet-audio/Cargo.toml +++ b/cosmic-applet-audio/Cargo.toml @@ -11,9 +11,7 @@ i18n-embed-fl.workspace = true i18n-embed.workspace = true libcosmic.workspace = true libpulse-binding = "2.28.1" -libpulse-glib-binding = "2.28.1" mpris2-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings" } -rust-embed-utils.workspace = true rust-embed.workspace = true serde = "1.0.197" tokio = { version = "1.36.0", features=["full"] } diff --git a/cosmic-applet-bluetooth/Cargo.toml b/cosmic-applet-bluetooth/Cargo.toml index 381ba8aa..dbf95a79 100644 --- a/cosmic-applet-bluetooth/Cargo.toml +++ b/cosmic-applet-bluetooth/Cargo.toml @@ -9,15 +9,12 @@ anyhow.workspace = true bluer = { version = "0.17", features = ["bluetoothd", "id"] } cosmic-time.workspace = true futures.workspace = true -futures-util.workspace = true i18n-embed-fl.workspace = true i18n-embed.workspace = true -itertools = "0.12.1" libcosmic.workspace = true once_cell = "1.19.0" rand = "0.8" rust-embed.workspace = true -slotmap = "1.0.7" tokio = { version = "1.36.0", features = ["full"] } tracing-log.workspace = true tracing-subscriber.workspace = true diff --git a/cosmic-applet-minimize/Cargo.toml b/cosmic-applet-minimize/Cargo.toml index 38d76366..c38dd8c9 100644 --- a/cosmic-applet-minimize/Cargo.toml +++ b/cosmic-applet-minimize/Cargo.toml @@ -13,11 +13,8 @@ image = "0.24" libcosmic.workspace = true memmap2 = "0.9.4" once_cell = "1" -png = "0.17.13" -rust-embed-utils.workspace = true rust-embed.workspace = true rustix.workspace = true -tempfile = "3.10.1" tokio = { version = "1.36.0", features = ["sync", "macros"] } tracing-log.workspace = true tracing-subscriber.workspace = true diff --git a/cosmic-applet-network/Cargo.toml b/cosmic-applet-network/Cargo.toml index 24b19c22..1b51bccc 100644 --- a/cosmic-applet-network/Cargo.toml +++ b/cosmic-applet-network/Cargo.toml @@ -15,9 +15,7 @@ i18n-embed-fl.workspace = true i18n-embed.workspace = true itertools = "0.12.1" libcosmic.workspace = true -rust-embed-utils.workspace = true rust-embed.workspace = true -slotmap = "1.0.7" tokio = { version = "1.36.0", features = ["full"] } tracing-log.workspace = true tracing-subscriber.workspace = true diff --git a/cosmic-applet-notifications/Cargo.toml b/cosmic-applet-notifications/Cargo.toml index 022e0e4a..27dc9804 100644 --- a/cosmic-applet-notifications/Cargo.toml +++ b/cosmic-applet-notifications/Cargo.toml @@ -17,15 +17,11 @@ tokio = { version = "1.36.0", features = [ "io-util", "io-std", ] } -bytemuck = "1" cosmic-notifications-config = { git = "https://github.com/pop-os/cosmic-notifications" } cosmic-notifications-util = { git = "https://github.com/pop-os/cosmic-notifications" } i18n-embed-fl.workspace = true i18n-embed.workspace = true -ron = "0.8" -rust-embed-utils.workspace = true rust-embed.workspace = true -sendfd = { version = "0.4", features = ["tokio"] } tracing-log.workspace = true tracing-subscriber.workspace = true tracing.workspace = true diff --git a/cosmic-applet-power/Cargo.toml b/cosmic-applet-power/Cargo.toml index 355504ee..08399fd3 100644 --- a/cosmic-applet-power/Cargo.toml +++ b/cosmic-applet-power/Cargo.toml @@ -8,14 +8,10 @@ license = "GPL-3.0-or-later" i18n-embed-fl.workspace = true i18n-embed.workspace = true libcosmic.workspace = true -libpulse-binding = "2.28.1" -libpulse-glib-binding = "2.28.1" logind-zbus = "3.1" once_cell = "1.19.0" -rust-embed-utils.workspace = true rust-embed.workspace = true rustix.workspace = true -tokio = { version = "1.36.0", features=["full"] } tracing-log.workspace = true tracing-subscriber.workspace = true tracing.workspace = true diff --git a/cosmic-applet-workspaces/Cargo.toml b/cosmic-applet-workspaces/Cargo.toml index b8598079..78619182 100644 --- a/cosmic-applet-workspaces/Cargo.toml +++ b/cosmic-applet-workspaces/Cargo.toml @@ -13,7 +13,6 @@ tracing-subscriber.workspace = true tracing-log.workspace = true once_cell = "1.19" futures.workspace = true -xdg = "2.5.2" anyhow.workspace = true tokio = "1.36" i18n-embed.workspace = true