We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a38aa31 + fb7b6ea commit 7a8e497Copy full SHA for 7a8e497
serde/Cargo.toml
@@ -27,6 +27,7 @@ doc-scrape-examples = false
27
features = ["derive", "rc"]
28
29
[package.metadata.docs.rs]
30
+features = ["derive"]
31
targets = ["x86_64-unknown-linux-gnu"]
32
33
serde/src/lib.rs
@@ -338,8 +338,9 @@ mod std_error;
338
#[allow(unused_imports)]
339
#[macro_use]
340
extern crate serde_derive;
341
+
342
+/// Derive macro available if serde is built with `features = ["derive"]`.
343
#[cfg(feature = "serde_derive")]
-#[doc(hidden)]
344
pub use serde_derive::{Deserialize, Serialize};
345
346
#[cfg(all(not(no_serde_derive), any(feature = "std", feature = "alloc")))]
0 commit comments