Skip to content

Apache DataFusion SQL Query Engine

Remove unused dependencies found by cargo-machete (#5552)

Jeffreyc5ae3e80cde3
diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml
index 2727171213..c089dd6ef7 100644
--- a/benchmarks/Cargo.toml
+++ b/benchmarks/Cargo.toml
@@ -39,10 +39,8 @@ env_logger = "0.10"
futures = "0.3"
mimalloc = { version = "0.1", optional = true, default-features = false }
num_cpus = "1.13.0"
-object_store = "0.5.4"
parquet = { workspace = true }
parquet-test-utils = { path = "../parquet-test-utils/", version = "0.1.0" }
-rand = "0.8.4"
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.78"
snmalloc-rs = { version = "0.3", optional = true }
diff --git a/datafusion-cli/Cargo.lock b/datafusion-cli/Cargo.lock
index 07c56bdf44..d01617ac76 100644
--- a/datafusion-cli/Cargo.lock
+++ b/datafusion-cli/Cargo.lock
@@ -699,7 +699,6 @@ dependencies = [
"object_store",
"parking_lot",
"parquet",
- "paste",
"percent-encoding",
"pin-project-lite",
"rand",
@@ -768,7 +767,6 @@ dependencies = [
"ahash",
"arrow",
"datafusion-common",
- "log",
"sqlparser",
]
@@ -808,7 +806,6 @@ dependencies = [
"itertools",
"lazy_static",
"md-5",
- "num-traits",
"paste",
"petgraph",
"rand",
@@ -1249,9 +1246,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
[[package]]
name = "hyper"
-version = "0.14.24"
+version = "0.14.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5e011372fa0b68db8350aa7a248930ecc7839bf46d8485577d69f117a75f164c"
+checksum = "cc5e554ff619822309ffd57d8734d77cd5ce6238bc956f037ea06c58238c9899"
dependencies = [
"bytes",
"futures-channel",
diff --git a/datafusion/core/Cargo.toml b/datafusion/core/Cargo.toml
index b9462b03b5..67d48519e9 100644
--- a/datafusion/core/Cargo.toml
+++ b/datafusion/core/Cargo.toml
@@ -88,7 +88,6 @@ num_cpus = "1.13.0"
object_store = "0.5.4"
parking_lot = "0.12"
parquet = { workspace = true }
-paste = "^1.0"
percent-encoding = "2.2.0"
pin-project-lite = "^0.2.7"
rand = "0.8"
diff --git a/datafusion/expr/Cargo.toml b/datafusion/expr/Cargo.toml
index de93ef0f43..dc0d98157b 100644
--- a/datafusion/expr/Cargo.toml
+++ b/datafusion/expr/Cargo.toml
@@ -38,7 +38,6 @@ path = "src/lib.rs"
ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] }
arrow = { workspace = true, default-features = false }
datafusion-common = { path = "../common", version = "20.0.0" }
-log = "^0.4"
sqlparser = "0.32"
[dev-dependencies]
diff --git a/datafusion/physical-expr/Cargo.toml b/datafusion/physical-expr/Cargo.toml
index 54c05a3891..cd1201eb28 100644
--- a/datafusion/physical-expr/Cargo.toml
+++ b/datafusion/physical-expr/Cargo.toml
@@ -58,7 +58,6 @@ indexmap = "1.9.2"
itertools = { version = "0.10", features = ["use_std"] }
lazy_static = { version = "^1.4.0" }
md-5 = { version = "^0.10.0", optional = true }
-num-traits = { version = "0.2", default-features = false }
paste = "^1.0"
petgraph = "0.6.2"
rand = "0.8"
diff --git a/datafusion/proto/Cargo.toml b/datafusion/proto/Cargo.toml
index 89bc04af98..35261bae5f 100644
--- a/datafusion/proto/Cargo.toml
+++ b/datafusion/proto/Cargo.toml
@@ -46,9 +46,7 @@ datafusion = { path = "../core", version = "20.0.0" }
datafusion-common = { path = "../common", version = "20.0.0" }
datafusion-expr = { path = "../expr", version = "20.0.0" }
object_store = { version = "0.5.4" }
-parking_lot = { version = "0.12" }
pbjson = { version = "0.5", optional = true }
-pbjson-types = { version = "0.5", optional = true }
prost = "0.11.0"
serde = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
diff --git a/datafusion/substrait/Cargo.toml b/datafusion/substrait/Cargo.toml
index 9a9e0c52ac..aba350c985 100644
--- a/datafusion/substrait/Cargo.toml
+++ b/datafusion/substrait/Cargo.toml
@@ -34,7 +34,6 @@ datafusion = { version = "20.0.0", path = "../core" }
itertools = "0.10.5"
object_store = "0.5.4"
prost = "0.11"
-prost-types = "0.11"
substrait = "0.4"
tokio = "1.17"