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 authored and rolznz committed Sep 24, 2024
1 parent 9c1e2aa commit e8f2369
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 @@ -87,3 +87,13 @@ rpath = true

[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 e8f2369

Please sign in to comment.