Cargo: Specify subcrate in workspace in git repo


I forked Rusoto in order to add functionality I need for my project, but I don’t think the devs necessarily have good reason to merge my changes (they might conclude my use case is too unusual).

The Rusoto workspace includes a bunch of subcrates that are generated. Is there a way to specify as a dependency one of these subcrates within my fork? For example, could I specify { git = “…”, path = “…” }, and would that result in the path being evaluated within the git repo rather than my current directory?


You only need to specify the git repository and the name of the dependency and cargo will figure out the path inside that git repository on its own.


Now that’s fancy! Thanks!