From 7c9fa7252f3d24a8e296026d47207f44d662409f Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Tue, 26 Nov 2024 09:57:31 +0100 Subject: [PATCH] Remove unused dependencies --- arrow-flight/Cargo.toml | 1 - arrow-ord/Cargo.toml | 2 +- arrow-row/Cargo.toml | 3 --- object_store/Cargo.toml | 6 +++--- parquet/Cargo.toml | 4 ++-- 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/arrow-flight/Cargo.toml b/arrow-flight/Cargo.toml index dcf37774717..4069549387d 100644 --- a/arrow-flight/Cargo.toml +++ b/arrow-flight/Cargo.toml @@ -46,7 +46,6 @@ base64 = { version = "0.22", default-features = false, features = ["std"] } bytes = { version = "1", default-features = false } futures = { version = "0.3", default-features = false, features = ["alloc"] } once_cell = { version = "1", optional = true } -paste = { version = "1.0" } prost = { version = "0.13.1", default-features = false, features = ["prost-derive"] } # For Timestamp type prost-types = { version = "0.13.1", default-features = false } diff --git a/arrow-ord/Cargo.toml b/arrow-ord/Cargo.toml index 50c29bde8c0..071a80bb60b 100644 --- a/arrow-ord/Cargo.toml +++ b/arrow-ord/Cargo.toml @@ -42,7 +42,7 @@ arrow-buffer = { workspace = true } arrow-data = { workspace = true } arrow-schema = { workspace = true } arrow-select = { workspace = true } -half = { version = "2.1", default-features = false, features = ["num-traits"] } [dev-dependencies] +half = { version = "2.1", default-features = false, features = ["num-traits"] } rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] } diff --git a/arrow-row/Cargo.toml b/arrow-row/Cargo.toml index d5765d556a8..94b3f3017c0 100644 --- a/arrow-row/Cargo.toml +++ b/arrow-row/Cargo.toml @@ -39,9 +39,6 @@ bench = false [target.'cfg(target_arch = "wasm32")'.dependencies] ahash = { version = "0.8", default-features = false, features = ["compile-time-rng"] } -[target.'cfg(not(target_arch = "wasm32"))'.dependencies] -ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] } - [dependencies] arrow-array = { workspace = true } arrow-buffer = { workspace = true } diff --git a/object_store/Cargo.toml b/object_store/Cargo.toml index 773ff8f0157..8a9e5750ffa 100644 --- a/object_store/Cargo.toml +++ b/object_store/Cargo.toml @@ -39,12 +39,12 @@ async-trait = "0.1.53" bytes = "1.0" chrono = { version = "0.4.34", default-features = false, features = ["clock"] } futures = "0.3" -humantime = "2.1" +humantime = { version = "2.1", optional = true } itertools = "0.13.0" parking_lot = { version = "0.12" } percent-encoding = "2.1" snafu = { version = "0.8", default-features = false, features = ["std", "rust_1_61"] } -tracing = { version = "0.1" } +tracing = { version = "0.1", optional = true } url = "2.2" walkdir = "2" @@ -66,7 +66,7 @@ httparse = { version = "1.8.0", default-features = false, features = ["std"], op nix = { version = "0.29.0", features = ["fs"] } [features] -cloud = ["serde", "serde_json", "quick-xml", "hyper", "reqwest", "reqwest/json", "reqwest/stream", "chrono/serde", "base64", "rand", "ring"] +cloud = ["serde", "serde_json", "quick-xml", "hyper", "reqwest", "reqwest/json", "reqwest/stream", "chrono/serde", "base64", "rand", "ring", "humantime", "tracing"] azure = ["cloud", "httparse"] gcp = ["cloud", "rustls-pemfile"] aws = ["cloud", "md-5"] diff --git a/parquet/Cargo.toml b/parquet/Cargo.toml index 238197a1230..086a35e80f3 100644 --- a/parquet/Cargo.toml +++ b/parquet/Cargo.toml @@ -68,7 +68,7 @@ futures = { version = "0.3", default-features = false, features = ["std"], optio tokio = { version = "1.0", optional = true, default-features = false, features = ["macros", "rt", "io-util"] } hashbrown = { version = "0.15", default-features = false } twox-hash = { version = "1.6", default-features = false } -paste = { version = "1.0" } +paste = { version = "1.0", optional = true } half = { version = "2.1", default-features = false, features = ["num-traits"] } sysinfo = { version = "0.32.0", optional = true, default-features = false, features = ["system"] } crc32fast = { version = "1.4.2", optional = true, default-features = false } @@ -104,7 +104,7 @@ default = ["arrow", "snap", "brotli", "flate2", "lz4", "zstd", "base64"] # Enable lz4 lz4 = ["lz4_flex"] # Enable arrow reader/writer APIs -arrow = ["base64", "arrow-array", "arrow-buffer", "arrow-cast", "arrow-data", "arrow-schema", "arrow-select", "arrow-ipc"] +arrow = ["base64", "arrow-array", "arrow-buffer", "arrow-cast", "arrow-data", "arrow-schema", "arrow-select", "arrow-ipc", "paste"] # Enable CLI tools cli = ["json", "base64", "clap", "arrow-csv", "serde"] # Enable JSON APIs