diff --git a/crates/interpreter/Cargo.toml b/crates/interpreter/Cargo.toml index e0dc8e4b28..1f1b1311fe 100644 --- a/crates/interpreter/Cargo.toml +++ b/crates/interpreter/Cargo.toml @@ -9,6 +9,12 @@ repository = "https://github.com/bluealloy/revm" version = "1.3.0" readme = "../../README.md" +[lints.rust] +unreachable_pub = "warn" +unused_crate_dependencies = "warn" +unused_must_use = "deny" +rust_2018_idioms = "deny" + [dependencies] revm-primitives = { path = "../primitives", version = "1.3.0", default-features = false } diff --git a/crates/interpreter/src/lib.rs b/crates/interpreter/src/lib.rs index 4637b402c9..94489249d2 100644 --- a/crates/interpreter/src/lib.rs +++ b/crates/interpreter/src/lib.rs @@ -1,8 +1,6 @@ //! # revm-interpreter //! //! REVM Interpreter. -#![warn(unreachable_pub, unused_crate_dependencies)] -#![deny(unused_must_use, rust_2018_idioms)] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] diff --git a/crates/precompile/Cargo.toml b/crates/precompile/Cargo.toml index ac5d16fc02..b836b4b378 100644 --- a/crates/precompile/Cargo.toml +++ b/crates/precompile/Cargo.toml @@ -8,6 +8,11 @@ name = "revm-precompile" repository = "https://github.com/bluealloy/revm" version = "2.2.0" +[lints.rust] +unused_crate_dependencies = "warn" +unused_must_use = "deny" +rust_2018_idioms = "deny" + [dependencies] revm-primitives = { path = "../primitives", version = "1.3.0", default-features = false } bn = { package = "substrate-bn", version = "0.6", default-features = false } diff --git a/crates/precompile/src/lib.rs b/crates/precompile/src/lib.rs index b24f23a9b5..6be1c8b0dc 100644 --- a/crates/precompile/src/lib.rs +++ b/crates/precompile/src/lib.rs @@ -1,8 +1,6 @@ //! # revm-precompile //! //! Implementations of EVM precompiled contracts. -#![warn(unused_crate_dependencies)] -#![deny(unused_must_use, rust_2018_idioms)] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] diff --git a/crates/primitives/Cargo.toml b/crates/primitives/Cargo.toml index 17ddf04982..0ded488d5e 100644 --- a/crates/primitives/Cargo.toml +++ b/crates/primitives/Cargo.toml @@ -12,6 +12,12 @@ readme = "../../README.md" # Don't need to run build script outside of this repo exclude = ["build.rs", "src/kzg/*.txt"] +[lints.rust] +unreachable_pub = "warn" +unused_crate_dependencies = "warn" +unused_must_use = "deny" +rust_2018_idioms = "deny" + [dependencies] alloy-primitives = { version = "0.5", default-features = false, features = [ "rlp", diff --git a/crates/primitives/src/lib.rs b/crates/primitives/src/lib.rs index 8c35edc8fa..2c97ba016a 100644 --- a/crates/primitives/src/lib.rs +++ b/crates/primitives/src/lib.rs @@ -1,8 +1,6 @@ //! # revm-primitives //! //! EVM primitive types. -#![warn(unreachable_pub, unused_crate_dependencies)] -#![deny(unused_must_use, rust_2018_idioms)] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] diff --git a/crates/revm/Cargo.toml b/crates/revm/Cargo.toml index 1d21d33694..63dd9d6a6b 100644 --- a/crates/revm/Cargo.toml +++ b/crates/revm/Cargo.toml @@ -9,6 +9,11 @@ repository = "https://github.com/bluealloy/revm" version = "3.5.0" readme = "../../README.md" +[lints.rust] +unreachable_pub = "warn" +unused_must_use = "deny" +rust_2018_idioms = "deny" + [dependencies] revm-interpreter = { path = "../interpreter", version = "1.3.0", default-features = false } revm-precompile = { path = "../precompile", version = "2.2.0", default-features = false } diff --git a/crates/revm/src/lib.rs b/crates/revm/src/lib.rs index 71cac5cf6b..dcdf704cee 100644 --- a/crates/revm/src/lib.rs +++ b/crates/revm/src/lib.rs @@ -1,7 +1,5 @@ -#![warn(unreachable_pub)] #![cfg_attr(not(test), warn(unused_crate_dependencies))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] -#![deny(unused_must_use, rust_2018_idioms)] #![cfg_attr(not(feature = "std"), no_std)] #[cfg(all(feature = "with-serde", not(feature = "serde")))]