Debian Codegraph @

Cargo.toml.orig

raw
1 [workspace]
2 resolver = "2"
3
4 [workspace.package]
5 repository = "https://github.com/crate-ci/clap-cargo"
6 license = "MIT OR Apache-2.0"
7 edition = "2021"
8 rust-version = "1.86" # MSRV
9 include = [
10 "build.rs",
11 "src/**/*",
12 "Cargo.toml",
13 "Cargo.lock",
14 "LICENSE*",
15 "README.md",
16 "examples/**/*"
17 ]
18
19 [workspace.lints.rust]
20 rust_2018_idioms = { level = "warn", priority = -1 }
21 unnameable_types = "warn"
22 unreachable_pub = "warn"
23 unsafe_op_in_unsafe_fn = "warn"
24 unused_lifetimes = "warn"
25 unused_macro_rules = "warn"
26 unused_qualifications = "warn"
27
28 [workspace.lints.clippy]
29 bool_assert_comparison = "allow"
30 branches_sharing_code = "allow"
31 checked_conversions = "warn"
32 collapsible_else_if = "allow"
33 create_dir = "warn"
34 dbg_macro = "warn"
35 debug_assert_with_mut_call = "warn"
36 doc_markdown = "warn"
37 empty_enum = "warn"
38 enum_glob_use = "warn"
39 expl_impl_clone_on_copy = "warn"
40 explicit_deref_methods = "warn"
41 explicit_into_iter_loop = "warn"
42 fallible_impl_from = "warn"
43 filter_map_next = "warn"
44 flat_map_option = "warn"
45 float_cmp_const = "warn"
46 fn_params_excessive_bools = "warn"
47 from_iter_instead_of_collect = "warn"
48 if_same_then_else = "allow"
49 implicit_clone = "warn"
50 imprecise_flops = "warn"
51 inconsistent_struct_constructor = "warn"
52 inefficient_to_string = "warn"
53 infinite_loop = "warn"
54 invalid_upcast_comparisons = "warn"
55 large_digit_groups = "warn"
56 large_stack_arrays = "warn"
57 large_types_passed_by_value = "warn"
58 let_and_return = "allow" # sometimes good to name what you are returning
59 linkedlist = "warn"
60 lossy_float_literal = "warn"
61 macro_use_imports = "warn"
62 mem_forget = "warn"
63 mutex_integer = "warn"
64 needless_continue = "allow"
65 needless_for_each = "warn"
66 negative_feature_names = "warn"
67 path_buf_push_overwrite = "warn"
68 ptr_as_ptr = "warn"
69 rc_mutex = "warn"
70 redundant_feature_names = "warn"
71 ref_option_ref = "warn"
72 rest_pat_in_fully_bound_structs = "warn"
73 result_large_err = "allow"
74 same_functions_in_if_condition = "warn"
75 self_named_module_files = "warn"
76 semicolon_if_nothing_returned = "warn"
77 str_to_string = "warn"
78 string_add = "warn"
79 string_add_assign = "warn"
80 string_lit_as_bytes = "warn"
81 string_to_string = "warn"
82 todo = "warn"
83 trait_duplication_in_bounds = "warn"
84 uninlined_format_args = "warn"
85 verbose_file_reads = "warn"
86 wildcard_imports = "warn"
87 zero_sized_map_values = "warn"
88
89 [profile.dev]
90 panic = "abort"
91
92 [profile.release]
93 panic = "abort"
94 codegen-units = 1
95 lto = true
96 # debug = "line-tables-only" # requires Cargo 1.71
97
98 [package]
99 name = "clap-cargo"
100 version = "0.18.3"
101 description = "Re-usable CLI flags for `cargo` plugins"
102 categories = ["development-tools::cargo-plugins"]
103 keywords = ["cargo"]
104 repository.workspace = true
105 license.workspace = true
106 edition.workspace = true
107 rust-version.workspace = true
108 include.workspace = true
109
110 [package.metadata.docs.rs]
111 all-features = true
112 rustdoc-args = ["--generate-link-to-definition"]
113
114 [package.metadata.release]
115 pre-release-replacements = [
116 {file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
117 {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
118 {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
119 {file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
120 {file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/crate-ci/clap-cargo/compare/{{tag_name}}...HEAD", exactly=1},
121 ]
122
123 [features]
124 default = ["clap"]
125 clap = ["dep:clap"]
126 cargo_metadata = ["dep:cargo_metadata", "dep:serde", "dep:serde_json"]
127 testing_colors = []
128
129 [dependencies]
130 anstyle = "1.0.13"
131 cargo_metadata = { version = "0.23", optional = true }
132 clap = { version = "4.5.48", default-features = false, features = ["std", "derive"], optional = true }
133
134 [dev-dependencies]
135 clap = "4.5.48"
136
137 [target.'cfg(any())'.dependencies]
138 serde = { version = "1.0.210", optional = true } # HACK: bad minimal dep in cargo_metadata
139 serde_json = { version = "1.0.133", optional = true } # HACK: bad minimal dep in cargo_metadata
140
141 [[example]]
142 name = "flags"
143 required-features = ["clap"]
144
145 [lints]
146 workspace = true