Imagine I have a main project with a dependency. I'm also an author of that dependency. Now I would like to use my locally checked out version of that dependency in the main project.
Is there a configuration file where I can put [patch] sections, like in Cargo.toml but only for my local use? Cargo.toml is under version control and thus shared with other developers.
You can use a .cargo/config file for local-only configuration. The syntax for overriding dependencies in the config file is a bit different; instead of patch you can use the paths key: