Debian Codegraph @

Cargo.toml

raw symbols ◀ ▶ SCIP
4 Debian patches touch this file
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]
13 edition = "2024"
14 rust-version = "1.85"
15 name = "clap_complete"
16 version = "4.6.8"
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 resolver = "2"
43
44 [package.metadata.docs.rs]
45 features = ["unstable-doc"]
46 rustdoc-args = ["--generate-link-to-definition"]
47
48 [[package.metadata.release.pre-release-replacements]]
49 file = "CHANGELOG.md"
50 search = "Unreleased"
51 replace = "{{version}}"
52 min = 1
53
54 [[package.metadata.release.pre-release-replacements]]
55 file = "CHANGELOG.md"
56 search = '\.\.\.HEAD'
57 replace = "...{{tag_name}}"
58 exactly = 1
59
60 [[package.metadata.release.pre-release-replacements]]
61 file = "CHANGELOG.md"
62 search = "ReleaseDate"
63 replace = "{{date}}"
64 min = 1
65
66 [[package.metadata.release.pre-release-replacements]]
67 file = "CHANGELOG.md"
68 search = "<!-- next-header -->"
69 replace = """
70 <!-- next-header -->
71 ## [Unreleased] - ReleaseDate
72 """
73 exactly = 1
74
75 [[package.metadata.release.pre-release-replacements]]
76 file = "CHANGELOG.md"
77 search = "<!-- next-url -->"
78 replace = """
79 <!-- next-url -->
80 [Unreleased]: https://github.com/clap-rs/clap/compare/{{tag_name}}...HEAD"""
81 exactly = 1
82
83 [[package.metadata.release.pre-release-replacements]]
84 file = "README.md"
85 search = "github.com/clap-rs/clap/blob/[^/]+/"
86 replace = "github.com/clap-rs/clap/blob/{{tag_name}}/"
87 exactly = 4
88 prerelease = true
89
90 [features]
•91 #debug = ["clap/debug"]
92 default = []
93 unstable-doc = ["unstable-dynamic"]
94 unstable-dynamic = [
95 "dep:clap_lex",
96 "dep:shlex",
97 "dep:is_executable",
98 "clap/unstable-ext",
99 ]
100
101 [lib]
102 name = "clap_complete"
103 path = "src/lib.rs"
104 bench = false
105
106 [[example]]
107 name = "completion"
108 path = "examples/completion.rs"
109
110 [[example]]
111 name = "completion-derive"
112 path = "examples/completion-derive.rs"
113
114 [[example]]
115 name = "dynamic"
116 path = "examples/dynamic.rs"
117 required-features = ["unstable-dynamic"]
118
119 [[example]]
120 name = "exhaustive"
121 path = "examples/exhaustive.rs"
122
123 [dependencies.clap]
•124 version = "4.6"
125 features = ["std"]
126 default-features = false
127
128 [dependencies.clap_lex]
129 version = "1.0.0"
130 optional = true
131
132
133 [dependencies.is_executable]
134 version = "1.0.5"
135 optional = true
136
137 [dependencies.shlex]
•138 version = ">=1,<3"
139 optional = true
140
141 [dev-dependencies.automod]
142 version = "1.0.16"
143
144 [dev-dependencies.clap]
145 version = "4.5.20"
146 features = [
147 "std",
148 "derive",
149 "help",
150 ]
151 default-features = false
152
153 [dev-dependencies.snapbox]
•154 version = ">= 0.6.21, < 2"
155 features = [
156 "diff",
157 "dir",
158 "examples",
159 ]
160
161 [dev-dependencies.trycmd]
•162 version = ">= 0.15.10, < 2"
163 features = [
164 "color-auto",
165 "diff",
166 "examples",
167 ]
168 default-features = false
169
170 [lints.clippy]
171 assigning_clones = "allow"
172 blocks_in_conditions = "allow"
173 bool_assert_comparison = "allow"
174 branches_sharing_code = "allow"
175 checked_conversions = "warn"
176 collapsible_else_if = "allow"
177 create_dir = "warn"
178 dbg_macro = "warn"
179 debug_assert_with_mut_call = "warn"
180 doc_markdown = "warn"
181 empty_enums = "warn"
182 enum_glob_use = "warn"
183 expl_impl_clone_on_copy = "warn"
184 explicit_deref_methods = "warn"
185 explicit_into_iter_loop = "warn"
186 fallible_impl_from = "warn"
187 filter_map_next = "warn"
188 flat_map_option = "warn"
189 float_cmp_const = "warn"
190 fn_params_excessive_bools = "warn"
191 from_iter_instead_of_collect = "warn"
192 if_same_then_else = "allow"
193 implicit_clone = "warn"
194 imprecise_flops = "warn"
195 inconsistent_struct_constructor = "warn"
196 inefficient_to_string = "warn"
197 infinite_loop = "warn"
198 invalid_upcast_comparisons = "warn"
199 large_digit_groups = "warn"
200 large_stack_arrays = "warn"
201 large_types_passed_by_value = "warn"
202 let_and_return = "allow"
203 linkedlist = "warn"
204 lossy_float_literal = "warn"
205 macro_use_imports = "warn"
206 mem_forget = "warn"
207 multiple_bound_locations = "allow"
208 mutex_integer = "warn"
209 needless_continue = "allow"
210 needless_for_each = "warn"
211 negative_feature_names = "warn"
212 path_buf_push_overwrite = "warn"
213 ptr_as_ptr = "warn"
214 rc_mutex = "warn"
215 redundant_feature_names = "warn"
216 ref_option_ref = "warn"
217 rest_pat_in_fully_bound_structs = "warn"
218 result_large_err = "allow"
219 same_functions_in_if_condition = "warn"
220 self_named_module_files = "warn"
221 semicolon_if_nothing_returned = "warn"
222 str_to_string = "warn"
223 string_add = "warn"
224 string_add_assign = "warn"
225 string_lit_as_bytes = "warn"
226 todo = "warn"
227 trait_duplication_in_bounds = "warn"
228 uninlined_format_args = "warn"
229 verbose_file_reads = "warn"
230 zero_sized_map_values = "warn"
231
232 [lints.rust]
233 unnameable_types = "allow"
234 unreachable_pub = "warn"
235 unsafe_op_in_unsafe_fn = "warn"
236 unused_lifetimes = "warn"
237 unused_macro_rules = "warn"
238 unused_qualifications = "warn"
239
240 [lints.rust.rust_2018_idioms]
241 level = "warn"
242 priority = -1