Is there any tricks of fast compiling?

I'm working on a web project, but during development the compilation in debug mode often takes a few minutes.
Are there any tricks to speed up this process, or make Rust programs run in a Just-In-Time mode?

The article by fasterthanlime should tell you a lot of tricks.

3 Likes

Are you using warp? If so, check out this issue and the macro we came up with to help.

Thanks, I tried to split some crates, It does work
(Although the build time is still in the tens of seconds, but it's ok

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.