Skip to content

Commit af8031f

Browse files
committed
meta: selectively enable Clippy lint-groups projectwide
Signed-off-by: NotAShelf <[email protected]> Change-Id: Ic6eedd28e1ad48a67c988607dd45d7686a6a6964
1 parent 4c22cf5 commit af8031f

File tree

1 file changed

+35
-11
lines changed

1 file changed

+35
-11
lines changed

Cargo.toml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "microfetch"
2+
name = "microfetch"
33
version = "0.4.9"
44
edition = "2024"
55

@@ -12,28 +12,52 @@ name = "microfetch"
1212
path = "src/main.rs"
1313

1414
[dependencies]
15-
nix = { version = "0.30.1", default-features = false, features = ["fs", "hostname", "feature"] }
1615
libc = "0.2.175"
16+
nix = { default-features = false, features = [ "fs", "hostname", "feature" ], version = "0.30.1" }
1717

1818
[dev-dependencies]
1919
criterion = "0.7"
2020

2121
[[bench]]
22-
name = "benchmark"
2322
harness = false
23+
name = "benchmark"
2424

2525
[profile.dev]
26-
opt-level = 3
26+
opt-level = 1
2727

2828
[profile.release]
29-
strip = true
30-
opt-level = "s"
31-
lto = true
3229
codegen-units = 1
33-
panic = "abort"
30+
lto = true
31+
opt-level = "s"
32+
panic = "abort"
33+
strip = true
3434

3535
[profile.profiler]
36-
inherits = "release"
37-
debug = true
36+
debug = true
37+
inherits = "release"
3838
split-debuginfo = "unpacked"
39-
strip = "none"
39+
strip = "none"
40+
41+
[lints.clippy]
42+
complexity = { level = "warn", priority = -1 }
43+
nursery = { level = "warn", priority = -1 }
44+
pedantic = { level = "warn", priority = -1 }
45+
perf = { level = "warn", priority = -1 }
46+
style = { level = "warn", priority = -1 }
47+
48+
# The lint groups above enable some less-than-desirable rules, we should manually
49+
# enable those to keep our sanity.
50+
absolute_paths = "allow"
51+
arbitrary_source_item_ordering = "allow"
52+
implicit_return = "allow"
53+
missing_docs_in_private_items = "allow"
54+
non_ascii_literal = "allow"
55+
pattern_type_mismatch = "allow"
56+
print_stdout = "allow"
57+
question_mark_used = "allow"
58+
similar_names = "allow"
59+
single_call_fn = "allow"
60+
std_instead_of_core = "allow"
61+
too_long_first_doc_paragraph = "allow"
62+
too_many_lines = "allow"
63+
unused_trait_names = "allow"

0 commit comments

Comments
 (0)