From 41830ae33479c7a5ca6a898c37703fbb42b429d1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 15:45:07 -0400 Subject: [PATCH] [deps] Platform: Update zbus to v5 (major) (#12312) * [deps] Platform: Update zbus to v5 * adjust for api changes --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: addisonbeck --- apps/desktop/desktop_native/Cargo.toml | 4 ++-- apps/desktop/desktop_native/core/src/powermonitor/linux.rs | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/desktop/desktop_native/Cargo.toml b/apps/desktop/desktop_native/Cargo.toml index fa1b0544641..451704f91fe 100644 --- a/apps/desktop/desktop_native/Cargo.toml +++ b/apps/desktop/desktop_native/Cargo.toml @@ -62,6 +62,6 @@ windows = "=0.61.1" windows-core = "=0.61.0" windows-future = "=0.2.0" windows-registry = "=0.5.1" -zbus = "=4.4.0" -zbus_polkit = "=4.0.0" +zbus = "=5.5.0" +zbus_polkit = "=5.0.0" zeroizing-alloc = "=0.1.0" diff --git a/apps/desktop/desktop_native/core/src/powermonitor/linux.rs b/apps/desktop/desktop_native/core/src/powermonitor/linux.rs index 7d0fde15ed4..aa93037e95f 100644 --- a/apps/desktop/desktop_native/core/src/powermonitor/linux.rs +++ b/apps/desktop/desktop_native/core/src/powermonitor/linux.rs @@ -1,6 +1,8 @@ use std::borrow::Cow; -use zbus::{export::futures_util::TryStreamExt, Connection, MatchRule}; +use futures::TryStreamExt; +use zbus::{Connection, MatchRule}; + struct ScreenLock { interface: Cow<'static, str>, path: Cow<'static, str>, @@ -23,7 +25,7 @@ pub async fn on_lock(tx: tokio::sync::mpsc::Sender<()>) -> Result<(), Box