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