fix skeptic
This commit is contained in:
parent
22d0bdae8a
commit
e40b9e9814
@ -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"
|
||||
|
@ -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() {}
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
#![cfg(feature = "nightly-testing")]
|
||||
#![cfg(feature = "unstable-testing")]
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/skeptic-tests.rs"));
|
||||
|
Loading…
Reference in New Issue
Block a user