Execute serde doctest only if serde_support is enabled

Relates to #50
This commit is contained in:
Sebastian Schmidt 2019-04-24 18:36:30 +02:00
parent 9989ec98e8
commit 8432058052

View File

@ -327,6 +327,7 @@
//! Example parsing with [ron format](docs.rs/ron):
//!
//! ```rust
//! # #[cfg(feature = "serde_support")] {
//! extern crate ron;
//! use evalexpr::*;
//!
@ -341,6 +342,7 @@
//! () // Handle error
//! },
//! }
//! # }
//! ```
//!
//! With `serde`, expressions can be integrated into arbitrarily complex data.