Skip to content

Commit

Permalink
Fix for default features
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jul 12, 2021
1 parent 15bf51b commit 5f11c4f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion arrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,15 @@ multiversion = "0.6.1"
bitflags = "1.2.1"

[features]
default = ["csv", "ipc"]
default = ["csv", "ipc", "test_utils"]
avx512 = []
csv = ["csv_crate"]
ipc = ["flatbuffers"]
simd = ["packed_simd"]
prettyprint = ["prettytable-rs"]
# The test utils feature enables code used in benchmarks and tests but
# not the core arrow code itself
test_utils = ["rand/std", "rand/std_rng"]
# this is only intended to be used in single-threaded programs: it verifies that
# all allocated memory is being released (no memory leaks).
# See README for details
Expand Down
2 changes: 1 addition & 1 deletion arrow/src/util/bit_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ where
simd_result.write_to_slice_unaligned_unchecked(result);
}

#[cfg(test)]
#[cfg(all(test, feature = "test_utils"))]
mod tests {
use std::collections::HashSet;

Expand Down
4 changes: 4 additions & 0 deletions arrow/src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@
// specific language governing permissions and limitations
// under the License.

#[cfg(feature = "test_utils")]
pub mod bench_util;
pub mod bit_chunk_iterator;
pub mod bit_util;
#[cfg(feature = "test_utils")]
pub mod data_gen;
pub mod display;
#[cfg(feature = "test_utils")]
pub mod integration_util;
#[cfg(feature = "prettyprint")]
pub mod pretty;
pub(crate) mod serialization;
pub mod string_writer;
#[cfg(feature = "test_utils")]
pub mod test_util;

mod trusted_len;
Expand Down

0 comments on commit 5f11c4f

Please sign in to comment.