mirror of
https://github.com/serde-rs/json.git
synced 2025-10-01 06:51:58 +00:00
Omit from_reader in no_std mode
This commit is contained in:
parent
7b0b96e6ab
commit
1f616f081a
@ -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,
|
||||
|
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user