Skip to content

Commit 2e8a58b

Browse files
committed
Exclude lexical code when built without float_roundtrip
1 parent 07bbec9 commit 2e8a58b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/de.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Deserialize JSON data to a Rust data structure.
22
33
use crate::error::{Error, ErrorCode, Result};
4+
#[cfg(feature = "float_roundtrip")]
45
use crate::lexical;
56
use crate::lib::str::FromStr;
67
use crate::lib::*;

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ mod features_check;
455455
mod io;
456456
#[cfg(feature = "std")]
457457
mod iter;
458+
#[cfg(feature = "float_roundtrip")]
458459
mod lexical;
459460
mod number;
460461
mod read;

0 commit comments

Comments
 (0)