Update to zbus 5.x

https://github.com/dbus2/zbus/releases/tag/zbus-5.0.0

Now requires `pub` on uses of `#[proxy]` if the generated types should
be `pub`.
This commit is contained in:
Ian Douglas Scott 2024-10-28 14:22:30 -07:00 committed by Michael Murphy
parent ac5713df52
commit 3b86984332
26 changed files with 30 additions and 32 deletions

View file

@ -68,7 +68,7 @@ pub enum BatteryLevel {
default_service = "org.freedesktop.UPower",
assume_defaults = false
)]
trait Device {
pub trait Device {
#[zbus(property)]
fn battery_level(&self) -> zbus::Result<BatteryLevel>;

View file

@ -8,7 +8,7 @@ use zbus::proxy;
interface = "org.freedesktop.UPower.KbdBacklight",
default_path = "/org/freedesktop/UPower/KbdBacklight"
)]
trait KbdBacklight {
pub trait KbdBacklight {
/// GetBrightness method
fn get_brightness(&self) -> zbus::Result<i32>;

View file

@ -6,7 +6,7 @@ use zbus::proxy;
use crate::device::{DeviceProxy, DeviceProxyBlocking};
#[proxy(interface = "org.freedesktop.UPower", assume_defaults = true)]
trait UPower {
pub trait UPower {
/// EnumerateDevices method
fn enumerate_devices(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;