mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-11 14:56:53 +00:00
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:
@@ -179,3 +179,6 @@ lto = "thin"
|
||||
codegen-units = 16
|
||||
opt-level = 3
|
||||
strip = "debuginfo"
|
||||
|
||||
[workspace.lints.clippy]
|
||||
# custom configuration
|
||||
|
||||
@@ -48,3 +48,6 @@ prometheus = { workspace = true, optional = true }
|
||||
[features]
|
||||
metrics = ["opentelemetry-prometheus", "prometheus"]
|
||||
k2v = ["garage_model/k2v"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -45,3 +45,6 @@ serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
|
||||
opentelemetry.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -35,3 +35,6 @@ serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
|
||||
opentelemetry.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -58,3 +58,6 @@ serde_json.workspace = true
|
||||
quick-xml.workspace = true
|
||||
|
||||
opentelemetry.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -40,3 +40,6 @@ tokio-util.workspace = true
|
||||
|
||||
[features]
|
||||
system-libs = ["zstd/pkg-config"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -33,3 +33,6 @@ bundled-libs = ["rusqlite?/bundled"]
|
||||
lmdb = ["heed"]
|
||||
fjall = ["dep:fjall", "dep:parking_lot"]
|
||||
sqlite = ["rusqlite", "r2d2", "r2d2_sqlite"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -119,3 +119,6 @@ system-libs = [
|
||||
"garage_rpc/system-libs",
|
||||
"sodiumoxide/use-pkg-config",
|
||||
]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -45,3 +45,6 @@ path = "lib.rs"
|
||||
name = "k2v-cli"
|
||||
path = "bin/k2v-cli.rs"
|
||||
required-features = ["cli"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -46,3 +46,6 @@ k2v = ["garage_util/k2v"]
|
||||
lmdb = ["garage_db/lmdb"]
|
||||
sqlite = ["garage_db/sqlite"]
|
||||
fjall = ["garage_db/fjall"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -42,3 +42,6 @@ opentelemetry-contrib = { workspace = true, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
pretty_env_logger.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -33,3 +33,6 @@ serde_bytes.workspace = true
|
||||
futures.workspace = true
|
||||
futures-util.workspace = true
|
||||
tokio.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -52,3 +52,6 @@ mktemp.workspace = true
|
||||
|
||||
[features]
|
||||
k2v = []
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -31,3 +31,6 @@ hyper.workspace = true
|
||||
tokio.workspace = true
|
||||
|
||||
opentelemetry.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
Reference in New Issue
Block a user