Skip to content

Commit

Permalink
Account for check-cfg
Browse files Browse the repository at this point in the history
Recently, Rust 1.80 introduced automatic checking of `cfg` flags (see
https://blog.rust-lang.org/2024/05/06/check-cfg.html). Here,
we add all custom `cfg`s to the expected list
  • Loading branch information
tnull committed Jul 30, 2024
1 parent 77a0bbe commit 5733b58
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,13 @@ panic = "abort"

[profile.dev]
panic = "abort"

[lints.rust.unexpected_cfgs]
level = "forbid"
# When adding a new cfg attribute, ensure that it is added to this list.
check-cfg = [
"cfg(vss)",
"cfg(vss_test)",
"cfg(ldk_bench)",
"cfg(tokio_unstable)",
]

0 comments on commit 5733b58

Please sign in to comment.