Skip to content

Commit eeff7ab

Browse files
committed
Adjust check-cfg for Rust 1.76 compatibility
This commit moves the lint config for check-cfg from build.rs to Cargo.toml. This change ensures compatibility with Rust versions <=1.76 while silencing cfg warnings in newer versions. Further refrence: https://blog.rust-lang.org/2024/05/06/check-cfg.html#expecting-custom-cfgs
1 parent 9912929 commit eeff7ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ std = []
2929
# Enable the implementation of the map Key trait for ArrayVec and ArrayString
3030
arrayvec = ["dep:arrayvec"]
3131
_test = ["dep:futures", "dep:approx", "std", "arrayvec"]
32+
33+
[lints.rust]
34+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing_repro)'] }

build.rs

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)