mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
18 lines
862 B
TOML
18 lines
862 B
TOML
# NOTE: Other global Clippy config (severity overrides) is in top-level Cargo.toml.
|
|
|
|
disallowed-types = [
|
|
{ path = "std::collections::HashMap", reason = "use hashbrown::HashMap instead" },
|
|
{ path = "std::collections::HashSet", reason = "use hashbrown::HashSet instead" },
|
|
]
|
|
|
|
# The default large-error-threshold is 128. We have a bunch of complex error
|
|
# types that are slightly larger than that.
|
|
large-error-threshold = 192
|
|
|
|
# This relatively small stack frame limit is set to avoid problems in several deeply
|
|
# recursive functions in naga. If your function has a genuine need for a larger stack frame,
|
|
# and is not at risk of deep recursion based on shader structure, it is okay to waive the
|
|
# associated `clippy::large_stack_frames` lint.
|
|
# TODO(https://github.com/gfx-rs/wgpu/issues/9456): Consider reducing this further
|
|
stack-size-threshold = 40_960
|