Hacker News new | ask | show | jobs
by Cyph0n 2177 days ago
Just to add to other comments: Cargo feature flags are another reason why you need to build your dependencies.

Of course, if Cargo supported pre-compiled dependencies, I am guessing that it would be smart enough to only recompile the dependencies that are using non-default features.

1 comments

In addition to just feature flags the fact that a lot of Rust code is generic and would only be compiled into binary form in the final application would likely prevent excessive use of precompiled artifacts.