Skip to content

Commit 938dba6

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. This is a backport of 614fe81 because the warnings make development very annoying.
1 parent ad69619 commit 938dba6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cargo.toml

+2
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

+3
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)