|
| 1 | +[package] |
| 2 | +name = "TODO" |
| 3 | +version = "0.1.0" |
| 4 | +edition = "2021" |
| 5 | +license = "MIT" |
| 6 | +# rust-version = "1.83" |
| 7 | +exclude = [".github/"] |
| 8 | +repository = "TODO" |
| 9 | + |
| 10 | +# Explicitly set the resolver to version 2, which is the default for packages with edition >= 2021 |
| 11 | +# https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html |
| 12 | +resolver = "2" |
| 13 | + |
| 14 | +[dependencies] |
| 15 | + |
| 16 | +[lints] |
| 17 | +rust.missing_debug_implementations = "warn" |
| 18 | +rust.missing_docs = "warn" |
| 19 | +rust.rust_2018_idioms = { level = "deny", priority = -1 } |
| 20 | +rust.unreachable_pub = "warn" |
| 21 | +rust.unused_must_use = "deny" |
| 22 | +rustdoc.all = "warn" |
| 23 | + |
| 24 | +[lints.clippy] |
| 25 | +# These are some of clippy's nursery (i.e., experimental) lints that we like. |
| 26 | +# By default, nursery lints are allowed. Some of the lints below have made good |
| 27 | +# suggestions which we fixed. The others didn't have any findings, so we can |
| 28 | +# assume they don't have that many false positives. Let's enable them to |
| 29 | +# prevent future problems. |
| 30 | +borrow_as_ptr = "warn" |
| 31 | +branches_sharing_code = "warn" |
| 32 | +clear_with_drain = "warn" |
| 33 | +cloned_instead_of_copied = "warn" |
| 34 | +collection_is_never_read = "warn" |
| 35 | +dbg_macro = "warn" |
| 36 | +derive_partial_eq_without_eq = "warn" |
| 37 | +doc_markdown = "warn" |
| 38 | +empty_line_after_doc_comments = "warn" |
| 39 | +empty_line_after_outer_attr = "warn" |
| 40 | +enum_glob_use = "warn" |
| 41 | +equatable_if_let = "warn" |
| 42 | +explicit_into_iter_loop = "warn" |
| 43 | +explicit_iter_loop = "warn" |
| 44 | +flat_map_option = "warn" |
| 45 | +from_iter_instead_of_collect = "warn" |
| 46 | +if_not_else = "warn" |
| 47 | +if_then_some_else_none = "warn" |
| 48 | +implicit_clone = "warn" |
| 49 | +imprecise_flops = "warn" |
| 50 | +iter_on_empty_collections = "warn" |
| 51 | +iter_on_single_items = "warn" |
| 52 | +iter_with_drain = "warn" |
| 53 | +iter_without_into_iter = "warn" |
| 54 | +large_stack_frames = "warn" |
| 55 | +manual_assert = "warn" |
| 56 | +manual_clamp = "warn" |
| 57 | +manual_is_variant_and = "warn" |
| 58 | +manual_string_new = "warn" |
| 59 | +match_same_arms = "warn" |
| 60 | +missing_const_for_fn = "warn" |
| 61 | +mutex_integer = "warn" |
| 62 | +naive_bytecount = "warn" |
| 63 | +needless_bitwise_bool = "warn" |
| 64 | +needless_continue = "warn" |
| 65 | +needless_for_each = "warn" |
| 66 | +needless_pass_by_ref_mut = "warn" |
| 67 | +nonstandard_macro_braces = "warn" |
| 68 | +option_as_ref_cloned = "warn" |
| 69 | +or_fun_call = "warn" |
| 70 | +path_buf_push_overwrite = "warn" |
| 71 | +read_zero_byte_vec = "warn" |
| 72 | +redundant_clone = "warn" |
| 73 | +redundant_else = "warn" |
| 74 | +single_char_pattern = "warn" |
| 75 | +string_lit_as_bytes = "warn" |
| 76 | +string_lit_chars_any = "warn" |
| 77 | +suboptimal_flops = "warn" |
| 78 | +suspicious_operation_groupings = "warn" |
| 79 | +trailing_empty_array = "warn" |
| 80 | +trait_duplication_in_bounds = "warn" |
| 81 | +transmute_undefined_repr = "warn" |
| 82 | +trivial_regex = "warn" |
| 83 | +tuple_array_conversions = "warn" |
| 84 | +type_repetition_in_bounds = "warn" |
| 85 | +uninhabited_references = "warn" |
| 86 | +unnecessary_self_imports = "warn" |
| 87 | +unnecessary_struct_initialization = "warn" |
| 88 | +unnested_or_patterns = "warn" |
| 89 | +unused_peekable = "warn" |
| 90 | +unused_rounding = "warn" |
| 91 | +use_self = "warn" |
| 92 | +useless_let_if_seq = "warn" |
| 93 | +while_float = "warn" |
| 94 | +zero_sized_map_values = "warn" |
| 95 | + |
| 96 | +# These are nursery lints which have findings. Allow them for now. Some are not |
| 97 | +# quite mature enough for use in our codebase and some we don't really want. |
| 98 | +# Explicitly listing should make it easier to fix in the future. |
| 99 | +as_ptr_cast_mut = "allow" |
| 100 | +cognitive_complexity = "allow" |
| 101 | +debug_assert_with_mut_call = "allow" |
| 102 | +fallible_impl_from = "allow" |
| 103 | +future_not_send = "allow" |
| 104 | +needless_collect = "allow" |
| 105 | +non_send_fields_in_send_ty = "allow" |
| 106 | +redundant_pub_crate = "allow" |
| 107 | +significant_drop_in_scrutinee = "allow" |
| 108 | +significant_drop_tightening = "allow" |
| 109 | +too_long_first_doc_paragraph = "allow" |
0 commit comments