@@ -145,102 +145,103 @@ wgpu = { version = "22.1.0", default-features = false, features = ["wgsl"] }
145
145
yield-progress = { version = " 0.1.6" , default-features = false }
146
146
147
147
# Note: Lints are also necessarily redefined in the workspaces other than this one.
148
- [workspace .lints ]
148
+ [workspace .lints . rust ]
149
149
# rustc lints that are set to deny
150
- rust. rust_2018_idioms = { level = " deny" , priority = -1 }
151
- rust. unsafe_op_in_unsafe_fn = " deny"
150
+ rust_2018_idioms = { level = " deny" , priority = -1 }
151
+ unsafe_op_in_unsafe_fn = " deny"
152
152
153
153
# rustc lints that are set to warn
154
- rust. explicit_outlives_requirements = " warn"
155
- rust. missing_debug_implementations = " warn"
156
- rust. missing_docs = " warn"
157
- rust. noop_method_call = " warn"
158
- rust. redundant_lifetimes = " warn"
159
- rust. trivial_casts = " warn"
160
- rust. trivial_numeric_casts = " warn"
161
- rust. unnameable_types = " warn"
162
- rust. unused_extern_crates = " warn"
163
- rust. unused_lifetimes = " warn"
164
- rust. unused_qualifications = " warn"
154
+ explicit_outlives_requirements = " warn"
155
+ missing_debug_implementations = " warn"
156
+ missing_docs = " warn"
157
+ noop_method_call = " warn"
158
+ redundant_lifetimes = " warn"
159
+ trivial_casts = " warn"
160
+ trivial_numeric_casts = " warn"
161
+ unnameable_types = " warn"
162
+ unused_extern_crates = " warn"
163
+ unused_lifetimes = " warn"
164
+ unused_qualifications = " warn"
165
165
# This lint has false positives on dev-dependencies. Occasionally turn it on to audit non-dev deps.
166
- # rust. unused_crate_dependencies = "warn"
166
+ # unused_crate_dependencies = "warn"
167
167
168
+ [workspace .lints .clippy ]
168
169
# clippy default lints that are set to allow
169
- clippy. collapsible_else_if = " allow"
170
- clippy. collapsible_if = " allow"
171
- clippy. match_ref_pats = " allow"
172
- clippy. needless_update = " allow"
173
- clippy. single_match = " allow"
170
+ collapsible_else_if = " allow"
171
+ collapsible_if = " allow"
172
+ match_ref_pats = " allow"
173
+ needless_update = " allow"
174
+ single_match = " allow"
174
175
175
176
# clippy::pedantic lints that are set to allow
176
- clippy. cast_possible_truncation = " allow" # we would need an alternative for intentional from-float saturation and to-float precision loss
177
- clippy. cast_precision_loss = " allow" # consider enabling
178
- clippy. cast_sign_loss = " allow" # consider enabling
179
- clippy. default_trait_access = " allow"
180
- clippy. empty_enum = " allow"
181
- clippy. enum_glob_use = " allow"
182
- clippy. explicit_iter_loop = " allow" # I prefer the opposite style
183
- clippy. float_cmp = " allow"
184
- clippy. from_iter_instead_of_collect = " allow" # <https://github.com/rust-lang/rust-clippy/issues/7213>
185
- clippy. if_not_else = " allow"
186
- clippy. inline_always = " allow"
187
- clippy. items_after_statements = " allow" # we use this sparingly
188
- clippy. manual_assert = " allow"
189
- clippy. many_single_char_names = " allow"
190
- clippy. match_bool = " allow"
191
- clippy. match_same_arms = " allow"
192
- clippy. missing_errors_doc = " allow" # consider enabling
193
- clippy. missing_panics_doc = " allow" # consider enabling
194
- clippy. module_name_repetitions = " allow" # would use except for <https://github.com/rust-lang/rust-clippy/issues/8524>
195
- clippy. must_use_candidate = " allow" # consider enabling
196
- clippy. no_effect_underscore_binding = " allow"
197
- clippy. range_plus_one = " allow" # https://github.com/rust-lang/rust-clippy/issues/3307
198
- clippy. redundant_closure_for_method_calls = " allow" # consider enabling
199
- clippy. redundant_else = " allow"
200
- clippy. semicolon_if_nothing_returned = " allow"
201
- clippy. similar_names = " allow"
202
- clippy. single_match_else = " allow"
203
- clippy. struct_excessive_bools = " allow"
204
- clippy. too_many_lines = " allow"
205
- clippy. unreadable_literal = " allow"
206
- clippy. wildcard_imports = " allow" # we use this sparingly
177
+ cast_possible_truncation = " allow" # we would need an alternative for intentional from-float saturation and to-float precision loss
178
+ cast_precision_loss = " allow" # consider enabling
179
+ cast_sign_loss = " allow" # consider enabling
180
+ default_trait_access = " allow"
181
+ empty_enum = " allow"
182
+ enum_glob_use = " allow"
183
+ explicit_iter_loop = " allow" # I prefer the opposite style
184
+ float_cmp = " allow"
185
+ from_iter_instead_of_collect = " allow" # <https://github.com/rust-lang/rust-clippy/issues/7213>
186
+ if_not_else = " allow"
187
+ inline_always = " allow"
188
+ items_after_statements = " allow" # we use this sparingly
189
+ manual_assert = " allow"
190
+ many_single_char_names = " allow"
191
+ match_bool = " allow"
192
+ match_same_arms = " allow"
193
+ missing_errors_doc = " allow" # consider enabling
194
+ missing_panics_doc = " allow" # consider enabling
195
+ module_name_repetitions = " allow" # would use except for <https://github.com/rust-lang/rust-clippy/issues/8524>
196
+ must_use_candidate = " allow" # consider enabling
197
+ no_effect_underscore_binding = " allow"
198
+ range_plus_one = " allow" # https://github.com/rust-lang/rust-clippy/issues/3307
199
+ redundant_closure_for_method_calls = " allow" # consider enabling
200
+ redundant_else = " allow"
201
+ semicolon_if_nothing_returned = " allow"
202
+ similar_names = " allow"
203
+ single_match_else = " allow"
204
+ struct_excessive_bools = " allow"
205
+ too_many_lines = " allow"
206
+ unreadable_literal = " allow"
207
+ wildcard_imports = " allow" # we use this sparingly
207
208
208
209
# clippy::restriction lints that are set to allow (to note why we aren't using them)
209
- clippy. shadow_unrelated = " allow" # would use except for <https://github.com/rust-lang/rust-clippy/issues/10780>
210
+ shadow_unrelated = " allow" # would use except for <https://github.com/rust-lang/rust-clippy/issues/10780>
210
211
211
212
# clippy lints that are set to deny
212
- clippy. should_panic_without_expect = " deny"
213
+ should_panic_without_expect = " deny"
213
214
214
215
# clippy lints that are set to warn
215
- clippy. pedantic = { level = " warn" , priority = -1 }
216
- clippy. assigning_clones = " warn"
217
- clippy. cast_lossless = " warn"
218
- clippy. cast_possible_wrap = " warn"
219
- clippy. doc_markdown = " warn"
220
- clippy. exhaustive_enums = " warn"
221
- clippy. exhaustive_structs = " warn"
222
- clippy. into_iter_without_iter = " warn"
223
- clippy. inconsistent_struct_constructor = " warn"
224
- clippy. infinite_loop = " warn"
225
- clippy. iter_without_into_iter = " warn"
226
- clippy. large_futures = " warn"
227
- clippy. large_stack_frames = " warn"
228
- clippy. manual_let_else = " warn"
229
- clippy. map_unwrap_or = " warn"
230
- clippy. missing_fields_in_debug = " warn"
231
- clippy. modulo_arithmetic = " warn"
232
- clippy. needless_pass_by_value = " warn"
233
- clippy. option_as_ref_cloned = " warn"
234
- clippy. pub_without_shorthand = " warn"
235
- clippy. return_self_not_must_use = " warn"
236
- clippy. suboptimal_flops = " warn"
237
- clippy. trivially_copy_pass_by_ref = " warn"
238
- clippy. undocumented_unsafe_blocks = " warn"
239
- clippy. uninlined_format_args = " warn"
240
- clippy. unnecessary_self_imports = " warn"
241
- clippy. unnecessary_wraps = " warn"
242
- clippy. unused_async = " warn"
243
- clippy. wrong_self_convention = " warn"
216
+ pedantic = { level = " warn" , priority = -1 }
217
+ assigning_clones = " warn"
218
+ cast_lossless = " warn"
219
+ cast_possible_wrap = " warn"
220
+ doc_markdown = " warn"
221
+ exhaustive_enums = " warn"
222
+ exhaustive_structs = " warn"
223
+ into_iter_without_iter = " warn"
224
+ inconsistent_struct_constructor = " warn"
225
+ infinite_loop = " warn"
226
+ iter_without_into_iter = " warn"
227
+ large_futures = " warn"
228
+ large_stack_frames = " warn"
229
+ manual_let_else = " warn"
230
+ map_unwrap_or = " warn"
231
+ missing_fields_in_debug = " warn"
232
+ modulo_arithmetic = " warn"
233
+ needless_pass_by_value = " warn"
234
+ option_as_ref_cloned = " warn"
235
+ pub_without_shorthand = " warn"
236
+ return_self_not_must_use = " warn"
237
+ suboptimal_flops = " warn"
238
+ trivially_copy_pass_by_ref = " warn"
239
+ undocumented_unsafe_blocks = " warn"
240
+ uninlined_format_args = " warn"
241
+ unnecessary_self_imports = " warn"
242
+ unnecessary_wraps = " warn"
243
+ unused_async = " warn"
244
+ wrong_self_convention = " warn"
244
245
245
246
[profile .dev ]
246
247
# Enable some optimization to improve interactive performance in manual testing/experimenting.
0 commit comments