mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 23:35:59 +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
|
/// 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
|
/// the JSON map or some number is too big to fit in the expected primitive
|
||||||
/// type.
|
/// type.
|
||||||
|
#[cfg(feature = "std")]
|
||||||
pub fn from_reader<R, T>(rdr: R) -> Result<T>
|
pub fn from_reader<R, T>(rdr: R) -> Result<T>
|
||||||
where
|
where
|
||||||
R: io::Read,
|
R: io::Read,
|
||||||
|
@ -401,8 +401,11 @@ mod lib {
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#[cfg(feature = "std")]
|
||||||
#[doc(inline)]
|
#[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)]
|
#[doc(inline)]
|
||||||
pub use self::error::{Error, Result};
|
pub use self::error::{Error, Result};
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user