-
Notifications
You must be signed in to change notification settings - Fork 21
/
Cargo.toml
129 lines (123 loc) · 3.76 KB
/
Cargo.toml
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
120
121
122
123
124
125
126
127
128
129
[package]
authors = ["EFanZh <[email protected]>"]
edition = "2021"
name = "leet-code"
version = "0.1.0"
[workspace]
members = ["tools/check-cpp-code-format", "tools/progress-tracker", "xtask"]
[workspace.lints.rust]
absolute_paths_not_starting_with_crate = "warn"
explicit_outlives_requirements = "warn"
let_underscore_drop = "warn"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_abi = "warn"
missing_docs = { level = "allow", priority = 1 }
noop_method_call = "warn"
single_use_lifetimes = "warn"
trivial_casts = { level = "allow", priority = 1 }
trivial_numeric_casts = "warn"
unsafe_code = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_crate_dependencies = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = { level = "allow", priority = 1 } # Temporary.
variant_size_differences = "warn"
[workspace.lints.clippy]
alloc_instead_of_core = "warn"
allow_attributes_without_reason = "warn"
as_ptr_cast_mut = "warn"
branches_sharing_code = "warn"
cargo_common_metadata = { level = "allow", priority = 1 }
cast_possible_truncation = { level = "allow", priority = 1 }
cast_possible_wrap = { level = "allow", priority = 1 }
cast_sign_loss = { level = "allow", priority = 1 }
clone_on_ref_ptr = "warn"
cognitive_complexity = "warn"
create_dir = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
decimal_literal_representation = { level = "allow", priority = 1 }
deref_by_slicing = "warn"
derive_partial_eq_without_eq = "warn"
empty_drop = "warn"
empty_line_after_outer_attr = "warn"
empty_structs_with_brackets = "warn"
equatable_if_let = "warn"
fallible_impl_from = "warn"
filetype_is_file = "warn"
float_cmp_const = "warn"
format_push_string = "warn"
get_unwrap = "warn"
if_then_some_else_none = "warn"
imprecise_flops = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
large_include_file = "warn"
let_underscore_must_use = "warn"
lint_groups_priority = { level = "allow", priority = 1 } # Temporary.
lossy_float_literal = "warn"
manual_clamp = "warn"
map_err_ignore = "warn"
missing_panics_doc = { level = "allow", priority = 1 }
mixed_read_write_in_expression = "warn"
multiple_inherent_impl = "warn"
must_use_candidate = { level = "allow", priority = 1 }
mutex_atomic = "warn"
mutex_integer = "warn"
needless_collect = "warn"
needless_pass_by_value = { level = "allow", priority = 1 }
negative_feature_names = "warn"
non_send_fields_in_send_ty = "warn"
nonstandard_macro_braces = "warn"
option_if_let_else = "warn"
or_fun_call = "warn"
panic = "warn"
panic_in_result_fn = "warn"
partial_pub_fields = "warn"
path_buf_push_overwrite = "warn"
pedantic = "warn"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_feature_names = "warn"
redundant_pub_crate = "warn"
rest_pat_in_fully_bound_structs = "warn"
same_name_method = { level = "allow", priority = 1 }
self_named_module_files = "warn"
significant_drop_in_scrutinee = "warn"
string_lit_as_bytes = "warn"
string_to_string = "warn"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
todo = "warn"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
transmute_undefined_repr = "warn"
trivial_regex = "warn"
try_err = "warn"
type_repetition_in_bounds = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unneeded_field_pattern = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
use_debug = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
verbose_file_reads = "warn"
wildcard_dependencies = { level = "allow", priority = 1 }
[lints]
workspace = true
[dependencies]
rand = "0.8"
[dev-dependencies]
approx = "*"