mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 03:57:24 +00:00
BUG=b:157245930, crbug:908640 TEST=cargo clippy -> no warnings, CQ -> build succeeds Change-Id: Ia61af5ff4f9ca55225a75552ed5523d778d66b73 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4018394 Reviewed-by: Dennis Kempin <denniskempin@google.com> Commit-Queue: Clarissa Garvey <clarissagarvey@chromium.org>
49 lines
1.7 KiB
TOML
49 lines
1.7 KiB
TOML
# Disable clippy lints project-wide.
|
|
# This allows ./tools/clippy and IDE integrations to use the same configuration.
|
|
# This should be replaced with a proper clippy config once available:
|
|
# https://github.com/rust-lang/cargo/issues/5034
|
|
[target.'cfg(all())']
|
|
rustflags = [
|
|
# TODO(crbug/908640): To be resolved.
|
|
"-Aclippy::missing_safety_doc", # 26 errors
|
|
|
|
# We don't care about these lints. Okay to remain suppressed globally.
|
|
"-Aclippy::bool_assert_comparison",
|
|
"-Aclippy::cast_lossless",
|
|
"-Aclippy::cognitive_complexity",
|
|
"-Aclippy::collapsible_if",
|
|
"-Aclippy::enum_variant_names",
|
|
"-Aclippy::identity_op",
|
|
"-Aclippy::len_without_is_empty",
|
|
"-Aclippy::len_zero",
|
|
"-Aclippy::match_bool",
|
|
"-Aclippy::match_wild_err_arm",
|
|
"-Aclippy::module_inception",
|
|
"-Aclippy::needless_bool",
|
|
"-Aclippy::new_without_default",
|
|
"-Aclippy::new-ret-no-self",
|
|
"-Aclippy::or_fun_call",
|
|
"-Aclippy::result-unit-err",
|
|
"-Aclippy::should_implement_trait",
|
|
"-Aclippy::single_char_pattern",
|
|
"-Aclippy::too_many_arguments",
|
|
"-Aclippy::trivially_copy_pass_by_ref",
|
|
"-Aclippy::type_complexity",
|
|
"-Aclippy::unreadable_literal",
|
|
"-Aclippy::useless_let_if_seq",
|
|
"-Aclippy::useless_transmute",
|
|
]
|
|
|
|
[target.armv7-unknown-linux-gnueabihf]
|
|
linker = "arm-linux-gnueabihf-gcc"
|
|
|
|
[target.aarch64-unknown-linux-gnu]
|
|
linker = "aarch64-linux-gnu-gcc"
|
|
|
|
[target.x86_64-pc-windows-gnu]
|
|
runner = "wine64"
|
|
|
|
[env]
|
|
PKG_CONFIG_SYSROOT_DIR_armv7-unknown-linux-gnueabihf = "/usr/arm-linux-gnueabihf"
|
|
PKG_CONFIG_SYSROOT_DIR_aarch64-unknown-linux-gnu = "/usr/aarch64_linux_gnu"
|
|
PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-gnu = "/usr/x86_64-w64-mingw32"
|