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

View File

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