Use workspace lints to control unexpected_cfgs. (#682)

By using `workspace.lints`, we can configure lints once for
everything (and then inherit it into the various crates).

The lint configuration for `unexpected_cfgs` works in 1.80+
and warns otherwise.

Co-authored-by: Thierry Berger <contact@thierryberger.com>
This commit is contained in:
Bruce Mitchener
2024-08-02 21:38:56 +07:00
committed by GitHub
parent 364b5b7c37
commit 617428e988
11 changed files with 32 additions and 2 deletions

View File

@@ -21,6 +21,9 @@ edition = "2021"
[badges]
maintenance = { status = "actively-developed" }
[lints]
workspace = true
[features]
default = ["dim2", "f64"]
dim2 = []

View File

@@ -21,6 +21,9 @@ edition = "2021"
[badges]
maintenance = { status = "actively-developed" }
[lints]
workspace = true
[features]
default = ["dim2", "f32"]
dim2 = []

View File

@@ -21,6 +21,9 @@ edition = "2021"
[badges]
maintenance = { status = "actively-developed" }
[lints]
workspace = true
[features]
default = ["dim3", "f64"]
dim3 = []

View File

@@ -21,6 +21,9 @@ edition = "2021"
[badges]
maintenance = { status = "actively-developed" }
[lints]
workspace = true
[features]
default = ["dim3", "f32"]
dim3 = []

View File

@@ -24,6 +24,9 @@ name = "rapier_testbed2d"
path = "../../src_testbed/lib.rs"
required-features = ["dim2"]
[lints]
workspace = true
[features]
default = ["dim2"]
dim2 = []

View File

@@ -24,6 +24,9 @@ name = "rapier_testbed2d"
path = "../../src_testbed/lib.rs"
required-features = ["dim2"]
[lints]
workspace = true
[features]
default = ["dim2"]
dim2 = []

View File

@@ -24,6 +24,9 @@ name = "rapier_testbed3d"
path = "../../src_testbed/lib.rs"
required-features = ["dim3"]
[lints]
workspace = true
[features]
default = ["dim3"]
dim3 = []

View File

@@ -24,6 +24,9 @@ name = "rapier_testbed3d"
path = "../../src_testbed/lib.rs"
required-features = ["dim3"]
[lints]
workspace = true
[features]
default = ["dim3"]
dim3 = []