Merge pull request #928 from kvinwang/nostd-arbp

arbitrary_precision without std
This commit is contained in:
David Tolnay 2022-10-09 12:41:07 -07:00 committed by GitHub
commit 54f9685a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";