History

feat: use docsrs feature in code to show what is feature-gated automatically on docs.rs

Alexis (Poliorcetics) Bourget committed 4 years ago

Commit b1c40b01 parent f7f136d26 files · +27 −0Browse files

Showing the changes to git-commitgraph/src (1 of 26 files). Show all

Unified · Split

git-commitgraph/src/lib.rs+1−0
@@ -12,6 +12,7 @@ · 11 unmodified lines
1212 feature = "document-features",
1313 cfg_attr(doc, doc = ::document_features::document_features!())
1414 )]
15+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
1516 #![deny(missing_docs, rust_2018_idioms, unsafe_code)]
1617
1718 pub mod file;