diff --git a/Cargo.lock b/Cargo.lock index 3dbbbb14c152..34a4b8a958f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -189,7 +189,7 @@ version = "1.0.80" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1" dependencies = [ - "backtrace 0.3.69 (registry+https://github.com/rust-lang/crates.io-index)", + "backtrace", ] [[package]] @@ -1001,22 +1001,7 @@ dependencies = [ [[package]] name = "backtrace" version = "0.3.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" -dependencies = [ - "addr2line", - "cc", - "cfg-if", - "libc", - "miniz_oxide", - "object 0.32.2", - "rustc-demangle", -] - -[[package]] -name = "backtrace" -version = "0.3.69" -source = "git+https://github.com/rust-lang/backtrace-rs.git?rev=6145fe6bac65c38375f1216a565a6cc7deb89a2d#6145fe6bac65c38375f1216a565a6cc7deb89a2d" +source = "git+https://github.com/rust-lang/backtrace-rs.git?rev=6145fe6b#6145fe6bac65c38375f1216a565a6cc7deb89a2d" dependencies = [ "addr2line", "cc", @@ -1961,7 +1946,7 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55146f5e46f237f7423d74111267d4597b59b0dad0ffaf7303bce9945d843ad5" dependencies = [ - "backtrace 0.3.69 (registry+https://github.com/rust-lang/crates.io-index)", + "backtrace", "color-spantrace", "eyre", "indenter", @@ -2952,7 +2937,7 @@ version = "0.1.0" dependencies = [ "anyhow", "arrow-schema", - "backtrace 0.3.69 (git+https://github.com/rust-lang/backtrace-rs.git?rev=6145fe6bac65c38375f1216a565a6cc7deb89a2d)", + "backtrace", "bincode 2.0.0-rc.3", "databend-common-arrow", "databend-common-ast", @@ -3836,7 +3821,7 @@ dependencies = [ "databend-common-storage", "databend-common-storages-parquet", "databend-storages-common-table-meta", - "deltalake-core", + "deltalake", "flagset", "futures", "maplit", @@ -5330,6 +5315,14 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9576c1de19747eb6f5efb6a806c3e836512bbdb17bfedc984ccb0bcc953c8390" +[[package]] +name = "deltalake" +version = "0.17.3" +source = "git+https://github.com/delta-io/delta-rs?rev=81593e9#81593e919497221a1a08bf8db9d20e8e4a39a8a6" +dependencies = [ + "deltalake-core", +] + [[package]] name = "deltalake-core" version = "0.17.3" @@ -11250,7 +11243,7 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "196ded5d4be535690899a4631cc9f18cdc41b7ebf24a79400f46f48e49a11059" dependencies = [ - "backtrace 0.3.69 (registry+https://github.com/rust-lang/crates.io-index)", + "backtrace", "cfg-if", "findshlibs", "inferno", @@ -14300,7 +14293,7 @@ version = "1.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931" dependencies = [ - "backtrace 0.3.69 (registry+https://github.com/rust-lang/crates.io-index)", + "backtrace", "bytes", "libc", "mio", diff --git a/Cargo.toml b/Cargo.toml index 9947c6b27f33..911c52889c1d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,9 +8,7 @@ edition = "2021" [workspace] resolver = "2" members = [ - # Binaries "src/binaries", - # Common "src/common/arrow", "src/common/auth", "src/common/base", @@ -30,7 +28,6 @@ members = [ "src/common/vector", "src/common/license", "src/common/parquet2", - # Query "src/query/ast", "src/query/async_functions", "src/query/codegen", @@ -56,6 +53,7 @@ members = [ "src/query/storages/common/index", "src/query/storages/common/io", "src/query/storages/common/pruner", + "src/query/storages/common/txn", "src/query/storages/common/table_meta", "src/query/storages/delta", "src/query/storages/factory", @@ -82,13 +80,13 @@ members = [ "src/query/ee_features/storage_encryption", "src/query/ee_features/stream_handler", "src/query/ee_features/storage_quota", - # databend-query + "src/query/ee_features/inverted_index", + "src/query/ee_features/virtual_column", "src/query/service", - # enterprise "src/query/ee", - # Meta "src/meta/api", "src/meta/app", + "src/meta/client", "src/meta/embedded", "src/meta/kvapi", "src/meta/process", @@ -98,22 +96,166 @@ members = [ "src/meta/store", "src/meta/types", "src/meta/ee", - # meta proto "src/meta/proto-conv", "src/meta/protos", - # databend-meta "src/meta/service", - # sqllogictest "tests/sqllogictests", - # "src/bendpy", - # sqlsmith "src/tests/sqlsmith", ] [workspace.dependencies] -# databend maintains -jsonb = { version = "0.4.0" } +# Workspace dependencies +databend-common-arrow = { path = "src/common/arrow" } +databend-common-ast = { path = "src/query/ast" } +databend-common-async-functions = { path = "src/query/async_functions" } +databend-common-auth = { path = "src/common/auth" } +databend-common-base = { path = "src/common/base" } +databend-common-binaries = { path = "src/binaries" } +databend-common-building = { path = "src/common/building" } +databend-common-cache = { path = "src/common/cache" } +databend-common-catalog = { path = "src/query/catalog" } +databend-common-cloud-control = { path = "src/common/cloud_control" } +databend-common-codegen = { path = "src/query/codegen" } +databend-common-compress = { path = "src/common/compress" } +databend-common-config = { path = "src/query/config" } +databend-common-datavalues = { path = "src/query/datavalues" } +databend-common-exception = { path = "src/common/exception" } +databend-common-expression = { path = "src/query/expression" } +databend-common-formats = { path = "src/query/formats" } +databend-common-functions = { path = "src/query/functions" } +databend-common-grpc = { path = "src/common/grpc" } +databend-common-hashtable = { path = "src/common/hashtable" } +databend-common-http = { path = "src/common/http" } +databend-common-io = { path = "src/common/io" } +databend-common-license = { path = "src/common/license" } +databend-common-management = { path = "src/query/management" } +databend-common-meta-api = { path = "src/meta/api" } +databend-common-meta-app = { path = "src/meta/app" } +databend-common-meta-client = { path = "src/meta/client" } +databend-common-meta-embedded = { path = "src/meta/embedded" } +databend-common-meta-kvapi = { path = "src/meta/kvapi" } +databend-common-meta-process = { path = "src/meta/process" } +databend-common-meta-raft-store = { path = "src/meta/raft-store" } +databend-common-meta-sled-store = { path = "src/meta/sled-store" } +databend-common-meta-stoerr = { path = "src/meta/stoerr" } +databend-common-meta-store = { path = "src/meta/store" } +databend-common-meta-types = { path = "src/meta/types" } +databend-common-metrics = { path = "src/common/metrics" } +databend-common-openai = { path = "src/common/openai" } +databend-common-parquet2 = { path = "src/common/parquet2" } +databend-common-pipeline-core = { path = "src/query/pipeline/core" } +databend-common-pipeline-sinks = { path = "src/query/pipeline/sinks" } +databend-common-pipeline-sources = { path = "src/query/pipeline/sources" } +databend-common-pipeline-transforms = { path = "src/query/pipeline/transforms" } +databend-common-proto-conv = { path = "src/meta/proto-conv" } +databend-common-protos = { path = "src/meta/protos" } +databend-common-script = { path = "src/query/script" } +databend-common-settings = { path = "src/query/settings" } +databend-common-sharing = { path = "src/query/sharing" } +databend-common-sql = { path = "src/query/sql" } +databend-common-sqlsmith = { path = "src/tests/sqlsmith" } +databend-common-storage = { path = "src/common/storage" } +databend-common-storages-delta = { path = "src/query/storages/delta" } +databend-common-storages-factory = { path = "src/query/storages/factory" } +databend-common-storages-fuse = { path = "src/query/storages/fuse" } +databend-common-storages-hive = { path = "src/query/storages/hive/hive" } +databend-common-storages-iceberg = { path = "src/query/storages/iceberg" } +databend-common-storages-information-schema = { path = "src/query/storages/information_schema" } +databend-common-storages-memory = { path = "src/query/storages/memory" } +databend-common-storages-null = { path = "src/query/storages/null" } +databend-common-storages-orc = { path = "src/query/storages/orc" } +databend-common-storages-parquet = { path = "src/query/storages/parquet" } +databend-common-storages-random = { path = "src/query/storages/random" } +databend-common-storages-result-cache = { path = "src/query/storages/result_cache" } +databend-common-storages-share = { path = "src/query/storages/share" } +databend-common-storages-stage = { path = "src/query/storages/stage" } +databend-common-storages-stream = { path = "src/query/storages/stream" } +databend-common-storages-system = { path = "src/query/storages/system" } +databend-common-storages-view = { path = "src/query/storages/view" } +databend-common-tracing = { path = "src/common/tracing" } +databend-common-users = { path = "src/query/users" } +databend-common-vector = { path = "src/common/vector" } +databend-enterprise-aggregating-index = { path = "src/query/ee_features/aggregating_index" } +databend-enterprise-background-service = { path = "src/query/ee_features/background_service" } +databend-enterprise-data-mask-feature = { path = "src/query/ee_features/data_mask" } +databend-enterprise-inverted-index = { path = "src/query/ee_features/inverted_index" } +databend-enterprise-meta = { path = "src/meta/ee" } +databend-enterprise-query = { path = "src/query/ee" } +databend-enterprise-storage-encryption = { path = "src/query/ee_features/storage_encryption" } +databend-enterprise-storage-quota = { path = "src/query/ee_features/storage_quota" } +databend-enterprise-stream-handler = { path = "src/query/ee_features/stream_handler" } +databend-enterprise-vacuum-handler = { path = "src/query/ee_features/vacuum_handler" } +databend-enterprise-virtual-column = { path = "src/query/ee_features/virtual_column" } +databend-meta = { path = "src/meta/service" } +databend-query = { path = "src/query/service" } +databend-sharing-endpoint = { path = "src/query/sharing_endpoint" } +databend-sqllogictests = { path = "tests/sqllogictests" } +databend-storages-common-blocks = { path = "src/query/storages/common/blocks" } +databend-storages-common-cache = { path = "src/query/storages/common/cache" } +databend-storages-common-cache-manager = { path = "src/query/storages/common/cache_manager" } +databend-storages-common-index = { path = "src/query/storages/common/index" } +databend-storages-common-io = { path = "src/query/storages/common/io" } +databend-storages-common-pruner = { path = "src/query/storages/common/pruner" } +databend-storages-common-table-meta = { path = "src/query/storages/common/table_meta" } +databend-storages-common-txn = { path = "src/query/storages/common/txn" } +# Crates.io dependencies +anyerror = { version = "=0.1.10" } +anyhow = { version = "1.0.65" } +arrow = { version = "51" } +arrow-array = { version = "51" } +arrow-buffer = { version = "51" } +arrow-cast = { version = "51", features = ["prettyprint"] } +arrow-data = { version = "51" } +arrow-flight = { version = "51", features = ["flight-sql-experimental", "tls"] } +arrow-format = { version = "0.8.1", features = ["flight-data", "flight-service", "ipc"] } +arrow-ipc = { version = "51" } +arrow-ord = { version = "51" } +arrow-schema = { version = "51", features = ["serde"] } +arrow-select = { version = "51" } +arrow-udf-js = "0.2" +arrow-udf-python = "0.1" +arrow-udf-wasm = "0.2" +async-backtrace = "0.2" +async-trait = { version = "0.1.77", package = "async-trait-fn" } +backtrace = "0.3" +base64 = "0.22" +bincode = { version = "2.0.0-rc.3", features = ["serde", "std", "alloc"] } +borsh = { version = "1.2.1", features = ["derive"] } +bumpalo = "3.12.0" +byteorder = "1.4.3" +bytes = "1.5.0" +chrono = { version = "0.4.31", features = ["serde"] } +chrono-tz = { version = "0.8", features = ["serde"] } +clap = { version = "4.4.2", features = ["derive"] } +codespan-reporting = "0.11" +criterion = "0.5" +dashmap = "5.4.0" +deltalake = "0.17" +derive-visitor = { version = "0.4.0", features = ["std-types-drive"] } +derive_more = "0.99.17" +enumflags2 = { version = "0.7.7", features = ["serde"] } +ethnum = { version = "1.5.0" } +feature-set = { version = "0.1.1" } +flatbuffers = "23" # Must use the same version with arrow-ipc +futures = "0.3.24" +futures-async-stream = { version = "0.2.7" } +futures-util = "0.3.24" +geo = { version = "0.27.0", features = ["use-serde"] } +geos = { version = "8.3", features = ["static", "geo", "geo-types"] } +geozero = { version = "0.13.0", features = ["default", "with-wkb", "with-geos", "with-geojson"] } +hashbrown = { version = "0.14.3", default-features = false } +http = "1" +itertools = "0.10.5" +jsonb = "0.4.0" +log = { version = "0.4.21", features = ["serde", "kv_unstable_std"] } +logcall = "0.1.5" +match-template = "0.0.1" +minitrace = { version = "0.6.5", features = ["enable"] } +minitrace-opentelemetry = "0.6.5" +mysql_async = { version = "0.34", default-features = false, features = ["rustls-tls"] } +once_cell = "1.15.0" +openai_api_rust = "0.1" opendal = { version = "0.46.0", features = [ "layers-minitrace", "layers-prometheus-client", @@ -132,43 +274,25 @@ opendal = { version = "0.46.0", features = [ "services-webhdfs", "services-huggingface", ] } -sled = { git = "https://github.com/datafuse-extras/sled", tag = "v0.34.7-datafuse.1", default-features = false } - -# openraft for debugging -#openraft = { git = "https://github.com/drmingdrmer/openraft", branch = "release-0.9", features = [ -openraft = { version = "0.9.9", features = [ - "serde", - "tracing-log", - "generic-snapshot-data", - "storage-v2", - "loosen-follower-log-revert", # allows removing all data from a follower and restoring from the leader. +opentelemetry = { version = "0.22", features = ["trace", "logs"] } +opentelemetry-otlp = { version = "0.15", features = [ + "trace", + "logs", + "grpc-tonic", + "http-proto", + "reqwest-client", ] } - -# Core crates and utilities -base64 = "0.22" -async-backtrace = "0.2" -async-trait = { version = "0.1.77", package = "async-trait-fn" } -bincode = { version = "2.0.0-rc.3", features = ["serde", "std", "alloc"] } -borsh = { version = "1.2.1", features = ["derive"] } -bytes = "1.5.0" -hashbrown = { version = "0.14.3", default-features = false } -byteorder = "1.4.3" -chrono = { version = "0.4.31", features = ["serde"] } -chrono-tz = { version = "0.8", features = ["serde"] } -clap = { version = "4.4.2", features = ["derive"] } -derive_more = "0.99.17" -enumflags2 = { version = "0.7.7", features = ["serde"] } -ethnum = { version = "1.5.0" } -feature-set = { version = "0.1.1" } -geo = { version = "0.27.0", features = ["use-serde"] } -geos = { version = "8.3", features = ["static", "geo", "geo-types"] } -geozero = { version = "0.13.0", features = ["default", "with-wkb", "with-geos", "with-geojson"] } -itertools = "0.10.5" -match-template = "0.0.1" -mysql_async = { version = "0.34", default-features = false, features = ["rustls-tls"] } +opentelemetry_sdk = { version = "0.22", features = ["trace", "logs", "rt-tokio"] } +orc-rust = "0.3" ordered-float = { version = "4.1.0", default-features = false } +ordq = "0.2.0" +parking_lot = "0.12.1" +parquet = { version = "51", features = ["async"] } +parquet_rs = { package = "parquet", version = "51" } poem = { version = "3.0", features = ["rustls", "multipart", "compression"] } prometheus-client = "0.22" +prost = { version = "0.12.1" } +prost-build = { version = "0.12.1" } rand = { version = "0.8.5", features = ["small_rng"] } regex = "1.8.1" reqwest = { version = "0.12", default-features = false, features = [ @@ -179,87 +303,43 @@ reqwest = { version = "0.12", default-features = false, features = [ ] } reqwest-hickory-resolver = "0.1" semver = "1.0.14" +serde = { version = "1.0.164", features = ["derive", "rc"] } +serde_json = { version = "1.0.85", default-features = false, features = ["preserve_order", "unbounded_depth"] } +serde_stacker = { version = "0.1" } +serde_with = { version = "3.8.1" } serfig = "0.1.0" +sled = { version = "0.34", default-features = false } +stream-more = "0.1.3" tantivy = "0.22.0" +thiserror = { version = "1" } +tikv-jemalloc-ctl = { version = "0.5.0", features = ["use_std"] } tokio = { version = "1.35.0", features = ["full"] } tokio-stream = "0.1.11" tonic = { version = "0.11.0", features = ["transport", "codegen", "prost", "tls-roots", "tls"] } +tonic-build = { version = "0.11" } tonic-reflection = { version = "0.11.0" } +tracing = "0.1.40" +tracing-appender = "0.2.3" +tracing-subscriber = { version = "0.3.17", features = ["env-filter", "json", "valuable"] } typetag = "0.2.3" uuid = { version = "1.1.2", features = ["serde", "v4"] } walkdir = "2.3.2" -derive-visitor = { version = "0.4.0", features = ["std-types-drive"] } -http = "1" -criterion = "0.5" - -# Synchronization -dashmap = "5.4.0" -once_cell = "1.15.0" -ordq = "0.2.0" -parking_lot = "0.12.1" - -# Future and async -futures = "0.3.24" -futures-async-stream = { version = "0.2.7" } -futures-util = "0.3.24" -stream-more = "0.1.3" - -# Error handling -anyerror = { version = "=0.1.10" } -anyhow = { version = "1.0.65" } -thiserror = { version = "1" } - -# Crates from arrow-rs -arrow = { version = "51" } -arrow-array = { version = "51" } -arrow-buffer = { version = "51" } -arrow-cast = { version = "51", features = ["prettyprint"] } -arrow-data = { version = "51" } -arrow-flight = { version = "51", features = ["flight-sql-experimental", "tls"] } -arrow-format = { version = "0.8.1", features = ["flight-data", "flight-service", "ipc"] } -arrow-ipc = { version = "51" } -arrow-ord = { version = "51" } -arrow-schema = { version = "51", features = ["serde"] } -arrow-select = { version = "51" } -parquet = { version = "51", features = ["async"] } -parquet_rs = { package = "parquet", version = "51" } -# Must use the same version with arrow-ipc -flatbuffers = { version = "23" } - -# Crates from risingwavelabs -arrow-udf-js = { package = "arrow-udf-js", git = "https://github.com/datafuse-extras/arrow-udf", rev = "d0a21f0" } -arrow-udf-wasm = { package = "arrow-udf-wasm", git = "https://github.com/datafuse-extras/arrow-udf", rev = "d0a21f0" } +xorfilter-rs = "0.5" +# openraft for debugging +# openraft = { git = "https://github.com/drmingdrmer/openraft", branch = "release-0.9", features = [ +openraft = { version = "0.9.9", features = [ + "serde", + "tracing-log", + "generic-snapshot-data", + "storage-v2", + "loosen-follower-log-revert", # allows removing all data from a follower and restoring from the leader. +] } -# Serialization -prost = { version = "0.12.1" } -prost-build = { version = "0.12.1" } -serde = { version = "1.0.164", features = ["derive", "rc"] } -serde_stacker = { version = "0.1" } -serde_with = { version = "3.8.1" } -serde_json = { version = "1.0.85", default-features = false, features = ["preserve_order", "unbounded_depth"] } -tonic-build = { version = "0.11" } +[workspace.lints.rust] +async_fn_in_trait = "allow" -# Memory management -bumpalo = "3.12.0" -tikv-jemalloc-ctl = { version = "0.5.0", features = ["use_std"] } - -# Observability -log = { version = "0.4.21", features = ["serde", "kv_unstable_std"] } -logcall = "0.1.5" -minitrace = { version = "0.6.5", features = ["enable"] } -minitrace-opentelemetry = "0.6.5" -opentelemetry = { version = "0.22", features = ["trace", "logs"] } -opentelemetry-otlp = { version = "0.15", features = [ - "trace", - "logs", - "grpc-tonic", - "http-proto", - "reqwest-client", -] } -opentelemetry_sdk = { version = "0.22", features = ["trace", "logs", "rt-tokio"] } -tracing = "0.1.40" -tracing-appender = "0.2.3" -tracing-subscriber = { version = "0.3.17", features = ["env-filter", "json", "valuable"] } +[workspace.lints.clippy] +useless_format = "allow" [profile.release] debug = 1 @@ -304,7 +384,18 @@ rpath = false [patch.crates-io] arrow-format = { git = "https://github.com/Xuanwo/arrow-format", rev = "be633a0" } -icelake = { git = "https://github.com/icelake-io/icelake", rev = "be8b2c2" } -ethnum = { git = "https://github.com/ariesdevil/ethnum-rs", rev = "4cb05f1" } +arrow-udf-js = { git = "https://github.com/datafuse-extras/arrow-udf", rev = "d0a21f0" } +arrow-udf-python = { git = "https://github.com/datafuse-extras/arrow-udf", rev = "d0a21f0" } +arrow-udf-wasm = { git = "https://github.com/datafuse-extras/arrow-udf", rev = "d0a21f0" } async-backtrace = { git = "https://github.com/zhang2014/async-backtrace.git", rev = "dea4553" } -# proj = { git = "https://github.com/ariesdevil/proj", rev = "51e1c60" } +backtrace = { git = "https://github.com/rust-lang/backtrace-rs.git", rev = "6145fe6b" } +deltalake = { git = "https://github.com/delta-io/delta-rs", rev = "81593e9" } +ethnum = { git = "https://github.com/ariesdevil/ethnum-rs", rev = "4cb05f1" } +icelake = { git = "https://github.com/icelake-io/icelake", rev = "be8b2c2" } +openai_api_rust = { git = "https://github.com/datafuse-extras/openai-api", rev = "819a0ed" } +orc-rust = { git = "https://github.com/youngsofun/datafusion-orc", branch = "pub" } +sled = { git = "https://github.com/datafuse-extras/sled", tag = "v0.34.7-datafuse.1" } +xorfilter-rs = { git = "https://github.com/datafuse-extras/xorfilter", tag = "databend-alpha.4" } +# TODO: Use the version from crates.io once +# https://github.com/brendanzab/codespan/pull/331 is released. +codespan-reporting = { git = "https://github.com/brendanzab/codespan", rev = "c84116f5" } diff --git a/src/bendpy/Cargo.toml b/src/bendpy/Cargo.toml index fa20c229aceb..e9f6030b4cb1 100644 --- a/src/bendpy/Cargo.toml +++ b/src/bendpy/Cargo.toml @@ -15,25 +15,24 @@ name = "databend" crate-type = ["cdylib"] [dependencies] -# Workspace dependencies arrow = { workspace = true, features = ["pyarrow"] } arrow-schema = { workspace = true } - -databend-common-config = { path = "../query/config" } -databend-common-exception = { path = "../common/exception" } -databend-common-expression = { path = "../query/expression" } -databend-common-license = { path = "../common/license" } -databend-common-meta-app = { path = "../meta/app" } -databend-common-meta-embedded = { path = "../meta/embedded" } -databend-common-users = { path = "../query/users" } -databend-query = { path = "../query/service", features = [ +ctor = "0.2.5" +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-license = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-embedded = { workspace = true } +databend-common-users = { workspace = true } +databend-query = { workspace = true, features = [ "simd", "disable_initial_exec_tls", ], default-features = false } - -# # Crates.io dependencies -ctor = "0.2.5" pyo3 = { version = "0.20", features = ["extension-module", "abi3", "abi3-py37"] } tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread", "sync"] } tokio-stream = { workspace = true } uuid = { workspace = true } + +[lints] +workspace = true diff --git a/src/binaries/Cargo.toml b/src/binaries/Cargo.toml index 9b96cdb7e257..90a07a4aef28 100644 --- a/src/binaries/Cargo.toml +++ b/src/binaries/Cargo.toml @@ -26,35 +26,32 @@ io-uring = [ ] [dependencies] -# Workspace dependencies -databend-common-base = { path = "../common/base" } -databend-common-config = { path = "../query/config" } -databend-common-exception = { path = "../common/exception" } -databend-common-grpc = { path = "../common/grpc" } -databend-common-license = { path = "../common/license" } -databend-common-meta-api = { path = "../meta/api" } -databend-common-meta-app = { path = "../meta/app" } -databend-common-meta-client = { path = "../meta/client" } -databend-common-meta-kvapi = { path = "../meta/kvapi" } -databend-common-meta-raft-store = { path = "../meta/raft-store" } -databend-common-meta-sled-store = { path = "../meta/sled-store" } -databend-common-meta-store = { path = "../meta/store" } -databend-common-meta-types = { path = "../meta/types" } -databend-common-metrics = { path = "../common/metrics" } -databend-common-storage = { path = "../common/storage" } -databend-common-tracing = { path = "../common/tracing" } -databend-enterprise-query = { path = "../query/ee" } -databend-meta = { path = "../meta/service" } -databend-query = { path = "../query/service" } -# databend-enterprise-meta = { path = "../meta/ee" } -databend-enterprise-background-service = { path = "../query/ee_features/background_service" } -databend-sharing-endpoint = { path = "../query/sharing_endpoint" } -databend-storages-common-table-meta = { path = "../query/storages/common/table_meta" } -# Crates.io dependencies anyerror = { workspace = true } anyhow = { workspace = true } chrono = { workspace = true } clap = { workspace = true } +databend-common-base = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-grpc = { workspace = true } +databend-common-license = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-client = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-raft-store = { workspace = true } +databend-common-meta-sled-store = { workspace = true } +databend-common-meta-store = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-metrics = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-tracing = { workspace = true } +databend-enterprise-background-service = { workspace = true } +databend-enterprise-query = { workspace = true } +databend-meta = { workspace = true } +databend-query = { workspace = true } +databend-sharing-endpoint = { workspace = true } +databend-storages-common-table-meta = { workspace = true } futures = { workspace = true } limits-rs = "0.2.0" log = { workspace = true } @@ -66,7 +63,6 @@ serde_json = { workspace = true } serfig = { workspace = true } tokio = { workspace = true } tokio-stream = { workspace = true } - url = "2.3.1" [[bin]] @@ -116,3 +112,6 @@ name = "table-meta-inspector" path = "tool/table_meta_inspector.rs" doctest = false test = false + +[lints] +workspace = true diff --git a/src/common/arrow/Cargo.toml b/src/common/arrow/Cargo.toml index 06e1d775752a..ce18617fe338 100644 --- a/src/common/arrow/Cargo.toml +++ b/src/common/arrow/Cargo.toml @@ -83,77 +83,51 @@ parquet-default = [ "parquet2/brotli", ] -[dependencies] # In alphabetical order -# Workspace dependencies - +[dependencies] +ahash = "0.8" +arrow-array = { workspace = true, optional = true } +arrow-buffer = { workspace = true, optional = true } +arrow-data = { workspace = true, optional = true } arrow-format = { workspace = true } +arrow-schema = { workspace = true, optional = true } +async-stream = { version = "0.3.2", optional = true } +base64 = { version = "0.21.0", optional = true } bitpacking = "0.8.0" +bytemuck = { version = "1", features = ["derive"] } byteorder = { workspace = true } bytes = "^1" -indexmap = "2.2.3" -log = { workspace = true } -num = { version = "0.4", default-features = false, features = ["std"] } -opendal = { workspace = true } -ordered-float = "3.7.0" -ringbuffer = "0.14.2" -roaring = "0.10.1" -seq-macro = { version = "0.3", default-features = false } - -bytemuck = { version = "1", features = ["derive"] } chrono = { workspace = true } +chrono-tz = { workspace = true, optional = true } dyn-clone = "1" either = "1.9" +ethnum = { workspace = true } +fallible-streaming-iterator = { version = "0.1", optional = true } foreign_vec = "0.1.0" +futures = { version = "0.3", optional = true } +hashbrown = { version = "0.14.3", default-features = false, features = ["ahash"] } +indexmap = "2.2.3" +itertools = { workspace = true, optional = true } +lexical-core = { version = "0.8", optional = true } +log = { workspace = true } +lz4 = { version = "1.24" } +num = { version = "0.4", default-features = false, features = ["std"] } num-traits = "0.2" +opendal = { workspace = true } +ordered-float = "3.7.0" parquet2 = { package = "databend-common-parquet2", path = "../parquet2", default_features = false, features = [ "serde_types", "async", ] } - -# for decimal i256 -ethnum = { workspace = true } - -# For SIMD utf8 validation -simdutf8 = "0.1.4" - -# A Rust port of SwissTable -hashbrown = { version = "0.14.3", default-features = false, features = ["ahash"] } - -# for timezone support -chrono-tz = { workspace = true, optional = true } -# To efficiently cast numbers to strings -lexical-core = { version = "0.8", optional = true } - -fallible-streaming-iterator = { version = "0.1", optional = true } -streaming-iterator = { version = "0.1", optional = true } - -# for IPC compression -lz4 = { version = "1.24" } -snap = { version = "1.1.0" } -zstd = { version = "0.12" } - -base64 = { version = "0.21.0", optional = true } -itertools = { workspace = true, optional = true } rand = { workspace = true } - -# to write to parquet as a stream -futures = { version = "0.3", optional = true } - -# to read IPC as a stream -async-stream = { version = "0.3.2", optional = true } - -# Faster hashing -ahash = "0.8" - -# Arrow integration tests support +ringbuffer = "0.14.2" +roaring = "0.10.1" +seq-macro = { version = "0.3", default-features = false } serde = { version = "^1.0", features = ["rc"], optional = true } serde_derive = { version = "^1.0", optional = true } - -# Support conversion to/from arrow-rs -arrow-array = { workspace = true, optional = true } -arrow-buffer = { workspace = true, optional = true } -arrow-data = { workspace = true, optional = true } -arrow-schema = { workspace = true, optional = true } +simdutf8 = "0.1.4" +snap = { version = "1.1.0" } +streaming-iterator = { version = "0.1", optional = true } +zstd = { version = "0.12" } [dev-dependencies] # used to test async readers @@ -165,3 +139,6 @@ env_logger = "0.10" flate2 = "1.0.28" proptest = { version = "1", default_features = false, features = ["std"] } quanta = "0.11.1" + +[lints] +workspace = true diff --git a/src/common/auth/Cargo.toml b/src/common/auth/Cargo.toml index 42456ac1e0d3..5d8565cb18e0 100644 --- a/src/common/auth/Cargo.toml +++ b/src/common/auth/Cargo.toml @@ -13,8 +13,11 @@ test = true [dependencies] base64 = { workspace = true } chrono = { workspace = true } -databend-common-base = { path = "../../common/base" } +databend-common-base = { workspace = true } http = { workspace = true } [dev-dependencies] tempfile = "3.4.0" + +[lints] +workspace = true diff --git a/src/common/base/Cargo.toml b/src/common/base/Cargo.toml index 9f72e87c5a91..8fd597773cc6 100644 --- a/src/common/base/Cargo.toml +++ b/src/common/base/Cargo.toml @@ -20,17 +20,12 @@ memory-profiling = [ "tikv-jemalloc-sys/unprefixed_malloc_on_supported_platforms", ] -[dependencies] # In alphabetical order -# Workspace dependencies -databend-common-exception = { path = "../exception" } - -# GitHub dependencies - -# Crates.io dependencies +[dependencies] async-backtrace = { workspace = true } async-trait = { workspace = true } bytesize = "1.1.0" ctrlc = { version = "3.2.3", features = ["termination"] } +databend-common-exception = { workspace = true } enquote = "1.1.0" futures = { workspace = true } libc = "0.2.133" @@ -66,3 +61,6 @@ procfs = { version = "^0.16" } anyerror = { workspace = true } anyhow = { workspace = true } rand = { workspace = true } + +[lints] +workspace = true diff --git a/src/common/building/Cargo.toml b/src/common/building/Cargo.toml index 441ac7528168..eb9333d34fc3 100644 --- a/src/common/building/Cargo.toml +++ b/src/common/building/Cargo.toml @@ -17,3 +17,6 @@ cargo_metadata = "0.18" gix = "0.63.0" log = { workspace = true } vergen = { version = "8.3.1", default-features = false, features = ["build", "cargo", "git", "gix", "rustc"] } + +[lints] +workspace = true diff --git a/src/common/cache/Cargo.toml b/src/common/cache/Cargo.toml index e9c7d4642149..5da2c73fb4dc 100644 --- a/src/common/cache/Cargo.toml +++ b/src/common/cache/Cargo.toml @@ -14,13 +14,14 @@ test = true heapsize = ["heapsize_"] [dependencies] - -# Crates.io dependencies bytes = { workspace = true } -hashbrown = "0.14.3" +hashbrown = { workspace = true } hashlink = "0.8" [target.'cfg(not(target_os = "macos"))'.dependencies] heapsize_ = { package = "heapsize", version = "0.4.2", optional = true } [dev-dependencies] + +[lints] +workspace = true diff --git a/src/common/cloud_control/Cargo.toml b/src/common/cloud_control/Cargo.toml index c47085c2fc85..40289c3679c8 100644 --- a/src/common/cloud_control/Cargo.toml +++ b/src/common/cloud_control/Cargo.toml @@ -13,11 +13,12 @@ test = true [dependencies] async-backtrace = { workspace = true } chrono = { workspace = true } -databend-common-base = { path = "../base" } -databend-common-exception = { path = "../exception" } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } prost = { workspace = true } serde = { workspace = true } tonic = { workspace = true } + [build-dependencies] lenient_semver = "0.4.2" prost-build = { workspace = true } @@ -26,3 +27,6 @@ tonic-build = { workspace = true } [dev-dependencies] tower = { version = "0.4" } + +[lints] +workspace = true diff --git a/src/common/compress/Cargo.toml b/src/common/compress/Cargo.toml index 998f2086582a..357a2b49a653 100644 --- a/src/common/compress/Cargo.toml +++ b/src/common/compress/Cargo.toml @@ -14,7 +14,7 @@ async-compression = { git = "https://github.com/everpcpc/async-compression", rev ] } brotli = { version = "3.3.0", features = ["std"] } bytes = { workspace = true } -databend-common-exception = { path = "../exception" } +databend-common-exception = { workspace = true } futures = { workspace = true } log = { workspace = true } pin-project = "1" @@ -24,3 +24,6 @@ serde = { workspace = true } env_logger = "0.10" rand = { workspace = true } tokio = { workspace = true } + +[lints] +workspace = true diff --git a/src/common/exception/Cargo.toml b/src/common/exception/Cargo.toml index 26cd10c020a7..a1b5e3409fa6 100644 --- a/src/common/exception/Cargo.toml +++ b/src/common/exception/Cargo.toml @@ -10,14 +10,13 @@ edition = { workspace = true } doctest = false test = true -[dependencies] # In alphabetical order +[dependencies] databend-common-arrow = { path = "../arrow" } databend-common-ast = { path = "../../query/ast" } anyhow = { workspace = true } arrow-schema = { workspace = true } -backtrace = { git = "https://github.com/rust-lang/backtrace-rs.git", rev = "6145fe6bac65c38375f1216a565a6cc7deb89a2d" } -#backtrace = "0.3.69" +backtrace = { workspace = true } bincode = { workspace = true } geos = { workspace = true } geozero = { workspace = true } @@ -34,3 +33,6 @@ tonic = { workspace = true } [package.metadata.cargo-machete] ignored = ["geos"] + +[lints] +workspace = true diff --git a/src/common/grpc/Cargo.toml b/src/common/grpc/Cargo.toml index d76ed6b4ec09..18e163352bcd 100644 --- a/src/common/grpc/Cargo.toml +++ b/src/common/grpc/Cargo.toml @@ -10,15 +10,10 @@ edition = { workspace = true } doctest = false test = true -[dependencies] # In alphabetical order -# Workspace dependencies -databend-common-base = { path = "../base" } -databend-common-exception = { path = "../exception" } - -# GitHub dependencies - -# Crates.io dependencies +[dependencies] anyerror = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } hickory-resolver = "0.24" hyper = "0.14.20" jwt-simple = "0.11.0" @@ -31,3 +26,6 @@ tonic = { workspace = true } [features] mocks = [] + +[lints] +workspace = true diff --git a/src/common/hashtable/Cargo.toml b/src/common/hashtable/Cargo.toml index 0bfcd9b73145..72403ad715cc 100644 --- a/src/common/hashtable/Cargo.toml +++ b/src/common/hashtable/Cargo.toml @@ -10,13 +10,9 @@ edition = { workspace = true } doctest = false test = true -[dependencies] # In alphabetical order -# Workspace dependencies -databend-common-arrow = { path = "../arrow" } -databend-common-base = { path = "../base" } - -# Crates.io dependencies - +[dependencies] +databend-common-arrow = { workspace = true } +databend-common-base = { workspace = true } ## Must disable feature "runtime-rng", it will make the hash results unstable in cluster ahash = { version = "0.8.2", features = ["no-rng"] } bumpalo = { workspace = true } @@ -26,3 +22,6 @@ ordered-float = { workspace = true, features = ["serde"] } [dev-dependencies] rand = { workspace = true } + +[lints] +workspace = true diff --git a/src/common/http/Cargo.toml b/src/common/http/Cargo.toml index 8c0ac7afef54..a2cedb923735 100644 --- a/src/common/http/Cargo.toml +++ b/src/common/http/Cargo.toml @@ -6,8 +6,6 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [lib] doctest = false test = true @@ -16,14 +14,9 @@ test = true memory-profiling = ["tempfile"] [dependencies] -# Workspace dependencies -databend-common-base = { path = "../base" } -databend-common-exception = { path = "../exception" } - -# GitHub dependencies - -# Crates.io dependencies anyerror = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } futures = { workspace = true } http = { workspace = true } log = { workspace = true } @@ -34,3 +27,6 @@ thiserror = { workspace = true } [dev-dependencies] pretty_assertions = "1.3.0" + +[lints] +workspace = true diff --git a/src/common/io/Cargo.toml b/src/common/io/Cargo.toml index 693bafc1770c..93ccb7a30d2f 100644 --- a/src/common/io/Cargo.toml +++ b/src/common/io/Cargo.toml @@ -6,22 +6,17 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [lib] doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-exception = { path = "../exception" } - -# Crates.io dependencies bincode = { workspace = true } borsh = { workspace = true } bytes = { workspace = true } chrono = { workspace = true } chrono-tz = { workspace = true } +databend-common-exception = { path = "../exception" } ethnum = { workspace = true } geo = { workspace = true } geos = { workspace = true } @@ -40,3 +35,6 @@ rmp-serde = "1.1.1" [package.metadata.cargo-machete] ignored = ["geos"] + +[lints] +workspace = true diff --git a/src/common/license/Cargo.toml b/src/common/license/Cargo.toml index 1e186a34e24b..1ab459b23c3f 100644 --- a/src/common/license/Cargo.toml +++ b/src/common/license/Cargo.toml @@ -11,9 +11,11 @@ doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-base = { path = "../base" } -databend-common-exception = { path = "../exception" } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } jwt-simple = "0.11.0" serde = { workspace = true } serde_json = { workspace = true } + +[lints] +workspace = true diff --git a/src/common/metrics/Cargo.toml b/src/common/metrics/Cargo.toml index 58467c52c612..b07888004648 100644 --- a/src/common/metrics/Cargo.toml +++ b/src/common/metrics/Cargo.toml @@ -11,10 +11,7 @@ doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-base = { path = "../base" } - -# Crates.io dependencies +databend-common-base = { workspace = true } prometheus-client = { workspace = true } [target.'cfg(target_os = "linux")'.dependencies] @@ -27,3 +24,6 @@ anyhow = { workspace = true } default-features = false features = ["io-util", "net", "sync", "rt-multi-thread", "macros"] version = "1.26.0" + +[lints] +workspace = true diff --git a/src/common/openai/Cargo.toml b/src/common/openai/Cargo.toml index c9ce01235cb5..daa2866e2a3d 100644 --- a/src/common/openai/Cargo.toml +++ b/src/common/openai/Cargo.toml @@ -13,14 +13,12 @@ doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-exception = { path = "../exception" } -databend-common-metrics = { path = "../metrics" } - -# GitHub dependencies - -# Crates.io dependencies +databend-common-exception = { workspace = true } +databend-common-metrics = { workspace = true } log = { workspace = true } -openai_api_rust = { git = "https://github.com/datafuse-extras/openai-api", rev = "819a0ed" } +openai_api_rust = { workspace = true } [dev-dependencies] + +[lints] +workspace = true diff --git a/src/common/parquet2/Cargo.toml b/src/common/parquet2/Cargo.toml index bf301b8b0df2..ea7d7bdd348a 100644 --- a/src/common/parquet2/Cargo.toml +++ b/src/common/parquet2/Cargo.toml @@ -10,24 +10,20 @@ bench = false name = "parquet2" [dependencies] -bytes = { workspace = true } -parquet-format-safe = "0.2" -seq-macro = { version = "0.3", default-features = false } -streaming-decompression = "0.1" - async-stream = { version = "0.3.3", optional = true } -futures = { version = "0.3", optional = true } - brotli = { version = "^3.3", optional = true } +bytes = { workspace = true } flate2 = { version = "^1.0", optional = true, default-features = false } +futures = { version = "0.3", optional = true } lz4 = { version = "1.24", optional = true } +opendal = { workspace = true } +parquet-format-safe = "0.2" +seq-macro = { version = "0.3", default-features = false } serde = { version = "^1.0", optional = true, features = ["derive"] } snap = { version = "^1.1", optional = true } -zstd = { version = "^0.12", optional = true, default-features = false } - +streaming-decompression = "0.1" xxhash-rust = { version = "0.8", optional = true, features = ["xxh64"] } - -opendal = { workspace = true } +zstd = { version = "^0.12", optional = true, default-features = false } [dev-dependencies] criterion = { workspace = true } diff --git a/src/common/storage/Cargo.toml b/src/common/storage/Cargo.toml index 5031c087e42d..58351d393fba 100644 --- a/src/common/storage/Cargo.toml +++ b/src/common/storage/Cargo.toml @@ -10,19 +10,18 @@ edition = { workspace = true } storage-hdfs = ["databend-common-meta-app/storage-hdfs"] [dependencies] -databend-common-arrow = { path = "../arrow" } -databend-common-auth = { path = "../auth" } -databend-common-base = { path = "../base" } -databend-common-exception = { path = "../exception" } -databend-common-expression = { path = "../../query/expression" } -databend-common-meta-app = { path = "../../meta/app" } -databend-enterprise-storage-encryption = { path = "../../query/ee_features/storage_encryption" } - anyhow = { workspace = true } arrow-schema = { workspace = true } async-backtrace = { workspace = true } chrono = { workspace = true } dashmap = { workspace = true, features = ["serde"] } +databend-common-arrow = { workspace = true } +databend-common-auth = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-enterprise-storage-encryption = { workspace = true } flagset = "0.4" futures = { workspace = true } log = { workspace = true } @@ -37,3 +36,6 @@ serde = { workspace = true } thiserror = { workspace = true } [dev-dependencies] + +[lints] +workspace = true diff --git a/src/common/tracing/Cargo.toml b/src/common/tracing/Cargo.toml index fdd2f29073b9..5a26b62544d7 100644 --- a/src/common/tracing/Cargo.toml +++ b/src/common/tracing/Cargo.toml @@ -10,11 +10,8 @@ edition = { workspace = true } doctest = false test = true -[dependencies] # In alphabetical order -# Workspace dependencies -databend-common-base = { path = "../base" } - -# Crates.io dependencies +[dependencies] +databend-common-base = { workspace = true } defer = "0.2" fern = "0.6.2" humantime = "2.1.0" @@ -29,3 +26,8 @@ serde = { workspace = true } serde_json = { workspace = true } tonic = { workspace = true } tracing-appender = { workspace = true } + +[dev-dependencies] + +[lints] +workspace = true diff --git a/src/common/vector/Cargo.toml b/src/common/vector/Cargo.toml index e3d32bcbb0f1..73b06d2c8299 100644 --- a/src/common/vector/Cargo.toml +++ b/src/common/vector/Cargo.toml @@ -10,14 +10,12 @@ edition = { workspace = true } doctest = false test = true -[dependencies] # In alphabetical order -databend-common-exception = { path = "../exception" } - +[dependencies] +databend-common-exception = { workspace = true } ndarray = "0.15.6" -[build-dependencies] - -[features] - [dev-dependencies] approx = "0.5.1" + +[lints] +workspace = true diff --git a/src/meta/api/Cargo.toml b/src/meta/api/Cargo.toml index 71ff64b3c597..45a455d5686c 100644 --- a/src/meta/api/Cargo.toml +++ b/src/meta/api/Cargo.toml @@ -13,19 +13,18 @@ doctest = false test = true [dependencies] -databend-common-base = { path = "../../common/base" } -databend-common-exception = { path = "../../common/exception" } -databend-common-expression = { path = "../../query/expression" } -databend-common-meta-app = { path = "../app" } -databend-common-meta-kvapi = { path = "../kvapi" } -databend-common-meta-stoerr = { path = "../stoerr" } -databend-common-meta-types = { path = "../types" } -databend-common-proto-conv = { path = "../proto-conv" } - anyhow = { workspace = true } async-backtrace = { workspace = true } async-trait = { workspace = true } chrono = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-stoerr = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-proto-conv = { workspace = true } enumflags2 = { workspace = true } futures = { workspace = true } log = { workspace = true } @@ -39,3 +38,8 @@ serde_json = { workspace = true } thiserror = { workspace = true } tokio = { workspace = true } tonic = { workspace = true } + +[dev-dependencies] + +[lints] +workspace = true diff --git a/src/meta/app/Cargo.toml b/src/meta/app/Cargo.toml index 11acc637262f..1be881e72368 100644 --- a/src/meta/app/Cargo.toml +++ b/src/meta/app/Cargo.toml @@ -14,17 +14,16 @@ test = true storage-hdfs = [] [dependencies] -databend-common-ast = { path = "../../query/ast" } -databend-common-exception = { path = "../../common/exception" } -databend-common-expression = { path = "../../query/expression" } -databend-common-io = { path = "../../common/io" } -databend-common-meta-kvapi = { path = "../kvapi" } -databend-common-meta-types = { path = "../types" } - anyerror = { workspace = true } chrono = { workspace = true } chrono-tz = { workspace = true } cron = "0.12.0" +databend-common-ast = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-io = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-types = { workspace = true } enumflags2 = { workspace = true } hex = "0.4.3" itertools = { workspace = true } @@ -47,5 +46,7 @@ ignored = ["num-traits"] [build-dependencies] databend-common-building = { path = "../../common/building" } - tonic-build = { workspace = true } + +[lints] +workspace = true diff --git a/src/meta/client/Cargo.toml b/src/meta/client/Cargo.toml index 4931b12ec9b4..a92e0fd03b9e 100644 --- a/src/meta/client/Cargo.toml +++ b/src/meta/client/Cargo.toml @@ -14,16 +14,15 @@ doctest = false test = true [dependencies] -databend-common-arrow = { path = "../../common/arrow" } -databend-common-base = { path = "../../common/base" } -databend-common-grpc = { path = "../../common/grpc" } -databend-common-meta-api = { path = "../api" } -databend-common-meta-kvapi = { path = "../kvapi" } -databend-common-meta-types = { path = "../types" } -databend-common-metrics = { path = "../../common/metrics" } -databend-common-tracing = { path = "../../common/tracing" } - anyerror = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-base = { workspace = true } +databend-common-grpc = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-metrics = { workspace = true } +databend-common-tracing = { workspace = true } derive_more = { workspace = true } futures = { workspace = true } itertools = { workspace = true } @@ -39,11 +38,13 @@ serde_json = { workspace = true } tonic = { workspace = true } [dev-dependencies] -databend-common-exception = { path = "../../common/exception" } -databend-common-meta-app = { path = "../app" } - anyhow = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-app = { workspace = true } rand = { workspace = true } [build-dependencies] -databend-common-building = { path = "../../common/building" } +databend-common-building = { workspace = true } + +[lints] +workspace = true diff --git a/src/meta/ee/Cargo.toml b/src/meta/ee/Cargo.toml index 98cc8a4b7341..e1635b15a063 100644 --- a/src/meta/ee/Cargo.toml +++ b/src/meta/ee/Cargo.toml @@ -14,4 +14,7 @@ test = true [dependencies] [build-dependencies] -databend-common-building = { path = "../../common/building" } +databend-common-building = { workspace = true } + +[lints] +workspace = true diff --git a/src/meta/embedded/Cargo.toml b/src/meta/embedded/Cargo.toml index 5fbe777cde16..c2147df17808 100644 --- a/src/meta/embedded/Cargo.toml +++ b/src/meta/embedded/Cargo.toml @@ -15,20 +15,20 @@ test = true io-uring = ["databend-common-meta-sled-store/io-uring", "databend-common-meta-raft-store/io-uring"] [dependencies] -# Workspace dependencies -databend-common-base = { path = "../../common/base" } -databend-common-meta-api = { path = "../api" } -databend-common-meta-kvapi = { path = "../kvapi" } -databend-common-meta-raft-store = { path = "../raft-store" } -databend-common-meta-sled-store = { path = "../sled-store" } -databend-common-meta-stoerr = { path = "../stoerr" } -databend-common-meta-types = { path = "../types" } - -# Crates.io dependencies async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-raft-store = { workspace = true } +databend-common-meta-sled-store = { workspace = true } +databend-common-meta-stoerr = { workspace = true } +databend-common-meta-types = { workspace = true } log = { workspace = true } minitrace = { workspace = true } tempfile = "3.4.0" [dev-dependencies] anyhow = { workspace = true } + +[lints] +workspace = true diff --git a/src/meta/kvapi/Cargo.toml b/src/meta/kvapi/Cargo.toml index a6e20029f682..b38daad17219 100644 --- a/src/meta/kvapi/Cargo.toml +++ b/src/meta/kvapi/Cargo.toml @@ -13,13 +13,15 @@ doctest = false test = true [dependencies] -databend-common-meta-types = { path = "../types" } - anyhow = { workspace = true } async-trait = { workspace = true } +databend-common-meta-types = { workspace = true } futures-util = { workspace = true } log = { workspace = true } minitrace = { workspace = true } serde = { workspace = true } thiserror = { workspace = true } tokio = { workspace = true } + +[lints] +workspace = true diff --git a/src/meta/process/Cargo.toml b/src/meta/process/Cargo.toml index 67ec0097b0e6..512060667776 100644 --- a/src/meta/process/Cargo.toml +++ b/src/meta/process/Cargo.toml @@ -8,20 +8,20 @@ publish = { workspace = true } edition = { workspace = true } [dependencies] -# Workspace dependencies -databend-common-meta-app = { path = "../app" } -databend-common-meta-kvapi = { path = "../kvapi" } -databend-common-meta-raft-store = { path = "../raft-store" } -databend-common-meta-sled-store = { path = "../sled-store" } -databend-common-meta-types = { path = "../types" } -databend-common-proto-conv = { path = "../proto-conv" } -databend-common-protos = { path = "../protos" } -databend-common-tracing = { path = "../../common/tracing" } - -# Crates.io dependencies anyhow = { workspace = true } clap = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-raft-store = { workspace = true } +databend-common-meta-sled-store = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-proto-conv = { workspace = true } +databend-common-protos = { workspace = true } +databend-common-tracing = { workspace = true } openraft = { workspace = true } prost = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } + +[lints] +workspace = true diff --git a/src/meta/proto-conv/Cargo.toml b/src/meta/proto-conv/Cargo.toml index 8b38ea477a87..fca14fe1de88 100644 --- a/src/meta/proto-conv/Cargo.toml +++ b/src/meta/proto-conv/Cargo.toml @@ -11,14 +11,13 @@ doctest = false test = true [dependencies] -databend-common-expression = { path = "../../query/expression" } -databend-common-io = { path = "../../common/io" } -databend-common-meta-app = { path = "../app" } -databend-common-meta-types = { path = "../types" } -databend-common-protos = { path = "../protos" } - chrono = { workspace = true } chrono-tz = { workspace = true, features = ["serde"] } +databend-common-expression = { workspace = true } +databend-common-io = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-protos = { workspace = true } enumflags2 = { workspace = true } minitrace = { workspace = true } num = "0.4.0" @@ -32,3 +31,6 @@ anyhow = { workspace = true } convert_case = { version = "0.6.0" } maplit = "1.0.2" pretty_assertions = "1.3.0" + +[lints] +workspace = true diff --git a/src/meta/protos/Cargo.toml b/src/meta/protos/Cargo.toml index ad983e55d7f3..531ddb001326 100644 --- a/src/meta/protos/Cargo.toml +++ b/src/meta/protos/Cargo.toml @@ -26,3 +26,6 @@ tonic-build = { workspace = true } [package.metadata.cargo-machete] ignored = ["num-derive", "num-traits"] + +[lints] +workspace = true diff --git a/src/meta/raft-store/Cargo.toml b/src/meta/raft-store/Cargo.toml index e9feec784cbd..b8ee703a7850 100644 --- a/src/meta/raft-store/Cargo.toml +++ b/src/meta/raft-store/Cargo.toml @@ -15,23 +15,19 @@ test = true io-uring = ["databend-common-meta-sled-store/io-uring"] [dependencies] -databend-common-base = { path = "../../common/base" } -databend-common-exception = { path = "../../common/exception" } -databend-common-grpc = { path = "../../common/grpc" } -databend-common-meta-api = { path = "../api" } -databend-common-meta-kvapi = { path = "../kvapi" } -databend-common-meta-sled-store = { path = "../sled-store" } -databend-common-meta-stoerr = { path = "../stoerr" } -databend-common-meta-types = { path = "../types" } -databend-common-tracing = { path = "../../common/tracing" } - -openraft = { workspace = true } - -# crates.io deps anyhow = { workspace = true } async-trait = { workspace = true } byteorder = { workspace = true } chrono = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-grpc = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-sled-store = { workspace = true } +databend-common-meta-stoerr = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-tracing = { workspace = true } derive_more = { workspace = true } futures = { workspace = true } futures-async-stream = { workspace = true } @@ -42,6 +38,7 @@ log = { workspace = true } maplit = "1.0.2" minitrace = { workspace = true } num = "0.4.0" +openraft = { workspace = true } ordq = { workspace = true } semver = { workspace = true } serde = { workspace = true } @@ -51,8 +48,11 @@ thiserror = { workspace = true } tokio = { workspace = true } [dev-dependencies] -databend-common-base = { path = "../../common/base" } +databend-common-base = { workspace = true } pretty_assertions = "1.3.0" tempfile = "3.4.0" test-harness = "0.1.1" tokio = { workspace = true } + +[lints] +workspace = true diff --git a/src/meta/service/Cargo.toml b/src/meta/service/Cargo.toml index f462759af883..0275eda0bc7c 100644 --- a/src/meta/service/Cargo.toml +++ b/src/meta/service/Cargo.toml @@ -22,30 +22,24 @@ io-uring = [ ] [dependencies] -# Workspace dependencies -databend-common-arrow = { path = "../../common/arrow" } -databend-common-base = { path = "../../common/base" } -databend-common-grpc = { path = "../../common/grpc" } -databend-common-http = { path = "../../common/http" } -databend-common-meta-api = { path = "../api" } -databend-common-meta-client = { path = "../client" } -databend-common-meta-kvapi = { path = "../kvapi" } -databend-common-meta-raft-store = { path = "../raft-store" } -databend-common-meta-sled-store = { path = "../sled-store" } -databend-common-meta-stoerr = { path = "../stoerr" } -databend-common-meta-types = { path = "../types" } -databend-common-metrics = { path = "../../common/metrics" } -databend-common-tracing = { path = "../../common/tracing" } - -# GitHub dependencies -sled = { workspace = true } - -# Crates.io dependencies anyerror = { workspace = true } anyhow = { workspace = true } async-trait = { workspace = true } backon = "0.4" clap = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-base = { workspace = true } +databend-common-grpc = { workspace = true } +databend-common-http = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-client = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-raft-store = { workspace = true } +databend-common-meta-sled-store = { workspace = true } +databend-common-meta-stoerr = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-metrics = { workspace = true } +databend-common-tracing = { workspace = true } derive_more = { workspace = true } feature-set = { workspace = true } futures = { workspace = true } @@ -63,6 +57,7 @@ semver = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } serfig = { workspace = true } +sled = { workspace = true } tokio-stream = { workspace = true } tonic = { workspace = true } tonic-reflection = { workspace = true } @@ -78,4 +73,7 @@ tempfile = "3.4.0" test-harness = "0.1.1" [build-dependencies] -databend-common-building = { path = "../../common/building" } +databend-common-building = { workspace = true } + +[lints] +workspace = true diff --git a/src/meta/sled-store/Cargo.toml b/src/meta/sled-store/Cargo.toml index 4118ef33cc17..78beceb86771 100644 --- a/src/meta/sled-store/Cargo.toml +++ b/src/meta/sled-store/Cargo.toml @@ -15,26 +15,27 @@ test = true io-uring = ["sled/io_uring"] [dependencies] -databend-common-meta-stoerr = { path = "../stoerr" } -databend-common-meta-types = { path = "../types" } -databend-common-tracing = { path = "../../common/tracing" } - -openraft = { workspace = true } -sled = { workspace = true } - anyerror = { workspace = true } byteorder = { workspace = true } +databend-common-meta-stoerr = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-tracing = { workspace = true } log = { workspace = true } minitrace = { workspace = true } +openraft = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } +sled = { workspace = true } tempfile = "3.4.0" thiserror = { workspace = true } tokio = { workspace = true } [dev-dependencies] anyhow = { workspace = true } -databend-common-base = { path = "../../common/base" } +databend-common-base = { workspace = true } pretty_assertions = "1.3.0" test-harness = "0.1.1" tokio = { workspace = true } + +[lints] +workspace = true diff --git a/src/meta/stoerr/Cargo.toml b/src/meta/stoerr/Cargo.toml index 2465846a484b..a9dbf6f403f4 100644 --- a/src/meta/stoerr/Cargo.toml +++ b/src/meta/stoerr/Cargo.toml @@ -11,11 +11,13 @@ doctest = false test = true [dependencies] -databend-common-exception = { path = "../../common/exception" } - anyerror = { workspace = true } +databend-common-exception = { workspace = true } prost = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } sled = { workspace = true } thiserror = { workspace = true } + +[lints] +workspace = true diff --git a/src/meta/store/Cargo.toml b/src/meta/store/Cargo.toml index 0edbaf49125c..d117182cc146 100644 --- a/src/meta/store/Cargo.toml +++ b/src/meta/store/Cargo.toml @@ -15,14 +15,14 @@ test = true io-uring = ["databend-common-meta-embedded/io-uring"] [dependencies] -# Workspace dependencies -databend-common-grpc = { path = "../../common/grpc" } -databend-common-meta-client = { path = "../client" } -databend-common-meta-embedded = { path = "../embedded" } -databend-common-meta-kvapi = { path = "../kvapi" } -databend-common-meta-types = { path = "../types" } - -# Crates.io dependencies async-trait = { workspace = true } +databend-common-grpc = { workspace = true } +databend-common-meta-client = { workspace = true } +databend-common-meta-embedded = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-types = { workspace = true } log = { workspace = true } tokio-stream = { workspace = true } + +[lints] +workspace = true diff --git a/src/meta/types/Cargo.toml b/src/meta/types/Cargo.toml index 53626784379e..12a57a0d58a8 100644 --- a/src/meta/types/Cargo.toml +++ b/src/meta/types/Cargo.toml @@ -11,17 +11,15 @@ doctest = false test = true [dependencies] -databend-common-exception = { path = "../../common/exception" } -databend-common-meta-stoerr = { path = "../stoerr" } -databend-common-tracing = { path = "../../common/tracing" } - -openraft = { workspace = true } - anyerror = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-stoerr = { workspace = true } +databend-common-tracing = { workspace = true } derive_more = { workspace = true } log = { workspace = true } num-derive = "0.3.3" num-traits = "0.2.15" +openraft = { workspace = true } prost = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } @@ -30,7 +28,7 @@ tokio = { workspace = true } tonic = { workspace = true } [build-dependencies] -databend-common-building = { path = "../../common/building" } +databend-common-building = { workspace = true } prost-build = { workspace = true } tonic-build = { workspace = true } @@ -40,3 +38,6 @@ regex = { workspace = true } [package.metadata.cargo-machete] ignored = ["num-derive", "prost"] + +[lints] +workspace = true diff --git a/src/query/ast/Cargo.toml b/src/query/ast/Cargo.toml index 2f38c2c9f48c..ba08982869bd 100644 --- a/src/query/ast/Cargo.toml +++ b/src/query/ast/Cargo.toml @@ -14,8 +14,8 @@ doctest = false [package.metadata.cargo-machete] ignored = ["geos"] -[dependencies] # In alphabetical order -# Crates.io dependencies +[dependencies] +codespan-reporting = { workspace = true } derive-visitor = { workspace = true } enum-as-inner = "0.5.1" ethnum = { workspace = true } @@ -39,12 +39,6 @@ strum_macros = "0.24" unindent = "0.2.3" url = "2.3.1" -# TODO: Use the version from crates.io once -# https://github.com/brendanzab/codespan/pull/331 is released. -[dependencies.codespan-reporting] -git = "https://github.com/brendanzab/codespan" -rev = "c84116f5" - [dev-dependencies] criterion = { workspace = true } goldenfile = "1.4" @@ -54,3 +48,6 @@ regex = { workspace = true } [[bench]] name = "bench" harness = false + +[lints] +workspace = true diff --git a/src/query/async_functions/Cargo.toml b/src/query/async_functions/Cargo.toml index 9fd63c21a6d4..f4f71a080cb3 100644 --- a/src/query/async_functions/Cargo.toml +++ b/src/query/async_functions/Cargo.toml @@ -9,15 +9,15 @@ edition = { workspace = true } [lib] doctest = false -[dependencies] # In alphabetical order -# Workspace dependencies -databend-common-ast = { path = "../ast" } -databend-common-catalog = { path = "../catalog" } -databend-common-exception = { path = "../../common/exception" } -databend-common-expression = { path = "../expression" } -databend-common-meta-app = { path = "../../meta/app" } - -# Crates.io dependencies +[dependencies] +databend-common-ast = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-meta-app = { workspace = true } educe = "0.4" [dev-dependencies] + +[lints] +workspace = true diff --git a/src/query/catalog/Cargo.toml b/src/query/catalog/Cargo.toml index fd683c3097be..397fe9b0cee6 100644 --- a/src/query/catalog/Cargo.toml +++ b/src/query/catalog/Cargo.toml @@ -6,34 +6,32 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-arrow = { path = "../../common/arrow" } -databend-common-base = { path = "../../common/base" } -databend-common-config = { path = "../config" } -databend-common-exception = { path = "../../common/exception" } -databend-common-expression = { path = "../expression" } -databend-common-io = { path = "../../common/io" } -databend-common-meta-api = { path = "../../meta/api" } -databend-common-meta-app = { path = "../../meta/app" } -databend-common-meta-store = { path = "../../meta/store" } -databend-common-meta-types = { path = "../../meta/types" } -databend-common-pipeline-core = { path = "../pipeline/core" } -databend-common-settings = { path = "../settings" } -databend-common-storage = { path = "../../common/storage" } -databend-common-users = { path = "../users" } -databend-storages-common-table-meta = { path = "../storages/common/table_meta" } -databend-storages-common-txn = { path = "../storages/common/txn" } - arrow-schema = { workspace = true } async-backtrace = { workspace = true } async-trait = { workspace = true } chrono = { workspace = true } dashmap = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-base = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-io = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-store = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-settings = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-users = { workspace = true } +databend-storages-common-table-meta = { workspace = true } +databend-storages-common-txn = { workspace = true } dyn-clone = "1.0.9" log = { workspace = true } parking_lot = { workspace = true } @@ -48,3 +46,6 @@ xorf = { version = "0.11.0", default-features = false, features = ["binary-fuse" [dev-dependencies] goldenfile = "1.4" + +[lints] +workspace = true diff --git a/src/query/codegen/Cargo.toml b/src/query/codegen/Cargo.toml index b4fdab94d8a9..d3634d35e7b4 100644 --- a/src/query/codegen/Cargo.toml +++ b/src/query/codegen/Cargo.toml @@ -15,6 +15,8 @@ name = "codegen" path = "src/bin/codegen.rs" [dependencies] -databend-common-expression = { path = "../expression" } - +databend-common-expression = { workspace = true } itertools = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/config/Cargo.toml b/src/query/config/Cargo.toml index cb731358c365..8a1cc64f910b 100644 --- a/src/query/config/Cargo.toml +++ b/src/query/config/Cargo.toml @@ -19,16 +19,15 @@ storage-hdfs = ["databend-common-storage/storage-hdfs"] ignored = ["strum"] [dependencies] -databend-common-base = { path = "../../common/base" } -databend-common-exception = { path = "../../common/exception" } -databend-common-grpc = { path = "../../common/grpc" } -databend-common-meta-app = { path = "../../meta/app" } -databend-common-storage = { path = "../../common/storage" } -databend-common-tracing = { path = "../../common/tracing" } -databend-common-users = { path = "../users" } - chrono-tz = { workspace = true } clap = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-grpc = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-tracing = { workspace = true } +databend-common-users = { workspace = true } hex = "0.4.3" log = { workspace = true } semver = { workspace = true } @@ -41,4 +40,7 @@ strum = "0.24.1" pretty_assertions = "1.3.0" [build-dependencies] -databend-common-building = { path = "../../common/building" } +databend-common-building = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/datavalues/Cargo.toml b/src/query/datavalues/Cargo.toml index c67f04e83413..65afeee1d59a 100644 --- a/src/query/datavalues/Cargo.toml +++ b/src/query/datavalues/Cargo.toml @@ -10,11 +10,13 @@ edition = { workspace = true } doctest = false test = true -[dependencies] # In alphabetical order -# Crates.io dependencies +[dependencies] enum-as-inner = "0.5" enum_dispatch = "0.3.8" serde = { workspace = true } serde_json = { workspace = true } [dev-dependencies] + +[lints] +workspace = true diff --git a/src/query/ee/Cargo.toml b/src/query/ee/Cargo.toml index ece7c7efc1a9..105488d11b39 100644 --- a/src/query/ee/Cargo.toml +++ b/src/query/ee/Cargo.toml @@ -12,52 +12,50 @@ doctest = false test = true [dependencies] -# Workspace dependencies -async-backtrace = { workspace = true } -databend-common-ast = { path = "../ast" } -databend-common-base = { path = "../../common/base" } -databend-common-catalog = { path = "../catalog" } -databend-common-config = { path = "../config" } -databend-common-exception = { path = "../../common/exception" } -databend-common-expression = { path = "../expression" } -databend-common-functions = { path = "../functions" } -databend-common-io = { path = "../../common/io" } -databend-common-license = { path = "../../common/license" } -databend-common-meta-api = { path = "../../meta/api" } -databend-common-meta-app = { path = "../../meta/app" } -databend-common-meta-store = { path = "../../meta/store" } -databend-common-meta-types = { path = "../../meta/types" } -databend-common-sql = { path = "../sql" } -databend-common-storage = { path = "../../common/storage" } -databend-common-storages-fuse = { path = "../storages/fuse" } -databend-common-storages-stream = { path = "../storages/stream" } -databend-common-tracing = { path = "../../common/tracing" } -databend-common-users = { path = "../users" } -databend-enterprise-aggregating-index = { path = "../ee_features/aggregating_index" } -databend-enterprise-background-service = { path = "../ee_features/background_service" } -databend-enterprise-data-mask-feature = { path = "../ee_features/data_mask" } -databend-enterprise-inverted-index = { path = "../ee_features/inverted_index" } -databend-enterprise-storage-encryption = { path = "../ee_features/storage_encryption" } -databend-enterprise-storage-quota = { path = "../ee_features/storage_quota" } -databend-enterprise-stream-handler = { path = "../ee_features/stream_handler" } -databend-enterprise-vacuum-handler = { path = "../ee_features/vacuum_handler" } -databend-enterprise-virtual-column = { path = "../ee_features/virtual_column" } -databend-query = { path = "../service" } -databend-storages-common-cache = { path = "../storages/common/cache" } -databend-storages-common-pruner = { path = "../storages/common/pruner" } -databend-storages-common-table-meta = { path = "../storages/common/table_meta" } -opendal = { workspace = true } - arrow-array = { workspace = true } +async-backtrace = { workspace = true } async-trait = { workspace = true } chrono = { workspace = true } chrono-tz = { workspace = true } dashmap = { workspace = true } +databend-common-ast = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-functions = { workspace = true } +databend-common-io = { workspace = true } +databend-common-license = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-store = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-sql = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-storages-fuse = { workspace = true } +databend-common-storages-stream = { workspace = true } +databend-common-tracing = { workspace = true } +databend-common-users = { workspace = true } +databend-enterprise-aggregating-index = { workspace = true } +databend-enterprise-background-service = { workspace = true } +databend-enterprise-data-mask-feature = { workspace = true } +databend-enterprise-inverted-index = { workspace = true } +databend-enterprise-storage-encryption = { workspace = true } +databend-enterprise-storage-quota = { workspace = true } +databend-enterprise-stream-handler = { workspace = true } +databend-enterprise-vacuum-handler = { workspace = true } +databend-enterprise-virtual-column = { workspace = true } +databend-query = { workspace = true } +databend-storages-common-cache = { workspace = true } +databend-storages-common-pruner = { workspace = true } +databend-storages-common-table-meta = { workspace = true } derive-visitor = { workspace = true } futures = { workspace = true } futures-util = { workspace = true } jwt-simple = "0.11.0" log = { workspace = true } +opendal = { workspace = true } tempfile = "3.4.0" [dev-dependencies] @@ -66,3 +64,6 @@ tantivy = { workspace = true } [build-dependencies] databend-common-building = { path = "../../common/building" } + +[lints] +workspace = true diff --git a/src/query/ee_features/aggregating_index/Cargo.toml b/src/query/ee_features/aggregating_index/Cargo.toml index 2a24aca1b7c6..5146ba8aaf29 100644 --- a/src/query/ee_features/aggregating_index/Cargo.toml +++ b/src/query/ee_features/aggregating_index/Cargo.toml @@ -12,13 +12,14 @@ doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-meta-app = { path = "../../../meta/app" } - async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-app = { workspace = true } [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/ee_features/background_service/Cargo.toml b/src/query/ee_features/background_service/Cargo.toml index 1c7ea19144b5..4d5dff29ab21 100644 --- a/src/query/ee_features/background_service/Cargo.toml +++ b/src/query/ee_features/background_service/Cargo.toml @@ -12,14 +12,15 @@ doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-base = { path = "../../../common/base" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-meta-app = { path = "../../../meta/app" } - arrow-array = { workspace = true } async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-app = { workspace = true } serde = { workspace = true } [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/ee_features/data_mask/Cargo.toml b/src/query/ee_features/data_mask/Cargo.toml index 30fa9d24eefb..a058e23bc529 100644 --- a/src/query/ee_features/data_mask/Cargo.toml +++ b/src/query/ee_features/data_mask/Cargo.toml @@ -12,12 +12,13 @@ doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-base = { path = "../../../common/base" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-meta-store = { path = "../../../meta/store" } - async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-store = { workspace = true } [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/ee_features/inverted_index/Cargo.toml b/src/query/ee_features/inverted_index/Cargo.toml index 3ee82c88f49b..87e2536c3dc8 100644 --- a/src/query/ee_features/inverted_index/Cargo.toml +++ b/src/query/ee_features/inverted_index/Cargo.toml @@ -12,13 +12,14 @@ doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-meta-app = { path = "../../../meta/app" } - async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-app = { workspace = true } [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/ee_features/storage_encryption/Cargo.toml b/src/query/ee_features/storage_encryption/Cargo.toml index 4c1b31b2094d..5c84fa08ff44 100644 --- a/src/query/ee_features/storage_encryption/Cargo.toml +++ b/src/query/ee_features/storage_encryption/Cargo.toml @@ -11,10 +11,11 @@ doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-base = { path = "../../../common/base" } -databend-common-exception = { path = "../../../common/exception" } - async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/ee_features/storage_quota/Cargo.toml b/src/query/ee_features/storage_quota/Cargo.toml index 82d5ae77842b..316e25c57f97 100644 --- a/src/query/ee_features/storage_quota/Cargo.toml +++ b/src/query/ee_features/storage_quota/Cargo.toml @@ -12,11 +12,12 @@ doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-base = { path = "../../../common/base" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-license = { path = "../../../common/license" } - async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-license = { workspace = true } [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/ee_features/stream_handler/Cargo.toml b/src/query/ee_features/stream_handler/Cargo.toml index 5969ce02f61d..9e8709233efb 100644 --- a/src/query/ee_features/stream_handler/Cargo.toml +++ b/src/query/ee_features/stream_handler/Cargo.toml @@ -11,15 +11,15 @@ doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-sql = { path = "../../sql" } - -# Github dependencies async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-sql = { workspace = true } [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/ee_features/vacuum_handler/Cargo.toml b/src/query/ee_features/vacuum_handler/Cargo.toml index 571037c36679..5f58412d3d56 100644 --- a/src/query/ee_features/vacuum_handler/Cargo.toml +++ b/src/query/ee_features/vacuum_handler/Cargo.toml @@ -12,14 +12,15 @@ doctest = false test = true [dependencies] -# Workspace dependencies -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-storages-fuse = { path = "../../storages/fuse" } - async-backtrace = { workspace = true } async-trait = { workspace = true } chrono = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-storages-fuse = { workspace = true } [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/ee_features/virtual_column/Cargo.toml b/src/query/ee_features/virtual_column/Cargo.toml index 3ebcd063cddb..9db4efce6dcd 100644 --- a/src/query/ee_features/virtual_column/Cargo.toml +++ b/src/query/ee_features/virtual_column/Cargo.toml @@ -13,14 +13,16 @@ test = true [dependencies] # Workspace dependencies -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-storages-fuse = { path = "../../storages/fuse" } -databend-storages-common-table-meta = { path = "../../storages/common/table_meta" } - async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-storages-fuse = { workspace = true } +databend-storages-common-table-meta = { workspace = true } [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/expression/Cargo.toml b/src/query/expression/Cargo.toml index 9b34015a7cce..50471db3001b 100644 --- a/src/query/expression/Cargo.toml +++ b/src/query/expression/Cargo.toml @@ -9,19 +9,7 @@ edition = { workspace = true } [lib] test = true -[dependencies] # In alphabetical order -# Workspace dependencies -databend-common-arrow = { path = "../../common/arrow" } -databend-common-ast = { path = "../ast" } -databend-common-base = { path = "../../common/base" } -databend-common-datavalues = { path = "../datavalues" } -databend-common-exception = { path = "../../common/exception" } -databend-common-hashtable = { path = "../../common/hashtable" } -databend-common-io = { path = "../../common/io" } - -# GitHub dependencies - -# Crates.io dependencies +[dependencies] arrow-array = { workspace = true } arrow-flight = { workspace = true } arrow-schema = { workspace = true } @@ -34,6 +22,13 @@ chrono = { workspace = true } chrono-tz = { workspace = true } comfy-table = "6" dashmap = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-ast = { workspace = true } +databend-common-base = { workspace = true } +databend-common-datavalues = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-hashtable = { workspace = true } +databend-common-io = { workspace = true } educe = "0.4" enum-as-inner = "0.5" ethnum = { workspace = true, features = ["serde", "macros", "borsh"] } @@ -70,5 +65,8 @@ pretty_assertions = "1.3.0" rand = { workspace = true } rmp-serde = "1.1.1" +[lints] +workspace = true + [package.metadata.cargo-machete] ignored = ["geos"] diff --git a/src/query/formats/Cargo.toml b/src/query/formats/Cargo.toml index 1d47bcb9e2c8..068c0027e610 100644 --- a/src/query/formats/Cargo.toml +++ b/src/query/formats/Cargo.toml @@ -10,15 +10,24 @@ edition = { workspace = true } doctest = false test = true -[dependencies] # In alphabetical order +[dependencies] aho-corasick = { version = "1.0.1" } async-trait = { workspace = true } base64 = "0.21.0" bstr = "1.0.1" chrono-tz = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-io = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-settings = { workspace = true } +databend-storages-common-blocks = { workspace = true } +databend-storages-common-table-meta = { workspace = true } geos = { workspace = true } geozero = { workspace = true } hex = "0.4.3" +jsonb = { workspace = true } lexical-core = "0.8.5" match-template = { workspace = true } micromarshal = "0.4.0" @@ -28,21 +37,13 @@ ordered-float = { workspace = true } roaring = { version = "0.10.1", features = ["serde"] } serde_json = { workspace = true } -# Workspace dependencies -databend-common-arrow = { path = "../../common/arrow" } -databend-common-exception = { path = "../../common/exception" } -databend-common-expression = { path = "../expression" } -databend-common-io = { path = "../../common/io" } -databend-common-meta-app = { path = "../../meta/app" } -databend-common-settings = { path = "../settings" } -databend-storages-common-blocks = { path = "../storages/common/blocks" } -databend-storages-common-table-meta = { path = "../storages/common/table_meta" } -jsonb = { workspace = true } - [dev-dependencies] -databend-common-arrow = { path = "../../common/arrow" } +databend-common-arrow = { workspace = true } pretty_assertions = "1.3.0" tokio = { workspace = true } +[lints] +workspace = true + [package.metadata.cargo-machete] ignored = ["geos", "match-template"] diff --git a/src/query/functions/Cargo.toml b/src/query/functions/Cargo.toml index 1b1bc39cac82..49eecbcd2621 100644 --- a/src/query/functions/Cargo.toml +++ b/src/query/functions/Cargo.toml @@ -9,19 +9,7 @@ edition = { workspace = true } [lib] doctest = false -[dependencies] # In alphabetical order -# Workspace dependencies -databend-common-arrow = { path = "../../common/arrow" } -databend-common-base = { path = "../../common/base" } -databend-common-exception = { path = "../../common/exception" } -databend-common-expression = { path = "../expression" } -databend-common-hashtable = { path = "../../common/hashtable" } -databend-common-io = { path = "../../common/io" } -databend-common-openai = { path = "../../common/openai" } -databend-common-vector = { path = "../../common/vector" } -jsonb = { workspace = true } - -# Crates.io dependencies +[dependencies] base64 = "0.21.0" blake3 = "1.3.1" borsh = { workspace = true, features = ["derive"] } @@ -32,6 +20,14 @@ chrono-tz = { workspace = true } crc32fast = "1.3.2" criterion = { workspace = true } ctor = "0.1.26" +databend-common-arrow = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-hashtable = { workspace = true } +databend-common-io = { workspace = true } +databend-common-openai = { workspace = true } +databend-common-vector = { workspace = true } ethnum = { workspace = true } geo = { workspace = true } geo-types = "0.7.13" @@ -41,6 +37,7 @@ geozero = { workspace = true } h3o = "0.4.0" hex = "0.4.3" itertools = { workspace = true } +jsonb = { workspace = true } lexical-core = "0.8.5" libm = "0.2.6" match-template = { workspace = true } @@ -53,7 +50,6 @@ ordered-float = { workspace = true, features = [ "serde", "rand", ] } -#proj = { version = "0.27.2", features = ["geo-types", "bundled_proj"] } rand = { workspace = true } regex = { workspace = true } roaring = "0.10.1" @@ -70,12 +66,15 @@ twox-hash = "1.6.3" [dev-dependencies] comfy-table = "6" -databend-common-ast = { path = "../ast" } +databend-common-ast = { workspace = true } goldenfile = "1.4" [[bench]] name = "bench" harness = false +[lints] +workspace = true + [package.metadata.cargo-machete] ignored = ["md-5"] diff --git a/src/query/management/Cargo.toml b/src/query/management/Cargo.toml index 9f1ddd99d9b3..9e52576b2373 100644 --- a/src/query/management/Cargo.toml +++ b/src/query/management/Cargo.toml @@ -6,25 +6,22 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [lib] doctest = false test = true [dependencies] -databend-common-base = { path = "../../common/base" } -databend-common-exception = { path = "../../common/exception" } -databend-common-functions = { path = "../functions" } -databend-common-meta-api = { path = "../../meta/api" } -databend-common-meta-app = { path = "../../meta/app" } -databend-common-meta-kvapi = { path = "../../meta/kvapi" } -databend-common-meta-store = { path = "../../meta/store" } -databend-common-meta-types = { path = "../../meta/types" } -databend-common-proto-conv = { path = "../../meta/proto-conv" } - async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-functions = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-store = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-proto-conv = { workspace = true } enumflags2 = { workspace = true } futures = { workspace = true } log = { workspace = true } @@ -35,7 +32,10 @@ serde_json = { workspace = true } thiserror = { workspace = true } [dev-dependencies] -databend-common-expression = { path = "../../query/expression" } -databend-common-meta-embedded = { path = "../../meta/embedded" } -databend-common-storage = { path = "../../common/storage" } +databend-common-expression = { workspace = true } +databend-common-meta-embedded = { workspace = true } +databend-common-storage = { workspace = true } mockall = "0.11.2" + +[lints] +workspace = true diff --git a/src/query/pipeline/core/Cargo.toml b/src/query/pipeline/core/Cargo.toml index 530e0d2877cb..f0c77495513b 100644 --- a/src/query/pipeline/core/Cargo.toml +++ b/src/query/pipeline/core/Cargo.toml @@ -6,18 +6,16 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-base = { path = "../../../common/base" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } - async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } futures = { workspace = true } log = "0.4.21" minitrace = { workspace = true } @@ -29,3 +27,6 @@ serde = { workspace = true } serde_json = { workspace = true } tokio = { workspace = true } typetag = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/pipeline/sinks/Cargo.toml b/src/query/pipeline/sinks/Cargo.toml index 8e3d6536c64d..13dd79943c5f 100644 --- a/src/query/pipeline/sinks/Cargo.toml +++ b/src/query/pipeline/sinks/Cargo.toml @@ -6,20 +6,21 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-base = { path = "../../../common/base" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-pipeline-core = { path = "../core" } - async-backtrace = { workspace = true } async-channel = "1.7.1" async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-pipeline-core = { workspace = true } [dev-dependencies] tokio = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/pipeline/sources/Cargo.toml b/src/query/pipeline/sources/Cargo.toml index 785ee6531809..4eb2c22af6fa 100644 --- a/src/query/pipeline/sources/Cargo.toml +++ b/src/query/pipeline/sources/Cargo.toml @@ -6,7 +6,6 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true @@ -14,31 +13,31 @@ test = true [dependencies] async-backtrace = { workspace = true } async-channel = "1.7.1" -databend-common-arrow = { path = "../../../common/arrow" } -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-compress = { path = "../../../common/compress" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-formats = { path = "../../formats" } -databend-common-io = { path = "../../../common/io" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-pipeline-core = { path = "../core" } -databend-common-settings = { path = "../../settings" } -databend-common-storage = { path = "../../../common/storage" } - async-trait = { workspace = true } bstr = "1.0.1" csv-core = "0.1.10" dashmap = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-compress = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-formats = { workspace = true } +databend-common-io = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-settings = { workspace = true } +databend-common-storage = { workspace = true } futures = { workspace = true } futures-util = { workspace = true } - log = { workspace = true } minitrace = { workspace = true } opendal = { workspace = true } parking_lot = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } - typetag = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/pipeline/transforms/Cargo.toml b/src/query/pipeline/transforms/Cargo.toml index 4a95b79513ed..9c1c2bf2e131 100644 --- a/src/query/pipeline/transforms/Cargo.toml +++ b/src/query/pipeline/transforms/Cargo.toml @@ -6,19 +6,17 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-base = { path = "../../../common/base" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-pipeline-core = { path = "../core" } - async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-pipeline-core = { workspace = true } jsonb = { workspace = true } match-template = { workspace = true } serde = { workspace = true } @@ -29,5 +27,8 @@ typetag = { workspace = true } itertools = { workspace = true } rand = { workspace = true } +[lints] +workspace = true + [package.metadata.cargo-machete] ignored = ["match-template"] diff --git a/src/query/script/Cargo.toml b/src/query/script/Cargo.toml index 7d2aa9a888eb..ad9e8221cb19 100644 --- a/src/query/script/Cargo.toml +++ b/src/query/script/Cargo.toml @@ -9,12 +9,9 @@ edition = { workspace = true } [lib] doctest = false -[dependencies] # In alphabetical order -# Workspace dependencies -databend-common-ast = { path = "../ast" } -databend-common-exception = { path = "../../common/exception" } - -# Crates.io dependencies +[dependencies] +databend-common-ast = { workspace = true } +databend-common-exception = { workspace = true } derive-visitor = { workspace = true } minitrace = { workspace = true } @@ -22,3 +19,6 @@ minitrace = { workspace = true } goldenfile = "1.4" tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread", "sync"] } unindent = "0.2.3" + +[lints] +workspace = true diff --git a/src/query/service/Cargo.toml b/src/query/service/Cargo.toml index 65b9a762b179..73e8e1f972a7 100644 --- a/src/query/service/Cargo.toml +++ b/src/query/service/Cargo.toml @@ -29,87 +29,13 @@ io-uring = [ enable_queries_executor = [] [dependencies] -# Workspace dependencies -databend-common-arrow = { path = "../../common/arrow" } -databend-common-ast = { path = "../ast" } -databend-common-base = { path = "../../common/base" } -databend-common-cache = { path = "../../common/cache" } -databend-common-catalog = { path = "../catalog" } -databend-common-compress = { path = "../../common/compress" } -databend-common-config = { path = "../config" } -databend-common-exception = { path = "../../common/exception" } -databend-common-expression = { path = "../expression" } -databend-common-formats = { path = "../formats" } -databend-common-functions = { path = "../functions" } -databend-common-grpc = { path = "../../common/grpc" } -databend-common-hashtable = { path = "../../common/hashtable" } -databend-common-http = { path = "../../common/http" } -databend-common-io = { path = "../../common/io" } -databend-common-management = { path = "../management" } -databend-common-meta-api = { path = "../../meta/api" } -databend-common-meta-app = { path = "../../meta/app" } -databend-common-script = { path = "../script" } - -databend-common-cloud-control = { path = "../../common/cloud_control" } -databend-common-license = { path = "../../common/license" } -databend-common-meta-embedded = { path = "../../meta/embedded" } -databend-common-meta-kvapi = { path = "../../meta/kvapi" } -databend-common-meta-store = { path = "../../meta/store" } -databend-common-meta-types = { path = "../../meta/types" } -databend-common-metrics = { path = "../../common/metrics" } -databend-common-openai = { path = "../../common/openai" } -databend-common-pipeline-core = { path = "../pipeline/core" } -databend-common-pipeline-sinks = { path = "../pipeline/sinks" } -databend-common-pipeline-sources = { path = "../pipeline/sources" } -databend-common-pipeline-transforms = { path = "../pipeline/transforms" } -databend-common-settings = { path = "../settings" } -databend-common-sharing = { path = "../sharing" } -databend-common-sql = { path = "../sql" } -databend-common-storage = { path = "../../common/storage" } -databend-common-storages-delta = { path = "../storages/delta" } -databend-common-storages-factory = { path = "../storages/factory" } -databend-common-storages-fuse = { path = "../storages/fuse" } -databend-common-storages-hive = { path = "../storages/hive/hive" } -databend-common-storages-iceberg = { path = "../storages/iceberg" } -databend-common-storages-information-schema = { path = "../storages/information_schema" } -databend-common-storages-null = { path = "../storages/null" } -databend-common-storages-orc = { path = "../storages/orc" } -databend-common-storages-parquet = { path = "../storages/parquet" } -databend-common-storages-result-cache = { path = "../storages/result_cache" } -databend-common-storages-share = { path = "../storages/share" } -databend-common-storages-stage = { path = "../storages/stage" } -databend-common-storages-stream = { path = "../storages/stream" } -databend-common-storages-system = { path = "../storages/system" } -databend-common-storages-view = { path = "../storages/view" } -databend-common-tracing = { path = "../../common/tracing" } -databend-common-users = { path = "../users" } -databend-enterprise-aggregating-index = { path = "../ee_features/aggregating_index" } -databend-enterprise-background-service = { path = "../ee_features/background_service" } -databend-enterprise-data-mask-feature = { path = "../ee_features/data_mask" } -databend-enterprise-inverted-index = { path = "../ee_features/inverted_index" } -databend-enterprise-stream-handler = { path = "../ee_features/stream_handler" } -databend-enterprise-vacuum-handler = { path = "../ee_features/vacuum_handler" } -databend-enterprise-virtual-column = { path = "../ee_features/virtual_column" } -databend-storages-common-blocks = { path = "../storages/common/blocks" } -databend-storages-common-cache = { path = "../storages/common/cache" } -databend-storages-common-cache-manager = { path = "../storages/common/cache_manager" } -databend-storages-common-index = { path = "../storages/common/index" } -databend-storages-common-io = { path = "../storages/common/io" } -databend-storages-common-table-meta = { path = "../storages/common/table_meta" } -databend-storages-common-txn = { path = "../storages/common/txn" } -jsonb = { workspace = true } - -# GitHub dependencies - -# Crates.io dependencies -arrow-udf-js = { workspace = true } -arrow-udf-python = { package = "arrow-udf-python", git = "https://github.com/datafuse-extras/arrow-udf", rev = "d0a21f0", optional = true } -arrow-udf-wasm = { workspace = true } - arrow-array = { workspace = true } arrow-flight = { workspace = true } arrow-ipc = { workspace = true } arrow-schema = { workspace = true } +arrow-udf-js = { workspace = true } +arrow-udf-python = { workspace = true, optional = true } +arrow-udf-wasm = { workspace = true } async-backtrace = { workspace = true } async-channel = "1.7.1" async-stream = "0.3.3" @@ -124,6 +50,72 @@ chrono-tz = { workspace = true } config = { version = "0.13.4", features = [] } ctor = "0.1.26" dashmap = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-ast = { workspace = true } +databend-common-base = { workspace = true } +databend-common-cache = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-cloud-control = { workspace = true } +databend-common-compress = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-formats = { workspace = true } +databend-common-functions = { workspace = true } +databend-common-grpc = { workspace = true } +databend-common-hashtable = { workspace = true } +databend-common-http = { workspace = true } +databend-common-io = { workspace = true } +databend-common-license = { workspace = true } +databend-common-management = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-embedded = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-store = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-metrics = { workspace = true } +databend-common-openai = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sinks = { workspace = true } +databend-common-pipeline-sources = { workspace = true } +databend-common-pipeline-transforms = { workspace = true } +databend-common-script = { workspace = true } +databend-common-settings = { workspace = true } +databend-common-sharing = { workspace = true } +databend-common-sql = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-storages-delta = { workspace = true } +databend-common-storages-factory = { workspace = true } +databend-common-storages-fuse = { workspace = true } +databend-common-storages-hive = { workspace = true } +databend-common-storages-iceberg = { workspace = true } +databend-common-storages-information-schema = { workspace = true } +databend-common-storages-null = { workspace = true } +databend-common-storages-orc = { workspace = true } +databend-common-storages-parquet = { workspace = true } +databend-common-storages-result-cache = { workspace = true } +databend-common-storages-share = { workspace = true } +databend-common-storages-stage = { workspace = true } +databend-common-storages-stream = { workspace = true } +databend-common-storages-system = { workspace = true } +databend-common-storages-view = { workspace = true } +databend-common-tracing = { workspace = true } +databend-common-users = { workspace = true } +databend-enterprise-aggregating-index = { workspace = true } +databend-enterprise-background-service = { workspace = true } +databend-enterprise-data-mask-feature = { workspace = true } +databend-enterprise-inverted-index = { workspace = true } +databend-enterprise-stream-handler = { workspace = true } +databend-enterprise-vacuum-handler = { workspace = true } +databend-enterprise-virtual-column = { workspace = true } +databend-storages-common-blocks = { workspace = true } +databend-storages-common-cache = { workspace = true } +databend-storages-common-cache-manager = { workspace = true } +databend-storages-common-index = { workspace = true } +databend-storages-common-io = { workspace = true } +databend-storages-common-table-meta = { workspace = true } +databend-storages-common-txn = { workspace = true } derive-visitor = { workspace = true } ethnum = { workspace = true } flatbuffers = { workspace = true } @@ -135,6 +127,7 @@ http = { workspace = true } humantime = "2.1.0" indicatif = "0.17.5" itertools = { workspace = true } +jsonb = { workspace = true } jwt-simple = "0.11.0" log = { workspace = true } lz4 = "1.24.0" @@ -182,8 +175,6 @@ xorf = { version = "0.11.0", default-features = false, features = ["binary-fuse" [dev-dependencies] arrow-cast = { workspace = true } -ordered-float = { workspace = true } - criterion = { workspace = true } goldenfile = "1.4" hex = "0.4.3" @@ -191,6 +182,7 @@ jwt-simple = "0.12" maplit = "1.0.2" mysql_async = { workspace = true } num = "0.4.0" +ordered-float = { workspace = true } p256 = "0.13" pretty_assertions = "1.3.0" reqwest = { workspace = true } @@ -202,7 +194,10 @@ url = "2.3.1" wiremock = "0.6" [build-dependencies] -databend-common-building = { path = "../../common/building" } +databend-common-building = { workspace = true } + +[lints] +workspace = true [package.metadata.cargo-machete] ignored = ["match-template", "md-5"] diff --git a/src/query/settings/Cargo.toml b/src/query/settings/Cargo.toml index d32e68046964..0ac49d1ee94d 100644 --- a/src/query/settings/Cargo.toml +++ b/src/query/settings/Cargo.toml @@ -6,31 +6,32 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-ast = { path = "../ast" } -databend-common-config = { path = "../config" } -databend-common-exception = { path = "../../common/exception" } -databend-common-io = { path = "../../common/io" } -databend-common-meta-app = { path = "../../meta/app" } -databend-common-meta-types = { path = "../../meta/types" } -databend-common-users = { path = "../users" } -serde = { workspace = true } - async-backtrace = { workspace = true } chrono-tz = { workspace = true } dashmap = { workspace = true } +databend-common-ast = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-io = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-users = { workspace = true } itertools = { workspace = true } log = { workspace = true } num_cpus = "1.13.1" once_cell = { workspace = true } +serde = { workspace = true } sys-info = "0.9" [dev-dependencies] -databend-common-base = { path = "../../common/base" } +databend-common-base = { workspace = true } serde_json = { workspace = true } tokio = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/sharing/Cargo.toml b/src/query/sharing/Cargo.toml index ba66463caeed..591815d95420 100644 --- a/src/query/sharing/Cargo.toml +++ b/src/query/sharing/Cargo.toml @@ -11,20 +11,22 @@ doctest = false [dependencies] anyhow = { workspace = true } -bytes = { workspace = true } -databend-common-auth = { path = "../../common/auth" } -databend-common-base = { path = "../../common/base" } -databend-common-config = { path = "../config" } -databend-common-exception = { path = "../../common/exception" } -databend-common-meta-api = { path = "../../meta/api" } -databend-common-meta-app = { path = "../../meta/app" } -databend-common-storage = { path = "../../common/storage" } -databend-common-users = { path = "../users" } - async-backtrace = { workspace = true } +bytes = { workspace = true } +databend-common-auth = { workspace = true } +databend-common-base = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-users = { workspace = true } http = { workspace = true } log = { workspace = true } moka = "0.12" opendal = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/sharing_endpoint/Cargo.toml b/src/query/sharing_endpoint/Cargo.toml index 3d64c7de3fec..4dd25162e0c6 100644 --- a/src/query/sharing_endpoint/Cargo.toml +++ b/src/query/sharing_endpoint/Cargo.toml @@ -10,18 +10,17 @@ edition = { workspace = true } doctest = false [dependencies] -databend-common-base = { path = "../../common/base" } -databend-common-config = { path = "../../query/config" } -databend-common-exception = { path = "../../common/exception" } -databend-common-meta-app = { path = "../../meta/app" } -databend-common-storage = { path = "../../common/storage" } -databend-common-storages-share = { path = "../storages/share" } - async-backtrace = { workspace = true } base64 = { workspace = true } bytes = { workspace = true } chrono = { workspace = true } clap = { workspace = true } +databend-common-base = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-storages-share = { workspace = true } enumflags2 = { workspace = true } http = { workspace = true } opendal = { workspace = true } @@ -31,3 +30,6 @@ serde_json = { workspace = true } serfig = { workspace = true } time = { version = "0.3", features = ["serde"] } uuid = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/sql/Cargo.toml b/src/query/sql/Cargo.toml index 71e5b261c4e2..1fa3b2a379dd 100644 --- a/src/query/sql/Cargo.toml +++ b/src/query/sql/Cargo.toml @@ -14,42 +14,7 @@ test = true default = [] storage-hdfs = ["databend-common-config/storage-hdfs"] -[dependencies] # In alphabetical order -# Workspace dependencies -databend-common-ast = { path = "../ast" } -databend-common-async-functions = { path = "../async_functions" } -databend-common-base = { path = "../../common/base" } -databend-common-catalog = { path = "../catalog" } -databend-common-compress = { path = "../../common/compress" } -databend-common-config = { path = "../config" } -databend-common-exception = { path = "../../common/exception" } -databend-common-expression = { path = "../expression" } -databend-common-functions = { path = "../functions" } -databend-common-license = { path = "../../common/license" } -databend-common-meta-app = { path = "../../meta/app" } -databend-common-meta-types = { path = "../../meta/types" } -databend-common-metrics = { path = "../../common/metrics" } - -databend-common-pipeline-core = { path = "../pipeline/core" } -databend-common-pipeline-sources = { path = "../pipeline/sources" } -databend-common-pipeline-transforms = { path = "../pipeline/transforms" } - -databend-common-settings = { path = "../settings" } -databend-common-storage = { path = "../../common/storage" } -databend-common-storages-delta = { path = "../storages/delta" } -databend-common-storages-iceberg = { path = "../storages/iceberg" } -databend-common-storages-orc = { path = "../storages/orc" } -databend-common-storages-parquet = { path = "../storages/parquet" } -databend-common-storages-result-cache = { path = "../storages/result_cache" } -databend-common-storages-stage = { path = "../storages/stage" } -databend-common-storages-view = { path = "../storages/view" } -databend-common-users = { path = "../users" } -databend-enterprise-data-mask-feature = { path = "../ee_features/data_mask" } -databend-storages-common-table-meta = { path = "../storages/common/table_meta" } - -# GitHub dependencies - -# Crates.io dependencies +[dependencies] ahash = { version = "0.8.2", features = ["no-rng"] } anyhow = { workspace = true } async-backtrace = { workspace = true } @@ -61,6 +26,34 @@ cidr = { version = "0.2.2" } cron = "0.12.0" ctor = "0.1.26" dashmap = { workspace = true } +databend-common-ast = { workspace = true } +databend-common-async-functions = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-compress = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-functions = { workspace = true } +databend-common-license = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-metrics = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sources = { workspace = true } +databend-common-pipeline-transforms = { workspace = true } +databend-common-settings = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-storages-delta = { workspace = true } +databend-common-storages-iceberg = { workspace = true } +databend-common-storages-orc = { workspace = true } +databend-common-storages-parquet = { workspace = true } +databend-common-storages-result-cache = { workspace = true } +databend-common-storages-stage = { workspace = true } +databend-common-storages-view = { workspace = true } +databend-common-users = { workspace = true } +databend-enterprise-data-mask-feature = { workspace = true } +databend-storages-common-table-meta = { workspace = true } derive-visitor = { workspace = true } educe = "0.4" enum-as-inner = "0.5" @@ -82,3 +75,6 @@ roaring = "0.10.1" serde = { workspace = true } simsearch = "0.2" time = "0.3.14" + +[lints] +workspace = true diff --git a/src/query/storages/common/blocks/Cargo.toml b/src/query/storages/common/blocks/Cargo.toml index 421966921de1..dea091ea91e4 100644 --- a/src/query/storages/common/blocks/Cargo.toml +++ b/src/query/storages/common/blocks/Cargo.toml @@ -6,16 +6,17 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-exception = { path = "../../../../common/exception" } -databend-common-expression = { path = "../../../expression" } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-storages-common-table-meta = { workspace = true } parquet_rs = { workspace = true } -databend-storages-common-table-meta = { path = "../table_meta" } - [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/storages/common/cache/Cargo.toml b/src/query/storages/common/cache/Cargo.toml index bd24261c8663..30fde18a7171 100644 --- a/src/query/storages/common/cache/Cargo.toml +++ b/src/query/storages/common/cache/Cargo.toml @@ -6,23 +6,21 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -bytes = { workspace = true } -databend-common-base = { path = "../../../../common/base" } -databend-common-cache = { path = "../../../../common/cache" } -databend-common-config = { path = "../../../config" } -databend-common-exception = { path = "../../../../common/exception" } -databend-common-metrics = { path = "../../../../common/metrics" } - async-backtrace = { workspace = true } async-trait = { workspace = true } +bytes = { workspace = true } crc32fast = "1.3.2" crossbeam-channel = "0.5.6" +databend-common-base = { workspace = true } +databend-common-cache = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-metrics = { workspace = true } hex = "0.4.3" log = { workspace = true } parking_lot = { workspace = true } @@ -31,3 +29,6 @@ siphasher = "0.3.10" [dev-dependencies] tempfile = "3.4.0" + +[lints] +workspace = true diff --git a/src/query/storages/common/cache_manager/Cargo.toml b/src/query/storages/common/cache_manager/Cargo.toml index 15bb45f2cbdc..ad25b95ac904 100644 --- a/src/query/storages/common/cache_manager/Cargo.toml +++ b/src/query/storages/common/cache_manager/Cargo.toml @@ -10,14 +10,16 @@ edition = { workspace = true } [dependencies] arrow = { workspace = true } -databend-common-arrow = { path = "../../../../common/arrow" } -databend-common-base = { path = "../../../../common/base" } -databend-common-cache = { path = "../../../../common/cache" } -databend-common-catalog = { path = "../../../catalog" } -databend-common-config = { path = "../../../config" } -databend-common-exception = { path = "../../../../common/exception" } -databend-storages-common-cache = { path = "../../common/cache" } -databend-storages-common-index = { path = "../../common/index" } -databend-storages-common-table-meta = { path = "../table_meta" } - +databend-common-arrow = { workspace = true } +databend-common-base = { workspace = true } +databend-common-cache = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-storages-common-cache = { workspace = true } +databend-storages-common-index = { workspace = true } +databend-storages-common-table-meta = { workspace = true } log = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/common/index/Cargo.toml b/src/query/storages/common/index/Cargo.toml index de94037bdeb9..e5c316ad47df 100644 --- a/src/query/storages/common/index/Cargo.toml +++ b/src/query/storages/common/index/Cargo.toml @@ -6,7 +6,6 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true @@ -15,38 +14,35 @@ test = true ignored = ["xorfilter-rs", "match-template"] [dependencies] -databend-common-arrow = { path = "../../../../common/arrow" } -databend-common-ast = { path = "../../../ast" } -databend-common-exception = { path = "../../../../common/exception" } -databend-common-expression = { path = "../../../expression" } -databend-common-functions = { path = "../../../functions" } - -databend-storages-common-table-meta = { path = "../table_meta" } - anyerror = { workspace = true } cbordata = { version = "0.6.0" } crc32fast = "1.3.2" +databend-common-arrow = { workspace = true } +databend-common-ast = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-functions = { workspace = true } +databend-storages-common-table-meta = { workspace = true } jsonb = { workspace = true } log = { workspace = true } match-template = { workspace = true } minitrace = { workspace = true } +parquet = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } tantivy = { workspace = true } tantivy-common = "0.7.0" thiserror = { workspace = true } - -xorfilter-rs = { git = "https://github.com/datafuse-extras/xorfilter", features = [ - "cbordata", -], tag = "databend-alpha.4" } - -parquet = { workspace = true } +xorfilter-rs = { workspace = true, features = ["cbordata"] } [dev-dependencies] criterion = { workspace = true } -databend-common-arrow = { path = "../../../../common/arrow" } +databend-common-arrow = { workspace = true } rand = { workspace = true } [[bench]] name = "build_from_block" harness = false + +[lints] +workspace = true diff --git a/src/query/storages/common/io/Cargo.toml b/src/query/storages/common/io/Cargo.toml index 3aad31537c71..cf4939fe36c7 100644 --- a/src/query/storages/common/io/Cargo.toml +++ b/src/query/storages/common/io/Cargo.toml @@ -7,11 +7,13 @@ publish = { workspace = true } edition = { workspace = true } [dependencies] -databend-common-base = { path = "../../../../common/base" } -databend-common-catalog = { path = "../../../catalog" } -databend-common-exception = { path = "../../../../common/exception" } - async-backtrace = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } log = { workspace = true } minitrace = { workspace = true } opendal = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/common/pruner/Cargo.toml b/src/query/storages/common/pruner/Cargo.toml index 3c8243209b22..ba95ed5f08f2 100644 --- a/src/query/storages/common/pruner/Cargo.toml +++ b/src/query/storages/common/pruner/Cargo.toml @@ -6,20 +6,19 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-exception = { path = "../../../../common/exception" } -databend-common-expression = { path = "../../../expression" } -databend-common-functions = { path = "../../../functions" } - -databend-storages-common-index = { path = "../index" } -databend-storages-common-table-meta = { path = "../table_meta" } - +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-functions = { workspace = true } +databend-storages-common-index = { workspace = true } +databend-storages-common-table-meta = { workspace = true } log = { workspace = true } serde = { workspace = true } - typetag = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/common/table_meta/Cargo.toml b/src/query/storages/common/table_meta/Cargo.toml index e5caa0bd3c17..d57795903f19 100644 --- a/src/query/storages/common/table_meta/Cargo.toml +++ b/src/query/storages/common/table_meta/Cargo.toml @@ -6,16 +6,18 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -[dependencies] -databend-common-arrow = { path = "../../../../common/arrow" } -databend-common-base = { path = "../../../../common/base" } -databend-common-datavalues = { path = "../../../datavalues" } -databend-common-exception = { path = "../../../../common/exception" } -databend-common-expression = { path = "../../../expression" } -databend-common-io = { path = "../../../../common/io" } +[features] +dev = ["snap"] +[dependencies] bincode = "1.3.3" chrono = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-base = { workspace = true } +databend-common-datavalues = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-io = { workspace = true } enum-as-inner = "0.5" parquet_rs = { workspace = true } rmp-serde = "1.1.1" @@ -29,5 +31,5 @@ zstd = "0.12.3" [dev-dependencies] pot = "2.0.0" -[features] -dev = ["snap"] +[lints] +workspace = true diff --git a/src/query/storages/common/txn/Cargo.toml b/src/query/storages/common/txn/Cargo.toml index 5d1d8a5eefe7..85177ff5bdad 100644 --- a/src/query/storages/common/txn/Cargo.toml +++ b/src/query/storages/common/txn/Cargo.toml @@ -7,8 +7,11 @@ publish = { workspace = true } edition = { workspace = true } [dependencies] -databend-common-meta-app = { path = "../../../../meta/app" } -databend-common-meta-types = { path = "../../../../meta/types" } +databend-common-meta-app = { workspace = true } +databend-common-meta-types = { workspace = true } parking_lot = { workspace = true } serde = { version = "1.0.194", features = ["derive"] } uuid = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/delta/Cargo.toml b/src/query/storages/delta/Cargo.toml index 81edbb7bfc43..820afc7f4307 100644 --- a/src/query/storages/delta/Cargo.toml +++ b/src/query/storages/delta/Cargo.toml @@ -6,24 +6,21 @@ authors = ["Databend Authors "] license = "Apache-2.0" publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-storage = { path = "../../../common/storage" } -databend-common-storages-parquet = { path = "../parquet" } -databend-storages-common-table-meta = { path = "../common/table_meta" } - arrow-schema = { workspace = true } async-backtrace = { workspace = true } async-trait = { workspace = true } bytes = { workspace = true } -deltalake = { git = "https://github.com/delta-io/delta-rs", package = "deltalake-core", rev = "81593e9" } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-storages-parquet = { workspace = true } +databend-storages-common-table-meta = { workspace = true } +deltalake = { workspace = true } flagset = "0.4" futures = "0.3" match-template = "0.0.1" @@ -41,5 +38,8 @@ url = "2.4.1" [dev-dependencies] maplit = "1.0.2" +[lints] +workspace = true + [package.metadata.cargo-machete] ignored = ["match-template"] diff --git a/src/query/storages/factory/Cargo.toml b/src/query/storages/factory/Cargo.toml index e86f8e52cc89..a2ec632b75b4 100644 --- a/src/query/storages/factory/Cargo.toml +++ b/src/query/storages/factory/Cargo.toml @@ -6,27 +6,27 @@ authors = ["Databend Authors "] license = "Apache-2.0" publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-catalog = { path = "../../catalog" } -databend-common-config = { path = "../../config" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-storages-delta = { path = "../delta" } -databend-common-storages-fuse = { path = "../fuse" } -databend-common-storages-iceberg = { path = "../iceberg" } -databend-common-storages-memory = { path = "../memory" } -databend-common-storages-null = { path = "../null" } -databend-common-storages-random = { path = "../random" } -databend-common-storages-stream = { path = "../stream" } -databend-common-storages-view = { path = "../view" } - -databend-storages-common-index = { path = "../common/index" } - async-trait = { workspace = true } dashmap = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-storages-delta = { workspace = true } +databend-common-storages-fuse = { workspace = true } +databend-common-storages-iceberg = { workspace = true } +databend-common-storages-memory = { workspace = true } +databend-common-storages-null = { workspace = true } +databend-common-storages-random = { workspace = true } +databend-common-storages-stream = { workspace = true } +databend-common-storages-view = { workspace = true } +databend-storages-common-index = { workspace = true } tokio = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/fuse/Cargo.toml b/src/query/storages/fuse/Cargo.toml index 991e0394a350..0ca80d16fb15 100644 --- a/src/query/storages/fuse/Cargo.toml +++ b/src/query/storages/fuse/Cargo.toml @@ -6,41 +6,11 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-arrow = { path = "../../../common/arrow" } -databend-common-base = { path = "../../../common/base" } -databend-common-cache = { path = "../../../common/cache" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-functions = { path = "../../functions" } -databend-common-hashtable = { path = "../../../common/hashtable" } -databend-common-io = { path = "../../../common/io" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-meta-types = { path = "../../../meta/types" } -databend-common-metrics = { path = "../../../common/metrics" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-pipeline-sinks = { path = "../../pipeline/sinks" } -databend-common-pipeline-sources = { path = "../../pipeline/sources" } -databend-common-pipeline-transforms = { path = "../../pipeline/transforms" } -databend-common-sharing = { path = "../../sharing" } -databend-common-sql = { path = "../../sql" } -databend-common-storage = { path = "../../../common/storage" } -jsonb = { workspace = true } - -databend-storages-common-blocks = { path = "../common/blocks" } -databend-storages-common-cache = { path = "../common/cache" } -databend-storages-common-cache-manager = { path = "../common/cache_manager" } -databend-storages-common-index = { path = "../common/index" } -databend-storages-common-io = { path = "../common/io" } -databend-storages-common-pruner = { path = "../common/pruner" } -databend-storages-common-table-meta = { path = "../common/table_meta" } - ahash = "0.8.3" arrow = { workspace = true } arrow-array = { workspace = true } @@ -49,11 +19,38 @@ async-trait = { workspace = true } backoff = { version = "0.4.0", features = ["futures", "tokio"] } bytes = { workspace = true } chrono = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-base = { workspace = true } +databend-common-cache = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-functions = { workspace = true } +databend-common-hashtable = { workspace = true } +databend-common-io = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-metrics = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sinks = { workspace = true } +databend-common-pipeline-sources = { workspace = true } +databend-common-pipeline-transforms = { workspace = true } +databend-common-sharing = { workspace = true } +databend-common-sql = { workspace = true } +databend-common-storage = { workspace = true } +databend-storages-common-blocks = { workspace = true } +databend-storages-common-cache = { workspace = true } +databend-storages-common-cache-manager = { workspace = true } +databend-storages-common-index = { workspace = true } +databend-storages-common-io = { workspace = true } +databend-storages-common-pruner = { workspace = true } +databend-storages-common-table-meta = { workspace = true } enum-as-inner = "0.5" futures = { workspace = true } futures-util = { workspace = true } indexmap = "2.0.0" itertools = { workspace = true } +jsonb = { workspace = true } log = { workspace = true } minitrace = { workspace = true } opendal = { workspace = true } @@ -73,3 +70,6 @@ xorf = { version = "0.11.0", default-features = false, features = ["binary-fuse" [dev-dependencies] criterion = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/hive/hive/Cargo.toml b/src/query/storages/hive/hive/Cargo.toml index c61f7d9081b0..e9cd7bf041a3 100644 --- a/src/query/storages/hive/hive/Cargo.toml +++ b/src/query/storages/hive/hive/Cargo.toml @@ -6,34 +6,31 @@ authors = ["Databend Authors "] license = "Apache-2.0" publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-arrow = { path = "../../../../common/arrow" } -databend-common-base = { path = "../../../../common/base" } -databend-common-catalog = { path = "../../../catalog" } -databend-common-exception = { path = "../../../../common/exception" } -databend-common-expression = { path = "../../../expression" } -databend-common-functions = { path = "../../../functions" } -databend-common-meta-app = { path = "../../../../meta/app" } -databend-common-meta-types = { path = "../../../../meta/types" } -databend-common-pipeline-core = { path = "../../../pipeline/core" } -databend-common-pipeline-sources = { path = "../../../pipeline/sources" } -databend-common-sql = { path = "../../../sql" } -databend-common-storage = { path = "../../../../common/storage" } - -databend-storages-common-cache = { path = "../../common/cache" } -databend-storages-common-cache-manager = { path = "../../common/cache_manager" } -databend-storages-common-index = { path = "../../common/index" } -databend-storages-common-table-meta = { path = "../../common/table_meta" } - async-backtrace = { workspace = true } async-recursion = "1.0.0" async-trait = { workspace = true } chrono = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-functions = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sources = { workspace = true } +databend-common-sql = { workspace = true } +databend-common-storage = { workspace = true } +databend-storages-common-cache = { workspace = true } +databend-storages-common-cache-manager = { workspace = true } +databend-storages-common-index = { workspace = true } +databend-storages-common-table-meta = { workspace = true } faststr = "0.2" futures = { workspace = true } hive_metastore = "0.0.2" @@ -44,3 +41,6 @@ ordered-float = { workspace = true } serde = { workspace = true } typetag = { workspace = true } volo-thrift = "0.9" + +[lints] +workspace = true diff --git a/src/query/storages/iceberg/Cargo.toml b/src/query/storages/iceberg/Cargo.toml index 993ec07db014..5e0af94f390d 100644 --- a/src/query/storages/iceberg/Cargo.toml +++ b/src/query/storages/iceberg/Cargo.toml @@ -6,26 +6,23 @@ authors = ["Databend Authors "] license = "Apache-2.0" publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-functions = { path = "../../functions" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-meta-types = { path = "../../../meta/types" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-storage = { path = "../../../common/storage" } -databend-common-storages-parquet = { path = "../parquet" } -databend-storages-common-pruner = { path = "../common/pruner" } -databend-storages-common-table-meta = { path = "../common/table_meta" } - arrow-schema = { workspace = true } async-backtrace = { workspace = true } async-trait = { workspace = true } chrono = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-functions = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-storages-parquet = { workspace = true } +databend-storages-common-pruner = { workspace = true } +databend-storages-common-table-meta = { workspace = true } futures = { workspace = true } icelake = "0.0.10" match-template = { workspace = true } @@ -36,5 +33,8 @@ serde = { workspace = true } tokio = { workspace = true } typetag = { workspace = true } +[lints] +workspace = true + [package.metadata.cargo-machete] ignored = ["match-template"] diff --git a/src/query/storages/information_schema/Cargo.toml b/src/query/storages/information_schema/Cargo.toml index 4932be21a75a..33690f72be06 100644 --- a/src/query/storages/information_schema/Cargo.toml +++ b/src/query/storages/information_schema/Cargo.toml @@ -6,16 +6,18 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-ast = { path = "../../../query/ast" } -databend-common-catalog = { path = "../../catalog" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-storages-view = { path = "../view" } +databend-common-ast = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-storages-view = { workspace = true } [build-dependencies] -databend-common-building = { path = "../../../common/building" } +databend-common-building = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/memory/Cargo.toml b/src/query/storages/memory/Cargo.toml index 29f656a66a2f..876289641b08 100644 --- a/src/query/storages/memory/Cargo.toml +++ b/src/query/storages/memory/Cargo.toml @@ -6,28 +6,29 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-pipeline-sinks = { path = "../../pipeline/sinks" } -databend-common-pipeline-sources = { path = "../../pipeline/sources" } -databend-common-storage = { path = "../../../common/storage" } -databend-storages-common-table-meta = { path = "../common/table_meta" } - async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sinks = { workspace = true } +databend-common-pipeline-sources = { workspace = true } +databend-common-storage = { workspace = true } +databend-storages-common-table-meta = { workspace = true } parking_lot = { workspace = true } serde = { workspace = true } typetag = { workspace = true } [build-dependencies] -databend-common-building = { path = "../../../common/building" } +databend-common-building = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/null/Cargo.toml b/src/query/storages/null/Cargo.toml index 6a22199e7499..82c41b4b629f 100644 --- a/src/query/storages/null/Cargo.toml +++ b/src/query/storages/null/Cargo.toml @@ -6,22 +6,23 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-pipeline-sinks = { path = "../../pipeline/sinks" } -databend-common-pipeline-sources = { path = "../../pipeline/sources" } - async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sinks = { workspace = true } +databend-common-pipeline-sources = { workspace = true } [build-dependencies] -databend-common-building = { path = "../../../common/building" } +databend-common-building = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/orc/Cargo.toml b/src/query/storages/orc/Cargo.toml index 6ea716a8ab8d..8592088aa80e 100644 --- a/src/query/storages/orc/Cargo.toml +++ b/src/query/storages/orc/Cargo.toml @@ -6,21 +6,20 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-pipeline-sources = { path = "../../pipeline/sources" } -databend-common-pipeline-transforms = { path = "../../pipeline/transforms" } -databend-common-storage = { path = "../../../common/storage" } -databend-storages-common-table-meta = { path = "../common/table_meta" } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sources = { workspace = true } +databend-common-pipeline-transforms = { workspace = true } +databend-common-storage = { workspace = true } +databend-storages-common-table-meta = { workspace = true } arrow-array = { workspace = true } arrow-schema = { workspace = true } @@ -30,6 +29,9 @@ bytes = { workspace = true } chrono = { workspace = true } futures-util = "0.3.30" opendal = { workspace = true } -orc-rust = { git = "https://github.com/youngsofun/datafusion-orc", branch = "pub" } +orc-rust = { workspace = true } serde = { workspace = true } typetag = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/parquet/Cargo.toml b/src/query/storages/parquet/Cargo.toml index 4577d6330cc3..6beb7664ef3f 100644 --- a/src/query/storages/parquet/Cargo.toml +++ b/src/query/storages/parquet/Cargo.toml @@ -6,25 +6,11 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-arrow = { path = "../../../common/arrow" } -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-functions = { path = "../../functions" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-metrics = { path = "../../../common/metrics" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-storage = { path = "../../../common/storage" } -databend-storages-common-pruner = { path = "../common/pruner" } -databend-storages-common-table-meta = { path = "../common/table_meta" } - arrow-array = { workspace = true } arrow-buffer = { workspace = true } arrow-cast = { workspace = true } @@ -33,6 +19,18 @@ async-backtrace = { workspace = true } async-trait = { workspace = true } bytes = { workspace = true } chrono = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-functions = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-metrics = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-storage = { workspace = true } +databend-storages-common-pruner = { workspace = true } +databend-storages-common-table-meta = { workspace = true } ethnum = { workspace = true } futures = { workspace = true } log = { workspace = true } @@ -44,5 +42,8 @@ thrift = "0.17.0" typetag = { workspace = true } [dev-dependencies] -databend-common-sql = { path = "../../sql" } +databend-common-sql = { workspace = true } tempfile = "3.4.0" + +[lints] +workspace = true diff --git a/src/query/storages/random/Cargo.toml b/src/query/storages/random/Cargo.toml index 7010add0d2c6..4a4e1a20183d 100644 --- a/src/query/storages/random/Cargo.toml +++ b/src/query/storages/random/Cargo.toml @@ -6,24 +6,25 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-pipeline-sources = { path = "../../pipeline/sources" } -databend-storages-common-table-meta = { path = "../common/table_meta" } - async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sources = { workspace = true } +databend-storages-common-table-meta = { workspace = true } serde = { workspace = true } typetag = { workspace = true } [build-dependencies] -databend-common-building = { path = "../../../common/building" } +databend-common-building = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/result_cache/Cargo.toml b/src/query/storages/result_cache/Cargo.toml index ce17512fe259..06e0e35d02cd 100644 --- a/src/query/storages/result_cache/Cargo.toml +++ b/src/query/storages/result_cache/Cargo.toml @@ -6,33 +6,34 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-arrow = { path = "../../../common/arrow" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-meta-kvapi = { path = "../../../meta/kvapi" } -databend-common-meta-store = { path = "../../../meta/store" } -databend-common-meta-types = { path = "../../../meta/types" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-pipeline-sinks = { path = "../../pipeline/sinks" } -databend-common-pipeline-sources = { path = "../../pipeline/sources" } -databend-common-storage = { path = "../../../common/storage" } -databend-storages-common-blocks = { path = "../common/blocks" } -databend-storages-common-table-meta = { path = "../common/table_meta" } -parquet_rs = { workspace = true } - async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-arrow = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-store = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sinks = { workspace = true } +databend-common-pipeline-sources = { workspace = true } +databend-common-storage = { workspace = true } +databend-storages-common-blocks = { workspace = true } +databend-storages-common-table-meta = { workspace = true } opendal = { workspace = true } +parquet_rs = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } sha2 = "0.10.6" tokio = { workspace = true } uuid = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/share/Cargo.toml b/src/query/storages/share/Cargo.toml index f91bb20f9a5a..cb6f4ccd6360 100644 --- a/src/query/storages/share/Cargo.toml +++ b/src/query/storages/share/Cargo.toml @@ -6,20 +6,17 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] +async-backtrace = { workspace = true } chrono = { workspace = true } -databend-common-exception = { path = "../../../common/exception" } -databend-common-meta-app = { path = "../../../meta/app" } +databend-common-exception = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-storages-common-table-meta = { workspace = true } enumflags2 = { workspace = true } - -databend-storages-common-table-meta = { path = "../common/table_meta" } - -async-backtrace = { workspace = true } opendal = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } @@ -27,3 +24,6 @@ serde_json = { workspace = true } [dev-dependencies] goldenfile = "1.4" tempfile = "3.4.0" + +[lints] +workspace = true diff --git a/src/query/storages/stage/Cargo.toml b/src/query/storages/stage/Cargo.toml index 0e95a2fdf5f8..9d22afcd89a8 100644 --- a/src/query/storages/stage/Cargo.toml +++ b/src/query/storages/stage/Cargo.toml @@ -6,45 +6,45 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-compress = { path = "../../../common/compress" } -databend-common-config = { path = "../../config" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-formats = { path = "../../formats" } -databend-common-io = { path = "../../../common/io" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-pipeline-sources = { path = "../../pipeline/sources" } -databend-common-pipeline-transforms = { path = "../../pipeline/transforms" } -databend-common-settings = { path = "../../settings" } -databend-common-storage = { path = "../../../common/storage" } -databend-common-storages-parquet = { path = "../parquet" } -databend-storages-common-table-meta = { path = "../common/table_meta" } - arrow-schema = { workspace = true } async-backtrace = { workspace = true } async-trait = { workspace = true } bstr = "1.9.1" csv-core = "0.1.11" dashmap = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-compress = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-formats = { workspace = true } +databend-common-io = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sources = { workspace = true } +databend-common-pipeline-transforms = { workspace = true } +databend-common-settings = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-storages-parquet = { workspace = true } +databend-storages-common-table-meta = { workspace = true } enum-as-inner = "0.6.0" futures = { workspace = true } log = { workspace = true } opendal = { workspace = true } parquet_rs = { workspace = true } serde = { workspace = true } - serde_json = { workspace = true } typetag = { workspace = true } uuid = { workspace = true } [build-dependencies] -databend-common-building = { path = "../../../common/building" } +databend-common-building = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/stream/Cargo.toml b/src/query/storages/stream/Cargo.toml index e9e8510fcedc..e38db68d616e 100644 --- a/src/query/storages/stream/Cargo.toml +++ b/src/query/storages/stream/Cargo.toml @@ -6,26 +6,26 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-pipeline-sources = { path = "../../pipeline/sources" } -databend-common-sql = { path = "../../sql" } -databend-common-storages-fuse = { path = "../fuse" } - -databend-storages-common-table-meta = { path = "../common/table_meta" } - async-backtrace = { workspace = true } async-trait = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sources = { workspace = true } +databend-common-sql = { workspace = true } +databend-common-storages-fuse = { workspace = true } +databend-storages-common-table-meta = { workspace = true } minitrace = { workspace = true } [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/storages/system/Cargo.toml b/src/query/storages/system/Cargo.toml index 83f5bff81590..c9bf9c35d7ac 100644 --- a/src/query/storages/system/Cargo.toml +++ b/src/query/storages/system/Cargo.toml @@ -6,42 +6,40 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-ast = { path = "../../ast" } -databend-common-base = { path = "../../../common/base" } -databend-common-catalog = { path = "../../catalog" } -databend-common-cloud-control = { path = "../../../common/cloud_control" } -databend-common-config = { path = "../../config" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-expression = { path = "../../expression" } -databend-common-functions = { path = "../../functions" } -databend-common-meta-api = { path = "../../../meta/api" } -databend-common-meta-app = { path = "../../../meta/app" } -databend-common-meta-types = { path = "../../../meta/types" } -databend-common-pipeline-core = { path = "../../pipeline/core" } -databend-common-pipeline-sources = { path = "../../pipeline/sources" } -databend-common-sql = { path = "../../sql" } -databend-common-storage = { path = "../../../common/storage" } -databend-common-storages-fuse = { path = "../fuse" } -databend-common-storages-result-cache = { path = "../result_cache" } -databend-common-storages-stream = { path = "../stream" } -databend-common-storages-view = { path = "../view" } -databend-common-users = { path = "../../users" } -databend-storages-common-cache = { path = "../common/cache" } -databend-storages-common-cache-manager = { path = "../common/cache_manager" } -jsonb = { workspace = true } - async-backtrace = { workspace = true } async-trait = { workspace = true } chrono = { workspace = true } chrono-tz = { workspace = true } +databend-common-ast = { workspace = true } +databend-common-base = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-cloud-control = { workspace = true } +databend-common-config = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-functions = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-types = { workspace = true } +databend-common-pipeline-core = { workspace = true } +databend-common-pipeline-sources = { workspace = true } +databend-common-sql = { workspace = true } +databend-common-storage = { workspace = true } +databend-common-storages-fuse = { workspace = true } +databend-common-storages-result-cache = { workspace = true } +databend-common-storages-stream = { workspace = true } +databend-common-storages-view = { workspace = true } +databend-common-users = { workspace = true } +databend-storages-common-cache = { workspace = true } +databend-storages-common-cache-manager = { workspace = true } futures = { workspace = true } itertools = { workspace = true } +jsonb = { workspace = true } log = { workspace = true } once_cell = { workspace = true } opendal = { workspace = true } @@ -52,8 +50,10 @@ serde_json = { workspace = true } serde_repr = "0.1.9" snailquote = "0.3.1" tikv-jemalloc-ctl = { workspace = true } - typetag = { workspace = true } [build-dependencies] -databend-common-building = { path = "../../../common/building" } +databend-common-building = { workspace = true } + +[lints] +workspace = true diff --git a/src/query/storages/view/Cargo.toml b/src/query/storages/view/Cargo.toml index 984d94a71463..8e0bdccaea18 100644 --- a/src/query/storages/view/Cargo.toml +++ b/src/query/storages/view/Cargo.toml @@ -6,16 +6,17 @@ license = { workspace = true } publish = { workspace = true } edition = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] doctest = false test = true [dependencies] -databend-common-catalog = { path = "../../catalog" } -databend-common-exception = { path = "../../../common/exception" } -databend-common-meta-app = { path = "../../../meta/app" } - async-trait = { workspace = true } +databend-common-catalog = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-meta-app = { workspace = true } [build-dependencies] + +[lints] +workspace = true diff --git a/src/query/users/Cargo.toml b/src/query/users/Cargo.toml index 1cff158ffcd6..49813a06170c 100644 --- a/src/query/users/Cargo.toml +++ b/src/query/users/Cargo.toml @@ -13,26 +13,21 @@ test = true [features] io-uring = ["databend-common-meta-store/io-uring"] -[dependencies] # In alphabetical order -# Workspace dependencies -databend-common-ast = { path = "../ast" } -databend-common-base = { path = "../../common/base" } -databend-common-exception = { path = "../../common/exception" } -databend-common-grpc = { path = "../../common/grpc" } -databend-common-management = { path = "../management" } -databend-common-meta-api = { path = "../../meta/api" } -databend-common-meta-app = { path = "../../meta/app" } -databend-common-meta-kvapi = { path = "../../meta/kvapi" } -databend-common-meta-store = { path = "../../meta/store" } -databend-common-meta-types = { path = "../../meta/types" } - -# GitHub dependencies - -# Crates.io dependencies +[dependencies] async-backtrace = { workspace = true } base64 = "0.21" chrono = { workspace = true } cidr = { version = "0.2.2" } +databend-common-ast = { workspace = true } +databend-common-base = { workspace = true } +databend-common-exception = { workspace = true } +databend-common-grpc = { workspace = true } +databend-common-management = { workspace = true } +databend-common-meta-api = { workspace = true } +databend-common-meta-app = { workspace = true } +databend-common-meta-kvapi = { workspace = true } +databend-common-meta-store = { workspace = true } +databend-common-meta-types = { workspace = true } enumflags2 = { workspace = true } jwt-simple = "0.11" log = { workspace = true } @@ -44,6 +39,9 @@ serde = { workspace = true } serde_json = { workspace = true } [dev-dependencies] -databend-common-expression = { path = "../expression" } +databend-common-expression = { workspace = true } pretty_assertions = "1.3.0" wiremock = "0.5.14" + +[lints] +workspace = true diff --git a/src/tests/sqlsmith/Cargo.toml b/src/tests/sqlsmith/Cargo.toml index 79780ace45af..fa69a0a4d1f4 100644 --- a/src/tests/sqlsmith/Cargo.toml +++ b/src/tests/sqlsmith/Cargo.toml @@ -10,6 +10,12 @@ edition = { workspace = true } chrono-tz = { workspace = true } clap = { workspace = true } databend-client = "0.18.1" +databend-common-ast = { workspace = true } +databend-common-expression = { workspace = true } +databend-common-formats = { workspace = true } +databend-common-functions = { workspace = true } +databend-common-io = { workspace = true } +databend-common-sql = { workspace = true } databend-driver = "0.18.1" databend-sql = "0.18.1" ethnum = { workspace = true } @@ -22,13 +28,9 @@ tokio-stream = { workspace = true } tracing = "0.1.37" tracing-subscriber = "0.3.17" -databend-common-ast = { path = "../../query/ast" } -databend-common-expression = { path = "../../query/expression" } -databend-common-formats = { path = "../../query/formats" } -databend-common-functions = { path = "../../query/functions" } -databend-common-io = { path = "../../common/io" } -databend-common-sql = { path = "../../query/sql" } - [[bin]] name = "databend-sqlsmith" path = "src/bin/main.rs" + +[lints] +workspace = true diff --git a/taplo.toml b/taplo.toml index b46409453e96..57ad94abd3c7 100644 --- a/taplo.toml +++ b/taplo.toml @@ -32,5 +32,5 @@ allowed_blank_lines = 1 crlf = false [[rule]] -keys = ["dependencies", "dev-dependencies", "build-dependencies"] +keys = ["dependencies", "dev-dependencies", "build-dependencies", "workspace.dependencies", "patch.crates-io"] formatting = { reorder_keys = true } diff --git a/tests/sqllogictests/Cargo.toml b/tests/sqllogictests/Cargo.toml index eb09125129b4..3fae6e1d2154 100644 --- a/tests/sqllogictests/Cargo.toml +++ b/tests/sqllogictests/Cargo.toml @@ -14,10 +14,9 @@ version = "0.1.0" name = "databend-sqllogictests" [dependencies] -databend-common-exception = { path = "../../src/common/exception" } - async-trait = { workspace = true } clap = { workspace = true } +databend-common-exception = { workspace = true } env_logger = "0.10.0" futures-util = { workspace = true } mysql_async = { workspace = true } @@ -30,3 +29,6 @@ sqllogictest = "0.19.1" thiserror = { workspace = true } tokio = { workspace = true } walkdir = { workspace = true } + +[lints] +workspace = true