Difftastic is the first time I've ever shipped a binary on Windows. It was surprisingly straightforward.
Rust has good Windows support, and GitHub Actions means I don't need to set up a Windows toolchain locally.
Today I learnt about crossterm, a Rust crate for interacting with terminals in a cross-platform way: https://docs.rs/crossterm/latest/crossterm/
It handles things like is_tty() and terminal::size(), which are hard to support correctly in both Linux and Windows. I might port difftastic.
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 :)
Wilfred Hughes
Shared words: Difftastic, Rust, time, good
Score: 155.7
Adding a new language to difftastic is straightforward, but it requires some configuration and testing.
I just started with languages I've recently used. I'm trying to be more quantitative and use GitHub data: https://madnight.github.io/githut/
What languages would you like to see?