Skip to content

Commit

Permalink
Show that derives are specific to feature="derive" in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 6, 2023
1 parent 0726b2c commit ce8fef7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ extern crate serde_derive;

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

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

0 comments on commit ce8fef7

Please sign in to comment.