[[example]]
name = "flags"
required-features = ["clap"]
[dependencies.anstyle]
version = "1.0.3"
[dependencies.cargo_metadata]
optional = true
version = "0.17"
[dependencies.clap]
default-features = false
features = ["std", "derive"]
optional = true
version = "4.4.1"
[features]
clap = ["dep:clap"]
default = ["clap"]
[package]
authors = ["Ed Page <eopage@gmail.com>"]
categories = ["development-tools::cargo-plugins"]
description = "Re-usable CLI flags for `cargo` plugins"
documentation = "https://docs.rs/clap-cargo"
edition = "2021"
include = ["build.rs", "src/**/*", "Cargo.toml", "Cargo.lock", "LICENSE*", "README.md", "benches/**/*", "examples/**/*"]
keywords = ["cargo"]
license = "MIT OR Apache-2.0"
name = "clap-cargo"
readme = "README.md"
repository = "https://github.com/crate-ci/clap-cargo"
rust-version = "1.70.0"
version = "0.12.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
min = 1
replace = "{{version}}"
search = "Unreleased"
[[package.metadata.release.pre-release-replacements]]
exactly = 1
file = "CHANGELOG.md"
replace = "...{{tag_name}}"
search = "\\.\\.\\.HEAD"
[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
min = 1
replace = "{{date}}"
search = "ReleaseDate"
[[package.metadata.release.pre-release-replacements]]
exactly = 1
file = "CHANGELOG.md"
replace = "<!-- next-header -->\n## [Unreleased] - ReleaseDate\n"
search = "<!-- next-header -->"
[[package.metadata.release.pre-release-replacements]]
exactly = 1
file = "CHANGELOG.md"
replace = "<!-- next-url -->\n[Unreleased]: https://github.com/crate-ci/clap-cargo/compare/{{tag_name}}...HEAD"
search = "<!-- next-url -->"
[[package.metadata.release.pre-release-replacements]]
exactly = 1
file = "README.md"
replace = "clap-cargo = \"{{version}}\""
search = "clap-cargo = \"[0-9]+.[0-9]+.[0-9]+\""