Add new travis feature for logind

This commit is contained in:
Drakulix 2018-02-18 13:46:26 +01:00
parent 2017d8cd16
commit e3113caa72
2 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@ env:
- FEATURES="backend_udev" - FEATURES="backend_udev"
- FEATURES="backend_session" - FEATURES="backend_session"
- FEATURES="backend_session_udev" - FEATURES="backend_session_udev"
- FEATURES="backend_session_logind"
- FEATURES="renderer_glium" - FEATURES="renderer_glium"
# test default features # test default features
- FEATURES="default" - FEATURES="default"

View File

@ -79,7 +79,8 @@ pub enum BoundAutoSession {
pub struct AutoId(AutoIdInternal); pub struct AutoId(AutoIdInternal);
#[derive(PartialEq, Eq)] #[derive(PartialEq, Eq)]
enum AutoIdInternal { enum AutoIdInternal {
#[cfg(feature = "backend_session_logind")] Logind(logind::Id), #[cfg(feature = "backend_session_logind")]
Logind(logind::Id),
Direct(direct::Id), Direct(direct::Id),
} }