Skip to content

Commit

Permalink
Expect custom cfgs
Browse files Browse the repository at this point in the history
cfgs that are not features or dependencies from Cargo.toml
(so e.g. cfgs set by build.rs or external tools like cargo-fuzz)
will cause compiler warnings starting with Rust 1.80.
  • Loading branch information
FreezyLemon authored and shssoichiro committed Jun 1, 2024
1 parent 0548232 commit 554abdf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ rand_chacha = "0.3"
[target.'cfg(any(decode_test, decode_test_dav1d))'.dependencies]
system-deps = "6"

[lints.rust.unexpected_cfgs]
level = "warn"
# These custom cfgs are expected, so tell rustc not to output warnings for them
check-cfg = ['cfg(nasm_x86_64)', 'cfg(asm_neon)', 'cfg(cargo_c)', 'cfg(fuzzing)']

[[bin]]
name = "rav1e"
required-features = ["binaries"]
Expand Down

0 comments on commit 554abdf

Please sign in to comment.