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 commit is contained in:
Martin Habovstiak 2024-07-03 06:02:12 +02:00
parent 05a4e3963c
commit 614fe81708
2 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,8 @@ bincode = "1.3.3"
wasm-bindgen-test = "0.3"
getrandom = { version = "0.2", features = ["js"] }
[lints.rust]
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(bench)', 'cfg(secp256k1_fuzz)', 'cfg(rust_secp_no_symbol_renaming)'] }
[[example]]
name = "sign_verify_recovery"

View File

@ -32,3 +32,6 @@ recovery = []
lowmemory = []
std = ["alloc"]
alloc = []
[lints.rust]
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(bench)', 'cfg(secp256k1_fuzz)', 'cfg(rust_secp_no_symbol_renaming)'] }