Skip to content

Commit 5a7118a

Browse files
committed
docs(resolver): Move Constraints context under new Constraints header
1 parent c635eb8 commit 5a7118a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/doc/src/reference/resolver.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ use based on the version requirements specified in each package. This process
55
is called "dependency resolution" and is performed by the "resolver". The
66
result of the resolution is stored in the `Cargo.lock` file which "locks" the
77
dependencies to specific versions, and keeps them fixed over time.
8+
The [`cargo tree`] command can be used to visualize the result of the
9+
resolver.
10+
11+
[dependency specifications]: specifying-dependencies.md
12+
[dependency specification]: specifying-dependencies.md
13+
[`cargo tree`]: ../commands/cargo-tree.md
14+
15+
## Constraints and Heuristics
816

917
In many cases there is no single "best" dependency resolution.
1018
The resolver operates under various constraints and heuristics to find a generally applicable resolution.
@@ -65,15 +73,6 @@ Key steps:
6573
falling back to the next version when backtracking.
6674
The resolver cannot backtrack because a more-preferred version becomes available.
6775

68-
The [`cargo tree`] command can be used to visualize the result of the
69-
resolver.
70-
71-
[dependency specifications]: specifying-dependencies.md
72-
[dependency specification]: specifying-dependencies.md
73-
[`cargo tree`]: ../commands/cargo-tree.md
74-
75-
## Constraints and Heuristics
76-
7776
### SemVer compatibility
7877

7978
Cargo uses [SemVer] for specifying version numbers. This establishes a common

0 commit comments

Comments
 (0)