dbgfmt 0.1.0

Pretty-print Rust Debug trait output with proper indentation
Documentation
1
2
3
4
5
6
7
mod formatter;
mod tokenizer;

pub fn format_debug(input: &str, indent_width: usize) -> String {
    let tokens = tokenizer::tokenize(input);
    formatter::format_tokens(&tokens, indent_width)
}