rust: turn on more linting

This commit is contained in:
Will Lillis 2025-10-12 03:58:31 -04:00 committed by Riley Bruins
parent 2b31855207
commit 434734c73d
2 changed files with 29 additions and 0 deletions

View file

@ -13,6 +13,32 @@ members = [
"xtask",
]
[lints]
workspace = true
[workspace.lints.rust]
warnings = "deny"
[workspace.lints.clippy]
dbg_macro = "deny"
todo = "deny"
pedantic = { level = "deny", priority = -1 }
nursery = { level = "deny", priority = -1 }
cargo = { level = "deny", priority = -1 }
cargo_common_metadata = "allow"
cast_precision_loss = "allow"
cast-possible-truncation = "allow"
cast_lossless = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
items_after_statements = "allow"
multiple_crate_versions = "allow"
option_if_let_else = "allow"
redundant_closure_for_method_calls = "allow"
too_many_lines = "allow"
significant_drop_tightening = "allow"
[lib]
path = "src/lib.rs"

View file

@ -3,6 +3,9 @@ name = "xtask"
version = "0.1.0"
edition = "2024"
[lints]
workspace = true
[dependencies]
clap = { version = "4.5.37", features = ["derive"] }
schemars = "0.8.22"