chore: enable workspace configuration of lints in Cargo.toml

and use workspace configuration in each package.
This allow to customize clippy and rust lint configuration for project.
No particular configuration in this commit.
This commit is contained in:
Gwen Lg
2026-01-25 23:42:18 +01:00
committed by Alex
parent 0043ad08fa
commit 6cde00073f
15 changed files with 45 additions and 0 deletions
+3
View File
@@ -179,3 +179,6 @@ lto = "thin"
codegen-units = 16
opt-level = 3
strip = "debuginfo"
[workspace.lints.clippy]
# custom configuration
+3
View File
@@ -48,3 +48,6 @@ prometheus = { workspace = true, optional = true }
[features]
metrics = ["opentelemetry-prometheus", "prometheus"]
k2v = ["garage_model/k2v"]
[lints]
workspace = true
+3
View File
@@ -45,3 +45,6 @@ serde.workspace = true
serde_json.workspace = true
opentelemetry.workspace = true
[lints]
workspace = true
+3
View File
@@ -35,3 +35,6 @@ serde.workspace = true
serde_json.workspace = true
opentelemetry.workspace = true
[lints]
workspace = true
+3
View File
@@ -58,3 +58,6 @@ serde_json.workspace = true
quick-xml.workspace = true
opentelemetry.workspace = true
[lints]
workspace = true
+3
View File
@@ -40,3 +40,6 @@ tokio-util.workspace = true
[features]
system-libs = ["zstd/pkg-config"]
[lints]
workspace = true
+3
View File
@@ -33,3 +33,6 @@ bundled-libs = ["rusqlite?/bundled"]
lmdb = ["heed"]
fjall = ["dep:fjall", "dep:parking_lot"]
sqlite = ["rusqlite", "r2d2", "r2d2_sqlite"]
[lints]
workspace = true
+3
View File
@@ -119,3 +119,6 @@ system-libs = [
"garage_rpc/system-libs",
"sodiumoxide/use-pkg-config",
]
[lints]
workspace = true
+3
View File
@@ -45,3 +45,6 @@ path = "lib.rs"
name = "k2v-cli"
path = "bin/k2v-cli.rs"
required-features = ["cli"]
[lints]
workspace = true
+3
View File
@@ -46,3 +46,6 @@ k2v = ["garage_util/k2v"]
lmdb = ["garage_db/lmdb"]
sqlite = ["garage_db/sqlite"]
fjall = ["garage_db/fjall"]
[lints]
workspace = true
+3
View File
@@ -42,3 +42,6 @@ opentelemetry-contrib = { workspace = true, optional = true }
[dev-dependencies]
pretty_env_logger.workspace = true
[lints]
workspace = true
+3
View File
@@ -51,3 +51,6 @@ opentelemetry.workspace = true
kubernetes-discovery = ["kube", "k8s-openapi", "schemars"]
consul-discovery = ["reqwest", "thiserror"]
system-libs = ["sodiumoxide/use-pkg-config"]
[lints]
workspace = true
+3
View File
@@ -33,3 +33,6 @@ serde_bytes.workspace = true
futures.workspace = true
futures-util.workspace = true
tokio.workspace = true
[lints]
workspace = true
+3
View File
@@ -52,3 +52,6 @@ mktemp.workspace = true
[features]
k2v = []
[lints]
workspace = true
+3
View File
@@ -31,3 +31,6 @@ hyper.workspace = true
tokio.workspace = true
opentelemetry.workspace = true
[lints]
workspace = true