Skip to content

Commit

Permalink
chore: move lints to cargo config
Browse files Browse the repository at this point in the history
  • Loading branch information
jac3km4 committed Jan 10, 2024
1 parent b9cff58 commit 8ad7040
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 30 deletions.
27 changes: 0 additions & 27 deletions .cargo/config.toml

This file was deleted.

31 changes: 28 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,38 @@ resolver = "2"

[workspace.package]
version = "0.5.3"
rust-version = "1.72"
rust-version = "1.75"
edition = "2021"
license = "MIT"
authors = ["jekky"]

[profile.release]
lto = "thin"
[workspace.lints.rust]
warnings = "deny"
future-incompatible = "deny"
let-underscore = "deny"
nonstandard-style = "deny"
rust-2018-compatibility = "deny"
rust-2018-idioms = "deny"
rust-2021-compatibility = "deny"

[workspace.lints.clippy]
all = "deny"
match_same_arms = "deny"
semicolon_if_nothing_returned = "deny"
single_match_else = "deny"
redundant_closure_for_method_calls = "deny"
cloned_instead_of_copied = "deny"
redundant_else = "deny"
unnested_or_patterns = "deny"
unreadable_literal = "deny"
type_repetition_in_bounds = "deny"
equatable_if_let = "deny"
implicit_clone = "deny"
default_trait_access = "deny"
explicit_deref_methods = "deny"
explicit_iter_loop = "deny"
inefficient_to_string = "deny"
match_bool = "deny"

[workspace.metadata.release]
pre-release-commit-message = "chore: release {{version}}"
Expand Down
3 changes: 3 additions & 0 deletions red4ext-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ proc-macro2 = "1"
quote = "1"
darling = "0.20"
heck = "0.4"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions red4ext-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ const-crc32 = "1"

[build-dependencies]
cxx-build = "1"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions red4ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ red4ext-macros = { path = "../red4ext-macros", optional = true }

[features]
macros = ["dep:red4ext-macros"]

[lints]
workspace = true

0 comments on commit 8ad7040

Please sign in to comment.