@@ -85,46 +85,64 @@ assets = [
85
85
86
86
[lints .rust ]
87
87
future_incompatible = { level = " warn" , priority = -2 }
88
+ keyword_idents = { level = " warn" , priority = -3 }
89
+ let_underscore = { level = " warn" , priority = -2 }
88
90
nonstandard_style = { level = " warn" , priority = -2 }
91
+ # refiing_impl_trait - Not needed for this project
89
92
rust_2018_compatibility = { level = " warn" , priority = -2 }
90
93
rust_2018_idioms = { level = " warn" , priority = -2 }
91
94
rust_2021_compatibility = { level = " warn" , priority = -2 }
95
+ rust_2024_compatibility = { level = " warn" , priority = -2 }
92
96
unused = { level = " warn" , priority = -2 }
93
97
94
98
unknown_lints = { level = " warn" , priority = -1 }
95
99
renamed_and_removed_lints = { level = " warn" , priority = -1 }
96
100
97
- absolute_paths_not_starting_with_crate = " warn"
101
+ # Allow certain configs in the check-cfg linting
102
+ unexpected_cfgs = { level = " warn" , check-cfg = [" cfg(tarpaulin_include)" ] }
103
+
104
+ # absolute_paths_not_starting_with_crate - group rust_2018_compatibility
105
+ # box-pointers - used in project, and is safe to do so
98
106
deprecated_in_future = " warn"
99
- dead_code = " warn"
100
- elided_lifetimes_in_paths = " warn"
101
- explicit_outlives_requirements = " warn"
107
+ # elided_lifetimes_in_paths - group: rust_2018_idioms
108
+ # explicit_outlives_requirements - group: rust_2018_idioms
102
109
ffi_unwind_calls = " warn"
103
- keyword_idents = " warn"
104
- let_underscore_drop = " warn"
110
+ # fuzzy_provenance_casts - unstable
111
+ # impl_trait_overcaptures - unstable
112
+ # keyword_idents_2018 - group: rust_2018_compatibility
113
+ # keyword_idents_2024 - group: rust_2024_compatibility
114
+ # let_underscore_drop - group: let_underscore
115
+ # lossy_provenance_casts - unstable
105
116
macro_use_extern_crate = " warn"
106
117
meta_variable_misuse = " warn"
107
118
missing_abi = " warn"
108
119
missing_copy_implementations = " warn"
109
120
missing_debug_implementations = " warn"
121
+ # missing_docs - not requiring docs in this project
122
+ # multiple_supertrait_upcastable - unstable
123
+ # must_not_suspend - unstable
110
124
non_ascii_idents = " warn"
111
- noop_method_call = " warn"
112
- pointer_structural_match = " warn"
113
- rust_2021_incompatible_closure_captures = " warn"
114
- rust_2021_incompatible_or_patterns = " warn"
115
- rust_2021_prefixes_incompatible_syntax = " warn"
116
- rust_2021_prelude_collisions = " warn"
125
+ # non_exhaustive_omitted_patterns - unstable
126
+ redundant_lifetimes = " warn"
127
+ # rust_2021_incompatible_closure_captures - group: rust_2021_compatibility
128
+ # rust_2021_incompatible_or_patterns - group: rust_2021_compatibility
129
+ # rust_2021_prefixes_incompatible_syntax - group: rust_2021_compatibility
130
+ # rust_2021_prelude_collisions - group: rust_2021_compatibility
131
+ # rust_2024_incompatible_pat - unstable
117
132
single_use_lifetimes = " warn"
118
133
trivial_casts = " warn"
119
134
trivial_numeric_casts = " warn"
135
+ unit-bindings = " warn"
136
+ unnameable_types = " warn"
120
137
unreachable_pub = " warn"
121
138
unsafe_code = " warn"
122
- unsafe_op_in_unsafe_fn = " warn"
139
+ # unsafe_op_in_unsafe_fn - group: rust_2024_compatibility
140
+ # unstable_features - deprecated
123
141
unused_crate_dependencies = " warn"
124
- unused_extern_crates = " warn "
142
+ # unused_extern_crates - group: unused, rust_2018_idioms
125
143
unused_import_braces = " warn"
126
144
unused_lifetimes = " warn"
127
- unused_macro_rules = " warn "
145
+ # unused_macro_rules - group: unused
128
146
unused_qualifications = " warn"
129
147
unused_results = " warn"
130
148
variant_size_differences = " warn"
@@ -135,7 +153,9 @@ cargo = { level = "warn", priority = -2 }
135
153
pedantic = { level = " warn" , priority = -2 }
136
154
restriction = { level = " warn" , priority = -2 }
137
155
156
+ # Clippy restricts enabling restricted lints
138
157
blanket_clippy_restriction_lints = { level = " allow" , priority = 5 }
158
+
139
159
absolute_paths = " allow"
140
160
as_conversions = " allow"
141
161
arithmetic_side_effects = " allow"
@@ -146,6 +166,7 @@ expect_used = "allow"
146
166
float_arithmetic = " allow"
147
167
implicit_return = " allow"
148
168
indexing_slicing = " allow"
169
+ integer_division_remainder_used = " allow"
149
170
map_err_ignore = " allow"
150
171
min_ident_chars = " allow"
151
172
missing_docs_in_private_items = " allow"
0 commit comments