@grainloom I know that feeling. I'm writing my first #rustlang program. It built fast until I added diesel and dotenv as dependencies. Now, every time I build my app for release, rust has to build diesel and dotenv as well, even though nothing changed to those. And diesel takes 10 minutes to build on my phone. 10 minutes! Every time! These build systems have to get smarter.
> [my #rust program] built fast until I added… dependencies. Now, every time I build my app for release, rust has to build diesel and dotenv as well, even though nothing changed to those.
Well, it doesn't *literally* start from scratch—if you run `cargo clean` before `cargo build --release`, it would be even slower.
But, for release builds, you *want* to rebuild dependencies because available optimizations may have changed based on your code
@aeveltstra It should already do that. Cargo has a build cache and won't rebuild things that didn't change. Are you using something like Docker that could be throwing away the cache each time?
@kornel Good question! I'm not using Docker since the build is happening on my phone. But that phone might be preventing rust from writing build cache. I'll check it out.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!