mirror of
https://github.com/NotAShelf/microfetch.git
synced 2025-11-25 16:52:50 +00:00
meta: selectively enable Clippy lint-groups projectwide
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ic6eedd28e1ad48a67c988607dd45d7686a6a6964
This commit is contained in:
parent
4c22cf5d2a
commit
af8031f9ec
1 changed files with 35 additions and 11 deletions
46
Cargo.toml
46
Cargo.toml
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "microfetch"
|
name = "microfetch"
|
||||||
version = "0.4.9"
|
version = "0.4.9"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
|
|
@ -12,28 +12,52 @@ name = "microfetch"
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nix = { version = "0.30.1", default-features = false, features = ["fs", "hostname", "feature"] }
|
|
||||||
libc = "0.2.175"
|
libc = "0.2.175"
|
||||||
|
nix = { default-features = false, features = [ "fs", "hostname", "feature" ], version = "0.30.1" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
criterion = "0.7"
|
criterion = "0.7"
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "benchmark"
|
|
||||||
harness = false
|
harness = false
|
||||||
|
name = "benchmark"
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
opt-level = 3
|
opt-level = 1
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
strip = true
|
|
||||||
opt-level = "s"
|
|
||||||
lto = true
|
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
panic = "abort"
|
lto = true
|
||||||
|
opt-level = "s"
|
||||||
|
panic = "abort"
|
||||||
|
strip = true
|
||||||
|
|
||||||
[profile.profiler]
|
[profile.profiler]
|
||||||
inherits = "release"
|
debug = true
|
||||||
debug = true
|
inherits = "release"
|
||||||
split-debuginfo = "unpacked"
|
split-debuginfo = "unpacked"
|
||||||
strip = "none"
|
strip = "none"
|
||||||
|
|
||||||
|
[lints.clippy]
|
||||||
|
complexity = { level = "warn", priority = -1 }
|
||||||
|
nursery = { level = "warn", priority = -1 }
|
||||||
|
pedantic = { level = "warn", priority = -1 }
|
||||||
|
perf = { level = "warn", priority = -1 }
|
||||||
|
style = { level = "warn", priority = -1 }
|
||||||
|
|
||||||
|
# The lint groups above enable some less-than-desirable rules, we should manually
|
||||||
|
# enable those to keep our sanity.
|
||||||
|
absolute_paths = "allow"
|
||||||
|
arbitrary_source_item_ordering = "allow"
|
||||||
|
implicit_return = "allow"
|
||||||
|
missing_docs_in_private_items = "allow"
|
||||||
|
non_ascii_literal = "allow"
|
||||||
|
pattern_type_mismatch = "allow"
|
||||||
|
print_stdout = "allow"
|
||||||
|
question_mark_used = "allow"
|
||||||
|
similar_names = "allow"
|
||||||
|
single_call_fn = "allow"
|
||||||
|
std_instead_of_core = "allow"
|
||||||
|
too_long_first_doc_paragraph = "allow"
|
||||||
|
too_many_lines = "allow"
|
||||||
|
unused_trait_names = "allow"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue