Wilfred / difftastic

a structural diff that understands syntax 🟥🟩
https://difftastic.wilfred.me.uk/
MIT License
20.54k stars 331 forks source link

Create and publish a library crate #216

Open petr-tik opened 2 years ago

petr-tik commented 2 years ago

Hey Wilfred, Thanks for such a great command-line tool.

I was wondering if you would consider publishing a library with your work to provide an interface similar to dissimilar's diff https://docs.rs/dissimilar/1.0.3/dissimilar/fn.diff.html

It would really help people writing tests that calculate and highlight diffs to have AST-powered diffs. I am thinking rust-analyzer and the myriad of text editors being implemented in rust atm.

Appreciate all your work here - thanks again

cameronbraid commented 5 months ago

I would like to see a ‘assert_eq’ macro