-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
81 lines (69 loc) · 2.54 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
[package]
name = "mate"
version = "0.1.6"
authors = [
"Luca Carlig <[email protected]",
"Cameron Low <[email protected]>",
]
description = "library of lints for automatic parallelization"
edition = "2021"
publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib"]
[dependencies]
to_iter = { path = "lints/to_iter", features = ["rlib"] }
for_each = { path = "lints/for_each", features = ["rlib"] }
filter = { path = "lints/filter", features = ["rlib"] }
map = { path = "lints/map", features = ["rlib"] }
fold = { path = "lints/fold", features = ["rlib"] }
par_fold = { path = "lints/par_fold", features = ["rlib"] }
par_iter = { path = "lints/par_iter", features = ["rlib"] }
rayon_imports = { path = "lints/rayon_imports", features = ["rlib"] }
dylint_linting = { version = "3.2.1" }
[package.metadata.rust-analyzer]
rustc_private = true
[workspace]
members = [
"lints/rayon_imports",
"lints/to_iter",
"lints/for_each",
"lints/filter",
"lints/map",
"lints/fold",
"lints/par_fold",
"lints/par_iter",
"utils",
]
[dev-dependencies]
dylint_testing = "3.1.2"
[workspace.dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "37f4fbb92913586b73a35772efd00eccd1cbbe13" }
utils = { path = "utils" }
[workspace.lints.rust.unexpected_cfgs]
level = "deny"
check-cfg = ["cfg(dylint_lib, values(any()))"]
[workspace.metadata.dylint]
clibraries = [{ path = "../mate" }]
[workspace.lints.clippy]
# GROUPS
perf = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -2 }
correctness = { level = "forbid", priority = -3 }
complexity = { level = "forbid", priority = -4 }
# INDIVIDUAL LINTS
semicolon_if_nothing_returned = { level = "allow", priority = 0 }
similar_names = { level = "allow", priority = 0 }
too_many_lines = { level = "allow", priority = 0 }
alloc_instead_of_core = { level = "warn", priority = 0 }
as_conversions = { level = "warn", priority = 0 }
as_underscore = { level = "warn", priority = 0 }
dbg_macro = { level = "warn", priority = 0 }
default_numeric_fallback = { level = "warn", priority = 0 }
deref_by_slicing = { level = "warn", priority = 0 }
empty_enum_variants_with_brackets = { level = "warn", priority = 0 }
empty_structs_with_brackets = { level = "warn", priority = 0 }
expect_used = { level = "warn", priority = 0 }
format_push_string = { level = "warn", priority = 0 }
if_then_some_else_none = { level = "warn", priority = 0 }
unwrap_used = { level = "warn", priority = 0 }