Skip to content

Commit

Permalink
Issue apache#1876 - Explicitly declare the used features for each dep…
Browse files Browse the repository at this point in the history
…endency

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Jun 14, 2022
1 parent cedaf8a commit f2374fa
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
44 changes: 22 additions & 22 deletions arrow/Cargo.toml
Expand Up @@ -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.3"
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"]
Expand All @@ -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 }
criterion = { version = "0.3", default-features = false }
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
tempfile = { version = "3", default-features = false }

[build-dependencies]

Expand Down
2 changes: 1 addition & 1 deletion arrow/src/array/array_binary.rs
Expand Up @@ -1062,7 +1062,7 @@ mod tests {
use std::sync::Arc;

use crate::{
array::{DecimalBuilder, LargeListArray, ListArray},
array::{LargeListArray, ListArray},
datatypes::{Field, Schema},
record_batch::RecordBatch,
};
Expand Down
3 changes: 1 addition & 2 deletions arrow/src/array/data.rs
Expand Up @@ -1490,9 +1490,8 @@ mod tests {
use std::ptr::NonNull;

use crate::array::{
make_array, Array, BooleanBuilder, DecimalBuilder, FixedSizeListBuilder,
make_array, Array, BooleanBuilder, DecimalBuilder,
Int32Array, Int32Builder, Int64Array, StringArray, StructBuilder, UInt64Array,
UInt8Builder,
};
use crate::buffer::Buffer;
use crate::datatypes::Field;
Expand Down
1 change: 1 addition & 0 deletions arrow/src/csv/writer.rs
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion arrow/src/ffi.rs
Expand Up @@ -874,7 +874,7 @@ impl<'a> ArrowArrayChild<'a> {
mod tests {
use super::*;
use crate::array::{
export_array_into_raw, make_array, Array, ArrayData, BooleanArray, DecimalArray,
export_array_into_raw, make_array, Array, ArrayData, BooleanArray,
DictionaryArray, DurationSecondArray, FixedSizeBinaryArray, FixedSizeListArray,
GenericBinaryArray, GenericListArray, GenericStringArray, Int32Array,
OffsetSizeTrait, Time32MillisecondArray, TimestampMillisecondArray,
Expand Down

0 comments on commit f2374fa

Please sign in to comment.