Debian Codegraph @

Cargo.toml

raw symbols SCIP
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 = "2021"
14 rust-version = "1.86"
15 name = "clap-cargo"
16 version = "0.18.3"
17 build = false
18 include = [
19 "build.rs",
20 "src/**/*",
21 "Cargo.toml",
22 "Cargo.lock",
23 "LICENSE*",
24 "README.md",
25 "examples/**/*",
26 ]
27 autolib = false
28 autobins = false
29 autoexamples = false
30 autotests = false
31 autobenches = false
32 description = "Re-usable CLI flags for `cargo` plugins"
33 readme = "README.md"
34 keywords = ["cargo"]
35 categories = ["development-tools::cargo-plugins"]
36 license = "MIT OR Apache-2.0"
37 repository = "https://github.com/crate-ci/clap-cargo"
38
39 [package.metadata.docs.rs]
40 all-features = true
41 rustdoc-args = ["--generate-link-to-definition"]
42
43 [[package.metadata.release.pre-release-replacements]]
44 file = "CHANGELOG.md"
45 search = "Unreleased"
46 replace = "{{version}}"
47 min = 1
48
49 [[package.metadata.release.pre-release-replacements]]
50 file = "CHANGELOG.md"
51 search = '\.\.\.HEAD'
52 replace = "...{{tag_name}}"
53 exactly = 1
54
55 [[package.metadata.release.pre-release-replacements]]
56 file = "CHANGELOG.md"
57 search = "ReleaseDate"
58 replace = "{{date}}"
59 min = 1
60
61 [[package.metadata.release.pre-release-replacements]]
62 file = "CHANGELOG.md"
63 search = "<!-- next-header -->"
64 replace = """
65 <!-- next-header -->
66 ## [Unreleased] - ReleaseDate
67 """
68 exactly = 1
69
70 [[package.metadata.release.pre-release-replacements]]
71 file = "CHANGELOG.md"
72 search = "<!-- next-url -->"
73 replace = """
74 <!-- next-url -->
75 [Unreleased]: https://github.com/crate-ci/clap-cargo/compare/{{tag_name}}...HEAD"""
76 exactly = 1
77
78 [features]
79 cargo_metadata = [
80 "dep:cargo_metadata",
81 "dep:serde",
82 "dep:serde_json",
83 ]
84 clap = ["dep:clap"]
85 default = ["clap"]
86 testing_colors = []
87
88 [lib]
89 name = "clap_cargo"
90 path = "src/lib.rs"
91
92 [[example]]
93 name = "flags"
94 path = "examples/flags.rs"
95 required-features = ["clap"]
96
97 [dependencies.anstyle]
98 version = "1.0.13"
99
100 [dependencies.cargo_metadata]
101 version = "0.23"
102 optional = true
103
104 [dependencies.clap]
105 version = "4.5.48"
106 features = [
107 "std",
108 "derive",
109 ]
110 optional = true
111 default-features = false
112
113 [dev-dependencies.clap]
114 version = "4.5.48"
115
116 [target."cfg(any())".dependencies.serde]
117 version = "1.0.210"
118 optional = true
119
120 [target."cfg(any())".dependencies.serde_json]
121 version = "1.0.133"
122 optional = true
123
124 [lints.clippy]
125 bool_assert_comparison = "allow"
126 branches_sharing_code = "allow"
127 checked_conversions = "warn"
128 collapsible_else_if = "allow"
129 create_dir = "warn"
130 dbg_macro = "warn"
131 debug_assert_with_mut_call = "warn"
132 doc_markdown = "warn"
133 empty_enum = "warn"
134 enum_glob_use = "warn"
135 expl_impl_clone_on_copy = "warn"
136 explicit_deref_methods = "warn"
137 explicit_into_iter_loop = "warn"
138 fallible_impl_from = "warn"
139 filter_map_next = "warn"
140 flat_map_option = "warn"
141 float_cmp_const = "warn"
142 fn_params_excessive_bools = "warn"
143 from_iter_instead_of_collect = "warn"
144 if_same_then_else = "allow"
145 implicit_clone = "warn"
146 imprecise_flops = "warn"
147 inconsistent_struct_constructor = "warn"
148 inefficient_to_string = "warn"
149 infinite_loop = "warn"
150 invalid_upcast_comparisons = "warn"
151 large_digit_groups = "warn"
152 large_stack_arrays = "warn"
153 large_types_passed_by_value = "warn"
154 let_and_return = "allow"
155 linkedlist = "warn"
156 lossy_float_literal = "warn"
157 macro_use_imports = "warn"
158 mem_forget = "warn"
159 mutex_integer = "warn"
160 needless_continue = "allow"
161 needless_for_each = "warn"
162 negative_feature_names = "warn"
163 path_buf_push_overwrite = "warn"
164 ptr_as_ptr = "warn"
165 rc_mutex = "warn"
166 redundant_feature_names = "warn"
167 ref_option_ref = "warn"
168 rest_pat_in_fully_bound_structs = "warn"
169 result_large_err = "allow"
170 same_functions_in_if_condition = "warn"
171 self_named_module_files = "warn"
172 semicolon_if_nothing_returned = "warn"
173 str_to_string = "warn"
174 string_add = "warn"
175 string_add_assign = "warn"
176 string_lit_as_bytes = "warn"
177 string_to_string = "warn"
178 todo = "warn"
179 trait_duplication_in_bounds = "warn"
180 uninlined_format_args = "warn"
181 verbose_file_reads = "warn"
182 wildcard_imports = "warn"
183 zero_sized_map_values = "warn"
184
185 [lints.rust]
186 unnameable_types = "warn"
187 unreachable_pub = "warn"
188 unsafe_op_in_unsafe_fn = "warn"
189 unused_lifetimes = "warn"
190 unused_macro_rules = "warn"
191 unused_qualifications = "warn"
192
193 [lints.rust.rust_2018_idioms]
194 level = "warn"
195 priority = -1
196
197 [profile.dev]
198 panic = "abort"
199
200 [profile.release]
201 lto = true
202 codegen-units = 1
203 panic = "abort"