Add serde feature

Relates to #18
This commit is contained in:
Sebastian Schmidt 2019-03-23 12:46:52 +02:00
parent 348578ca9f
commit 5e491f6771
4 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,8 @@
### Added ### Added
* Add `serde` feature
### Removed ### Removed
### Changed ### Changed

View File

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

View File

@ -239,7 +239,8 @@
#![warn(missing_docs)] #![warn(missing_docs)]
extern crate core; #[cfg(serde)]
extern crate serde;
mod configuration; mod configuration;
pub mod error; pub mod error;
@ -249,6 +250,8 @@ mod operator;
mod token; mod token;
mod tree; mod tree;
mod value; mod value;
#[cfg(serde)]
mod serde;
// Exports // Exports

0
src/serde/mod.rs Normal file
View File