From ce8fef7e0b917cc5150b3c753fd444c2a5f2acc6 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 6 Nov 2023 08:06:40 -0800 Subject: [PATCH] Show that derives are specific to feature="derive" in documentation --- serde/src/lib.rs | 1 + 1 file changed, 1 insertion(+) 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")))]