From baeb999f4834db81bc2407cb1657f38c2043c62f Mon Sep 17 00:00:00 2001 From: ritchie Date: Sun, 3 Sep 2023 11:36:13 +0200 Subject: [PATCH] feature out ipc::{reader/writer} --- Cargo.toml | 2 +- arrow-ipc/Cargo.toml | 5 +++++ arrow/Cargo.toml | 2 +- parquet/Cargo.toml | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b118c937ca36..5db53e3db903 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,7 +83,7 @@ arrow-buffer = { version = "46.0.0", path = "./arrow-buffer" } arrow-cast = { version = "46.0.0", path = "./arrow-cast" } arrow-csv = { version = "46.0.0", path = "./arrow-csv" } arrow-data = { version = "46.0.0", path = "./arrow-data" } -arrow-ipc = { version = "46.0.0", path = "./arrow-ipc" } +arrow-ipc = { version = "46.0.0", path = "./arrow-ipc", default-features = false } arrow-json = { version = "46.0.0", path = "./arrow-json" } arrow-ord = { version = "46.0.0", path = "./arrow-ord" } arrow-row = { version = "46.0.0", path = "./arrow-row" } diff --git a/arrow-ipc/Cargo.toml b/arrow-ipc/Cargo.toml index a03f53d6641c..0a121f0b4d3f 100644 --- a/arrow-ipc/Cargo.toml +++ b/arrow-ipc/Cargo.toml @@ -33,6 +33,11 @@ name = "arrow_ipc" path = "src/lib.rs" bench = false +[features] +default = ["reader", "writer"] +reader = [] +writer = [] + [dependencies] arrow-array = { workspace = true } arrow-buffer = { workspace = true } diff --git a/arrow/Cargo.toml b/arrow/Cargo.toml index 9456dd4b012c..d33f323bde92 100644 --- a/arrow/Cargo.toml +++ b/arrow/Cargo.toml @@ -51,7 +51,7 @@ arrow-buffer = { workspace = true } arrow-cast = { workspace = true } arrow-csv = { workspace = true, optional = true } arrow-data = { workspace = true } -arrow-ipc = { workspace = true, optional = true } +arrow-ipc = { workspace = true, optional = true, default-features = true } arrow-json = { workspace = true, optional = true } arrow-ord = { workspace = true } arrow-row = { workspace = true } diff --git a/parquet/Cargo.toml b/parquet/Cargo.toml index c4f3696b43c9..1731d669de2c 100644 --- a/parquet/Cargo.toml +++ b/parquet/Cargo.toml @@ -42,7 +42,7 @@ arrow-csv = { workspace = true, optional = true } arrow-data = { workspace = true, optional = true } arrow-schema = { workspace = true, optional = true } arrow-select = { workspace = true, optional = true } -arrow-ipc = { workspace = true, optional = true } +arrow-ipc = { workspace = true, default-features = false, optional = true } # Intentionally not a path dependency as object_store is released separately object_store = { version = "0.7", default-features = false, optional = true } @@ -77,7 +77,7 @@ flate2 = { version = "1.0", default-features = false, features = ["rust_backend" lz4 = { version = "1.23", default-features = false } zstd = { version = "0.12", default-features = false } serde_json = { version = "1.0", features = ["std"], default-features = false } -arrow = { workspace = true, features = ["ipc", "test_utils", "prettyprint", "json"] } +arrow = { workspace = true, features = ["test_utils", "prettyprint", "json"] } tokio = { version = "1.0", default-features = false, features = ["macros", "rt", "io-util", "fs"] } rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] }