@@ -40,6 +40,72 @@ repository = "https://github.com/Jon-Becker/heimdall-rs"
40
40
keywords = [" ethereum" , " web3" , " decompiler" , " evm" , " crypto" ]
41
41
exclude = [" .github/" ]
42
42
43
+ [workspace .lints ]
44
+ rust.missing_debug_implementations = " warn"
45
+ rust.missing_docs = " warn"
46
+ rust.unreachable_pub = " warn"
47
+ rust.unused_must_use = " deny"
48
+ rust.rust_2018_idioms = { level = " deny" , priority = -1 }
49
+ rustdoc.all = " warn"
50
+
51
+ [workspace .lints .clippy ]
52
+ # These are some of clippy's nursery (i.e., experimental) lints that we like.
53
+ # By default, nursery lints are allowed. Some of the lints below have made good
54
+ # suggestions which we fixed. The others didn't have any findings, so we can
55
+ # assume they don't have that many false positives. Let's enable them to
56
+ # prevent future problems.
57
+ branches_sharing_code = " warn"
58
+ clear_with_drain = " warn"
59
+ derive_partial_eq_without_eq = " warn"
60
+ empty_line_after_outer_attr = " warn"
61
+ equatable_if_let = " warn"
62
+ imprecise_flops = " warn"
63
+ iter_on_empty_collections = " warn"
64
+ iter_with_drain = " warn"
65
+ large_stack_frames = " warn"
66
+ manual_clamp = " warn"
67
+ mutex_integer = " warn"
68
+ needless_pass_by_ref_mut = " warn"
69
+ nonstandard_macro_braces = " warn"
70
+ or_fun_call = " warn"
71
+ path_buf_push_overwrite = " warn"
72
+ read_zero_byte_vec = " warn"
73
+ redundant_clone = " warn"
74
+ suboptimal_flops = " warn"
75
+ suspicious_operation_groupings = " warn"
76
+ trailing_empty_array = " warn"
77
+ trait_duplication_in_bounds = " warn"
78
+ transmute_undefined_repr = " warn"
79
+ trivial_regex = " warn"
80
+ tuple_array_conversions = " warn"
81
+ uninhabited_references = " warn"
82
+ unused_peekable = " warn"
83
+ unused_rounding = " warn"
84
+ useless_let_if_seq = " warn"
85
+
86
+ # These are nursery lints which have findings. Allow them for now. Some are not
87
+ # quite mature enough for use in our codebase and some we don't really want.
88
+ # Explicitly listing should make it easier to fix in the future.
89
+ as_ptr_cast_mut = " allow"
90
+ cognitive_complexity = " allow"
91
+ collection_is_never_read = " allow"
92
+ debug_assert_with_mut_call = " allow"
93
+ empty_line_after_doc_comments = " allow"
94
+ fallible_impl_from = " allow"
95
+ future_not_send = " allow"
96
+ iter_on_single_items = " allow"
97
+ missing_const_for_fn = " allow"
98
+ needless_collect = " allow"
99
+ non_send_fields_in_send_ty = " allow"
100
+ option_if_let_else = " allow"
101
+ redundant_pub_crate = " allow"
102
+ significant_drop_in_scrutinee = " allow"
103
+ significant_drop_tightening = " allow"
104
+ string_lit_as_bytes = " allow"
105
+ type_repetition_in_bounds = " allow"
106
+ unnecessary_struct_initialization = " allow"
107
+ use_self = " allow"
108
+
43
109
[workspace .dependencies ]
44
110
heimdall-core = { path = " crates/core" }
45
111
heimdall-cache = { path = " crates/cache" }
0 commit comments