Omit from_reader in no_std mode

This commit is contained in:
David Tolnay 2020-01-22 00:26:16 -08:00
parent 7b0b96e6ab
commit 1f616f081a
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 5 additions and 1 deletions

View File

@ -2286,6 +2286,7 @@ where
/// is wrong with the data, for example required struct fields are missing from
/// the JSON map or some number is too big to fit in the expected primitive
/// type.
#[cfg(feature = "std")]
pub fn from_reader<R, T>(rdr: R) -> Result<T>
where
R: io::Read,

View File

@ -401,8 +401,11 @@ mod lib {
////////////////////////////////////////////////////////////////////////////////
#[cfg(feature = "std")]
#[doc(inline)]
pub use self::de::{from_reader, from_slice, from_str, Deserializer, StreamDeserializer};
pub use self::de::from_reader;
#[doc(inline)]
pub use self::de::{from_slice, from_str, Deserializer, StreamDeserializer};
#[doc(inline)]
pub use self::error::{Error, Result};
#[doc(inline)]