Example:

[dependencies]
regex = { git = "https://github.com/rust-lang/regex" }

We can also specify branch (branch = "next") or commit (rev = "4c59b707")