From 9ff643cd721b894c456d02550cebc678e47169e3 Mon Sep 17 00:00:00 2001
From: Zeeshan Ali Khan <zeenix@gmail.com>
Date: Tue, 12 Nov 2024 22:43:11 +0100
Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Drop=20docs=20generation?=
 =?UTF-8?q?=20in=20fdo=20interfaces?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

These are well-known and documented (in the spec itself) and need not be
documented in the introspection XML. Combined with similar changes in
zbus, this reduces our release binary's size by 200KB.
---
 src/fdo/dbus.rs       | 2 +-
 src/fdo/monitoring.rs | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/fdo/dbus.rs b/src/fdo/dbus.rs
index d652394..299f913 100644
--- a/src/fdo/dbus.rs
+++ b/src/fdo/dbus.rs
@@ -60,7 +60,7 @@ impl DBus {
     }
 }
 
-#[interface(interface = "org.freedesktop.DBus")]
+#[interface(interface = "org.freedesktop.DBus", introspection_docs = false)]
 impl DBus {
     /// This is already called & handled and we only need to handle it once.
     async fn hello(
diff --git a/src/fdo/monitoring.rs b/src/fdo/monitoring.rs
index 19c3d16..d33a5dc 100644
--- a/src/fdo/monitoring.rs
+++ b/src/fdo/monitoring.rs
@@ -28,7 +28,10 @@ impl Monitoring {
     }
 }
 
-#[interface(interface = "org.freedesktop.DBus.Monitoring")]
+#[interface(
+    interface = "org.freedesktop.DBus.Monitoring",
+    introspection_docs = false
+)]
 impl Monitoring {
     async fn become_monitor(
         &self,