Only require maplit for ncurses bqckend

This commit is contained in:
Alexandre Bury 2018-02-20 14:50:13 -08:00
parent eb39e70e41
commit 767e225db0
2 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,6 @@ repository = "gyscos/Cursive"
enum-map = "0.2.24"
enumset = "0.3.3"
log = "0.4"
maplit = "1.0.0"
num = "0.1"
owning_ref = "0.3.3"
toml = "0.4"
@ -25,6 +24,10 @@ unicode-segmentation = "1.0"
unicode-width = "0.1"
xi-unicode = "0.1.0"
[dependencies.maplit]
optional = true
version = "1.0.0"
[dependencies.bear-lib-terminal]
optional = true
version = "1.3.1"
@ -63,7 +66,7 @@ rand = "0.4"
blt-backend = ["bear-lib-terminal"]
default = ["ncurses-backend"]
markdown = ["pulldown-cmark"]
ncurses-backend = ["ncurses"]
ncurses-backend = ["ncurses", "maplit"]
pancurses-backend = ["pancurses"]
termion-backend = ["termion", "chan", "chan-signal"]

View File

@ -67,6 +67,8 @@ extern crate enum_map;
extern crate enumset;
#[macro_use]
extern crate log;
#[cfg(feature = "ncurses")]
#[macro_use]
extern crate maplit;