Update features
This commit is contained in:
parent
8e92c9c922
commit
4c2e0f889f
|
@ -4,7 +4,7 @@ version = "0.1.0"
|
|||
authors = ["Victor Berger <victor.berger@thalesgroup.com>"]
|
||||
|
||||
[dependencies]
|
||||
wayland-server = { version = "0.8.6", features = ["dlopen"] }
|
||||
wayland-server = "0.8.6"
|
||||
nix = "0.7.0"
|
||||
glutin = { version = "~0.7.4", optional = true }
|
||||
glium = { version = "~0.16.0", optional = true }
|
||||
|
@ -16,4 +16,6 @@ clippy = { version = "*", optional = true }
|
|||
slog-term = "~1.5"
|
||||
|
||||
[features]
|
||||
default = ["glutin"]
|
||||
default = ["backend_glutin", "renderer_glium"]
|
||||
backend_glutin = ["glutin", "wayland-server/dlopen"]
|
||||
renderer_glium = ["glium"]
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
pub mod input;
|
||||
pub mod graphics;
|
||||
|
||||
#[cfg(feature = "glutin")]
|
||||
#[cfg(feature = "backend_glutin")]
|
||||
pub mod glutin;
|
||||
|
||||
#[cfg(feature = "glium")]
|
||||
#[cfg(feature = "renderer_glium")]
|
||||
mod glium;
|
||||
#[cfg(feature = "glium")]
|
||||
#[cfg(feature = "renderer_glium")]
|
||||
pub use glium::*;
|
||||
|
||||
trait NewIdType {
|
||||
|
|
|
@ -7,9 +7,12 @@
|
|||
extern crate wayland_server;
|
||||
extern crate nix;
|
||||
|
||||
#[cfg(feature = "glutin")]
|
||||
#[cfg(feature = "backend_glutin")]
|
||||
extern crate glutin;
|
||||
|
||||
#[cfg(feature = "renderer_glium")]
|
||||
extern crate glium;
|
||||
|
||||
#[macro_use]
|
||||
extern crate slog;
|
||||
extern crate slog_stdlog;
|
||||
|
|
Loading…
Reference in New Issue