summaryrefslogtreecommitdiffstats
path: root/vendor/serde/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/serde/src/lib.rs')
-rw-r--r--vendor/serde/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/serde/src/lib.rs b/vendor/serde/src/lib.rs
index 8c6a4affc..b9fbefed4 100644
--- a/vendor/serde/src/lib.rs
+++ b/vendor/serde/src/lib.rs
@@ -95,9 +95,11 @@
////////////////////////////////////////////////////////////////////////////////
// Serde types in rustdoc of other crates get linked to here.
-#![doc(html_root_url = "https://docs.rs/serde/1.0.190")]
+#![doc(html_root_url = "https://docs.rs/serde/1.0.193")]
// Support using Serde without the standard library!
#![cfg_attr(not(feature = "std"), no_std)]
+// Show which crate feature enables conditionally compiled APIs in documentation.
+#![cfg_attr(doc_cfg, feature(doc_cfg))]
// Unstable functionality only if the user asks for it. For tracking and
// discussion of these features please refer to this issue:
//
@@ -324,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")))]