Skip to content

Commit 614fe81

Browse files
committed
Whitelist known cfgs
Rust is now checking cfg attributes for typos but this interferes with our cfgs that rustc/cargo don't recognize. This whitelists them so they no longer produce warnings.
1 parent 05a4e39 commit 614fe81

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ bincode = "1.3.3"
5454
wasm-bindgen-test = "0.3"
5555
getrandom = { version = "0.2", features = ["js"] }
5656

57+
[lints.rust]
58+
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(bench)', 'cfg(secp256k1_fuzz)', 'cfg(rust_secp_no_symbol_renaming)'] }
5759

5860
[[example]]
5961
name = "sign_verify_recovery"

secp256k1-sys/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ recovery = []
3232
lowmemory = []
3333
std = ["alloc"]
3434
alloc = []
35+
36+
[lints.rust]
37+
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(bench)', 'cfg(secp256k1_fuzz)', 'cfg(rust_secp_no_symbol_renaming)'] }

0 commit comments

Comments
 (0)