From 5cec8736a7fd4a0702e3a599f8667b52209f12b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C3=B6lfchen?= <115360611+W-lfchen@users.noreply.github.com> Date: Fri, 2 Aug 2024 15:47:38 +0200 Subject: [PATCH] docs: update zbus-xmlgen generation commands; add zbus-xmlgen to development shell --- crates/notifier_host/src/proxy/mod.rs | 7 ++++--- flake.nix | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/notifier_host/src/proxy/mod.rs b/crates/notifier_host/src/proxy/mod.rs index 8c8e9df..58b5128 100644 --- a/crates/notifier_host/src/proxy/mod.rs +++ b/crates/notifier_host/src/proxy/mod.rs @@ -2,9 +2,10 @@ //! //! The interface XML files were taken from //! [Waybar](https://github.com/Alexays/Waybar/tree/master/protocol), and the proxies were -//! generated with [zbus-xmlgen](https://docs.rs/crate/zbus_xmlgen/latest) by running `zbus-xmlgen -//! dbus_status_notifier_item.xml` and `zbus-xmlgen dbus_status_notifier_watcher.xml`. At the -//! moment, `dbus_menu.xml` isn't used. +//! generated with [zbus-xmlgen](https://docs.rs/crate/zbus_xmlgen/latest) by running +//! `zbus-xmlgen file crates/notifier_host/src/proxy/dbus_status_notifier_item.xml` and +//! `zbus-xmlgen file crates/notifier_host/src/proxy/dbus_status_notifier_watcher.xml`. +//! At the moment, `dbus_menu.xml` isn't used. //! //! For more information, see ["Writing a client proxy" in the zbus //! tutorial](https://dbus2.github.io/zbus/). diff --git a/flake.nix b/flake.nix index 6de91fe..8ddf153 100644 --- a/flake.nix +++ b/flake.nix @@ -86,6 +86,7 @@ packages = with pkgs; [ deno mdbook + zbus-xmlgen ]; RUST_SRC_PATH = "${rust}/lib/rustlib/src/rust/library";