Skip to content

Commit

Permalink
⚡️ Drop docs generation in fdo interfaces
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zeenix committed Nov 12, 2024
1 parent 75e0e3b commit 9ff643c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fdo/dbus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 4 additions & 1 deletion src/fdo/monitoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9ff643c

Please sign in to comment.