Only include chan dependancy with termion backend.

We may want to use channels for all backend some day, but not today.
This commit is contained in:
Alexandre Bury 2017-03-05 14:45:21 -08:00
parent 7d9cb03ffb
commit 6f129ac83d
2 changed files with 6 additions and 2 deletions

View File

@ -20,13 +20,16 @@ optional = true
version = "0.6" version = "0.6"
[dependencies] [dependencies]
chan = "0.1.18"
num = "0.1" num = "0.1"
odds = "0.2" odds = "0.2"
toml = "0.2" toml = "0.2"
unicode-segmentation = "1.0" unicode-segmentation = "1.0"
unicode-width = "0.1" unicode-width = "0.1"
[dependencies.chan]
optional = true
version = "0.1.18"
[dependencies.chan-signal] [dependencies.chan-signal]
optional = true optional = true
version = "0.1" version = "0.1"
@ -55,7 +58,7 @@ skeptic = "0.6"
[features] [features]
default = ["ncurses"] default = ["ncurses"]
termion-backend = ["termion", "chan-signal"] termion-backend = ["termion", "chan", "chan-signal"]
pancurses-backend = ["pancurses"] pancurses-backend = ["pancurses"]
[lib] [lib]

View File

@ -65,6 +65,7 @@ extern crate unicode_width;
extern crate odds; extern crate odds;
extern crate num; extern crate num;
#[cfg(feature = "termion")]
#[macro_use] #[macro_use]
extern crate chan; extern crate chan;