From 58785ce257367f9e016738c2a87413b0590cc67f Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Tue, 3 Sep 2024 21:18:44 +0200 Subject: chore: workspace lints now part of each crate. (#728) --- Cargo.toml | 8 -------- crates/rapier2d-f64/Cargo.toml | 4 +++- crates/rapier2d/Cargo.toml | 4 +++- crates/rapier3d-f64/Cargo.toml | 4 +++- crates/rapier3d/Cargo.toml | 4 +++- crates/rapier_testbed2d-f64/Cargo.toml | 4 +++- crates/rapier_testbed2d/Cargo.toml | 4 +++- crates/rapier_testbed3d-f64/Cargo.toml | 7 ++++++- crates/rapier_testbed3d/Cargo.toml | 4 +++- 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"] -- cgit