Make skeptic an optional build dependency

This commit is contained in:
Alexandre Bury 2016-10-12 16:12:07 -07:00
parent e81a569e31
commit a06ad90945
2 changed files with 16 additions and 11 deletions

View File

@ -11,8 +11,9 @@ readme = "Readme.md"
repository = "https://github.com/gyscos/Cursive" repository = "https://github.com/gyscos/Cursive"
version = "0.3.2" version = "0.3.2"
[build-dependencies] [build-dependencies.skeptic]
skeptic = "0.6" optional = true
version = "0.6"
[dependencies] [dependencies]
odds = "0.2" odds = "0.2"
@ -20,23 +21,23 @@ toml = "0.2"
unicode-segmentation = "0.1" unicode-segmentation = "0.1"
unicode-width = "0.1" unicode-width = "0.1"
[dependencies.bear-lib-terminal]
optional = true
version = "1.3.1"
[dependencies.ncurses] [dependencies.ncurses]
version = "5.83.0"
features = ["wide"] features = ["wide"]
optional = true optional = true
version = "5.83.0"
[dependencies.pancurses] [dependencies.pancurses]
version = "0.6"
features = ["wide"] features = ["wide"]
optional = true optional = true
version = "0.6"
[dependencies.termion] [dependencies.termion]
optional = true
version = "1.1.1" version = "1.1.1"
optional = true
[dependencies.bear-lib-terminal]
version = "1.3.1"
optional = true
[dev-dependencies] [dev-dependencies]
rand = "0.3" rand = "0.3"

View File

@ -1,8 +1,12 @@
extern crate skeptic; #[cfg(skeptic)]
fn main() { fn main() {
extern crate skeptic;
skeptic::generate_doc_tests(&["Readme.md", skeptic::generate_doc_tests(&["Readme.md",
"doc/tutorial_1.md", "doc/tutorial_1.md",
"doc/tutorial_2.md", "doc/tutorial_2.md",
"doc/tutorial_3.md" ]); "doc/tutorial_3.md" ]);
} }
#[cfg(not(skeptic))]
fn main() {}