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 cb3cd71
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(not(feature = "std"))]
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 cb3cd71

Please sign in to comment.