Add input crate
This commit is contained in:
parent
c83792c570
commit
cba111bf4f
|
@ -13,12 +13,14 @@ slog = { version = "2.0.0" }
|
||||||
slog-stdlog = "2.0.0-0.2"
|
slog-stdlog = "2.0.0-0.2"
|
||||||
glutin = { version = "~0.7.4", optional = true }
|
glutin = { version = "~0.7.4", optional = true }
|
||||||
glium = { version = "~0.16.0", optional = true }
|
glium = { version = "~0.16.0", optional = true }
|
||||||
|
input = { path = "../input", optional = true }
|
||||||
clippy = { version = "*", optional = true }
|
clippy = { version = "*", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
slog-term = "~1.5"
|
slog-term = "~1.5"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["backend_glutin", "renderer_glium"]
|
default = ["backend_glutin", "backend_libinput", "renderer_glium"]
|
||||||
backend_glutin = ["glutin", "wayland-server/dlopen"]
|
backend_glutin = ["glutin", "wayland-server/dlopen"]
|
||||||
renderer_glium = ["glium"]
|
renderer_glium = ["glium"]
|
||||||
|
backend_libinput = ["input"]
|
||||||
|
|
|
@ -17,6 +17,8 @@ pub mod graphics;
|
||||||
|
|
||||||
#[cfg(feature = "backend_glutin")]
|
#[cfg(feature = "backend_glutin")]
|
||||||
pub mod glutin;
|
pub mod glutin;
|
||||||
|
#[cfg(feature = "backend_libinput")]
|
||||||
|
pub mod libinput;
|
||||||
|
|
||||||
#[cfg(feature = "renderer_glium")]
|
#[cfg(feature = "renderer_glium")]
|
||||||
mod glium;
|
mod glium;
|
||||||
|
|
|
@ -16,6 +16,8 @@ extern crate tempfile;
|
||||||
|
|
||||||
#[cfg(feature = "backend_glutin")]
|
#[cfg(feature = "backend_glutin")]
|
||||||
extern crate glutin;
|
extern crate glutin;
|
||||||
|
#[cfg(feature = "backend_libinput")]
|
||||||
|
extern crate input;
|
||||||
|
|
||||||
#[cfg(feature = "renderer_glium")]
|
#[cfg(feature = "renderer_glium")]
|
||||||
extern crate glium;
|
extern crate glium;
|
||||||
|
|
Loading…
Reference in New Issue