Skip to content

Commit

Permalink
chore: workspace lints now part of each crate. (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz authored Sep 3, 2024
1 parent 983f8a3 commit 58785ce
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 16 deletions.
8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
4 changes: 3 additions & 1 deletion crates/rapier2d-f64/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 3 additions & 1 deletion crates/rapier2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 3 additions & 1 deletion crates/rapier3d-f64/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 3 additions & 1 deletion crates/rapier3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 3 additions & 1 deletion crates/rapier_testbed2d-f64/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 3 additions & 1 deletion crates/rapier_testbed2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
7 changes: 6 additions & 1 deletion crates/rapier_testbed3d-f64/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 3 additions & 1 deletion crates/rapier_testbed3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 58785ce

Please sign in to comment.