| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.74" |
| 15 |
name = "clap_complete" |
| 16 |
version = "4.5.65" |
| 17 |
build = false |
| 18 |
include = [ |
| 19 |
"build.rs", |
| 20 |
"src/**/*", |
| 21 |
"Cargo.toml", |
| 22 |
"LICENSE*", |
| 23 |
"README.md", |
| 24 |
"examples/**/*", |
| 25 |
] |
| 26 |
autolib = false |
| 27 |
autobins = false |
| 28 |
autoexamples = false |
| 29 |
autotests = false |
| 30 |
autobenches = false |
| 31 |
description = "Generate shell completion scripts for your clap::Command" |
| 32 |
readme = "README.md" |
| 33 |
keywords = [ |
| 34 |
"clap", |
| 35 |
"cli", |
| 36 |
"completion", |
| 37 |
"bash", |
| 38 |
] |
| 39 |
categories = ["command-line-interface"] |
| 40 |
license = "MIT OR Apache-2.0" |
| 41 |
repository = "https://github.com/clap-rs/clap" |
| 42 |
|
| 43 |
[package.metadata.docs.rs] |
| 44 |
features = ["unstable-doc"] |
| 45 |
rustdoc-args = ["--generate-link-to-definition"] |
| 46 |
|
| 47 |
[[package.metadata.release.pre-release-replacements]] |
| 48 |
file = "CHANGELOG.md" |
| 49 |
search = "Unreleased" |
| 50 |
replace = "{{version}}" |
| 51 |
min = 1 |
| 52 |
|
| 53 |
[[package.metadata.release.pre-release-replacements]] |
| 54 |
file = "CHANGELOG.md" |
| 55 |
search = '\.\.\.HEAD' |
| 56 |
replace = "...{{tag_name}}" |
| 57 |
exactly = 1 |
| 58 |
|
| 59 |
[[package.metadata.release.pre-release-replacements]] |
| 60 |
file = "CHANGELOG.md" |
| 61 |
search = "ReleaseDate" |
| 62 |
replace = "{{date}}" |
| 63 |
min = 1 |
| 64 |
|
| 65 |
[[package.metadata.release.pre-release-replacements]] |
| 66 |
file = "CHANGELOG.md" |
| 67 |
search = "<!-- next-header -->" |
| 68 |
replace = """ |
| 69 |
<!-- next-header --> |
| 70 |
## [Unreleased] - ReleaseDate |
| 71 |
""" |
| 72 |
exactly = 1 |
| 73 |
|
| 74 |
[[package.metadata.release.pre-release-replacements]] |
| 75 |
file = "CHANGELOG.md" |
| 76 |
search = "<!-- next-url -->" |
| 77 |
replace = """ |
| 78 |
<!-- next-url --> |
| 79 |
[Unreleased]: https://github.com/clap-rs/clap/compare/{{tag_name}}...HEAD""" |
| 80 |
exactly = 1 |
| 81 |
|
| 82 |
[[package.metadata.release.pre-release-replacements]] |
| 83 |
file = "README.md" |
| 84 |
search = "github.com/clap-rs/clap/blob/[^/]+/" |
| 85 |
replace = "github.com/clap-rs/clap/blob/{{tag_name}}/" |
| 86 |
exactly = 4 |
| 87 |
prerelease = true |
| 88 |
|
| 89 |
[features] |
| 90 |
debug = ["clap/debug"] |
| 91 |
default = [] |
| 92 |
unstable-doc = ["unstable-dynamic"] |
| 93 |
unstable-dynamic = [ |
| 94 |
"dep:clap_lex", |
| 95 |
"dep:shlex", |
| 96 |
"dep:is_executable", |
| 97 |
"clap/unstable-ext", |
| 98 |
] |
| 99 |
unstable-shell-tests = [ |
| 100 |
"dep:completest", |
| 101 |
"dep:completest-pty", |
| 102 |
] |
| 103 |
|
| 104 |
[lib] |
| 105 |
name = "clap_complete" |
| 106 |
path = "src/lib.rs" |
| 107 |
bench = false |
| 108 |
|
| 109 |
[[example]] |
| 110 |
name = "completion" |
| 111 |
path = "examples/completion.rs" |
| 112 |
|
| 113 |
[[example]] |
| 114 |
name = "completion-derive" |
| 115 |
path = "examples/completion-derive.rs" |
| 116 |
|
| 117 |
[[example]] |
| 118 |
name = "dynamic" |
| 119 |
path = "examples/dynamic.rs" |
| 120 |
required-features = ["unstable-dynamic"] |
| 121 |
|
| 122 |
[[example]] |
| 123 |
name = "exhaustive" |
| 124 |
path = "examples/exhaustive.rs" |
| 125 |
|
| 126 |
[dependencies.clap] |
| 127 |
version = "4.5.20" |
| 128 |
features = ["std"] |
| 129 |
default-features = false |
| 130 |
|
| 131 |
[dependencies.clap_lex] |
| 132 |
version = "0.7.0" |
| 133 |
optional = true |
| 134 |
|
| 135 |
[dependencies.completest] |
| 136 |
version = "0.4.2" |
| 137 |
optional = true |
| 138 |
|
| 139 |
[dependencies.completest-pty] |
| 140 |
version = "0.5.5" |
| 141 |
optional = true |
| 142 |
|
| 143 |
[dependencies.is_executable] |
| 144 |
version = "1.0.1" |
| 145 |
optional = true |
| 146 |
|
| 147 |
[dependencies.shlex] |
| 148 |
version = "1.3.0" |
| 149 |
optional = true |
| 150 |
|
| 151 |
[dev-dependencies.automod] |
| 152 |
version = "1.0.14" |
| 153 |
|
| 154 |
[dev-dependencies.clap] |
| 155 |
version = "4.5.20" |
| 156 |
features = [ |
| 157 |
"std", |
| 158 |
"derive", |
| 159 |
"help", |
| 160 |
] |
| 161 |
default-features = false |
| 162 |
|
| 163 |
[dev-dependencies.snapbox] |
| 164 |
version = "0.6.0" |
| 165 |
features = [ |
| 166 |
"diff", |
| 167 |
"dir", |
| 168 |
"examples", |
| 169 |
] |
| 170 |
|
| 171 |
[dev-dependencies.trycmd] |
| 172 |
version = "0.15.1" |
| 173 |
features = [ |
| 174 |
"color-auto", |
| 175 |
"diff", |
| 176 |
"examples", |
| 177 |
] |
| 178 |
default-features = false |
| 179 |
|
| 180 |
[lints.clippy] |
| 181 |
assigning_clones = "allow" |
| 182 |
blocks_in_conditions = "allow" |
| 183 |
bool_assert_comparison = "allow" |
| 184 |
branches_sharing_code = "allow" |
| 185 |
checked_conversions = "warn" |
| 186 |
collapsible_else_if = "allow" |
| 187 |
create_dir = "warn" |
| 188 |
dbg_macro = "warn" |
| 189 |
debug_assert_with_mut_call = "warn" |
| 190 |
doc_markdown = "warn" |
| 191 |
empty_enum = "warn" |
| 192 |
enum_glob_use = "warn" |
| 193 |
expl_impl_clone_on_copy = "warn" |
| 194 |
explicit_deref_methods = "warn" |
| 195 |
explicit_into_iter_loop = "warn" |
| 196 |
fallible_impl_from = "warn" |
| 197 |
filter_map_next = "warn" |
| 198 |
flat_map_option = "warn" |
| 199 |
float_cmp_const = "warn" |
| 200 |
fn_params_excessive_bools = "warn" |
| 201 |
from_iter_instead_of_collect = "warn" |
| 202 |
if_same_then_else = "allow" |
| 203 |
implicit_clone = "warn" |
| 204 |
imprecise_flops = "warn" |
| 205 |
inconsistent_struct_constructor = "warn" |
| 206 |
inefficient_to_string = "warn" |
| 207 |
infinite_loop = "warn" |
| 208 |
invalid_upcast_comparisons = "warn" |
| 209 |
large_digit_groups = "warn" |
| 210 |
large_stack_arrays = "warn" |
| 211 |
large_types_passed_by_value = "warn" |
| 212 |
let_and_return = "allow" |
| 213 |
linkedlist = "warn" |
| 214 |
lossy_float_literal = "warn" |
| 215 |
macro_use_imports = "warn" |
| 216 |
mem_forget = "warn" |
| 217 |
multiple_bound_locations = "allow" |
| 218 |
mutex_integer = "warn" |
| 219 |
needless_continue = "allow" |
| 220 |
needless_for_each = "warn" |
| 221 |
negative_feature_names = "warn" |
| 222 |
path_buf_push_overwrite = "warn" |
| 223 |
ptr_as_ptr = "warn" |
| 224 |
rc_mutex = "warn" |
| 225 |
redundant_feature_names = "warn" |
| 226 |
ref_option_ref = "warn" |
| 227 |
rest_pat_in_fully_bound_structs = "warn" |
| 228 |
result_large_err = "allow" |
| 229 |
same_functions_in_if_condition = "warn" |
| 230 |
self_named_module_files = "warn" |
| 231 |
semicolon_if_nothing_returned = "warn" |
| 232 |
string_add_assign = "warn" |
| 233 |
string_lit_as_bytes = "warn" |
| 234 |
todo = "warn" |
| 235 |
trait_duplication_in_bounds = "warn" |
| 236 |
uninlined_format_args = "warn" |
| 237 |
verbose_file_reads = "warn" |
| 238 |
zero_sized_map_values = "warn" |
| 239 |
|
| 240 |
[lints.rust] |
| 241 |
unnameable_types = "allow" |
| 242 |
unreachable_pub = "warn" |
| 243 |
unsafe_op_in_unsafe_fn = "warn" |
| 244 |
unused_lifetimes = "warn" |
| 245 |
unused_macro_rules = "warn" |
| 246 |
unused_qualifications = "warn" |
| 247 |
|
| 248 |
[lints.rust.rust_2018_idioms] |
| 249 |
level = "warn" |
| 250 |
priority = -1 |