I’ve been building a binary application in rust, and looking over the modules that have been written, I realized there were more than a few that can operate independently from the rest of the program (they don’t depend on any other modules in the application).
Would it be in my best interest to move these modules into sub-crates? This would just be crates in sub-directories of the repository, specified in the main application crate with
path = "./.../". I was thinking of doing this just speed up compile times, so that independent parts which didn’t change didn’t have to be rebuilt.
Are there any specific advantages/disadvantages to doing this that one should be aware of?