File tree Expand file tree Collapse file tree 6 files changed +9
-10
lines changed
arrow-pyarrow-integration-testing Expand file tree Collapse file tree 6 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ name = "arrow_pyarrow_integration_testing"
31
31
crate-type = [" cdylib" ]
32
32
33
33
[dependencies ]
34
- # ensure we get the std version of rand so arrow builds without default features
35
- rand = { version = " 0.8" }
36
34
arrow = { path = " ../arrow" , version = " 5.0.0-SNAPSHOT" }
37
35
pyo3 = { version = " 0.12.1" , features = [" extension-module" ] }
38
36
Original file line number Diff line number Diff line change @@ -58,12 +58,15 @@ multiversion = "0.6.1"
58
58
bitflags = " 1.2.1"
59
59
60
60
[features ]
61
- default = [" csv" , " ipc" ]
61
+ default = [" csv" , " ipc" , " test_utils " ]
62
62
avx512 = []
63
63
csv = [" csv_crate" ]
64
64
ipc = [" flatbuffers" ]
65
65
simd = [" packed_simd" ]
66
66
prettyprint = [" prettytable-rs" ]
67
+ # The test utils feature enables code used in benchmarks and tests but
68
+ # not the core arrow code itself
69
+ test_utils = [" rand/std" , " rand/std_rng" ]
67
70
# this is only intended to be used in single-threaded programs: it verifies that
68
71
# all allocated memory is being released (no memory leaks).
69
72
# See README for details
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ where
125
125
simd_result. write_to_slice_unaligned_unchecked ( result) ;
126
126
}
127
127
128
- #[ cfg( test) ]
128
+ #[ cfg( all ( test, feature = "test_utils" ) ) ]
129
129
mod tests {
130
130
use std:: collections:: HashSet ;
131
131
Original file line number Diff line number Diff line change 15
15
// specific language governing permissions and limitations
16
16
// under the License.
17
17
18
+ #[ cfg( feature = "test_utils" ) ]
18
19
pub mod bench_util;
19
20
pub mod bit_chunk_iterator;
20
21
pub mod bit_util;
22
+ #[ cfg( feature = "test_utils" ) ]
21
23
pub mod data_gen;
22
24
pub mod display;
25
+ #[ cfg( feature = "test_utils" ) ]
23
26
pub mod integration_util;
24
27
#[ cfg( feature = "prettyprint" ) ]
25
28
pub mod pretty;
26
29
pub ( crate ) mod serialization;
27
30
pub mod string_writer;
31
+ #[ cfg( feature = "test_utils" ) ]
28
32
pub mod test_util;
29
33
30
34
mod trusted_len;
Original file line number Diff line number Diff line change @@ -26,7 +26,4 @@ edition = "2018"
26
26
[dependencies ]
27
27
arrow = { path = " ../../../../arrow" , version = " 5.0.0-SNAPSHOT" }
28
28
29
- # Workaround for https://github.com/apache/arrow-rs/issues/529
30
- rand = { version = " 0.8" }
31
-
32
29
[workspace ]
Original file line number Diff line number Diff line change @@ -26,7 +26,4 @@ edition = "2018"
26
26
[dependencies ]
27
27
arrow = { path = " ../../../../arrow" , version = " 5.0.0-SNAPSHOT" , default-features = false }
28
28
29
- # Workaround for https://github.com/apache/arrow-rs/issues/529
30
- rand = { version = " 0.8" }
31
-
32
29
[workspace ]
You can’t perform that action at this time.
0 commit comments