Pin a crate directly from a Git repository.
Section: Dependencies
Use a git dependency
toml
toml
[dependencies]
mycrate = { git = "https://github.com/org/mycrate.git", branch = "main" }Explanation
Git dependencies are useful for unreleased fixes or internal code.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Dependencies