fix skeptic

This commit is contained in:
Oliver Schneider 2016-08-03 16:00:20 +02:00
parent 22d0bdae8a
commit e40b9e9814
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46
3 changed files with 10 additions and 3 deletions

View File

@ -18,6 +18,7 @@ plugin = true
unstable-testing = [
"clippy",
"skeptic",
"serde_json",
"serde/unstable-testing",
"serde_codegen/unstable-testing"
]
@ -29,6 +30,7 @@ skeptic = { version = "^0.6.0", optional = true }
clippy = { version = "^0.*", optional = true }
serde_codegen = { version = "=0.8.0", default-features = false, features = ["unstable"] }
skeptic = { version = "^0.6.0", optional = true }
serde_json = { version = "0.8.0", optional = true }
[dev-dependencies]
clippy = "^0.*"
@ -42,6 +44,10 @@ serde_test = "0.8.0"
name = "test"
path = "tests/test.rs"
[[test]]
name = "skeptic"
path = "tests/skeptic.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"

View File

@ -1,13 +1,14 @@
#[cfg(feature = "nightly-testing")]
#[cfg(feature = "unstable-testing")]
mod inner {
extern crate skeptic;
pub fn main() {
println!("cargo:rerun-if-changed=../README.md");
skeptic::generate_doc_tests(&["../README.md"]);
}
}
#[cfg(not(feature = "nightly-testing"))]
#[cfg(not(feature = "unstable-testing"))]
mod inner {
pub fn main() {}
}

View File

@ -1,3 +1,3 @@
#![cfg(feature = "nightly-testing")]
#![cfg(feature = "unstable-testing")]
include!(concat!(env!("OUT_DIR"), "/skeptic-tests.rs"));