mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
Make skeptic an optional build dependency
This commit is contained in:
parent
e81a569e31
commit
a06ad90945
19
Cargo.toml
19
Cargo.toml
@ -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"
|
||||||
|
8
build.rs
8
build.rs
@ -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() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user