Private SSH Dependency on Gitlab

I created a private repository I am trying to consume with dependency:

The proper GIT origin URL is in form When trying to add I run into 2 types of errors: fail to parse port (group is not a number) or invalid URL base.

I tried variations:

projectName = { git = "ssh:// " }
projectName = { git = " " }

The git shorthand syntax for ssh URLs is not supported by Cargo. See the appendix of the Cargo book:

Note: Cargo does not support git's shorthand SSH URLs like Use a full SSH URL like ssh://

I believe replacing the : with / in front of your group should be working in your case:

projectName = { git = "ssh:// " }
1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.