diff --git a/Cargo.toml b/Cargo.toml index 3f1eeb5aaa..5a5f46ebfd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,13 +56,3 @@ strum_macros = "0.24.3" tempfile = "3.7.0" test-case = "2.2.2" thiserror = "1.0.37" - -[workspace.lints.rust] -future-incompatible = "deny" -nonstandard-style = "deny" -rust-2018-idioms = "deny" -unused = "deny" -warnings = "deny" - -[workspace.lints.clippy] -as_conversions = "deny" diff --git a/crates/blockifier/Cargo.toml b/crates/blockifier/Cargo.toml index 8a33a7eab8..411c05c5c7 100644 --- a/crates/blockifier/Cargo.toml +++ b/crates/blockifier/Cargo.toml @@ -6,8 +6,15 @@ repository.workspace = true license-file.workspace = true description = "The transaction-executing component in the Starknet sequencer." -[lints] -workspace = true +[lints.rust] +future-incompatible = "deny" +nonstandard-style = "deny" +rust-2018-idioms = "deny" +unused = "deny" +warnings = "deny" + +[lints.clippy] +as_conversions = "deny" [features] concurrency = [] diff --git a/crates/native_blockifier/Cargo.toml b/crates/native_blockifier/Cargo.toml index 35a9df199c..f19d42fc7d 100644 --- a/crates/native_blockifier/Cargo.toml +++ b/crates/native_blockifier/Cargo.toml @@ -13,8 +13,20 @@ description = "A Bridge between the Rust blockifier crate and Python." extension-module = ["pyo3/extension-module"] testing = [] -[lints] -workspace = true +# Move to workspace and inherit from [workspace.lints] once we start using rust_rules >= 0.41.0. +# (bug: https://github.com/bazelbuild/rules_rust/issues/2536, fixed in: https://github.com/bazelbuild/rules_rust/pull/2551 which was included in 0.41.0). +[lints.rust] +future-incompatible = "deny" +nonstandard-style = "deny" +rust-2018-idioms = "deny" +unused = "deny" +warnings = "deny" + +# Move to workspace and inherit from [workspace.lints] once we start using rust_rules >= 0.41.0. +# (bug: https://github.com/bazelbuild/rules_rust/issues/2536, fixed in: https://github.com/bazelbuild/rules_rust/pull/2551 which was included in 0.41.0). +[lints.clippy] +as_conversions = "deny" + [lib] name = "native_blockifier"