chore: workspace lints now part of each crate. (#728)
This commit is contained in:
@@ -18,14 +18,6 @@ members = [
|
|||||||
]
|
]
|
||||||
resolver = "2"
|
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]
|
[patch.crates-io]
|
||||||
#wrapped2d = { git = "https://github.com/Bastacyclop/rust_box2d.git" }
|
#wrapped2d = { git = "https://github.com/Bastacyclop/rust_box2d.git" }
|
||||||
#xurdf = { path = "../xurdf/xurdf" }
|
#xurdf = { path = "../xurdf/xurdf" }
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ edition = "2021"
|
|||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
rust.unexpected_cfgs = { level = "warn", check-cfg = [
|
||||||
|
'cfg(feature, values("dim3", "f32"))',
|
||||||
|
] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["dim2", "f64"]
|
default = ["dim2", "f64"]
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ edition = "2021"
|
|||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
rust.unexpected_cfgs = { level = "warn", check-cfg = [
|
||||||
|
'cfg(feature, values("dim3", "f64"))',
|
||||||
|
] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["dim2", "f32"]
|
default = ["dim2", "f32"]
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ edition = "2021"
|
|||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
rust.unexpected_cfgs = { level = "warn", check-cfg = [
|
||||||
|
'cfg(feature, values("dim2", "f32"))',
|
||||||
|
] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["dim3", "f64"]
|
default = ["dim3", "f64"]
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ edition = "2021"
|
|||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
rust.unexpected_cfgs = { level = "warn", check-cfg = [
|
||||||
|
'cfg(feature, values("dim2", "f64"))',
|
||||||
|
] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["dim3", "f32"]
|
default = ["dim3", "f32"]
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ path = "../../src_testbed/lib.rs"
|
|||||||
required-features = ["dim2"]
|
required-features = ["dim2"]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
rust.unexpected_cfgs = { level = "warn", check-cfg = [
|
||||||
|
'cfg(feature, values("dim3", "f32"))',
|
||||||
|
] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["dim2"]
|
default = ["dim2"]
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ path = "../../src_testbed/lib.rs"
|
|||||||
required-features = ["dim2"]
|
required-features = ["dim2"]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
rust.unexpected_cfgs = { level = "warn", check-cfg = [
|
||||||
|
'cfg(feature, values("dim3", "f64"))',
|
||||||
|
] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["dim2"]
|
default = ["dim2"]
|
||||||
|
|||||||
@@ -25,7 +25,12 @@ path = "../../src_testbed/lib.rs"
|
|||||||
required-features = ["dim3"]
|
required-features = ["dim3"]
|
||||||
|
|
||||||
[lints]
|
[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]
|
[features]
|
||||||
default = ["dim3"]
|
default = ["dim3"]
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ path = "../../src_testbed/lib.rs"
|
|||||||
required-features = ["dim3"]
|
required-features = ["dim3"]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
rust.unexpected_cfgs = { level = "warn", check-cfg = [
|
||||||
|
'cfg(feature, values("dim2", "f64"))',
|
||||||
|
] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["dim3"]
|
default = ["dim3"]
|
||||||
|
|||||||
Reference in New Issue
Block a user