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

Rust 1.74: move lints to Cargo.toml #1162

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading