Skip to content

Commit 7a7bddb

Browse files
committed
move notes together
1 parent 01e1ff0 commit 7a7bddb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/doc/src/reference/specifying-dependencies.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,13 @@ varies by where the repo is hosted; GitHub in particular exposes a reference to
197197
the most recent commit of every pull request as shown, but other git hosts often
198198
provide something equivalent, possibly under a different naming scheme.
199199

200+
Once a `git` dependency has been added, Cargo will lock that dependency to the
201+
latest commit at the time. New commits will not be pulled down automatically
202+
once the lock is in place. However, they can be pulled down manually with
203+
`cargo update`.
204+
205+
See [Git Authentication] for help with git authentication for private repos.
206+
200207
> **Note**: Neither the `git` key nor the `path` key changes the meaning of the
201208
> `version` key: the `version` key always implies that the package is available
202209
> in a registry. `version`, `git`, and `path` keys are considered [separate
@@ -206,13 +213,6 @@ provide something equivalent, possibly under a different naming scheme.
206213
> affect which commit is used, but the version information in the dependency's
207214
> `Cargo.toml` file will still be validated against the `version` requirement.
208215
209-
Once a `git` dependency has been added, Cargo will lock that dependency to the
210-
latest commit at the time. New commits will not be pulled down automatically
211-
once the lock is in place. However, they can be pulled down manually with
212-
`cargo update`.
213-
214-
See [Git Authentication] for help with git authentication for private repos.
215-
216216
> **Note**: [crates.io] does not allow packages to be published with
217217
> dependencies on code published outside of [crates.io] itself
218218
> ([dev-dependencies] are ignored). See the [Multiple

0 commit comments

Comments
 (0)