Skip to content

Commit 16dbce1

Browse files
committed
docs(resolver): Move Constraints context under new Constraints header
1 parent f147d52 commit 16dbce1

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/doc/src/reference/resolver.md

+8-9
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.
@@ -63,15 +71,6 @@ Key steps:
6371
Cargo may decide that it should prefer a specific version,
6472
falling back to the next version when backtracking.
6573

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

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

0 commit comments

Comments
 (0)