Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Added io_csv_read and io_csv_write feature #408

Merged
merged 3 commits into from
Sep 17, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ full = [
"chrono-tz",
]
merge_sort = ["itertools"]
io_csv = ["csv", "lazy_static", "regex", "lexical-core", "streaming-iterator"]
io_csv = ["io_csv_read", "io_csv_write"]
io_csv_read = ["csv", "lazy_static", "regex", "lexical-core"]
io_csv_write = ["csv", "streaming-iterator", "lexical-core"]
io_json = ["serde", "serde_json", "indexmap"]
io_ipc = ["flatbuffers"]
io_ipc_compression = ["lz4", "zstd"]
Expand Down
2 changes: 2 additions & 0 deletions src/io/csv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ impl From<chrono::ParseError> for ArrowError {
}
}

#[cfg(feature = "io_csv_read")]
jorgecarleitao marked this conversation as resolved.
Show resolved Hide resolved
pub mod read;
#[cfg(feature = "io_csv_write")]
jorgecarleitao marked this conversation as resolved.
Show resolved Hide resolved
pub mod write;
2 changes: 1 addition & 1 deletion src/io/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Interact with different formats such as Arrow, CSV, parquet, etc.
#[cfg(feature = "io_csv")]
#[cfg(any(feature = "io_csv_read", feature = "io_csv_write"))]
#[cfg_attr(docsrs, doc(cfg(feature = "io_csv")))]
pub mod csv;

Expand Down
4 changes: 2 additions & 2 deletions src/util/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Misc utilities used in different places in the crate.

#[cfg(any(feature = "compute", feature = "io_csv"))]
#[cfg(any(feature = "compute", feature = "io_csv_write", feature = "io_csv_read"))]
mod lexical;
#[cfg(any(feature = "compute", feature = "io_csv"))]
#[cfg(any(feature = "compute", feature = "io_csv_write", feature = "io_csv_read"))]
pub use lexical::*;

#[cfg(feature = "benchmarks")]
Expand Down