Skip to content

Commit

Permalink
Address unexpected_cfgs warning
Browse files Browse the repository at this point in the history
See:
- #1110
- #1111
  • Loading branch information
taiki-e committed May 19, 2024
1 parent 91edb88 commit 4a514f4
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ crossbeam-utils = { version = "0.8.18", path = "crossbeam-utils", default-featur
[dev-dependencies]
rand = "0.8"

[lints]
workspace = true

[workspace]
resolver = "2"
members = [
Expand All @@ -62,3 +65,9 @@ members = [
"crossbeam-skiplist",
"crossbeam-utils",
]

[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(crossbeam_loom)',
'cfg(crossbeam_sanitize)',
] }
3 changes: 3 additions & 0 deletions crossbeam-channel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ crossbeam-utils = { version = "0.8.18", path = "../crossbeam-utils", default-fea
num_cpus = "1.13.0"
rand = "0.8"
signal-hook = "0.3"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions crossbeam-channel/benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ doc = false
name = "mpmc"
path = "mpmc.rs"
doc = false

[lints]
workspace = true
3 changes: 3 additions & 0 deletions crossbeam-deque/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ crossbeam-utils = { version = "0.8.18", path = "../crossbeam-utils", default-fea

[dev-dependencies]
rand = "0.8"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions crossbeam-epoch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ loom-crate = { package = "loom", version = "0.7.1", optional = true }

[dev-dependencies]
rand = "0.8"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions crossbeam-queue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ crossbeam-utils = { version = "0.8.18", path = "../crossbeam-utils", default-fea

[dev-dependencies]
rand = "0.8"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions crossbeam-skiplist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ crossbeam-utils = { version = "0.8.18", path = "../crossbeam-utils", default-fea

[dev-dependencies]
rand = "0.8"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions crossbeam-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ loom = { version = "0.7.1", optional = true }

[dev-dependencies]
rand = "0.8"

[lints]
workspace = true
1 change: 1 addition & 0 deletions crossbeam-utils/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ include!("build-common.rs");

fn main() {
println!("cargo:rerun-if-changed=no_atomic.rs");
println!("cargo:rustc-check-cfg=cfg(crossbeam_no_atomic,crossbeam_sanitize_thread)");

let target = match env::var("TARGET") {
Ok(target) => convert_custom_linux_target(target),
Expand Down

0 comments on commit 4a514f4

Please sign in to comment.