-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
119 lines (108 loc) · 3.73 KB
/
Cargo.toml
File metadata and controls
119 lines (108 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[workspace]
resolver = "3"
members = [
"sample-uefi",
"sigul-pesign-bridge",
"siguldry",
"siguldry-pkcs11",
"siguldry-test",
"xtask",
]
[workspace.package]
# This targets the latest Enterprise Linux Rust version.
rust-version = "1.88"
edition = "2024"
license = "MIT"
[workspace.lints.rust]
# Opt in to a few additional lints from rustc
#
# Refer to `rustc -W help` output for lint groups and individual rules.
future-incompatible = "warn"
nonstandard-style = "warn"
rust-2018-idioms = "warn"
[workspace.lints.clippy]
# Warn on all default lint categories (correctness, suspicious, style, complexity, and perf).
# All remaining enabled lints are from non-default categories which may, in the future, enter
# one of the default categories.
all = "warn"
# Opt in to some non-standard clippy lints.
#
# This list was based off of the Embark Studios standard lints v6 for Rust 1.55+, but
# has been adjusted since some lints have either been removed or moved to a default
# category as of Rust 1.88.
#######################################################################
# Pedantic Lints #
# These lints are rather strict or occasionally have false positives. #
#######################################################################
# The following rules are machine-applicable.
checked_conversions = "warn"
# This mangles the CLI documentation, it would be nice to have
# if that quirk could be addressed.
# doc_markdown = "warn"
enum_glob_use = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
implicit_clone = "warn"
inefficient_to_string = "warn"
map_unwrap_or = "warn"
needless_for_each = "warn"
ptr_as_ptr = "warn"
semicolon_if_nothing_returned = "warn"
single_match_else = "warn"
unnested_or_patterns = "warn"
# The following rules are NOT machine-applicable.
empty_enums = "warn"
expl_impl_clone_on_copy = "warn"
fn_params_excessive_bools = "warn"
from_iter_instead_of_collect = "warn"
invalid_upcast_comparisons = "warn"
large_digit_groups = "warn"
large_stack_arrays = "warn"
large_types_passed_by_value = "warn"
linkedlist = "warn"
macro_use_imports = "warn"
match_same_arms = "warn"
match_wild_err_arm = "warn"
match_wildcard_for_single_variants = "warn"
mut_mut = "warn"
needless_continue = "warn"
option_option = "warn"
ref_option_ref = "warn"
same_functions_in_if_condition = "warn"
string_add_assign = "warn"
unused_self = "warn"
zero_sized_map_values = "warn"
#######################################################################
# Restriction Lints #
# These lints prevent use of various language and library features. #
#######################################################################
# The following rules are machine-applicable.
dbg_macro = "warn"
lossy_float_literal = "warn"
# The following rules are NOT machine-applicable.
exit = "warn"
float_cmp_const = "warn"
mem_forget = "warn"
mutex_integer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
string_add = "warn"
todo = "warn"
unimplemented = "warn"
verbose_file_reads = "warn"
exhaustive_enums = "warn"
indexing_slicing = "warn"
#######################################################################
# Nursery Lints #
# These lints are still under development in Clippy. #
#######################################################################
# The following rules are machine-applicable.
imprecise_flops = "warn"
string_lit_as_bytes = "warn"
trait_duplication_in_bounds = "warn"
# The following rules are NOT machine-applicable.
debug_assert_with_mut_call = "warn"
fallible_impl_from = "warn"
path_buf_push_overwrite = "warn"