Fix checking for serde feature flag in code

Relates to #18
This commit is contained in:
Sebastian Schmidt 2019-03-23 14:29:53 +02:00
parent a4d1a34a0c
commit 3d440524a5
3 changed files with 4 additions and 5 deletions

View File

@ -18,5 +18,4 @@ path = "src/lib.rs"
[dependencies]
serde = { version = "1", optional = true}
[features]
#serde = ["serde"]
[features]

View File

@ -239,7 +239,7 @@
#![warn(missing_docs)]
#[cfg(serde)]
#[cfg(feature = "serde")]
extern crate serde;
mod configuration;
@ -250,8 +250,8 @@ mod operator;
mod token;
mod tree;
mod value;
#[cfg(serde)]
mod serde;
#[cfg(feature = "serde")]
mod feature_serde;
// Exports

View File