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 9efb7a9c5c..215eeab770 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 9f4e54d137..1525f0c9fb 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 d56524fe36..c2fddd474a 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 9beea1ff51..d3390e6c21 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 748da3b40f..d50b63fcfc 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 b3355dd2d9..e16eadfdf8 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 ddd13b887d..914c808c66 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 01fa554cb5..d6e11b68a3 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 54926afcc4..db8d13e5e5 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 3acac32fe0..61f49ab0e4 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 829c2ee53b..dccd1f2df4 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 1e456b40c8..8f11043afd 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 adf9b08446..671364d49f 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 ab157787ca..92ab12dd07 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 7053d10771..140b1881c7 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 991f40890e..6bff7a719e 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 d8ae57980c..3415b54200 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 9c71d57860..0f11d68731 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 1ba1c2bbc8..64080739aa 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 c30b6334df..6665652645 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 c6feeddacb..554b0d6d79 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 8fa1069158..92dc342014 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 93c379148b..2e76747270 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 795df7eea9..af755b2b87 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 0232722499..4436400164 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 ac91e934cc..01d051067b 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 76dc0aa9ff..a6da1f571f 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 891cba1d83..1c4f404797 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 d25e89e657..6a8dc96b46 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 310fb45a7e..2b66dd45ce 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 032520ffee..fdd06140f1 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 7dd296e0d5..a766329843 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 b70ef3740e..3b84673bb1 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 dc50c905f4..38fe116131 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 ce40c640d4..ee82546272 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 f0938c545b..3ce83b6b79 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 2b244314cb..0dc614a6c0 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 81990c37f1..9d5578eb50 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 082831b731..effa0a79e6 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 82d8c2a6ba..e134399e45 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 921fe61054..2ba3b784b7 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 1202514ac6..176c4a1f4f 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 4722fa81e2..13aa59fe8b 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 d9aecbdd7f..5ebe42a9da 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 1dcd71b2d5..c66e4dbc16 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 0543604528..a6dc31b5c0 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 4fadc02b59..48f7c036b7 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 a11150f7f3..c927fb3d33 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 fc85336567..9e7bc01ae8 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 0a42084e39..7e43c29e39 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 8976a6967e..7b252d6910 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 825e36df99..81e2237486 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 521c3023b6..cfcbd1dfe2 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 1bd7488f2c..4f044fdf7c 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 d72a66721f..dcce4b6987 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 3bc01aa6b5..fc5f2b1690 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 2fe1fb85bd..17e8d6532b 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 0623a4ea29..e16e406587 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 35645b6a2c..1914fe720b 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 e6ad0bd84d..10fdbfeda7 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