Skip to content

Commit

Permalink
Merge pull request #1097 from serde-rs/doccfg
Browse files Browse the repository at this point in the history
Restore doc cfg on re-exports
  • Loading branch information
dtolnay committed Jan 1, 2024
2 parents c367091 + df36d10 commit bb62c73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/de.rs
Expand Up @@ -22,6 +22,7 @@ use crate::number::NumberDeserializer;
pub use crate::read::{Read, SliceRead, StrRead};

#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
pub use crate::read::IoRead;

//////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Expand Up @@ -365,6 +365,7 @@
extern crate alloc;

#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
#[doc(inline)]
pub use crate::de::from_reader;
#[doc(inline)]
Expand All @@ -374,6 +375,7 @@ pub use crate::error::{Error, Result};
#[doc(inline)]
pub use crate::ser::{to_string, to_string_pretty, to_vec, to_vec_pretty};
#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
#[doc(inline)]
pub use crate::ser::{to_writer, to_writer_pretty, Serializer};
#[doc(inline)]
Expand Down
1 change: 1 addition & 0 deletions src/value/mod.rs
Expand Up @@ -106,6 +106,7 @@ pub use crate::map::Map;
pub use crate::number::Number;

#[cfg(feature = "raw_value")]
#[cfg_attr(docsrs, doc(cfg(feature = "raw_value")))]
pub use crate::raw::{to_raw_value, RawValue};

/// Represents any valid JSON value.
Expand Down

0 comments on commit bb62c73

Please sign in to comment.