Add input crate

This commit is contained in:
Drakulix 2017-04-15 00:23:03 +02:00
parent c83792c570
commit cba111bf4f
3 changed files with 7 additions and 1 deletions

View File

@ -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"]

View File

@ -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;

View File

@ -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;