mirror of
https://github.com/clap-rs/clap
synced 2024-12-04 18:19:13 +00:00
fix: Rename 'doc' feature
This is prep for potentially other 'doc' changes
This commit is contained in:
parent
afac7b5d4e
commit
e98253dd4a
4 changed files with 7 additions and 7 deletions
|
@ -33,11 +33,11 @@ include = [
|
|||
]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["doc"]
|
||||
features = ["unstable-doc"]
|
||||
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
|
||||
|
||||
[package.metadata.playground]
|
||||
features = ["doc"]
|
||||
features = ["unstable-doc"]
|
||||
|
||||
[package.metadata.release]
|
||||
shared-version = true
|
||||
|
@ -57,7 +57,7 @@ default = [
|
|||
"suggestions",
|
||||
]
|
||||
debug = ["clap_derive/debug", "backtrace"] # Enables debug messages
|
||||
doc = ["derive", "cargo", "wrap_help", "yaml", "env", "unicode", "regex", "unstable-replace", "unstable-multicall", "unstable-grouped"] # for docs.rs
|
||||
unstable-doc = ["derive", "cargo", "wrap_help", "yaml", "env", "unicode", "regex", "unstable-replace", "unstable-multicall", "unstable-grouped"] # for docs.rs
|
||||
|
||||
# Used in default
|
||||
std = ["indexmap/std"] # support for no_std in a backwards-compatible way
|
||||
|
|
2
Makefile
2
Makefile
|
@ -14,7 +14,7 @@ _FEATURES = minimal default wasm full debug release
|
|||
_FEATURES_minimal = --no-default-features --features "std"
|
||||
_FEATURES_default =
|
||||
_FEATURES_wasm = --features "derive cargo env unicode yaml regex unstable-replace unstable-multicall unstable-grouped"
|
||||
_FEATURES_full = --features "derive cargo env unicode yaml regex unstable-replace unstable-multicall unstable-grouped wrap_help doc"
|
||||
_FEATURES_full = --features "derive cargo env unicode yaml regex unstable-replace unstable-multicall unstable-grouped wrap_help unstable-doc"
|
||||
_FEATURES_debug = ${_FEATURES_full} --features debug
|
||||
_FEATURES_release = ${_FEATURES_full} --release
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// notice may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
#![doc(html_logo_url = "https://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.png")]
|
||||
#![cfg_attr(feature = "doc", doc = include_str!("../README.md"))]
|
||||
#![cfg_attr(feature = "unstable-doc", doc = include_str!("../README.md"))]
|
||||
//! <https://github.com/clap-rs/clap>
|
||||
#![warn(
|
||||
missing_docs,
|
||||
|
|
|
@ -6,8 +6,8 @@ fn example_tests() {
|
|||
let features = [
|
||||
#[cfg(feature = "debug")]
|
||||
"debug",
|
||||
#[cfg(feature = "doc")]
|
||||
"doc",
|
||||
#[cfg(feature = "unstable-doc")]
|
||||
"unstable-doc",
|
||||
#[cfg(feature = "std")]
|
||||
"std",
|
||||
#[cfg(feature = "derive")]
|
||||
|
|
Loading…
Reference in a new issue