You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by tu...@apache.org on 2022/06/15 09:06:21 UTC

[arrow-rs] branch master updated: Issue #1876 - Explicitly declare the used features for each dependency (#1877)

This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new 328c68062 Issue #1876 - Explicitly declare the used features for each dependency (#1877)
328c68062 is described below

commit 328c680628f6ebbfb886dcf900fb6fbdf2a32fce
Author: Martin Grigorov <ma...@users.noreply.github.com>
AuthorDate: Wed Jun 15 12:06:16 2022 +0300

    Issue #1876 - Explicitly declare the used features for each dependency (#1877)
    
    * Issue #1876 - Explicitly declare the used features for each dependency
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
    
    * Issue #1876 - Enable "std" and "std_rng" features for rand in dev-dependencies
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
---
 arrow/Cargo.toml        | 44 ++++++++++++++++++++++----------------------
 arrow/src/csv/writer.rs |  1 +
 2 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/arrow/Cargo.toml b/arrow/Cargo.toml
index a4c5599eb..b59a69753 100644
--- a/arrow/Cargo.toml
+++ b/arrow/Cargo.toml
@@ -38,26 +38,26 @@ path = "src/lib.rs"
 bench = false
 
 [dependencies]
-serde = { version = "1.0" }
-serde_derive = "1.0"
-serde_json = { version = "1.0", features = ["preserve_order"] }
-indexmap = { version = "1.6", features = ["std"] }
-rand = { version = "0.8", optional = true }
-num = "0.4"
-half = "1.8"
-csv_crate = { version = "1.1", optional = true, package="csv" }
-regex = "1.5.6"
-lazy_static = "1.4"
-packed_simd = { version = "0.3", optional = true, package = "packed_simd_2" }
+serde = { version = "1.0", default-features = false }
+serde_derive = { version = "1.0", default-features = false }
+serde_json = { version = "1.0", default-features = false, features = ["preserve_order"] }
+indexmap = { version = "1.6", default-features = false, features = ["std"] }
+rand = { version = "0.8", default-features = false, features =  ["std", "std_rng"], optional = true }
+num = { version = "0.4", default-features = false, features = ["std"] }
+half = { version = "1.8", default-features = false }
+csv_crate = { version = "1.1", default-features = false, optional = true, package="csv" }
+regex = { version = "1.5.6", default-features = false, features = ["std", "unicode"] }
+lazy_static = { version = "1.4", default-features = false }
+packed_simd = { version = "0.3", default-features = false, optional = true, package = "packed_simd_2" }
 chrono = { version = "0.4", default-features = false, features = ["clock"] }
-chrono-tz = {version = "0.6", optional = true}
-flatbuffers = { version = "2.1.2", optional = true }
-hex = "0.4"
+chrono-tz = {version = "0.6", default-features = false, optional = true}
+flatbuffers = { version = "2.1.2", default-features = false, features = ["thiserror"], optional = true }
+hex = { version = "0.4", default-features = false, features = ["std"] }
 comfy-table = { version = "6.0", optional = true, default-features = false }
-pyo3 = { version = "0.16", optional = true }
-lexical-core = "^0.8"
-multiversion = "0.6.1"
-bitflags = "1.2.1"
+pyo3 = { version = "0.16", default-features = false, optional = true }
+lexical-core = { version = "^0.8", default-features = false, features = ["write-integers", "write-floats", "parse-integers", "parse-floats"] }
+multiversion = { version = "0.6.1", default-features = false }
+bitflags = { version = "1.2.1", default-features = false }
 
 [features]
 default = ["csv", "ipc", "test_utils"]
@@ -77,10 +77,10 @@ pyarrow = ["pyo3"]
 force_validate = []
 
 [dev-dependencies]
-rand = "0.8"
-criterion = "0.3"
-flate2 = "1"
-tempfile = "3"
+rand = { version = "0.8", default-features = false, features =  ["std", "std_rng"] }
+criterion = { version = "0.3", default-features = false }
+flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
+tempfile = { version = "3", default-features = false }
 
 [build-dependencies]
 
diff --git a/arrow/src/csv/writer.rs b/arrow/src/csv/writer.rs
index b7755fae3..6735d9668 100644
--- a/arrow/src/csv/writer.rs
+++ b/arrow/src/csv/writer.rs
@@ -798,6 +798,7 @@ sed do eiusmod tempor,-556132.25,1,,2019-04-18T02:45:55.555000000,23:46:03,foo
             // starting at row 2 and up to row 6.
             None,
             None,
+            None,
         );
         let rb = reader.next().unwrap().unwrap();
         let c1 = rb.column(0).as_any().downcast_ref::<Date32Array>().unwrap();