1 | macro_rules! cfg_prettytable {( $($item:item)* ) => ( |
---|---|
2 | $( |
3 | #[cfg(feature = "prettytable-rs")] |
4 | $item |
5 | )* |
6 | )} |
7 | |
8 | #[cfg(feature = "prettytable-rs")] |
9 | #[macro_use] |
10 | extern crate prettytable; |
11 | |
12 | pub mod basic; |
13 | cfg_prettytable! { |
14 | pub mod format_table; |
15 | } |
16 | pub mod lcs; |
17 | pub mod text; |
18 | |
19 | pub use crate::basic::diff_slice; |
20 | pub use crate::text::{diff_chars, diff_lines, diff_words}; |
21 |