Skip to content

Commit

Permalink
Merge pull request #928 from kvinwang/nostd-arbp
Browse files Browse the repository at this point in the history
arbitrary_precision without std
  • Loading branch information
dtolnay committed Oct 9, 2022
2 parents 94019a3 + ec72b27 commit 54f9685
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/number.rs
Expand Up @@ -14,6 +14,12 @@ use crate::error::ErrorCode;
#[cfg(feature = "arbitrary_precision")]
use serde::de::{IntoDeserializer, MapAccess};

#[cfg(feature = "arbitrary_precision")]
use alloc::{
borrow::ToOwned,
string::{String, ToString},
};

#[cfg(feature = "arbitrary_precision")]
pub(crate) const TOKEN: &str = "$serde_json::private::Number";

Expand Down

0 comments on commit 54f9685

Please sign in to comment.