File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " cli-table-derive"
3- version = " 0.4.3 "
3+ version = " 0.4.4 "
44authors = [" Devashish Dixit <devashishdxt@gmail.com>" ]
55license = " MIT/Apache-2.0"
66description = " A crate for printing tables on command line"
Original file line number Diff line number Diff line change 103103//! be sorted based on their order. For e.g., column with `order = 0` will be displayed on the left followed by
104104//! column with `order = 1` and so on.
105105//! - `display_fn`: Used to print types which do not implement `Display` trait. Usage `#[table(display_fn = "<func_name>")]`.
106- //! signature of provided function should be `fn <func_name>(value: &<type>) -> impl Display`.
106+ //! Signature of provided function should be `fn <func_name>(value: &<type>) -> impl Display`.
107107//! - `skip`: Used to skip a field from table. Usage: `#[table(skip)]`
108108//!
109109//! For more information on configurations available on derive macro, go to `cli-table/examples/struct.rs`.
110+ //!
111+ //! ## CSV
112+ //!
113+ //! This crate also integrates with [`csv`](https://crates.io/crates/csv) crate. On enabling `"csv"` feature, you can
114+ //! use `TryFrom<&mut Reader> for TableStruct` trait implementation to convert `csv::Reader` to `TableStruct`.
115+ //!
116+ //! For more information on handling CSV values, go to `cli-table/examples/csv.rs`.
117+ //!
118+ //! # Features
119+ //!
120+ //! - `derive`: Enables derive macro for creating tables using structs. **Enabled** by default.
121+ //! - `csv`: Enables support for printing tables using [`csv`](https://crates.io/crates/csv). **Enabled** by default.
110122mod context;
111123mod table;
112124mod utils;
Original file line number Diff line number Diff line change 11[package ]
22name = " cli-table"
3- version = " 0.4.4 "
3+ version = " 0.4.5 "
44authors = [" Devashish Dixit <devashishdxt@gmail.com>" ]
55license = " MIT/Apache-2.0"
66description = " A crate for printing tables on command line"
You can’t perform that action at this time.
0 commit comments