From 818cd46e1f2a01ec86d05a7555d451c8ddf010df Mon Sep 17 00:00:00 2001 From: "Jorge C. Leitao" Date: Thu, 5 Aug 2021 07:28:43 +0200 Subject: [PATCH] Removed serde_derive dependency. --- Cargo.toml | 6 ++++-- src/io/json/mod.rs | 2 -- src/io/json_integration/mod.rs | 3 ++- src/io/{json => json_integration}/schema.rs | 0 4 files changed, 6 insertions(+), 5 deletions(-) rename src/io/{json => json_integration}/schema.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 253e4ad7a77..26d91e8e81e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -85,7 +85,7 @@ default = [ ] merge_sort = ["itertools"] io_csv = ["csv", "lazy_static", "regex"] -io_json = ["serde", "serde_derive", "serde_json", "indexmap"] +io_json = ["serde", "serde_json", "indexmap"] io_ipc = ["flatbuffers"] io_ipc_compression = ["lz4", "zstd"] io_parquet_compression = [ @@ -95,7 +95,9 @@ io_parquet_compression = [ "parquet2/lz4", "parquet2/brotli", ] -io_json_integration = ["io_json", "hex"] +# io_json: its dependencies + error handling +# serde_derive: there is some derive around +io_json_integration = ["io_json", "serde_derive", "hex"] io_print = ["comfy-table"] # the compute kernels. Disabling this significantly reduces compile time. compute = [] diff --git a/src/io/json/mod.rs b/src/io/json/mod.rs index 7f87e322bed..7d8e2136dcc 100644 --- a/src/io/json/mod.rs +++ b/src/io/json/mod.rs @@ -18,11 +18,9 @@ //! Convert data between the Arrow memory format and JSON line-delimited records. mod read; -mod schema; mod write; pub use read::*; -pub use schema::*; pub use write::*; use crate::error::ArrowError; diff --git a/src/io/json_integration/mod.rs b/src/io/json_integration/mod.rs index ea1388b8706..be4880fefa8 100644 --- a/src/io/json_integration/mod.rs +++ b/src/io/json_integration/mod.rs @@ -23,8 +23,9 @@ use serde_derive::{Deserialize, Serialize}; use serde_json::{Map, Value}; use crate::datatypes::*; -use crate::io::json::ToJson; +mod schema; +use schema::ToJson; mod read; mod write; pub use read::to_record_batch; diff --git a/src/io/json/schema.rs b/src/io/json_integration/schema.rs similarity index 100% rename from src/io/json/schema.rs rename to src/io/json_integration/schema.rs