diff options
-rw-r--r-- | src/cell.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/cell.rs b/src/cell.rs index 6f3c7eb..1a3461d 100644 --- a/src/cell.rs +++ b/src/cell.rs @@ -288,7 +288,7 @@ impl Default for Cell { /// or /// /// ```text -/// cell!(spec:value); +/// cell!(spec->value); /// ``` /// Value must implement the `std::string::ToString` trait /// @@ -6,8 +6,6 @@ extern crate unicode_width; extern crate term; extern crate atty; -#[cfg(feature = "csv")] -extern crate csv; #[macro_use] extern crate lazy_static; extern crate encode_unicode; @@ -31,6 +29,13 @@ pub mod row; pub mod format; mod utils; +/// Reexported types for CSV Read/Write +#[cfg(feature = "csv")] +pub mod csv { + extern crate csv; + pub use self::csv::{Reader, Writer, Result, ReaderBuilder}; +} + use row::Row; use cell::Cell; use format::{TableFormat, LinePosition, consts}; |