Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I just built it with "git clone --depth 1 ..." and the build from cargo build --release is 2.9GB (2.3GB in the target folder)?


Rust generates absurd amounts of debug info, so the default debug builds are much much larger.

Zero-cost abstractions don't have zero-cost debug info. In fact, all of the optimized-away stuff is intentionally preserved with full fidelity in the debug info.


You should also add the dev build




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: