diff --git a/src/cli/ex.rs b/src/cli/ex.rs index 23f7ad53..471429d3 100644 --- a/src/cli/ex.rs +++ b/src/cli/ex.rs @@ -4,7 +4,7 @@ use super::ensure_user; use anyhow::Result; use clap::Subcommand; use fn_error_context::context; -use zbus::dbus_proxy; +use zbus::proxy; #[derive(Debug, Subcommand)] pub enum Cmd { @@ -44,7 +44,7 @@ impl Cmd { } } -#[dbus_proxy( +#[proxy( interface = "org.coreos.zincati.Experimental", default_service = "org.coreos.zincati", default_path = "/org/coreos/zincati" diff --git a/src/dbus/experimental.rs b/src/dbus/experimental.rs index 7b1e6c72..91ff580a 100644 --- a/src/dbus/experimental.rs +++ b/src/dbus/experimental.rs @@ -4,14 +4,14 @@ use crate::update_agent::{LastRefresh, UpdateAgent}; use actix::Addr; use futures::prelude::*; use tokio::runtime::Runtime; -use zbus::{dbus_interface, fdo}; +use zbus::{fdo, interface}; /// Experimental interface for testing. pub(crate) struct Experimental { pub(crate) agent_addr: Addr, } -#[dbus_interface(name = "org.coreos.zincati.Experimental")] +#[interface(name = "org.coreos.zincati.Experimental")] impl Experimental { /// Just a test method. fn moo(&self, talkative: bool) -> String {