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

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

View File

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

View File