Isn’t what you want to achieve easier to handle by coping the dependencies and using a path identifier to the location of your dependencies?
[dependencies]
stdlib = { path = "../stdlib" }
(Path relative to the root of current project, no need for git)