summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml11
-rw-r--r--test/Cargo.toml10
2 files changed, 19 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c79b3969ff..d517588917 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -45,8 +45,17 @@ members = [
# Security
non_ascii_idents = "forbid"
-# Modern, easy to read style and opinionated best practices
+# Deny old style Rust
rust_2018_idioms = "deny"
+macro_use_extern_crate = "deny"
+absolute_paths_not_starting_with_crate = "deny"
+
+# Easy to read style and opinionated best practices
+explicit_outlives_requirements = "warn"
+missing_abi = "deny"
+unused_lifetimes = "warn"
+unused_macro_rules = "warn"
+
[workspace.lints.clippy]
unused_async = "deny"
diff --git a/test/Cargo.toml b/test/Cargo.toml
index 35c87980e9..d8763a3cc4 100644
--- a/test/Cargo.toml
+++ b/test/Cargo.toml
@@ -20,8 +20,16 @@ members = [
# Security
non_ascii_idents = "forbid"
-# Modern, easy to read style and opinionated best practices
+# Deny old style Rust
rust_2018_idioms = "deny"
+macro_use_extern_crate = "deny"
+absolute_paths_not_starting_with_crate = "deny"
+
+# Easy to read style and opinionated best practices
+explicit_outlives_requirements = "warn"
+missing_abi = "deny"
+unused_lifetimes = "warn"
+unused_macro_rules = "warn"
[workspace.lints.clippy]
unused_async = "deny"