We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b456b5a + 51f5b26 commit ebbcce0Copy full SHA for ebbcce0
Cargo.toml
@@ -102,7 +102,11 @@ serialize = ["serde"]
102
escape-html = []
103
104
[package.metadata.docs.rs]
105
+# document all features
106
all-features = true
107
+# defines the configuration attribute `docs_rs` to enable feature requirements
108
+# See https://stackoverflow.com/questions/61417452
109
+rustdoc-args = ["--cfg", "docs_rs"]
110
111
[[test]]
112
name = "serde_attrs"
src/lib.rs
@@ -38,6 +38,9 @@
38
#![forbid(unsafe_code)]
39
#![deny(missing_docs)]
40
#![recursion_limit = "1024"]
41
+// Enable feature requirements in the docs from 1.57
42
+// See https://stackoverflow.com/questions/61417452
43
+#![cfg_attr(docs_rs, feature(doc_auto_cfg))]
44
45
#[cfg(feature = "serialize")]
46
pub mod de;
0 commit comments