Skip to content

Commit

Permalink
fix unexpected cfg warning (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz authored Jul 29, 2024
1 parent c539f29 commit c556052
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 c556052

Please sign in to comment.