mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-28 03:27:56 +00:00
Show that derives are specific to feature="derive" in documentation
This commit is contained in:
@@ -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")))]
|
||||
|
||||
Reference in New Issue
Block a user