2021-11-12 17:35:42 +00:00
|
|
|
# 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(b/181763000): Fail builds on warnings
|
|
|
|
# "-Dwarnings",
|
|
|
|
|
|
|
|
# TODO(crbug/908640): To be resolved.
|
2021-12-09 23:58:38 +00:00
|
|
|
"-Aclippy::needless_return",
|
|
|
|
"-Aclippy::needless_doctest_main",
|
|
|
|
"-Aclippy::blocks_in_if_conditions",
|
2021-11-12 17:35:42 +00:00
|
|
|
"-Aclippy::missing_safety_doc", # 26 errors
|
|
|
|
|
|
|
|
# We don't care about these lints. Okay to remain suppressed globally.
|
2022-02-04 23:05:15 +00:00
|
|
|
"-Aclippy::bool_assert_comparison",
|
2021-11-12 17:35:42 +00:00
|
|
|
"-Aclippy::cast_lossless",
|
|
|
|
"-Aclippy::cognitive_complexity",
|
2022-02-04 23:05:15 +00:00
|
|
|
"-Aclippy::collapsible_if",
|
2021-11-12 17:35:42 +00:00
|
|
|
"-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",
|
2022-02-04 23:05:15 +00:00
|
|
|
"-Aclippy::new-ret-no-self",
|
2021-11-12 17:35:42 +00:00
|
|
|
"-Aclippy::or_fun_call",
|
2022-02-04 23:05:15 +00:00
|
|
|
"-Aclippy::result-unit-err",
|
2021-11-12 17:35:42 +00:00
|
|
|
"-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",
|
|
|
|
]
|
2021-12-09 22:16:59 +00:00
|
|
|
|
|
|
|
[target.armv7-unknown-linux-gnueabihf]
|
|
|
|
linker = "arm-linux-gnueabihf-gcc"
|
2022-03-03 01:29:26 +00:00
|
|
|
|
|
|
|
[target.x86_64-pc-windows-gnu]
|
|
|
|
runner = "wine64"
|