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

Commit

Permalink
remove csv dependency for csv-write
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Mar 15, 2022
1 parent 52b3cc5 commit 8395147
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ io_csv = ["io_csv_read", "io_csv_write"]
io_csv_async = ["io_csv_read_async"]
io_csv_read = ["csv", "lexical-core"]
io_csv_read_async = ["csv-async", "lexical-core", "futures"]
io_csv_write = ["csv", "csv-core", "streaming-iterator", "lexical-core"]
io_csv_write = ["csv-core", "streaming-iterator", "lexical-core"]
io_json = ["serde", "serde_json", "streaming-iterator", "fallible-streaming-iterator", "indexmap", "lexical-core"]
io_ipc = ["arrow-format"]
io_ipc_write_async = ["io_ipc", "futures"]
Expand Down
2 changes: 1 addition & 1 deletion src/io/csv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mod read_utils;
#[cfg(any(feature = "io_csv_read_async", feature = "io_csv_read"))]
mod utils;

#[cfg(any(feature = "io_csv_read", feature = "io_csv_write"))]
#[cfg(feature = "io_csv_read")]
impl From<csv::Error> for ArrowError {
fn from(error: csv::Error) -> Self {
ArrowError::External("".to_string(), Box::new(error))
Expand Down
3 changes: 0 additions & 3 deletions src/io/csv/write/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ use super::super::iterator::StreamingIterator;

use std::io::Write;

// re-export necessary public APIs from csv
pub use csv::{ByteRecord, WriterBuilder};

pub use serialize::*;

use crate::array::Array;
Expand Down

0 comments on commit 8395147

Please sign in to comment.