From 6f129ac83dffd0cc4c2c3a826b05e081d817b46e Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Sun, 5 Mar 2017 14:45:21 -0800 Subject: [PATCH] Only include chan dependancy with termion backend. We may want to use channels for all backend some day, but not today. --- Cargo.toml | 7 +++++-- src/lib.rs | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 71ea401..e0ad628 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/src/lib.rs b/src/lib.rs index e6cefe4..2f33997 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -65,6 +65,7 @@ extern crate unicode_width; extern crate odds; extern crate num; +#[cfg(feature = "termion")] #[macro_use] extern crate chan;