Thank you so much for this crate! It's just what I need. It could be even better, though. The prettytable method looks like it's written solely with the CLI in mind, which makes it hard to use programmatically. Would it be possible:
- Allow printing to stderr or to a string instead of only stdout.
- Suppress line numbers.
- Show a few lines of context beside the mismatched lines
If prettytable could do those things, then it would be perfect for my application. Which is, I want to print differences between large binary buffers in hex, as part of a test suite. First I format each buffer into hex, then use prettydiff to show the differences. I don't need line numbers because those are included in the hexdump. I do need to print to stderr instead of stdout, and some context would ease understanding. This is what it looks like right now:

Thank you so much for this crate! It's just what I need. It could be even better, though. The
prettytablemethod looks like it's written solely with the CLI in mind, which makes it hard to use programmatically. Would it be possible:If prettytable could do those things, then it would be perfect for my application. Which is, I want to print differences between large binary buffers in hex, as part of a test suite. First I format each buffer into hex, then use prettydiff to show the differences. I don't need line numbers because those are included in the hexdump. I do need to print to stderr instead of stdout, and some context would ease understanding. This is what it looks like right now:
