I learnt today that Rust's cargo has a clean command. Neat! I've been rm -rf'ing the target directory all this time.