diff --git a/backend-demo/Cargo.toml b/backend-demo/Cargo.toml index 41324f419..75de83e91 100644 --- a/backend-demo/Cargo.toml +++ b/backend-demo/Cargo.toml @@ -11,7 +11,7 @@ nix = { version = "0.29", features = ["user"], default-features = false} tracing = "0.1" tracing-subscriber = "0.3.16" url = "2.3.1" -zbus = "4.2" +zbus = "5.0" [dependencies.ashpd] path = "../" diff --git a/backend-demo/src/account.rs b/backend-demo/src/account.rs index 92340bca1..5e7543ee7 100644 --- a/backend-demo/src/account.rs +++ b/backend-demo/src/account.rs @@ -25,7 +25,7 @@ mod fdo_account { interface = "org.freedesktop.Accounts.User", gen_blocking = false )] - trait Accounts { + pub trait Accounts { #[zbus(property, name = "IconFile")] fn icon_file(&self) -> zbus::Result; #[zbus(property, name = "UserName")] diff --git a/backend-demo/src/main.rs b/backend-demo/src/main.rs index 5a8498b2a..b9a41a1ea 100644 --- a/backend-demo/src/main.rs +++ b/backend-demo/src/main.rs @@ -23,7 +23,7 @@ async fn main() -> ashpd::Result<()> { // Enable debug with `RUST_LOG=ashpd_backend_demo=debug COMMAND`. tracing_subscriber::fmt::init(); - let cnx = zbus::ConnectionBuilder::session()? + let cnx = zbus::connection::Builder::session()? .name(NAME)? .build() .await?;