@@ -3,8 +3,9 @@ name = "eframe_template"
33version = " 0.1.0"
44authors = [" Emil Ernerfeldt <emil.ernerfeldt@gmail.com>" ]
55edition = " 2024"
6+ license = " MIT OR Apache-2.0"
67include = [" LICENSE-APACHE" , " LICENSE-MIT" , " **/*.rs" , " Cargo.toml" ]
7- rust-version = " 1.88 "
8+ rust-version = " 1.92 "
89
910[package .metadata .docs .rs ]
1011all-features = true
@@ -69,21 +70,24 @@ rust_2018_idioms = { level = "warn", priority = -1 }
6970rust_2021_prelude_collisions = " warn"
7071semicolon_in_expressions_from_macros = " warn"
7172trivial_numeric_casts = " warn"
72- unsafe_op_in_unsafe_fn = " warn" # `unsafe_op_in_unsafe_fn` may become the default in future Rust versions: https://github.com/rust-lang/rust/issues/71668
73+ unexpected_cfgs = " warn"
74+ unsafe_op_in_unsafe_fn = " warn" # `unsafe_op_in_unsafe_fn` may become the default in future Rust versions: https://github.com/rust-lang/rust/issues/71668
7375unused_extern_crates = " warn"
7476unused_import_braces = " warn"
7577unused_lifetimes = " warn"
7678
7779trivial_casts = " allow"
7880unused_qualifications = " allow"
7981
80-
8182[workspace .lints .rustdoc ]
8283all = " warn"
84+ broken_intra_doc_links = " warn"
8385missing_crate_level_docs = " warn"
8486
85-
87+ # See also clippy.toml
8688[workspace .lints .clippy ]
89+ all = { level = " warn" , priority = -1 }
90+
8791allow_attributes = " warn"
8892as_ptr_cast_mut = " warn"
8993await_holding_lock = " warn"
@@ -92,17 +96,21 @@ branches_sharing_code = "warn"
9296char_lit_as_u8 = " warn"
9397checked_conversions = " warn"
9498clear_with_drain = " warn"
99+ clone_on_ref_ptr = " warn"
95100cloned_instead_of_copied = " warn"
101+ coerce_container_to_any = " warn"
96102dbg_macro = " warn"
97103debug_assert_with_mut_call = " warn"
98104default_union_representation = " warn"
99105derive_partial_eq_without_eq = " warn"
100- disallowed_macros = " warn" # See clippy.toml
101- disallowed_methods = " warn" # See clippy.toml
102- disallowed_names = " warn" # See clippy.toml
103- disallowed_script_idents = " warn" # See clippy.toml
104- disallowed_types = " warn" # See clippy.toml
106+ disallowed_macros = " warn" # See clippy.toml
107+ disallowed_methods = " warn" # See clippy.toml
108+ disallowed_names = " warn" # See clippy.toml
109+ disallowed_script_idents = " warn" # See clippy.toml
110+ disallowed_types = " warn" # See clippy.toml
111+ doc_broken_link = " warn"
105112doc_comment_double_space_linebreaks = " warn"
113+ doc_include_without_cfg = " warn"
106114doc_link_with_quotes = " warn"
107115doc_markdown = " warn"
108116elidable_lifetime_names = " warn"
@@ -131,11 +139,11 @@ implied_bounds_in_impls = "warn"
131139imprecise_flops = " warn"
132140inconsistent_struct_constructor = " warn"
133141index_refutable_slice = " warn"
134- indexing_slicing = " warn"
135142inefficient_to_string = " warn"
136143infinite_loop = " warn"
137144into_iter_without_iter = " warn"
138145invalid_upcast_comparisons = " warn"
146+ ip_constant = " warn"
139147iter_filter_is_ok = " warn"
140148iter_filter_is_some = " warn"
141149iter_not_returning_iterator = " warn"
@@ -144,6 +152,7 @@ iter_on_single_items = "warn"
144152iter_over_hash_type = " warn"
145153iter_without_into_iter = " warn"
146154large_digit_groups = " warn"
155+ large_futures = " warn"
147156large_include_file = " warn"
148157large_stack_arrays = " warn"
149158large_stack_frames = " warn"
@@ -190,6 +199,7 @@ non_zero_suggestions = "warn"
190199nonstandard_macro_braces = " warn"
191200option_as_ref_cloned = " warn"
192201option_option = " warn"
202+ or_fun_call = " warn"
193203path_buf_push_overwrite = " warn"
194204pathbuf_init_then_push = " warn"
195205precedence_bits = " warn"
@@ -208,6 +218,7 @@ ref_patterns = "warn"
208218rest_pat_in_fully_bound_structs = " warn"
209219return_and_then = " warn"
210220same_functions_in_if_condition = " warn"
221+ self_only_used_in_recursion = " warn"
211222semicolon_if_nothing_returned = " warn"
212223set_contains_or_insert = " warn"
213224should_panic_without_expect = " warn"
@@ -220,7 +231,6 @@ string_add = "warn"
220231string_add_assign = " warn"
221232string_lit_as_bytes = " warn"
222233string_lit_chars_any = " warn"
223- string_to_string = " warn"
224234suspicious_command_arg_space = " warn"
225235suspicious_xor_used_as_pow = " warn"
226236todo = " warn"
@@ -230,7 +240,7 @@ trailing_empty_array = "warn"
230240trait_duplication_in_bounds = " warn"
231241transmute_ptr_to_ptr = " warn"
232242tuple_array_conversions = " warn"
233- unchecked_duration_subtraction = " warn"
243+ unchecked_time_subtraction = " warn"
234244undocumented_unsafe_blocks = " warn"
235245unimplemented = " warn"
236246uninhabited_references = " warn"
@@ -245,6 +255,7 @@ unnecessary_semicolon = "warn"
245255unnecessary_struct_initialization = " warn"
246256unnecessary_wraps = " warn"
247257unnested_or_patterns = " warn"
258+ unused_async = " warn"
248259unused_peekable = " warn"
249260unused_rounding = " warn"
250261unused_self = " warn"
@@ -257,6 +268,12 @@ verbose_file_reads = "warn"
257268wildcard_dependencies = " warn"
258269wildcard_imports = " warn"
259270zero_sized_map_values = " warn"
271+ cast_possible_wrap = " warn"
272+ comparison_chain = " warn"
260273
261- manual_range_contains = " allow" # this is better on 'allow'
262- map_unwrap_or = " allow" # this is better on 'allow'
274+ # These are meh:
275+ assigning_clones = " allow" # No please
276+ manual_range_contains = " allow" # this one is just worse imho
277+ map_unwrap_or = " allow" # so is this one
278+ self_named_module_files = " allow" # Disabled waiting on https://github.com/rust-lang/rust-clippy/issues/9602
279+ significant_drop_tightening = " allow" # Too many false positives
0 commit comments