The optimised release binary isn't the issue - it's the many GB of build artifacts produced along the way if you have a lot of dependencies. You can accumulate hundreds of GB in target/ over time working on large projects.
Re:MacBook Air M4
by kerkeslager on Thursday March 06, 2025 @08:23PM
(#43286710)
So basically user error.
I know this isn't your point but this is exactly why I don't use docker--but I'm a bit surprised to hear you mention `cargo build` as something that might fill up the disk. I've been a vocal critic of Rust on Hacker News in the past, but the one thing I always thought they did very, very well, was Cargo and the tight executables it produced for me.