Skip to content

Commit

Permalink
arbitrary_precision without std
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang committed Sep 5, 2022
1 parent d64ffdc commit ec72b27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/number.rs
Original file line number Diff line number Diff line change
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 ec72b27

Please sign in to comment.