Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Rust 1.74: move lints to Cargo.toml
Browse files Browse the repository at this point in the history
commit-id:4f026e58
  • Loading branch information
Gilad Chase committed Nov 22, 2023
1 parent 5037f35 commit 2b352bb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions crates/blockifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
2 changes: 2 additions & 0 deletions crates/native_blockifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2b352bb

Please sign in to comment.