diff --git a/.cargo/config.toml b/.cargo/config.toml index 17340b5919..3acf84fd7d 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,13 +1,3 @@ -[build] -# Configuration for these lints should be placed in `.clippy.toml` at the crate root. -rustflags = [ - "-Dwarnings", - "-Dfuture-incompatible", - "-Dnonstandard-style", - "-Drust-2018-idioms", - "-Dunused", -] - [env] # Increase Rust stack size. # This should be large enough for `MAX_ENTRY_POINT_RECURSION_DEPTH` recursive entry point calls. diff --git a/Cargo.toml b/Cargo.toml index 685b4be048..dd6333928f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,3 +51,10 @@ strum_macros = "0.24.3" test-case = "2.2.2" tempfile = "3.7.0" thiserror = "1.0.37" + +[workspace.lints.rust] +warnings = "deny" +future-incompatible = "deny" +nonstandard-style = "deny" +rust-2018-idioms = "deny" +unused = "deny" diff --git a/crates/blockifier/Cargo.toml b/crates/blockifier/Cargo.toml index e29120e6ab..4d5dce6cf2 100644 --- a/crates/blockifier/Cargo.toml +++ b/crates/blockifier/Cargo.toml @@ -6,6 +6,8 @@ repository.workspace = true license-file.workspace = true description = "The transaction-executing component in the StarkNet sequencer." +[lints] +workspace = true [features] testing = [] diff --git a/crates/native_blockifier/Cargo.toml b/crates/native_blockifier/Cargo.toml index f4405eb943..14c8585a8d 100644 --- a/crates/native_blockifier/Cargo.toml +++ b/crates/native_blockifier/Cargo.toml @@ -12,6 +12,8 @@ description = "A Bridge between the Rust blockifier crate and Python." [features] extension-module = ["pyo3/extension-module"] +[lints] +workspace = true [lib] name = "native_blockifier"