diff --git a/build.rs b/build.rs index 7012898..ea3c7e2 100644 --- a/build.rs +++ b/build.rs @@ -1,4 +1,4 @@ -#[cfg(skeptic)] +#[cfg(feature = "skeptic")] fn main() { extern crate skeptic; @@ -8,5 +8,5 @@ fn main() { "doc/tutorial_3.md" ]); } -#[cfg(not(skeptic))] +#[cfg(not(feature = "skeptic"))] fn main() {} diff --git a/tests/skeptic.rs b/tests/skeptic.rs index ff46c9c..08d989f 100644 --- a/tests/skeptic.rs +++ b/tests/skeptic.rs @@ -1 +1,2 @@ +#[cfg(feature = "skeptic")] include!(concat!(env!("OUT_DIR"), "/skeptic-tests.rs"));