From 107b18a4c1d2e0294db93a80a7ca73c372480a6f Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Sat, 27 Jun 2020 23:26:52 +0200 Subject: [PATCH] logind: do not include dbus code without dbus dependency --- src/backend/session/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/session/mod.rs b/src/backend/session/mod.rs index 231081d..8047cf2 100644 --- a/src/backend/session/mod.rs +++ b/src/backend/session/mod.rs @@ -160,6 +160,9 @@ impl AsErrno for () { } pub mod auto; -mod dbus; pub mod direct; + +#[cfg(feature="backend_session_logind")] +mod dbus; +#[cfg(feature="backend_session_logind")] pub use self::dbus::*;