Skip to content
Discussion options

You must be logged in to vote

This will depend a lot on the particulars of your machine, setup, etc. etc. etc. but there is some general advice that can be useful.

@benwis my co-maintainer wrote a couple of articles (this one and this one) about experiments with improving compile times in general.

More specifically, for incremental build times there will often come a time when you want to start splitting an application into multiples crates, as it scales up. This is because Rust's default unit for compilation is the crate, not the module, so if you change one small part of your application, it needs to recompile the entire crate. Whereas if you split into multiple crates, it only needs to recompile what has changed.

I…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by roysabenecio
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants