Skip to content

Commit

Permalink
chore: clean up dependencies (#13728)
Browse files Browse the repository at this point in the history
* CI: Warn on unused crates

* CI: Warn on unused crates

* CI: Warn on unused crates

* CI: Warn on unused crates

* CI: Clean up dependencies

* CI: Clean up dependencies
  • Loading branch information
comphead authored Dec 13, 2024
1 parent 5af4333 commit e8314ab
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 66 deletions.
27 changes: 0 additions & 27 deletions datafusion-cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion datafusion/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ arrow = { workspace = true }
arrow-array = { workspace = true }
arrow-buffer = { workspace = true }
arrow-schema = { workspace = true }
chrono = { workspace = true }
half = { workspace = true }
hashbrown = { workspace = true }
indexmap = { workspace = true }
Expand All @@ -70,4 +69,5 @@ tokio = { workspace = true }
web-time = "1.1.0"

[dev-dependencies]
chrono = { workspace = true }
rand = { workspace = true }
5 changes: 0 additions & 5 deletions datafusion/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ num-traits = { version = "0.2", optional = true }
object_store = { workspace = true }
parking_lot = { workspace = true }
parquet = { workspace = true, optional = true, default-features = true }
paste = "1.0.15"
rand = { workspace = true }
sqlparser = { workspace = true }
tempfile = { workspace = true }
Expand All @@ -140,17 +139,13 @@ datafusion-functions-window-common = { workspace = true }
doc-comment = { workspace = true }
env_logger = { workspace = true }
paste = "^1.0"
postgres-protocol = "0.6.4"
postgres-types = { version = "0.2.4", features = ["derive", "with-chrono-0_4"] }
rand = { workspace = true, features = ["small_rng"] }
rand_distr = "0.4.3"
regex = { workspace = true }
rstest = { workspace = true }
rust_decimal = { version = "1.27.0", features = ["tokio-pg"] }
serde_json = { workspace = true }
test-utils = { path = "../../test-utils" }
tokio = { workspace = true, features = ["rt-multi-thread", "parking_lot", "fs"] }
tokio-postgres = "0.7.7"

[target.'cfg(not(target_os = "windows"))'.dev-dependencies]
nix = { version = "0.29.0", features = ["fs"] }
Expand Down
4 changes: 3 additions & 1 deletion datafusion/execution/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ path = "src/lib.rs"

[dependencies]
arrow = { workspace = true }
chrono = { workspace = true }
dashmap = { workspace = true }
datafusion-common = { workspace = true, default-features = true }
datafusion-expr = { workspace = true }
Expand All @@ -48,3 +47,6 @@ parking_lot = { workspace = true }
rand = { workspace = true }
tempfile = { workspace = true }
url = { workspace = true }

[dev-dependencies]
chrono = { workspace = true }
2 changes: 2 additions & 0 deletions datafusion/expr-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ path = "src/lib.rs"
arrow = { workspace = true }
datafusion-common = { workspace = true }
itertools = { workspace = true }

[dev-dependencies]
paste = "^1.0"
5 changes: 0 additions & 5 deletions datafusion/expr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ path = "src/lib.rs"
[features]

[dependencies]
ahash = { workspace = true }
arrow = { workspace = true }
arrow-array = { workspace = true }
arrow-buffer = { workspace = true }
chrono = { workspace = true }
datafusion-common = { workspace = true }
datafusion-doc = { workspace = true }
Expand All @@ -54,8 +51,6 @@ paste = "^1.0"
recursive = { workspace = true }
serde_json = { workspace = true }
sqlparser = { workspace = true }
strum = { version = "0.26.1", features = ["derive"] }
strum_macros = "0.26.0"

[dev-dependencies]
ctor = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion datafusion/ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ async-ffi = { version = "0.5.0", features = ["abi_stable"] }
async-trait = { workspace = true }
datafusion = { workspace = true, default-features = false }
datafusion-proto = { workspace = true }
doc-comment = { workspace = true }
futures = { workspace = true }
log = { workspace = true }
prost = { workspace = true }

[dev-dependencies]
doc-comment = { workspace = true }
tokio = { workspace = true }
2 changes: 1 addition & 1 deletion datafusion/functions-aggregate-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ arrow = { workspace = true }
datafusion-common = { workspace = true }
datafusion-expr-common = { workspace = true }
datafusion-physical-expr-common = { workspace = true }
rand = { workspace = true }

[dev-dependencies]
criterion = "0.5"
rand = { workspace = true }

[[bench]]
harness = false
Expand Down
2 changes: 1 addition & 1 deletion datafusion/functions-nested/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ datafusion-physical-expr-common = { workspace = true }
itertools = { workspace = true, features = ["use_std"] }
log = { workspace = true }
paste = "1.0.14"
rand = "0.8.5"

[dev-dependencies]
criterion = { version = "0.5", features = ["async_tokio"] }
rand = "0.8.5"

[[bench]]
harness = false
Expand Down
11 changes: 0 additions & 11 deletions datafusion/functions-table/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,14 @@ path = "src/lib.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
ahash = { workspace = true }
arrow = { workspace = true }
arrow-schema = { workspace = true }
async-trait = { workspace = true }
datafusion-catalog = { workspace = true }
datafusion-common = { workspace = true }
datafusion-execution = { workspace = true }
datafusion-expr = { workspace = true }
datafusion-functions-aggregate-common = { workspace = true }
datafusion-physical-expr = { workspace = true }
datafusion-physical-expr-common = { workspace = true }
datafusion-physical-plan = { workspace = true }
half = { workspace = true }
indexmap = { workspace = true }
log = { workspace = true }
parking_lot = { workspace = true }
paste = "1.0.14"

[dev-dependencies]
arrow = { workspace = true, features = ["test_utils"] }
criterion = "0.5"
rand = { workspace = true }
1 change: 0 additions & 1 deletion datafusion/macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@ path = "src/user_doc.rs"
proc-macro = true

[dependencies]
proc-macro2 = "1.0"
quote = "1.0.37"
syn = { version = "2.0.79", features = ["full"] }
2 changes: 1 addition & 1 deletion datafusion/optimizer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ path = "src/lib.rs"

[dependencies]
arrow = { workspace = true }
async-trait = { workspace = true }
chrono = { workspace = true }
datafusion-common = { workspace = true, default-features = true }
datafusion-expr = { workspace = true }
Expand All @@ -50,6 +49,7 @@ regex = { workspace = true }
regex-syntax = "0.8.0"

[dev-dependencies]
async-trait = { workspace = true }
ctor = { workspace = true }
datafusion-functions-aggregate = { workspace = true }
datafusion-functions-window-common = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions datafusion/physical-plan/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ hashbrown = { workspace = true }
indexmap = { workspace = true }
itertools = { workspace = true, features = ["use_std"] }
log = { workspace = true }
once_cell = "1.18.0"
parking_lot = { workspace = true }
pin-project-lite = "^0.2.7"
rand = { workspace = true }
tokio = { workspace = true }

[dev-dependencies]
criterion = { version = "0.5", features = ["async_futures"] }
datafusion-functions-aggregate = { workspace = true }
datafusion-functions-window = { workspace = true }
once_cell = "1.18.0"
rand = { workspace = true }
rstest = { workspace = true }
rstest_reuse = "0.7.0"
tokio = { workspace = true, features = [
Expand Down
3 changes: 0 additions & 3 deletions datafusion/proto-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@ json = ["serde", "serde_json", "pbjson"]

[dependencies]
arrow = { workspace = true }
chrono = { workspace = true }
datafusion-common = { workspace = true }
object_store = { workspace = true }
pbjson = { workspace = true, optional = true }
prost = { workspace = true }
serde = { version = "1.0", optional = true }
serde_json = { workspace = true, optional = true }

[dev-dependencies]
doc-comment = { workspace = true }
tokio = { workspace = true }
8 changes: 4 additions & 4 deletions datafusion/sqllogictest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ half = { workspace = true, default-features = true }
itertools = { workspace = true }
log = { workspace = true }
object_store = { workspace = true }
postgres-protocol = { version = "0.6.4", optional = true }
postgres-types = { version = "0.2.4", optional = true }
rust_decimal = { version = "1.27.0" }
postgres-protocol = { version = "0.6.7", optional = true }
postgres-types = { version = "0.2.8", features = ["derive", "with-chrono-0_4"], optional = true }
rust_decimal = { version = "1.36.0", features = ["tokio-pg"] }
sqllogictest = "0.23.0"
sqlparser = { workspace = true }
tempfile = { workspace = true }
thiserror = "2.0.0"
tokio = { workspace = true }
tokio-postgres = { version = "0.7.7", optional = true }
tokio-postgres = { version = "0.7.12", optional = true }

[features]
avro = ["datafusion/avro"]
Expand Down
1 change: 0 additions & 1 deletion datafusion/wasmtest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ chrono = { version = "0.4", features = ["wasmbind"] }
# code size when deploying.
console_error_panic_hook = { version = "0.1.1", optional = true }
datafusion = { workspace = true }

datafusion-common = { workspace = true, default-features = true }
datafusion-execution = { workspace = true }
datafusion-expr = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ arrow = { workspace = true }
chrono-tz = { version = "0.10.0", default-features = false }
datafusion-common = { workspace = true, default-features = true }
env_logger = { workspace = true }
paste = "1.0.15"
rand = { workspace = true }

0 comments on commit e8314ab

Please sign in to comment.