I've written a manual for Difftastic with mdbook! https://difftastic.wilfred.me.uk/
mdbook makes it super easy: it auto-creates stub files, and reloads your browser as you write. It's a really nice workflow.
It's now possible to use difftastic for all your git diffing operations! I'm using `git log -p` in this screenshot.
(It crashes horribly if you add/remove whole files, or modify binary files, but it's really nice to dogfood and spot issues!)
Good news: it's super easy to add LTO to Rust projects, and only added 60 seconds to difftastic's link time:
[profile.release]
lto = true
Bad news: It only reduces the difftastic runtime by ~5%.
At least it didn't require much wrangling to try :)
The next version of difftastic will support parsing CSS and JS syntax inside HTML! This makes a huge difference to HTML files.
This support for tree-sitter sub-parsers was contributed by Sesse :)