@@ -22,9 +22,49 @@ cpufeatures = "0.3"
2222[dev-dependencies ]
2323hex-literal = " 1"
2424
25+ [lints .rust ]
26+ missing_copy_implementations = " warn"
27+ missing_debug_implementations = " warn"
28+ missing_docs = " warn"
29+ trivial_casts = " warn"
30+ trivial_numeric_casts = " warn"
31+ unused_lifetimes = " warn"
32+ unused_qualifications = " warn"
33+ unreachable_pub = " warn"
34+
2535[lints .rust .unexpected_cfgs ]
2636level = " warn"
2737check-cfg = [
2838 ' cfg(fuzzing)' ,
2939 ' cfg(poly1305_backend, values("soft"))'
3040]
41+
42+ [lints .clippy ]
43+ borrow_as_ptr = " warn"
44+ cast_lossless = " warn"
45+ cast_possible_truncation = " allow" # TODO(tarcieri): warn
46+ cast_possible_wrap = " warn"
47+ cast_precision_loss = " warn"
48+ cast_sign_loss = " warn"
49+ checked_conversions = " warn"
50+ from_iter_instead_of_collect = " warn"
51+ implicit_saturating_sub = " warn"
52+ manual_assert = " warn"
53+ map_unwrap_or = " warn"
54+ missing_errors_doc = " warn"
55+ missing_panics_doc = " warn"
56+ mod_module_files = " warn"
57+ must_use_candidate = " warn"
58+ needless_range_loop = " allow"
59+ ptr_as_ptr = " warn"
60+ redundant_closure_for_method_calls = " warn"
61+ ref_as_ptr = " warn"
62+ return_self_not_must_use = " warn"
63+ semicolon_if_nothing_returned = " warn"
64+ trivially_copy_pass_by_ref = " warn"
65+ std_instead_of_alloc = " warn"
66+ std_instead_of_core = " warn"
67+ undocumented_unsafe_blocks = " warn"
68+ unnecessary_safety_comment = " warn"
69+ unwrap_in_result = " warn"
70+ unwrap_used = " allow" # TODO(tarcieri): warn
0 commit comments