Skip to content

Commit 0348b8e

Browse files
committed
Bump up crate versions
1 parent 814c5ce commit 0348b8e

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

cli-table-derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cli-table-derive"
3-
version = "0.4.3"
3+
version = "0.4.4"
44
authors = ["Devashish Dixit <devashishdxt@gmail.com>"]
55
license = "MIT/Apache-2.0"
66
description = "A crate for printing tables on command line"

cli-table-derive/src/lib.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,22 @@
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.
110122
mod context;
111123
mod table;
112124
mod utils;

cli-table/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cli-table"
3-
version = "0.4.4"
3+
version = "0.4.5"
44
authors = ["Devashish Dixit <devashishdxt@gmail.com>"]
55
license = "MIT/Apache-2.0"
66
description = "A crate for printing tables on command line"

0 commit comments

Comments
 (0)