Skip to content

Commit 5733b58

Browse files
committed
Account for check-cfg
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
1 parent 77a0bbe commit 5733b58

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,13 @@ panic = "abort"
102102

103103
[profile.dev]
104104
panic = "abort"
105+
106+
[lints.rust.unexpected_cfgs]
107+
level = "forbid"
108+
# When adding a new cfg attribute, ensure that it is added to this list.
109+
check-cfg = [
110+
"cfg(vss)",
111+
"cfg(vss_test)",
112+
"cfg(ldk_bench)",
113+
"cfg(tokio_unstable)",
114+
]

0 commit comments

Comments
 (0)