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