aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Berger <contact@thierryberger.com>2024-09-03 21:18:44 +0200
committerGitHub <noreply@github.com>2024-09-03 21:18:44 +0200
commit58785ce257367f9e016738c2a87413b0590cc67f (patch)
tree696229aa9e97d7e1d938b82f140046dc4af8b557
parent983f8a39012431b5c678494c5d77306be16063b0 (diff)
downloadrapier-58785ce257367f9e016738c2a87413b0590cc67f.tar.gz
rapier-58785ce257367f9e016738c2a87413b0590cc67f.tar.bz2
rapier-58785ce257367f9e016738c2a87413b0590cc67f.zip
chore: workspace lints now part of each crate. (#728)
-rw-r--r--Cargo.toml8
-rw-r--r--crates/rapier2d-f64/Cargo.toml4
-rw-r--r--crates/rapier2d/Cargo.toml4
-rw-r--r--crates/rapier3d-f64/Cargo.toml4
-rw-r--r--crates/rapier3d/Cargo.toml4
-rw-r--r--crates/rapier_testbed2d-f64/Cargo.toml4
-rw-r--r--crates/rapier_testbed2d/Cargo.toml4
-rw-r--r--crates/rapier_testbed3d-f64/Cargo.toml7
-rw-r--r--crates/rapier_testbed3d/Cargo.toml4
9 files changed, 27 insertions, 16 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 3592aa1..4797798 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -18,14 +18,6 @@ members = [
]
resolver = "2"
-[workspace.lints]
-rust.unexpected_cfgs = { level = "warn", check-cfg = [
- 'cfg(feature, values("dim2", "dim3", "f32", "f64"))',
- # The `other-backends` feature isn't in the tested3d-f64
- # but easier to just ignore it here.
- 'cfg(feature, values("other-backends"))',
-] }
-
[patch.crates-io]
#wrapped2d = { git = "https://github.com/Bastacyclop/rust_box2d.git" }
#xurdf = { path = "../xurdf/xurdf" }
diff --git a/crates/rapier2d-f64/Cargo.toml b/crates/rapier2d-f64/Cargo.toml
index 49fe36e..6517e0f 100644
--- a/crates/rapier2d-f64/Cargo.toml
+++ b/crates/rapier2d-f64/Cargo.toml
@@ -22,7 +22,9 @@ edition = "2021"
maintenance = { status = "actively-developed" }
[lints]
-workspace = true
+rust.unexpected_cfgs = { level = "warn", check-cfg = [
+ 'cfg(feature, values("dim3", "f32"))',
+] }
[features]
default = ["dim2", "f64"]
diff --git a/crates/rapier2d/Cargo.toml b/crates/rapier2d/Cargo.toml
index b910304..e2afba1 100644
--- a/crates/rapier2d/Cargo.toml
+++ b/crates/rapier2d/Cargo.toml
@@ -22,7 +22,9 @@ edition = "2021"
maintenance = { status = "actively-developed" }
[lints]
-workspace = true
+rust.unexpected_cfgs = { level = "warn", check-cfg = [
+ 'cfg(feature, values("dim3", "f64"))',
+] }
[features]
default = ["dim2", "f32"]
diff --git a/crates/rapier3d-f64/Cargo.toml b/crates/rapier3d-f64/Cargo.toml
index a56dd6e..de8a741 100644
--- a/crates/rapier3d-f64/Cargo.toml
+++ b/crates/rapier3d-f64/Cargo.toml
@@ -22,7 +22,9 @@ edition = "2021"
maintenance = { status = "actively-developed" }
[lints]
-workspace = true
+rust.unexpected_cfgs = { level = "warn", check-cfg = [
+ 'cfg(feature, values("dim2", "f32"))',
+] }
[features]
default = ["dim3", "f64"]
diff --git a/crates/rapier3d/Cargo.toml b/crates/rapier3d/Cargo.toml
index 25b5bb5..bd9f77c 100644
--- a/crates/rapier3d/Cargo.toml
+++ b/crates/rapier3d/Cargo.toml
@@ -22,7 +22,9 @@ edition = "2021"
maintenance = { status = "actively-developed" }
[lints]
-workspace = true
+rust.unexpected_cfgs = { level = "warn", check-cfg = [
+ 'cfg(feature, values("dim2", "f64"))',
+] }
[features]
default = ["dim3", "f32"]
diff --git a/crates/rapier_testbed2d-f64/Cargo.toml b/crates/rapier_testbed2d-f64/Cargo.toml
index ec56edc..6eedda9 100644
--- a/crates/rapier_testbed2d-f64/Cargo.toml
+++ b/crates/rapier_testbed2d-f64/Cargo.toml
@@ -25,7 +25,9 @@ path = "../../src_testbed/lib.rs"
required-features = ["dim2"]
[lints]
-workspace = true
+rust.unexpected_cfgs = { level = "warn", check-cfg = [
+ 'cfg(feature, values("dim3", "f32"))',
+] }
[features]
default = ["dim2"]
diff --git a/crates/rapier_testbed2d/Cargo.toml b/crates/rapier_testbed2d/Cargo.toml
index 6d25ae3..6283b95 100644
--- a/crates/rapier_testbed2d/Cargo.toml
+++ b/crates/rapier_testbed2d/Cargo.toml
@@ -25,7 +25,9 @@ path = "../../src_testbed/lib.rs"
required-features = ["dim2"]
[lints]
-workspace = true
+rust.unexpected_cfgs = { level = "warn", check-cfg = [
+ 'cfg(feature, values("dim3", "f64"))',
+] }
[features]
default = ["dim2"]
diff --git a/crates/rapier_testbed3d-f64/Cargo.toml b/crates/rapier_testbed3d-f64/Cargo.toml
index 7462b07..f5b8786 100644
--- a/crates/rapier_testbed3d-f64/Cargo.toml
+++ b/crates/rapier_testbed3d-f64/Cargo.toml
@@ -25,7 +25,12 @@ path = "../../src_testbed/lib.rs"
required-features = ["dim3"]
[lints]
-workspace = true
+rust.unexpected_cfgs = { level = "warn", check-cfg = [
+ 'cfg(feature, values("dim2", "f32"))',
+ # The `other-backends` feature isn't in the tested3d-f64
+ # but easier to just ignore it here.
+ 'cfg(feature, values("other-backends"))',
+] }
[features]
default = ["dim3"]
diff --git a/crates/rapier_testbed3d/Cargo.toml b/crates/rapier_testbed3d/Cargo.toml
index 8a0ed9c..854d584 100644
--- a/crates/rapier_testbed3d/Cargo.toml
+++ b/crates/rapier_testbed3d/Cargo.toml
@@ -25,7 +25,9 @@ path = "../../src_testbed/lib.rs"
required-features = ["dim3"]
[lints]
-workspace = true
+rust.unexpected_cfgs = { level = "warn", check-cfg = [
+ 'cfg(feature, values("dim2", "f64"))',
+] }
[features]
default = ["dim3"]