Skip to content

Commit

Permalink
tabled_derive/ Refactoring
Browse files Browse the repository at this point in the history
A credit for an inspiration to `clap`.

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
  • Loading branch information
zhiburt committed Jun 29, 2022
1 parent 4db36ba commit ba048db
Show file tree
Hide file tree
Showing 5 changed files with 211 additions and 324 deletions.
4 changes: 2 additions & 2 deletions examples/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ enum Contact {
username: &'static str,
number: &'static str,
},
#[tabled(hidden)]
#[tabled(skip)]
No,
#[tabled(inline)]
#[tabled(skip)]
Number(#[tabled("number")] &'static str),
}
1 change: 1 addition & 0 deletions tabled_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ syn = "1"
quote = "1"
proc-macro2 = "1"
heck = "0.4.0"
proc-macro-error = "1.0.4"
Loading

0 comments on commit ba048db

Please sign in to comment.