diff --git a/Cargo.toml b/Cargo.toml index 433ba3f..090b92c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,12 +13,14 @@ slog = { version = "2.0.0" } slog-stdlog = "2.0.0-0.2" glutin = { version = "~0.7.4", optional = true } glium = { version = "~0.16.0", optional = true } +input = { path = "../input", optional = true } clippy = { version = "*", optional = true } [dev-dependencies] slog-term = "~1.5" [features] -default = ["backend_glutin", "renderer_glium"] +default = ["backend_glutin", "backend_libinput", "renderer_glium"] backend_glutin = ["glutin", "wayland-server/dlopen"] renderer_glium = ["glium"] +backend_libinput = ["input"] diff --git a/src/backend/mod.rs b/src/backend/mod.rs index 6e01f97..4b79aed 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -17,6 +17,8 @@ pub mod graphics; #[cfg(feature = "backend_glutin")] pub mod glutin; +#[cfg(feature = "backend_libinput")] +pub mod libinput; #[cfg(feature = "renderer_glium")] mod glium; diff --git a/src/lib.rs b/src/lib.rs index d266b43..7ac03cd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,6 +16,8 @@ extern crate tempfile; #[cfg(feature = "backend_glutin")] extern crate glutin; +#[cfg(feature = "backend_libinput")] +extern crate input; #[cfg(feature = "renderer_glium")] extern crate glium;