mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +00:00
Merge pull request #3190 from epage/feature
docs: Show features in docs.rs
This commit is contained in:
commit
43aa505221
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ include = [
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = ["unstable-doc"]
|
features = ["unstable-doc"]
|
||||||
rustc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
|
||||||
|
|
||||||
[package.metadata.playground]
|
[package.metadata.playground]
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// (see LICENSE or <http://opensource.org/licenses/MIT>) All files in the project carrying such
|
// (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.
|
// notice may not be copied, modified, or distributed except according to those terms.
|
||||||
|
|
||||||
#![cfg_attr(feature = "docsrs", feature(doc_auto_cfg))]
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
#![doc(html_logo_url = "https://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.png")]
|
#![doc(html_logo_url = "https://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.png")]
|
||||||
#![cfg_attr(feature = "derive", doc = include_str!("../README.md"))]
|
#![cfg_attr(feature = "derive", doc = include_str!("../README.md"))]
|
||||||
//! <https://github.com/clap-rs/clap>
|
//! <https://github.com/clap-rs/clap>
|
||||||
|
|
Loading…
Reference in a new issue