cargo-manifest
Git dependencies
Use a Git dependency when a reviewed package must be sourced from a repository rather than a registry release. A revision selects a commit or other resolvable revision; prefer a verified full commit ID for deliberate pinning. A lockfile records the resolved commit. Example format: toml. Illustrative only; do not execute against real accounts or unreviewed sources. Expected result (not executed): Illustrative manifest; the reserved invalid domain and placeholder revision are not resolvable. Common mistake: Treating a branch name as an immutable version or assuming a commit pin proves safety.
Formal Syntax & Structure
rust syntaxrust
name = { git = "URL", rev = "revision" }Working Example
Example Snippetrust
[dependencies]lab-math = { git = "https://example.invalid/lab-math.git", rev = "REVIEWED_COMMIT_ID" }