As you may or may not know, I actually get paid to write Rust.
In my day job I am working on a growing enterprise grade
codebase.
Even on my dev machine with 2TB SSD, repeated running of unit and integration tests and building and running test releases quickly fills up the SSD thanks to cargo's new incremental build feature.
Since I usually don't want to delete all that stuff using cargo clean, I was looking for a more fine-grained option to prune the cache.
I found cargo prune which hasn't seen updates for almost a decade, so this was a non-starter.
Hence, I let an AI vibe-code the eponymous cargo prune for me.
Maybe somebody finds it useful.
Edit: Wrong topic - fixed.
2 posts - 2 participants
![[AI] Cargo prune - delete old incremental build artifacts](https://emoji.discourse-cdn.com/twitter/wink.png?v=16)

