diff --git a/Cargo.toml b/Cargo.toml index 44b91e5b9..a29fe2b7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,12 +16,12 @@ repository = "https://github.com/Chia-Network/chia_rs" members = ["crates/*", "crates/*/fuzz", "wasm", "wheel"] [workspace.lints.rust] +rust_2018_idioms = { level = "deny", priority = -1 } +rust_2021_compatibility = { level = "deny", priority = -1 } +future_incompatible = { level = "deny", priority = -1 } +nonstandard_style = { level = "deny", priority = -1 } unsafe_code = "deny" -rust_2018_idioms = "deny" -rust_2021_compatibility = "deny" -future_incompatible = "deny" non_ascii_idents = "deny" -nonstandard_style = "deny" unused_imports = "deny" unused_import_braces = "deny" unused_qualifications = "deny" @@ -34,7 +34,7 @@ trivial_casts = "deny" trivial_numeric_casts = "deny" [workspace.lints.clippy] -all = "deny" +all = { level = "deny", priority = -1 } pedantic = { level = "warn", priority = -1 } must_use_candidate = "allow" missing_errors_doc = "allow" @@ -47,6 +47,7 @@ cast_possible_truncation = "allow" cast_sign_loss = "allow" cast_precision_loss = "allow" cast_possible_wrap = "allow" +cast_lossless = "allow" similar_names = "allow" [dependencies]