I'm running my Rust project with Docker. It is fast, but there is a problem when I add an external dependency. Since Docker starts a new every time I run the "cargo run" command, it then fetches the external dependencies from the Internet again.
While this is related to an issue I have with Docker, I don't believe this is restricted to Docker as it can be an issue for a broad range of setups. What I'm looking for is simple regardless of Docker or anything else: Install the dependencies in the Rust project folder instead of having it installed globally, like in Node package manager.