Show crate version in debug output

This commit is contained in:
timvisee 2019-03-19 23:32:20 +01:00
parent 8744e05372
commit c2920b507b
No known key found for this signature in database
GPG key ID: B8DB720BC383E172

View file

@ -30,6 +30,12 @@ impl<'a> Debug<'a> {
let mut table = Table::new();
table.set_format(FormatBuilder::new().padding(0, 2).build());
// The crate version
table.add_row(Row::new(vec![
Cell::new("Version:"),
Cell::new(crate_version!()),
]));
// The default host
table.add_row(Row::new(vec![
Cell::new("Host:"),