Skip to content

Commit

Permalink
Exclude lexical code when built without float_roundtrip
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 9, 2020
1 parent 07bbec9 commit 2e8a58b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/de.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Deserialize JSON data to a Rust data structure.
use crate::error::{Error, ErrorCode, Result};
#[cfg(feature = "float_roundtrip")]
use crate::lexical;
use crate::lib::str::FromStr;
use crate::lib::*;
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ mod features_check;
mod io;
#[cfg(feature = "std")]
mod iter;
#[cfg(feature = "float_roundtrip")]
mod lexical;
mod number;
mod read;
Expand Down

0 comments on commit 2e8a58b

Please sign in to comment.