mirror of https://github.com/linebender/xilem
25 lines
1.2 KiB
TOML
25 lines
1.2 KiB
TOML
# LINEBENDER LINT SET - .clippy.toml - v1
|
|
# See https://linebender.org/wiki/canonical-lints/
|
|
|
|
# The default Clippy value is capped at 8 bytes, which was chosen to improve performance on 32-bit.
|
|
# Given that we are building for the future and even low-end mobile phones have 64-bit CPUs,
|
|
# it makes sense to optimize for 64-bit and accept the performance hits on 32-bit.
|
|
# 16 bytes is the number of bytes that fits into two 64-bit CPU registers.
|
|
trivial-copy-size-limit = 16
|
|
|
|
# END LINEBENDER LINT SET
|
|
|
|
# Don't warn about these identifiers when using clippy::doc_markdown.
|
|
# (`".."` means the default configuration built-in to Clippy)
|
|
doc-valid-idents = ["FizzBuzz", "MathML", "RustNL", ".."]
|
|
|
|
# The default clippy value for this is 250, which causes warnings for rather simple types
|
|
# like Box<dyn Fn(&mut Env, &T)>, which seems overly strict. The new value of 400 is
|
|
# a simple guess. It might be worth lowering this, or using the default, in the future.
|
|
type-complexity-threshold = 400
|
|
|
|
disallowed-types = [
|
|
# For Placehero
|
|
{ path = "megalodon::mastodon::Mastodon", reason = "In case of future changes, we want to keep all our assumptions about using Mastodon centralised", replacement = "placehero::Mastodon" },
|
|
]
|