Skip to content

Commit

Permalink
fix unexpected cfg warning (dimforge#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Aug 8, 2024
1 parent 480bb94 commit 74611c9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
members = ["bevy_rapier2d", "bevy_rapier3d", "bevy_rapier_benches3d"]
resolver = "2"

[workspace.lints]
rust.unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(feature, values("dim2", "dim3"))',
] }

[profile.dev]
# Use slightly better optimization by default, as examples otherwise seem laggy.
opt-level = 1
Expand Down
3 changes: 3 additions & 0 deletions bevy_rapier2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ edition = "2021"
path = "../src/lib.rs"
required-features = ["dim2"]

[lints]
workspace = true

[features]
default = ["dim2", "async-collider", "debug-render-2d"]
dim2 = []
Expand Down
3 changes: 3 additions & 0 deletions bevy_rapier3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ edition = "2021"
path = "../src/lib.rs"
required-features = ["dim3"]

[lints]
workspace = true

[features]
default = ["dim3", "async-collider", "debug-render-3d"]
dim3 = []
Expand Down

0 comments on commit 74611c9

Please sign in to comment.