| 1 |
From 77690775a759140ea7b85c71c8291006b34c3c76 Mon Sep 17 00:00:00 2001 |
| 2 |
From: NoisyCoil <[email protected]> |
| 3 |
Date: Mon, 20 Jan 2025 19:43:37 +0100 |
| 4 |
Subject: [PATCH] Update zbus to v5 |
| 5 |
|
| 6 |
--- |
| 7 |
src/blocking/collection.rs | 2 +- |
| 8 |
src/blocking/item.rs | 2 +- |
| 9 |
src/collection.rs | 2 +- |
| 10 |
src/item.rs | 2 +- |
| 11 |
src/proxy/collection.rs | 2 +- |
| 12 |
src/proxy/item.rs | 2 +- |
| 13 |
src/proxy/prompt.rs | 2 +- |
| 14 |
src/proxy/service.rs | 2 +- |
| 15 |
src/util.rs | 2 +- |
| 16 |
9 files changed, 9 insertions(+), 9 deletions(-) |
| 17 |
|
| 18 |
--- a/src/blocking/collection.rs |
| 19 |
+++ b/src/blocking/collection.rs |
| 20 |
@@ -16,7 +16,7 @@ |
| 21 |
use std::collections::HashMap; |
| 22 |
use zbus::{ |
| 23 |
zvariant::{Dict, ObjectPath, OwnedObjectPath, Value}, |
| 24 |
- CacheProperties, |
| 25 |
+ proxy::CacheProperties, |
| 26 |
}; |
| 27 |
|
| 28 |
// Collection struct. |
| 29 |
--- a/src/blocking/item.rs |
| 30 |
+++ b/src/blocking/item.rs |
| 31 |
@@ -14,7 +14,7 @@ |
| 32 |
use crate::util::{exec_prompt_blocking, format_secret, lock_or_unlock_blocking, LockAction}; |
| 33 |
|
| 34 |
use std::collections::HashMap; |
| 35 |
-use zbus::{zvariant::OwnedObjectPath, CacheProperties}; |
| 36 |
+use zbus::{zvariant::OwnedObjectPath, proxy::CacheProperties}; |
| 37 |
|
| 38 |
pub struct Item<'a> { |
| 39 |
conn: zbus::blocking::Connection, |
| 40 |
--- a/src/collection.rs |
| 41 |
+++ b/src/collection.rs |
| 42 |
@@ -16,7 +16,7 @@ |
| 43 |
use std::collections::HashMap; |
| 44 |
use zbus::{ |
| 45 |
zvariant::{Dict, ObjectPath, OwnedObjectPath, Value}, |
| 46 |
- CacheProperties, |
| 47 |
+ proxy::CacheProperties, |
| 48 |
}; |
| 49 |
|
| 50 |
// Collection struct. |
| 51 |
--- a/src/item.rs |
| 52 |
+++ b/src/item.rs |
| 53 |
@@ -14,7 +14,7 @@ |
| 54 |
use crate::util::{exec_prompt, format_secret, lock_or_unlock, LockAction}; |
| 55 |
|
| 56 |
use std::collections::HashMap; |
| 57 |
-use zbus::{zvariant::OwnedObjectPath, CacheProperties}; |
| 58 |
+use zbus::{zvariant::OwnedObjectPath, proxy::CacheProperties}; |
| 59 |
|
| 60 |
pub struct Item<'a> { |
| 61 |
conn: zbus::Connection, |
| 62 |
--- a/src/proxy/collection.rs |
| 63 |
+++ b/src/proxy/collection.rs |
| 64 |
@@ -22,7 +22,7 @@ |
| 65 |
interface = "org.freedesktop.Secret.Collection", |
| 66 |
default_service = "org.freedesktop.Secret.Collection" |
| 67 |
)] |
| 68 |
-trait Collection { |
| 69 |
+pub(crate) trait Collection { |
| 70 |
/// Returns prompt: ObjectPath |
| 71 |
fn delete(&self) -> zbus::Result<OwnedObjectPath>; |
| 72 |
|
| 73 |
--- a/src/proxy/item.rs |
| 74 |
+++ b/src/proxy/item.rs |
| 75 |
@@ -19,7 +19,7 @@ |
| 76 |
interface = "org.freedesktop.Secret.Item", |
| 77 |
default_service = "org.freedesktop.Secret.Item" |
| 78 |
)] |
| 79 |
-trait Item { |
| 80 |
+pub(crate) trait Item { |
| 81 |
fn delete(&self) -> zbus::Result<OwnedObjectPath>; |
| 82 |
|
| 83 |
/// returns `Secret` |
| 84 |
--- a/src/proxy/prompt.rs |
| 85 |
+++ b/src/proxy/prompt.rs |
| 86 |
@@ -18,7 +18,7 @@ |
| 87 |
interface = "org.freedesktop.Secret.Prompt", |
| 88 |
default_service = "org.freedesktop.Secret.Prompt" |
| 89 |
)] |
| 90 |
-trait Prompt { |
| 91 |
+pub(crate) trait Prompt { |
| 92 |
fn prompt(&self, window_id: &str) -> zbus::Result<()>; |
| 93 |
|
| 94 |
fn dismiss(&self) -> zbus::Result<()>; |
| 95 |
--- a/src/proxy/service.rs |
| 96 |
+++ b/src/proxy/service.rs |
| 97 |
@@ -22,7 +22,7 @@ |
| 98 |
default_service = "org.freedesktop.secrets", |
| 99 |
default_path = "/org/freedesktop/secrets" |
| 100 |
)] |
| 101 |
-trait Service { |
| 102 |
+pub(crate) trait Service { |
| 103 |
fn open_session(&self, algorithm: &str, input: Value<'_>) -> zbus::Result<OpenSessionResult>; |
| 104 |
|
| 105 |
fn create_collection( |
| 106 |
--- a/src/util.rs |
| 107 |
+++ b/src/util.rs |
| 108 |
@@ -22,7 +22,7 @@ |
| 109 |
use zbus::export::ordered_stream::OrderedStreamExt; |
| 110 |
use zbus::{ |
| 111 |
zvariant::{self, ObjectPath}, |
| 112 |
- CacheProperties, |
| 113 |
+ proxy::CacheProperties, |
| 114 |
}; |
| 115 |
|
| 116 |
// Helper enum for locking |
| 117 |
--- a/Cargo.toml |
| 118 |
+++ b/Cargo.toml |
| 119 |
@@ -75,8 +75,9 @@ |
| 120 |
optional = true |
| 121 |
|
| 122 |
[dependencies.zbus] |
| 123 |
-version = "4" |
| 124 |
+version = "5" |
| 125 |
default-features = false |
| 126 |
+features = ["blocking-api"] |
| 127 |
|
| 128 |
[dev-dependencies.test-with] |
| 129 |
version = "0.12" |