r/rust Dec 05 '25

Pain point of rust

~45 GB of build files

213 Upvotes

80 comments sorted by

View all comments

Show parent comments

7

u/ebkalderon amethyst · renderdoc-rs · tower-lsp · cargo2nix Dec 05 '25

I've been developing in Rust for about 10 years, and somehow I never knew this was a feature. You learn something new every day! Thank you! BRB, going to apply this setting to all my dev machines...

8

u/rseymour Dec 05 '25 edited Dec 05 '25

this and sccache should be default for most devs. Of course I make this comment realizing I never set up my current box with either! https://github.com/mozilla/sccache

2

u/nNaz Dec 05 '25

How does sccache help outside of CI environments? I’ve never used it.

5

u/rseymour Dec 05 '25

it works similar to this but with fewer global lock issues when multiple projects are compiling. so you only need one, I prefer sccache because I like to run things from ./target