From e9a2b0a9eeecba2ecddeb84cc030bc7fe47aabf5 Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Thu, 22 Feb 2024 09:01:10 +0800 Subject: [PATCH] chore: use workspace-wide lints (#3352) * chore: use workspace-wide lints * respond to review --- .cargo/config.toml | 10 ---------- Cargo.toml | 5 +++++ benchmarks/Cargo.toml | 3 +++ src/api/Cargo.toml | 3 +++ src/auth/Cargo.toml | 3 +++ src/catalog/Cargo.toml | 3 +++ src/client/Cargo.toml | 3 +++ src/cmd/Cargo.toml | 3 +++ src/common/base/Cargo.toml | 3 +++ src/common/catalog/Cargo.toml | 3 +++ src/common/config/Cargo.toml | 3 +++ src/common/datasource/Cargo.toml | 3 +++ src/common/decimal/Cargo.toml | 3 +++ src/common/error/Cargo.toml | 3 +++ src/common/function/Cargo.toml | 3 +++ src/common/greptimedb-telemetry/Cargo.toml | 3 +++ src/common/grpc-expr/Cargo.toml | 3 +++ src/common/grpc/Cargo.toml | 3 +++ src/common/macro/Cargo.toml | 3 +++ src/common/mem-prof/Cargo.toml | 3 +++ src/common/meta/Cargo.toml | 3 +++ src/common/plugins/Cargo.toml | 3 ++- src/common/procedure-test/Cargo.toml | 3 +++ src/common/procedure/Cargo.toml | 3 +++ src/common/query/Cargo.toml | 3 +++ src/common/recordbatch/Cargo.toml | 3 +++ src/common/runtime/Cargo.toml | 3 +++ src/common/substrait/Cargo.toml | 3 +++ src/common/telemetry/Cargo.toml | 3 +++ src/common/test-util/Cargo.toml | 3 +++ src/common/time/Cargo.toml | 3 +++ src/common/version/Cargo.toml | 3 +++ src/common/wal/Cargo.toml | 3 +++ src/datanode/Cargo.toml | 3 +++ src/datatypes/Cargo.toml | 3 +++ src/file-engine/Cargo.toml | 3 +++ src/flow/Cargo.toml | 3 +++ src/frontend/Cargo.toml | 3 +++ src/index/Cargo.toml | 3 +++ src/log-store/Cargo.toml | 3 +++ src/meta-client/Cargo.toml | 3 +++ src/meta-srv/Cargo.toml | 3 +++ src/metric-engine/Cargo.toml | 3 +++ src/mito2/Cargo.toml | 3 +++ src/object-store/Cargo.toml | 3 +++ src/operator/Cargo.toml | 3 +++ src/partition/Cargo.toml | 3 +++ src/plugins/Cargo.toml | 3 +++ src/promql/Cargo.toml | 3 +++ src/puffin/Cargo.toml | 3 +++ src/query/Cargo.toml | 3 +++ src/script/Cargo.toml | 3 +++ src/servers/Cargo.toml | 3 +++ src/session/Cargo.toml | 3 +++ src/sql/Cargo.toml | 3 +++ src/store-api/Cargo.toml | 3 +++ src/table/Cargo.toml | 3 +++ tests-fuzz/Cargo.toml | 3 +++ tests-integration/Cargo.toml | 3 +++ tests/runner/Cargo.toml | 3 +++ 60 files changed, 178 insertions(+), 11 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 9efb7a9c5c07..215eeab77090 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,13 +3,3 @@ linker = "aarch64-linux-gnu-gcc" [alias] sqlness = "run --bin sqlness-runner --" - - -[build] -rustflags = [ - # lints - # TODO: use lint configuration in cargo https://github.com/rust-lang/cargo/issues/5034 - "-Wclippy::print_stdout", - "-Wclippy::print_stderr", - "-Wclippy::implicit_clone", -] diff --git a/Cargo.toml b/Cargo.toml index 9f4e54d13748..1525f0c9fbbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,6 +66,11 @@ version = "0.6.0" edition = "2021" license = "Apache-2.0" +[workspace.lints] +clippy.print_stdout = "warn" +clippy.print_sterr = "warn" +clippy.implicit_clone = "warn" + [workspace.dependencies] ahash = { version = "0.8", features = ["compile-time-rng"] } aquamarine = "0.3" diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index d56524fe36a9..c2fddd474ab1 100644 --- a/benchmarks/Cargo.toml +++ b/benchmarks/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] arrow.workspace = true chrono.workspace = true diff --git a/src/api/Cargo.toml b/src/api/Cargo.toml index 9beea1ff51b9..d3390e6c213f 100644 --- a/src/api/Cargo.toml +++ b/src/api/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] common-base.workspace = true common-decimal.workspace = true diff --git a/src/auth/Cargo.toml b/src/auth/Cargo.toml index 748da3b40f8b..d50b63fcfcbf 100644 --- a/src/auth/Cargo.toml +++ b/src/auth/Cargo.toml @@ -8,6 +8,9 @@ license.workspace = true default = [] testing = [] +[lints] +workspace = true + [dependencies] api.workspace = true async-trait.workspace = true diff --git a/src/catalog/Cargo.toml b/src/catalog/Cargo.toml index b3355dd2d9c6..e16eadfdf8c1 100644 --- a/src/catalog/Cargo.toml +++ b/src/catalog/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [features] testing = [] +[lints] +workspace = true + [dependencies] api.workspace = true arc-swap = "1.0" diff --git a/src/client/Cargo.toml b/src/client/Cargo.toml index ddd13b887dbd..914c808c6661 100644 --- a/src/client/Cargo.toml +++ b/src/client/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [features] testing = [] +[lints] +workspace = true + [dependencies] api.workspace = true arc-swap = "1.6" diff --git a/src/cmd/Cargo.toml b/src/cmd/Cargo.toml index 01fa554cb537..d6e11b68a376 100644 --- a/src/cmd/Cargo.toml +++ b/src/cmd/Cargo.toml @@ -12,6 +12,9 @@ path = "src/bin/greptime.rs" [features] tokio-console = ["common-telemetry/tokio-console"] +[lints] +workspace = true + [dependencies] anymap = "1.0.0-beta.2" async-trait.workspace = true diff --git a/src/common/base/Cargo.toml b/src/common/base/Cargo.toml index 54926afcc421..db8d13e5e56f 100644 --- a/src/common/base/Cargo.toml +++ b/src/common/base/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] anymap = "1.0.0-beta.2" bitvec = "1.0" diff --git a/src/common/catalog/Cargo.toml b/src/common/catalog/Cargo.toml index 3acac32fe0c0..61f49ab0e4b3 100644 --- a/src/common/catalog/Cargo.toml +++ b/src/common/catalog/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] common-error.workspace = true common-macro.workspace = true diff --git a/src/common/config/Cargo.toml b/src/common/config/Cargo.toml index 829c2ee53b0c..dccd1f2df4a3 100644 --- a/src/common/config/Cargo.toml +++ b/src/common/config/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] common-base.workspace = true humantime-serde.workspace = true diff --git a/src/common/datasource/Cargo.toml b/src/common/datasource/Cargo.toml index 1e456b40c860..8f11043afd73 100644 --- a/src/common/datasource/Cargo.toml +++ b/src/common/datasource/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] arrow.workspace = true arrow-schema.workspace = true diff --git a/src/common/decimal/Cargo.toml b/src/common/decimal/Cargo.toml index adf9b08446a8..671364d49fae 100644 --- a/src/common/decimal/Cargo.toml +++ b/src/common/decimal/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] arrow.workspace = true bigdecimal.workspace = true diff --git a/src/common/error/Cargo.toml b/src/common/error/Cargo.toml index ab157787cab2..92ab12dd07f5 100644 --- a/src/common/error/Cargo.toml +++ b/src/common/error/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] snafu.workspace = true strum.workspace = true diff --git a/src/common/function/Cargo.toml b/src/common/function/Cargo.toml index 7053d10771ad..140b1881c705 100644 --- a/src/common/function/Cargo.toml +++ b/src/common/function/Cargo.toml @@ -4,6 +4,9 @@ edition.workspace = true version.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] api.workspace = true arc-swap = "1.0" diff --git a/src/common/greptimedb-telemetry/Cargo.toml b/src/common/greptimedb-telemetry/Cargo.toml index 991f40890ee5..6bff7a719e91 100644 --- a/src/common/greptimedb-telemetry/Cargo.toml +++ b/src/common/greptimedb-telemetry/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] async-trait.workspace = true common-error.workspace = true diff --git a/src/common/grpc-expr/Cargo.toml b/src/common/grpc-expr/Cargo.toml index d8ae57980cef..3415b54200b3 100644 --- a/src/common/grpc-expr/Cargo.toml +++ b/src/common/grpc-expr/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] api.workspace = true async-trait.workspace = true diff --git a/src/common/grpc/Cargo.toml b/src/common/grpc/Cargo.toml index 9c71d5786039..0f11d6873158 100644 --- a/src/common/grpc/Cargo.toml +++ b/src/common/grpc/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] api.workspace = true arrow-flight.workspace = true diff --git a/src/common/macro/Cargo.toml b/src/common/macro/Cargo.toml index 1ba1c2bbc8c5..64080739aa1e 100644 --- a/src/common/macro/Cargo.toml +++ b/src/common/macro/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [lib] proc-macro = true +[lints] +workspace = true + [dependencies] proc-macro2 = "1.0.66" quote = "1.0" diff --git a/src/common/mem-prof/Cargo.toml b/src/common/mem-prof/Cargo.toml index c30b6334df6e..666565264508 100644 --- a/src/common/mem-prof/Cargo.toml +++ b/src/common/mem-prof/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] common-error.workspace = true common-macro.workspace = true diff --git a/src/common/meta/Cargo.toml b/src/common/meta/Cargo.toml index c6feeddacb87..554b0d6d795d 100644 --- a/src/common/meta/Cargo.toml +++ b/src/common/meta/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [features] testing = [] +[lints] +workspace = true + [dependencies] api.workspace = true async-recursion = "1.0" diff --git a/src/common/plugins/Cargo.toml b/src/common/plugins/Cargo.toml index 8fa1069158b4..92dc34201474 100644 --- a/src/common/plugins/Cargo.toml +++ b/src/common/plugins/Cargo.toml @@ -4,6 +4,7 @@ version.workspace = true edition.workspace = true license.workspace = true -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true [dependencies] diff --git a/src/common/procedure-test/Cargo.toml b/src/common/procedure-test/Cargo.toml index 93c379148b4e..2e7674727056 100644 --- a/src/common/procedure-test/Cargo.toml +++ b/src/common/procedure-test/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] async-trait.workspace = true common-procedure.workspace = true diff --git a/src/common/procedure/Cargo.toml b/src/common/procedure/Cargo.toml index 795df7eea9ea..af755b2b87f3 100644 --- a/src/common/procedure/Cargo.toml +++ b/src/common/procedure/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [features] testing = [] +[lints] +workspace = true + [dependencies] async-stream.workspace = true async-trait.workspace = true diff --git a/src/common/query/Cargo.toml b/src/common/query/Cargo.toml index 0232722499ac..443640016488 100644 --- a/src/common/query/Cargo.toml +++ b/src/common/query/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] api.workspace = true async-trait.workspace = true diff --git a/src/common/recordbatch/Cargo.toml b/src/common/recordbatch/Cargo.toml index ac91e934cc7d..01d051067b94 100644 --- a/src/common/recordbatch/Cargo.toml +++ b/src/common/recordbatch/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] arc-swap = "1.6" common-base.workspace = true diff --git a/src/common/runtime/Cargo.toml b/src/common/runtime/Cargo.toml index 76dc0aa9ffa0..a6da1f571fc2 100644 --- a/src/common/runtime/Cargo.toml +++ b/src/common/runtime/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] async-trait.workspace = true common-error.workspace = true diff --git a/src/common/substrait/Cargo.toml b/src/common/substrait/Cargo.toml index 891cba1d833f..1c4f4047977b 100644 --- a/src/common/substrait/Cargo.toml +++ b/src/common/substrait/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] async-recursion = "1.0" async-trait.workspace = true diff --git a/src/common/telemetry/Cargo.toml b/src/common/telemetry/Cargo.toml index d25e89e6575f..6a8dc96b460b 100644 --- a/src/common/telemetry/Cargo.toml +++ b/src/common/telemetry/Cargo.toml @@ -8,6 +8,9 @@ license.workspace = true tokio-console = ["console-subscriber", "tokio/tracing"] deadlock_detection = ["parking_lot/deadlock_detection"] +[lints] +workspace = true + [dependencies] atty = "0.2" backtrace = "0.3" diff --git a/src/common/test-util/Cargo.toml b/src/common/test-util/Cargo.toml index 310fb45a7e35..2b66dd45ce3a 100644 --- a/src/common/test-util/Cargo.toml +++ b/src/common/test-util/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] client.workspace = true common-query.workspace = true diff --git a/src/common/time/Cargo.toml b/src/common/time/Cargo.toml index 032520ffee18..fdd06140f187 100644 --- a/src/common/time/Cargo.toml +++ b/src/common/time/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] arrow.workspace = true chrono.workspace = true diff --git a/src/common/version/Cargo.toml b/src/common/version/Cargo.toml index 7dd296e0d507..a766329843bf 100644 --- a/src/common/version/Cargo.toml +++ b/src/common/version/Cargo.toml @@ -4,5 +4,8 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] build-data = "0.1.4" diff --git a/src/common/wal/Cargo.toml b/src/common/wal/Cargo.toml index b70ef3740e0e..3b84673bb1ee 100644 --- a/src/common/wal/Cargo.toml +++ b/src/common/wal/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [features] testing = [] +[lints] +workspace = true + [dependencies] common-base.workspace = true common-telemetry.workspace = true diff --git a/src/datanode/Cargo.toml b/src/datanode/Cargo.toml index dc50c905f40a..38fe11613139 100644 --- a/src/datanode/Cargo.toml +++ b/src/datanode/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [features] testing = [] +[lints] +workspace = true + [dependencies] api.workspace = true arrow-flight.workspace = true diff --git a/src/datatypes/Cargo.toml b/src/datatypes/Cargo.toml index ce40c640d492..ee8254627260 100644 --- a/src/datatypes/Cargo.toml +++ b/src/datatypes/Cargo.toml @@ -8,6 +8,9 @@ license.workspace = true default = [] test = [] +[lints] +workspace = true + [dependencies] arrow.workspace = true arrow-array.workspace = true diff --git a/src/file-engine/Cargo.toml b/src/file-engine/Cargo.toml index f0938c545bad..3ce83b6b791c 100644 --- a/src/file-engine/Cargo.toml +++ b/src/file-engine/Cargo.toml @@ -8,6 +8,9 @@ license.workspace = true default = [] test = ["common-test-util"] +[lints] +workspace = true + [dependencies] api = { workspace = true, optional = true } async-trait = "0.1" diff --git a/src/flow/Cargo.toml b/src/flow/Cargo.toml index 2b244314cb02..0dc614a6c06c 100644 --- a/src/flow/Cargo.toml +++ b/src/flow/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] api.workspace = true bimap = "0.6.3" diff --git a/src/frontend/Cargo.toml b/src/frontend/Cargo.toml index 81990c37f192..9d5578eb50be 100644 --- a/src/frontend/Cargo.toml +++ b/src/frontend/Cargo.toml @@ -9,6 +9,9 @@ default = ["python"] python = ["dep:script"] testing = [] +[lints] +workspace = true + [dependencies] api.workspace = true arc-swap = "1.0" diff --git a/src/index/Cargo.toml b/src/index/Cargo.toml index 082831b7315c..effa0a79e635 100644 --- a/src/index/Cargo.toml +++ b/src/index/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] async-trait.workspace = true asynchronous-codec = "0.7.0" diff --git a/src/log-store/Cargo.toml b/src/log-store/Cargo.toml index 82d8c2a6ba01..e134399e4558 100644 --- a/src/log-store/Cargo.toml +++ b/src/log-store/Cargo.toml @@ -9,6 +9,9 @@ protobuf-build = { version = "0.15", default-features = false, features = [ "protobuf-codec", ] } +[lints] +workspace = true + [dependencies] async-stream.workspace = true async-trait.workspace = true diff --git a/src/meta-client/Cargo.toml b/src/meta-client/Cargo.toml index 921fe610548f..2ba3b784b71d 100644 --- a/src/meta-client/Cargo.toml +++ b/src/meta-client/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] api.workspace = true async-trait = "0.1" diff --git a/src/meta-srv/Cargo.toml b/src/meta-srv/Cargo.toml index 1202514ac686..176c4a1f4f37 100644 --- a/src/meta-srv/Cargo.toml +++ b/src/meta-srv/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [features] mock = [] +[lints] +workspace = true + [dependencies] anymap = "1.0.0-beta.2" api.workspace = true diff --git a/src/metric-engine/Cargo.toml b/src/metric-engine/Cargo.toml index 4722fa81e2fc..13aa59fe8b30 100644 --- a/src/metric-engine/Cargo.toml +++ b/src/metric-engine/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] api.workspace = true aquamarine.workspace = true diff --git a/src/mito2/Cargo.toml b/src/mito2/Cargo.toml index d9aecbdd7f52..5ebe42a9da5e 100644 --- a/src/mito2/Cargo.toml +++ b/src/mito2/Cargo.toml @@ -8,6 +8,9 @@ license.workspace = true default = [] test = ["common-test-util", "log-store"] +[lints] +workspace = true + [dependencies] anymap = "1.0.0-beta.2" api.workspace = true diff --git a/src/object-store/Cargo.toml b/src/object-store/Cargo.toml index 1dcd71b2d5df..c66e4dbc16fc 100644 --- a/src/object-store/Cargo.toml +++ b/src/object-store/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] async-trait = "0.1" bytes.workspace = true diff --git a/src/operator/Cargo.toml b/src/operator/Cargo.toml index 0543604528f9..a6dc31b5c0f5 100644 --- a/src/operator/Cargo.toml +++ b/src/operator/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [features] testing = [] +[lints] +workspace = true + [dependencies] api.workspace = true async-trait = "0.1" diff --git a/src/partition/Cargo.toml b/src/partition/Cargo.toml index 4fadc02b590c..48f7c036b701 100644 --- a/src/partition/Cargo.toml +++ b/src/partition/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] api.workspace = true async-trait = "0.1" diff --git a/src/plugins/Cargo.toml b/src/plugins/Cargo.toml index a11150f7f34e..c927fb3d33c5 100644 --- a/src/plugins/Cargo.toml +++ b/src/plugins/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] auth.workspace = true common-base.workspace = true diff --git a/src/promql/Cargo.toml b/src/promql/Cargo.toml index fc8533656746..9e7bc01ae8ac 100644 --- a/src/promql/Cargo.toml +++ b/src/promql/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] ahash.workspace = true async-recursion = "1.0" diff --git a/src/puffin/Cargo.toml b/src/puffin/Cargo.toml index 0a42084e390a..7e43c29e39e5 100644 --- a/src/puffin/Cargo.toml +++ b/src/puffin/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] async-trait.workspace = true bitflags.workspace = true diff --git a/src/query/Cargo.toml b/src/query/Cargo.toml index 8976a6967ed9..7b252d69107e 100644 --- a/src/query/Cargo.toml +++ b/src/query/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] ahash.workspace = true api.workspace = true diff --git a/src/script/Cargo.toml b/src/script/Cargo.toml index 825e36df99fa..81e22374861a 100644 --- a/src/script/Cargo.toml +++ b/src/script/Cargo.toml @@ -23,6 +23,9 @@ python = [ "dep:paste", ] +[lints] +workspace = true + [dependencies] api.workspace = true arc-swap = "1.0" diff --git a/src/servers/Cargo.toml b/src/servers/Cargo.toml index 521c3023b671..cfcbd1dfe2b9 100644 --- a/src/servers/Cargo.toml +++ b/src/servers/Cargo.toml @@ -10,6 +10,9 @@ mem-prof = ["dep:common-mem-prof"] pprof = ["dep:pprof"] testing = [] +[lints] +workspace = true + [dependencies] aide = { version = "0.9", features = ["axum"] } api.workspace = true diff --git a/src/session/Cargo.toml b/src/session/Cargo.toml index 1bd7488f2c8f..4f044fdf7c72 100644 --- a/src/session/Cargo.toml +++ b/src/session/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [features] testing = [] +[lints] +workspace = true + [dependencies] api.workspace = true arc-swap = "1.5" diff --git a/src/sql/Cargo.toml b/src/sql/Cargo.toml index d72a66721fd1..dcce4b698763 100644 --- a/src/sql/Cargo.toml +++ b/src/sql/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] api.workspace = true common-base.workspace = true diff --git a/src/store-api/Cargo.toml b/src/store-api/Cargo.toml index 3bc01aa6b579..fc5f2b1690c4 100644 --- a/src/store-api/Cargo.toml +++ b/src/store-api/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] api.workspace = true aquamarine.workspace = true diff --git a/src/table/Cargo.toml b/src/table/Cargo.toml index 2fe1fb85bd2e..17e8d6532ba1 100644 --- a/src/table/Cargo.toml +++ b/src/table/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [features] testing = [] +[lints] +workspace = true + [dependencies] anymap = "1.0.0-beta.2" async-trait = "0.1" diff --git a/tests-fuzz/Cargo.toml b/tests-fuzz/Cargo.toml index 0623a4ea29b8..e16e406587c2 100644 --- a/tests-fuzz/Cargo.toml +++ b/tests-fuzz/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] async-trait = { workspace = true } common-error = { workspace = true } diff --git a/tests-integration/Cargo.toml b/tests-integration/Cargo.toml index 35645b6a2cc2..1914fe720b64 100644 --- a/tests-integration/Cargo.toml +++ b/tests-integration/Cargo.toml @@ -7,6 +7,9 @@ license.workspace = true [features] dashboard = [] +[lints] +workspace = true + [dependencies] api.workspace = true arrow-flight.workspace = true diff --git a/tests/runner/Cargo.toml b/tests/runner/Cargo.toml index e6ad0bd84de2..10fdbfeda7a8 100644 --- a/tests/runner/Cargo.toml +++ b/tests/runner/Cargo.toml @@ -4,6 +4,9 @@ version.workspace = true edition.workspace = true license.workspace = true +[lints] +workspace = true + [dependencies] async-trait = "0.1" clap.workspace = true