docs: Auto-tag feature flags

Fixes #3095
This commit is contained in:
Ed Page 2021-12-08 20:32:40 -06:00
parent dbd127fad9
commit d42cfee912
2 changed files with 2 additions and 0 deletions

View file

@ -34,6 +34,7 @@ include = [
[package.metadata.docs.rs]
features = ["unstable-doc"]
rustc-args = ["--cfg", "docsrs"]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
[package.metadata.playground]

View file

@ -3,6 +3,7 @@
// (see LICENSE or <http://opensource.org/licenses/MIT>) All files in the project carrying such
// notice may not be copied, modified, or distributed except according to those terms.
#![cfg_attr(feature = "docsrs", feature(doc_auto_cfg))]
#![doc(html_logo_url = "https://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.png")]
#![cfg_attr(feature = "derive", doc = include_str!("../README.md"))]
//! <https://github.com/clap-rs/clap>