diff --git a/serde/src/lib.rs b/serde/src/lib.rs index 214fd5bdb..8408bbb2e 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -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")))]