Skip to content

Commit

Permalink
Adjust check-cfg for Rust 1.76 compatibility
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nhpupu committed Jul 19, 2024
1 parent 9912929 commit eeff7ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ std = []
# Enable the implementation of the map Key trait for ArrayVec and ArrayString
arrayvec = ["dep:arrayvec"]
_test = ["dep:futures", "dep:approx", "std", "arrayvec"]

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing_repro)'] }
3 changes: 0 additions & 3 deletions build.rs

This file was deleted.

0 comments on commit eeff7ab

Please sign in to comment.