diff --git a/Cargo.toml b/Cargo.toml index 4b08551e..9e08c42f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,13 @@ members = ["crates/parry2d", "crates/parry3d", "crates/parry2d-f64", "crates/parry3d-f64"] resolver = "2" +[workspace.lints] +rust.unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(feature, values("dim2", "dim3", "f32", "f64"))', + # "wavefront" is only used for 3D crates. + 'cfg(feature, values("wavefront"))', +] } + [patch.crates-io] parry2d = { path = "crates/parry2d" } parry3d = { path = "crates/parry3d" } diff --git a/crates/parry2d-f64/Cargo.toml b/crates/parry2d-f64/Cargo.toml index 8d584d1e..3aa58393 100644 --- a/crates/parry2d-f64/Cargo.toml +++ b/crates/parry2d-f64/Cargo.toml @@ -16,6 +16,9 @@ edition = "2021" [badges] maintenance = { status = "actively-developed" } +[lints] +workspace = true + [features] default = ["required-features", "std"] required-features = ["dim2", "f64"] diff --git a/crates/parry2d/Cargo.toml b/crates/parry2d/Cargo.toml index 2172ac63..19b7e19d 100644 --- a/crates/parry2d/Cargo.toml +++ b/crates/parry2d/Cargo.toml @@ -16,6 +16,9 @@ edition = "2021" [badges] maintenance = { status = "actively-developed" } +[lints] +workspace = true + [features] default = ["required-features", "std"] required-features = ["dim2", "f32"] diff --git a/crates/parry3d-f64/Cargo.toml b/crates/parry3d-f64/Cargo.toml index d89a63c9..c3391dd8 100644 --- a/crates/parry3d-f64/Cargo.toml +++ b/crates/parry3d-f64/Cargo.toml @@ -16,6 +16,9 @@ edition = "2021" [badges] maintenance = { status = "actively-developed" } +[lints] +workspace = true + [features] default = ["required-features", "std"] required-features = ["dim3", "f64"] diff --git a/crates/parry3d/Cargo.toml b/crates/parry3d/Cargo.toml index 7a60b259..62545af3 100644 --- a/crates/parry3d/Cargo.toml +++ b/crates/parry3d/Cargo.toml @@ -16,6 +16,9 @@ edition = "2021" [badges] maintenance = { status = "actively-developed" } +[lints] +workspace = true + [features] default = ["required-features", "std"] required-features = ["dim3", "f32"]