Skip to content

Commit

Permalink
Show derive macros in serde's rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 14, 2023
1 parent a38aa31 commit 063dd5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,9 @@ mod std_error;
#[allow(unused_imports)]
#[macro_use]
extern crate serde_derive;

/// Derive macro available if serde is built with `features = ["derive"]`.
#[cfg(feature = "serde_derive")]
#[doc(hidden)]
pub use serde_derive::{Deserialize, Serialize};

#[cfg(all(not(no_serde_derive), any(feature = "std", feature = "alloc")))]
Expand Down

0 comments on commit 063dd5b

Please sign in to comment.