From 8432058052eb461765739b70836722d8601bafae Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 24 Apr 2019 18:36:30 +0200 Subject: [PATCH] Execute serde doctest only if `serde_support` is enabled Relates to #50 --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 957e42a..8f54987 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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.