I have an account on an ssh-friendly lab machine where I store a lot of private projects so I can access them from multiple computers (and it allows me to only use my few private Github repos for things multiple people will work on).
It seems like Rust is well-equipped to fetch local and public data by using things like
[dependencies.foo]
git = "https://github.com/bar/foo"
[dependencies.baz]
path = "/path/to/baz"
But I haven't found a way to get it to work using ssh git (e.g. git = "git@github.com:bar/foo"
, or in my case labmachine:bar/foo
). I have passwordless/keygen ssh set up, if that helps.
It's not a big deal if it doesn't exist. At the moment I'm just manually cloning the repository and using path = ../foo
, which works as long as I keep my directory structure the same and remember to manually pull
all dependencies on all my machines. However, it would make things a lot easier if I could just set up Cargo to do it, especially if I just need to quickly demo something on my laptop or whatever.