From 03c440b97a401177ee353ec4b100e56ca80518ba Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Wed, 14 Jan 2026 18:46:53 +0100 Subject: [PATCH] chore(cargo): update all crate dependencies --- Cargo.toml | 30 +++++------ cosmic-config/Cargo.toml | 8 +-- cosmic-theme/Cargo.toml | 6 +-- examples/about/Cargo.toml | 2 +- examples/applet/Cargo.toml | 4 +- examples/application/Cargo.toml | 4 +- examples/calendar/Cargo.toml | 2 +- examples/context-menu/Cargo.toml | 4 +- examples/cosmic/Cargo.toml | 4 +- examples/image-button/Cargo.toml | 4 +- examples/menu/Cargo.toml | 4 +- examples/nav-context/Cargo.toml | 4 +- examples/open-dialog/Cargo.toml | 8 +-- examples/subscriptions/Cargo.toml | 10 ++++ examples/subscriptions/src/main.rs | 80 ++++++++++++++++++++++++++++++ examples/table-view/Cargo.toml | 4 +- examples/text-input/Cargo.toml | 4 +- 17 files changed, 136 insertions(+), 46 deletions(-) create mode 100644 examples/subscriptions/Cargo.toml create mode 100644 examples/subscriptions/src/main.rs diff --git a/Cargo.toml b/Cargo.toml index decdac93..46091bcc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -99,8 +99,8 @@ async-std = [ [dependencies] apply = "0.3.0" -ashpd = { version = "0.12.0", default-features = false, optional = true } -async-fs = { version = "2.1", optional = true } +ashpd = { version = "0.12.1", default-features = false, optional = true } +async-fs = { version = "2.2", optional = true } async-std = { version = "1.13", optional = true } auto_enums = "0.8.7" cctk = { git = "https://github.com/pop-os/cosmic-protocols", package = "cosmic-client-toolkit", rev = "d0e95be", optional = true } @@ -113,15 +113,15 @@ i18n-embed = { version = "0.16.0", features = [ "desktop-requester", ] } i18n-embed-fl = "0.10" -rust-embed = "8.7.2" +rust-embed = "8.11.0" css-color = "0.2.8" derive_setters = "0.1.8" futures = "0.3" -image = { version = "0.25.8", default-features = false, features = [ +image = { version = "0.25.9", default-features = false, features = [ "jpeg", "png", ] } -libc = { version = "0.2.175", optional = true } +libc = { version = "0.2.180", optional = true } log = "0.4" mime = { version = "0.3.17", optional = true } palette = "0.7.6" @@ -130,22 +130,22 @@ rfd = { version = "0.15.4", default-features = false, features = [ "xdg-portal", ], optional = true } rustix = { version = "1.1", features = ["pipe", "process"], optional = true } -serde = { version = "1.0.219", features = ["derive"] } -slotmap = "1.0.7" +serde = { version = "1.0.228", features = ["derive"] } +slotmap = "1.1.1" smol = { version = "2.0.2", optional = true } -thiserror = "2.0.16" -taffy = { version = "0.9.1", features = ["grid"] } -tokio = { version = "1.47.1", optional = true } -tracing = "0.1.41" +thiserror = "2.0.17" +taffy = { version = "0.9.2", features = ["grid"] } +tokio = { version = "1.49.0", optional = true } +tracing = "0.1.44" unicode-segmentation = "1.12" -url = "2.5.7" -zbus = { version = "5.11.0", default-features = false, optional = true } +url = "2.5.8" +zbus = { version = "5.13.1", default-features = false, optional = true } # Enable DBus feature on Linux targets [target.'cfg(target_os = "linux")'.dependencies] cosmic-config = { path = "cosmic-config", features = ["dbus"] } cosmic-settings-daemon = { git = "https://github.com/pop-os/dbus-settings-bindings" } -zbus = { version = "5.11.0", default-features = false } +zbus = { version = "5.13.1", default-features = false } [target.'cfg(unix)'.dependencies] freedesktop-icons = { package = "cosmic-freedesktop-icons", git = "https://github.com/pop-os/freedesktop-icons" } @@ -225,4 +225,4 @@ exclude = ["iced"] dirs = "6.0.0" [dev-dependencies] -tempfile = "3.13.0" +tempfile = "3.24.0" diff --git a/cosmic-config/Cargo.toml b/cosmic-config/Cargo.toml index 9b5aca07..78d671ca 100644 --- a/cosmic-config/Cargo.toml +++ b/cosmic-config/Cargo.toml @@ -11,18 +11,18 @@ subscription = ["iced_futures"] [dependencies] cosmic-settings-daemon = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true } -zbus = { version = "5.11.0", default-features = false, optional = true } +zbus = { version = "5.13.1", default-features = false, optional = true } atomicwrites = { git = "https://github.com/jackpot51/rust-atomicwrites" } calloop = { version = "0.14.3", optional = true } notify = "8.2.0" ron = "0.11.0" -serde = "1.0.219" +serde = "1.0.228" cosmic-config-derive = { path = "../cosmic-config-derive/", optional = true } iced = { path = "../iced/", default-features = false, optional = true } iced_futures = { path = "../iced/futures/", default-features = false, optional = true } futures-util = { version = "0.3", optional = true } dirs.workspace = true -tokio = { version = "1.47", optional = true, features = ["time"] } +tokio = { version = "1.49", optional = true, features = ["time"] } async-std = { version = "1.13", optional = true } tracing = "0.1" @@ -30,4 +30,4 @@ tracing = "0.1" xdg = "3.0" [target.'cfg(windows)'.dependencies] -known-folders = "1.3.1" +known-folders = "1.4.0" diff --git a/cosmic-theme/Cargo.toml b/cosmic-theme/Cargo.toml index 44b0df5a..10b548b4 100644 --- a/cosmic-theme/Cargo.toml +++ b/cosmic-theme/Cargo.toml @@ -17,8 +17,8 @@ no-default = [] [dependencies] palette = { version = "0.7.6", features = ["serializing"] } almost = "0.2" -serde = { version = "1.0.219", features = ["derive"] } -serde_json = { version = "1.0.143", optional = true, features = [ +serde = { version = "1.0.228", features = ["derive"] } +serde_json = { version = "1.0.149", optional = true, features = [ "preserve_order", ] } ron = "0.11.0" @@ -28,4 +28,4 @@ cosmic-config = { path = "../cosmic-config/", default-features = false, features "macro", ] } dirs.workspace = true -thiserror = "2.0.16" +thiserror = "2.0.17" diff --git a/examples/about/Cargo.toml b/examples/about/Cargo.toml index d2642cd6..f980811c 100644 --- a/examples/about/Cargo.toml +++ b/examples/about/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -open = "5.3.2" +open = "5.3.3" [dependencies.libcosmic] path = "../../" diff --git a/examples/applet/Cargo.toml b/examples/applet/Cargo.toml index c39ca288..f97bff44 100644 --- a/examples/applet/Cargo.toml +++ b/examples/applet/Cargo.toml @@ -7,10 +7,10 @@ edition = "2021" [dependencies] once_cell = "1" -rust-embed = "8.6.0" +rust-embed = "8.11.0" tracing = "0.1" env_logger = "0.10.2" -log = "0.4.26" +log = "0.4.29" [dependencies.libcosmic] git = "https://github.com/pop-os/libcosmic" diff --git a/examples/application/Cargo.toml b/examples/application/Cargo.toml index 28c13117..f05c0418 100644 --- a/examples/application/Cargo.toml +++ b/examples/application/Cargo.toml @@ -8,8 +8,8 @@ default = ["wayland"] wayland = ["libcosmic/wayland"] [dependencies] -tracing = "0.1.41" -tracing-subscriber = "0.3.19" +tracing = "0.1.44" +tracing-subscriber = "0.3.22" tracing-log = "0.2.0" [dependencies.libcosmic] diff --git a/examples/calendar/Cargo.toml b/examples/calendar/Cargo.toml index 9ffb838c..59b23c0c 100644 --- a/examples/calendar/Cargo.toml +++ b/examples/calendar/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -chrono = "0.4.40" +chrono = "0.4.42" [dependencies.libcosmic] path = "../../" diff --git a/examples/context-menu/Cargo.toml b/examples/context-menu/Cargo.toml index 45cbf78a..39c550f4 100644 --- a/examples/context-menu/Cargo.toml +++ b/examples/context-menu/Cargo.toml @@ -4,8 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -tracing = "0.1.41" -tracing-subscriber = "0.3.19" +tracing = "0.1.44" +tracing-subscriber = "0.3.22" tracing-log = "0.2.0" [dependencies.libcosmic] diff --git a/examples/cosmic/Cargo.toml b/examples/cosmic/Cargo.toml index 695f0c37..8c2a3126 100644 --- a/examples/cosmic/Cargo.toml +++ b/examples/cosmic/Cargo.toml @@ -19,9 +19,9 @@ libcosmic = { path = "../..", features = [ "xdg-portal", ] } once_cell = "1.21" -slotmap = "1.0.7" +slotmap = "1.1.1" env_logger = "0.10" -log = "0.4.26" +log = "0.4.29" [dependencies.cosmic-time] git = "https://github.com/pop-os/cosmic-time" diff --git a/examples/image-button/Cargo.toml b/examples/image-button/Cargo.toml index cf61955a..c219a53b 100644 --- a/examples/image-button/Cargo.toml +++ b/examples/image-button/Cargo.toml @@ -4,8 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -tracing = "0.1.41" -tracing-subscriber = "0.3.19" +tracing = "0.1.44" +tracing-subscriber = "0.3.22" [dependencies.libcosmic] path = "../../" diff --git a/examples/menu/Cargo.toml b/examples/menu/Cargo.toml index dcab1ef5..430b26ea 100644 --- a/examples/menu/Cargo.toml +++ b/examples/menu/Cargo.toml @@ -4,8 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -tracing = "0.1.41" -tracing-subscriber = "0.3.19" +tracing = "0.1.44" +tracing-subscriber = "0.3.22" tracing-log = "0.2.0" [dependencies.libcosmic] diff --git a/examples/nav-context/Cargo.toml b/examples/nav-context/Cargo.toml index 93dbe3e9..d829df0f 100644 --- a/examples/nav-context/Cargo.toml +++ b/examples/nav-context/Cargo.toml @@ -4,8 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -tracing = "0.1.41" -tracing-subscriber = "0.3.19" +tracing = "0.1.44" +tracing-subscriber = "0.3.22" tracing-log = "0.2.0" [dependencies.libcosmic] diff --git a/examples/open-dialog/Cargo.toml b/examples/open-dialog/Cargo.toml index 2a734da0..94049270 100644 --- a/examples/open-dialog/Cargo.toml +++ b/examples/open-dialog/Cargo.toml @@ -10,10 +10,10 @@ xdg-portal = ["libcosmic/xdg-portal"] [dependencies] apply = "0.3.0" -tokio = { version = "1.44", features = ["full"] } -tracing = "0.1.41" -tracing-subscriber = "0.3.19" -url = "2.5.4" +tokio = { version = "1.49", features = ["full"] } +tracing = "0.1.44" +tracing-subscriber = "0.3.22" +url = "2.5.8" [dependencies.libcosmic] features = ["debug", "winit", "wgpu", "wayland", "tokio"] diff --git a/examples/subscriptions/Cargo.toml b/examples/subscriptions/Cargo.toml new file mode 100644 index 00000000..8eb69ff3 --- /dev/null +++ b/examples/subscriptions/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "subscriptions" +version = "0.1.0" +edition = "2024" + +[dependencies] + +[dependencies.libcosmic] +path = "../../" +features = ["debug", "winit", "wgpu", "tokio", "xdg-portal"] diff --git a/examples/subscriptions/src/main.rs b/examples/subscriptions/src/main.rs new file mode 100644 index 00000000..47bd3772 --- /dev/null +++ b/examples/subscriptions/src/main.rs @@ -0,0 +1,80 @@ +// Copyright 2025 System76 +// SPDX-License-Identifier: MPL-2.0 + +//! Application API example + +use cosmic::app::{Core, Settings, Task}; +use cosmic::iced::Subscription; +use cosmic::{executor, prelude::*, widget}; + +/// Runs application with these settings +fn main() -> Result<(), Box> { + cosmic::app::run::(Settings::default(), ())?; + Ok(()) +} + +/// Messages that are used specifically by our [`App`]. +#[derive(Clone, Debug)] +pub enum Message {} + +/// The [`App`] stores application-specific state. +pub struct App { + core: Core, +} + +/// Implement [`cosmic::Application`] to integrate with COSMIC. +impl cosmic::Application for App { + /// Default async executor to use with the app. + type Executor = executor::Default; + + /// Argument received [`cosmic::Application::new`]. + type Flags = (); + + /// Message type specific to our [`App`]. + type Message = Message; + + /// The unique application ID to supply to the window manager. + const APP_ID: &'static str = "org.cosmic.TextInputsDemo"; + + fn core(&self) -> &Core { + &self.core + } + + fn core_mut(&mut self) -> &mut Core { + &mut self.core + } + + /// Creates the application, and optionally emits task on initialize. + fn init(core: Core, _input: Self::Flags) -> (Self, Task) { + let mut app = App { core }; + + let commands = Task::batch(vec![app.update_title()]); + + (app, commands) + } + + fn subscription(&self) -> Subscription { + Subscription::none() + } + + /// Handle application events here. + fn update(&mut self, message: Self::Message) -> Task { + Task::none() + } + + /// Creates a view after each update. + fn view(&self) -> Element<'_, Self::Message> { + widget::row().into() + } +} + +impl App +where + Self: cosmic::Application, +{ + fn update_title(&mut self) -> Task { + let window_title = format!("COSMIC Subscriptions Demo"); + self.set_header_title(window_title.clone()); + self.set_window_title(window_title, self.core.main_window_id().unwrap()) + } +} diff --git a/examples/table-view/Cargo.toml b/examples/table-view/Cargo.toml index 41669cb8..8ed45928 100644 --- a/examples/table-view/Cargo.toml +++ b/examples/table-view/Cargo.toml @@ -4,8 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -tracing = "0.1.37" -tracing-subscriber = "0.3.17" +tracing = "0.1.44" +tracing-subscriber = "0.3.22" tracing-log = "0.2.0" chrono = "*" diff --git a/examples/text-input/Cargo.toml b/examples/text-input/Cargo.toml index fb1bdf28..fe6105c2 100644 --- a/examples/text-input/Cargo.toml +++ b/examples/text-input/Cargo.toml @@ -4,8 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -tracing = "0.1.41" -tracing-subscriber = "0.3.19" +tracing = "0.1.44" +tracing-subscriber = "0.3.22" tracing-log = "0.2.0" [dependencies.libcosmic]