From aa8f119bbb7111fb4e0f733bef8c8e0f48313798 Mon Sep 17 00:00:00 2001 From: yihong Date: Tue, 18 Feb 2025 20:09:01 +0800 Subject: [PATCH] chore: format all toml files (#5529) fix: format some cargo files Signed-off-by: yihong0618 --- src/api/Cargo.toml | 5 +---- src/catalog/Cargo.toml | 8 ++++---- src/common/base/Cargo.toml | 2 +- src/common/datasource/Cargo.toml | 2 +- src/common/function/Cargo.toml | 2 +- src/common/grpc-expr/Cargo.toml | 2 +- src/datanode/Cargo.toml | 2 +- src/datatypes/Cargo.toml | 2 +- src/file-engine/Cargo.toml | 2 +- src/flow/Cargo.toml | 2 +- src/frontend/Cargo.toml | 4 ++-- src/meta-client/Cargo.toml | 4 ++-- src/meta-srv/Cargo.toml | 2 +- src/mito2/Cargo.toml | 2 +- src/operator/Cargo.toml | 4 ++-- src/partition/Cargo.toml | 2 +- src/promql/Cargo.toml | 2 +- src/query/Cargo.toml | 6 +++--- src/servers/Cargo.toml | 4 ++-- src/table/Cargo.toml | 4 ++-- tests-integration/Cargo.toml | 2 +- tests/runner/Cargo.toml | 2 +- 22 files changed, 32 insertions(+), 35 deletions(-) diff --git a/src/api/Cargo.toml b/src/api/Cargo.toml index 2225cbd2cc..d48bfdaf58 100644 --- a/src/api/Cargo.toml +++ b/src/api/Cargo.toml @@ -15,13 +15,10 @@ common-macro.workspace = true common-time.workspace = true datatypes.workspace = true greptime-proto.workspace = true -paste = "1.0" +paste.workspace = true prost.workspace = true serde_json.workspace = true snafu.workspace = true [build-dependencies] tonic-build = "0.11" - -[dev-dependencies] -paste = "1.0" diff --git a/src/catalog/Cargo.toml b/src/catalog/Cargo.toml index b7e19a44b9..b425aa02c6 100644 --- a/src/catalog/Cargo.toml +++ b/src/catalog/Cargo.toml @@ -15,7 +15,7 @@ api.workspace = true arrow.workspace = true arrow-schema.workspace = true async-stream.workspace = true -async-trait = "0.1" +async-trait.workspace = true bytes.workspace = true common-catalog.workspace = true common-error.workspace = true @@ -31,7 +31,7 @@ common-version.workspace = true dashmap.workspace = true datafusion.workspace = true datatypes.workspace = true -futures = "0.3" +futures.workspace = true futures-util.workspace = true humantime.workspace = true itertools.workspace = true @@ -39,7 +39,7 @@ lazy_static.workspace = true meta-client.workspace = true moka = { workspace = true, features = ["future", "sync"] } partition.workspace = true -paste = "1.0" +paste.workspace = true prometheus.workspace = true rustc-hash.workspace = true serde_json.workspace = true @@ -49,7 +49,7 @@ sql.workspace = true store-api.workspace = true table.workspace = true tokio.workspace = true -tokio-stream = "0.1" +tokio-stream.workspace = true [dev-dependencies] cache.workspace = true diff --git a/src/common/base/Cargo.toml b/src/common/base/Cargo.toml index 44eb5535ea..ae2945b1f5 100644 --- a/src/common/base/Cargo.toml +++ b/src/common/base/Cargo.toml @@ -18,7 +18,7 @@ bytes.workspace = true common-error.workspace = true common-macro.workspace = true futures.workspace = true -paste = "1.0" +paste.workspace = true pin-project.workspace = true rand.workspace = true serde = { version = "1.0", features = ["derive"] } diff --git a/src/common/datasource/Cargo.toml b/src/common/datasource/Cargo.toml index ae4fc221a9..63db292a52 100644 --- a/src/common/datasource/Cargo.toml +++ b/src/common/datasource/Cargo.toml @@ -35,7 +35,7 @@ orc-rust = { version = "0.5", default-features = false, features = [ "async", ] } parquet.workspace = true -paste = "1.0" +paste.workspace = true rand.workspace = true regex = "1.7" serde.workspace = true diff --git a/src/common/function/Cargo.toml b/src/common/function/Cargo.toml index 00500c67e5..146647ed28 100644 --- a/src/common/function/Cargo.toml +++ b/src/common/function/Cargo.toml @@ -37,7 +37,7 @@ nalgebra.workspace = true num = "0.4" num-traits = "0.2" once_cell.workspace = true -paste = "1.0" +paste.workspace = true s2 = { version = "0.0.12", optional = true } serde.workspace = true serde_json.workspace = true diff --git a/src/common/grpc-expr/Cargo.toml b/src/common/grpc-expr/Cargo.toml index 650b726325..fbb82be149 100644 --- a/src/common/grpc-expr/Cargo.toml +++ b/src/common/grpc-expr/Cargo.toml @@ -22,4 +22,4 @@ store-api.workspace = true table.workspace = true [dev-dependencies] -paste = "1.0" +paste.workspace = true diff --git a/src/datanode/Cargo.toml b/src/datanode/Cargo.toml index 9f500050d3..fc6edbb651 100644 --- a/src/datanode/Cargo.toml +++ b/src/datanode/Cargo.toml @@ -39,7 +39,7 @@ datafusion-common.workspace = true datafusion-expr.workspace = true datatypes.workspace = true file-engine.workspace = true -futures = "0.3" +futures.workspace = true futures-util.workspace = true humantime-serde.workspace = true lazy_static.workspace = true diff --git a/src/datatypes/Cargo.toml b/src/datatypes/Cargo.toml index 63f23816f2..cccaf67300 100644 --- a/src/datatypes/Cargo.toml +++ b/src/datatypes/Cargo.toml @@ -29,7 +29,7 @@ jsonb.workspace = true num = "0.4" num-traits = "0.2" ordered-float = { version = "3.0", features = ["serde"] } -paste = "1.0" +paste.workspace = true serde.workspace = true serde_json.workspace = true snafu.workspace = true diff --git a/src/file-engine/Cargo.toml b/src/file-engine/Cargo.toml index 1a665d6676..6c8c9e887d 100644 --- a/src/file-engine/Cargo.toml +++ b/src/file-engine/Cargo.toml @@ -13,7 +13,7 @@ workspace = true [dependencies] api.workspace = true -async-trait = "0.1" +async-trait.workspace = true common-catalog.workspace = true common-datasource.workspace = true common-error.workspace = true diff --git a/src/flow/Cargo.toml b/src/flow/Cargo.toml index b4545e1a89..df62097e2d 100644 --- a/src/flow/Cargo.toml +++ b/src/flow/Cargo.toml @@ -41,7 +41,7 @@ datafusion-substrait.workspace = true datatypes.workspace = true enum-as-inner = "0.6.0" enum_dispatch = "0.3" -futures = "0.3" +futures.workspace = true get-size2 = "0.1.2" greptime-proto.workspace = true # This fork of hydroflow is simply for keeping our dependency in our org, and pin the version diff --git a/src/frontend/Cargo.toml b/src/frontend/Cargo.toml index ab933cb24b..6d01e6ac12 100644 --- a/src/frontend/Cargo.toml +++ b/src/frontend/Cargo.toml @@ -13,7 +13,7 @@ workspace = true [dependencies] api.workspace = true arc-swap = "1.0" -async-trait = "0.1" +async-trait.workspace = true auth.workspace = true cache.workspace = true catalog.workspace = true @@ -70,7 +70,7 @@ catalog = { workspace = true, features = ["testing"] } common-test-util.workspace = true datanode.workspace = true datatypes.workspace = true -futures = "0.3" +futures.workspace = true serde_json.workspace = true strfmt = "0.2" tower.workspace = true diff --git a/src/meta-client/Cargo.toml b/src/meta-client/Cargo.toml index 4d22fe4bd3..cf9c256e5c 100644 --- a/src/meta-client/Cargo.toml +++ b/src/meta-client/Cargo.toml @@ -9,7 +9,7 @@ workspace = true [dependencies] api.workspace = true -async-trait = "0.1" +async-trait.workspace = true common-error.workspace = true common-grpc.workspace = true common-macro.workspace = true @@ -27,7 +27,7 @@ tonic.workspace = true [dev-dependencies] datatypes.workspace = true -futures = "0.3" +futures.workspace = true meta-srv = { workspace = true, features = ["mock"] } tower.workspace = true tracing = "0.1" diff --git a/src/meta-srv/Cargo.toml b/src/meta-srv/Cargo.toml index 1da3bbb2bf..4b7f2137d6 100644 --- a/src/meta-srv/Cargo.toml +++ b/src/meta-srv/Cargo.toml @@ -16,7 +16,7 @@ local-ip-address.workspace = true [dependencies] api.workspace = true -async-trait = "0.1" +async-trait.workspace = true bytes.workspace = true chrono.workspace = true clap.workspace = true diff --git a/src/mito2/Cargo.toml b/src/mito2/Cargo.toml index 56d480df5a..11f31502b1 100644 --- a/src/mito2/Cargo.toml +++ b/src/mito2/Cargo.toml @@ -16,7 +16,7 @@ api.workspace = true aquamarine.workspace = true async-channel = "1.9" async-stream.workspace = true -async-trait = "0.1" +async-trait.workspace = true bytemuck.workspace = true bytes.workspace = true common-base.workspace = true diff --git a/src/operator/Cargo.toml b/src/operator/Cargo.toml index cd26458fad..889f0a8acd 100644 --- a/src/operator/Cargo.toml +++ b/src/operator/Cargo.toml @@ -14,7 +14,7 @@ workspace = true ahash.workspace = true api.workspace = true async-stream.workspace = true -async-trait = "0.1" +async-trait.workspace = true catalog.workspace = true chrono.workspace = true client.workspace = true @@ -36,7 +36,7 @@ datafusion-common.workspace = true datafusion-expr.workspace = true datatypes.workspace = true file-engine.workspace = true -futures = "0.3" +futures.workspace = true futures-util.workspace = true jsonb.workspace = true lazy_static.workspace = true diff --git a/src/partition/Cargo.toml b/src/partition/Cargo.toml index 601f3143c7..6402d2feff 100644 --- a/src/partition/Cargo.toml +++ b/src/partition/Cargo.toml @@ -9,7 +9,7 @@ workspace = true [dependencies] api.workspace = true -async-trait = "0.1" +async-trait.workspace = true common-error.workspace = true common-macro.workspace = true common-meta.workspace = true diff --git a/src/promql/Cargo.toml b/src/promql/Cargo.toml index 7b51651a7c..0970b0d38e 100644 --- a/src/promql/Cargo.toml +++ b/src/promql/Cargo.toml @@ -18,7 +18,7 @@ common-telemetry.workspace = true datafusion.workspace = true datafusion-expr.workspace = true datatypes.workspace = true -futures = "0.3" +futures.workspace = true greptime-proto.workspace = true lazy_static.workspace = true prometheus.workspace = true diff --git a/src/query/Cargo.toml b/src/query/Cargo.toml index ec6be73a10..8358a109bb 100644 --- a/src/query/Cargo.toml +++ b/src/query/Cargo.toml @@ -15,7 +15,7 @@ arrow.workspace = true arrow-schema.workspace = true async-recursion = "1.0" async-stream.workspace = true -async-trait = "0.1" +async-trait.workspace = true bytes.workspace = true catalog.workspace = true chrono.workspace = true @@ -40,7 +40,7 @@ datafusion-optimizer.workspace = true datafusion-physical-expr.workspace = true datafusion-sql.workspace = true datatypes.workspace = true -futures = "0.3" +futures.workspace = true futures-util.workspace = true greptime-proto.workspace = true humantime.workspace = true @@ -78,7 +78,7 @@ fastrand = "2.0" nalgebra.workspace = true num = "0.4" num-traits = "0.2" -paste = "1.0" +paste.workspace = true pretty_assertions = "1.4.0" rand.workspace = true serde.workspace = true diff --git a/src/servers/Cargo.toml b/src/servers/Cargo.toml index 514c99f80e..840f8e86bb 100644 --- a/src/servers/Cargo.toml +++ b/src/servers/Cargo.toml @@ -24,7 +24,7 @@ arrow.workspace = true arrow-flight.workspace = true arrow-ipc.workspace = true arrow-schema.workspace = true -async-trait = "0.1" +async-trait.workspace = true auth.workspace = true axum = { workspace = true, features = ["multipart"] } axum-extra = { workspace = true, features = ["typed-header"] } @@ -55,7 +55,7 @@ datafusion-common.workspace = true datafusion-expr.workspace = true datatypes.workspace = true derive_builder.workspace = true -futures = "0.3" +futures.workspace = true futures-util.workspace = true hashbrown = "0.15" headers = "0.4" diff --git a/src/table/Cargo.toml b/src/table/Cargo.toml index 3a0c379983..45a77cf0da 100644 --- a/src/table/Cargo.toml +++ b/src/table/Cargo.toml @@ -12,7 +12,7 @@ workspace = true [dependencies] api.workspace = true -async-trait = "0.1" +async-trait.workspace = true chrono.workspace = true common-base.workspace = true common-catalog.workspace = true @@ -34,7 +34,7 @@ greptime-proto.workspace = true humantime.workspace = true humantime-serde.workspace = true lazy_static.workspace = true -paste = "1.0" +paste.workspace = true serde.workspace = true snafu.workspace = true store-api.workspace = true diff --git a/tests-integration/Cargo.toml b/tests-integration/Cargo.toml index 32c220b75b..c84f562424 100644 --- a/tests-integration/Cargo.toml +++ b/tests-integration/Cargo.toml @@ -14,7 +14,7 @@ workspace = true api.workspace = true arrow-flight.workspace = true async-stream.workspace = true -async-trait = "0.1" +async-trait.workspace = true auth.workspace = true axum.workspace = true cache.workspace = true diff --git a/tests/runner/Cargo.toml b/tests/runner/Cargo.toml index 3ea403e862..2aa54cd1dd 100644 --- a/tests/runner/Cargo.toml +++ b/tests/runner/Cargo.toml @@ -8,7 +8,7 @@ license.workspace = true workspace = true [dependencies] -async-trait = "0.1" +async-trait.workspace = true clap.workspace = true client = { workspace = true, features = ["testing"] } common-error.workspace = true