When developing a library in Rust (+ Cargo), how do I achieve a quick recompilation / testing cycle?
When developing an application easily, I:
But now I want to extract part of my application as a library and publish it on GitHub. I would like to continue developing my application, but now with this library as a dependency. I am going to develop both a library and an application in parallel.
How to get the same fast feedback now?
Both the library and the application will be developed on one computer, I would like to make changes to the library, update the application accordingly and see the feedback from the compiler.
I assume that I could use my library as a dependency in Cargo.toml and run cargo update every time I want to update application dependencies, but it will be somewhat slow because it will need to download the code from github every time and recompile all dependencies.
source share