File tree Expand file tree Collapse file tree 5 files changed +20
-2
lines changed Expand file tree Collapse file tree 5 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ Cannot be used with `--precise`.
42
42
When used with _ spec_ , allows you to specify a specific version number to set
43
43
the package to. If the package comes from a git repository, this can be a git
44
44
revision (such as a SHA hash or tag).
45
+
46
+ While not recommended, you can specify a yanked version of a package (nightly only).
47
+ When possible, try other non-yanked SemVer-compatible versions or seek help
48
+ from the maintainers of the package.
45
49
{{/option}}
46
50
47
51
{{#option "` -w ` " "` --workspace ` " }}
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ OPTIONS
35
35
to set the package to. If the package comes from a git repository,
36
36
this can be a git revision (such as a SHA hash or tag).
37
37
38
+ While not recommended, you can specify a yanked version of a package
39
+ (nightly only). When possible, try other non-yanked
40
+ SemVer-compatible versions or seek help from the maintainers of the
41
+ package.
42
+
38
43
-w, --workspace
39
44
Attempt to update only packages defined in the workspace. Other
40
45
packages are updated only if they don’t already exist in the
Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ Cannot be used with <code>--precise</code>.</dd>
39
39
<dt class =" option-term " id =" option-cargo-update---precise " ><a class =" option-anchor " href =" #option-cargo-update---precise " ></a ><code >--precise</code > <em >precise</em ></dt >
40
40
<dd class =" option-desc " >When used with <em >spec</em >, allows you to specify a specific version number to set
41
41
the package to. If the package comes from a git repository, this can be a git
42
- revision (such as a SHA hash or tag).</dd >
42
+ revision (such as a SHA hash or tag).</p >
43
+ <p >While not recommended, you can specify a yanked version of a package (nightly only).
44
+ When possible, try other non-yanked SemVer-compatible versions or seek help
45
+ from the maintainers of the package.</dd >
43
46
44
47
45
48
<dt class =" option-term " id =" option-cargo-update--w " ><a class =" option-anchor " href =" #option-cargo-update--w " ></a ><code >-w</code ></dt >
Original file line number Diff line number Diff line change @@ -325,9 +325,11 @@ the `links` field if your library is in common use.
325
325
326
326
[ Yanked releases] [ yank ] are those that are marked that they should not be
327
327
used. When the resolver is building the graph, it will ignore all yanked
328
- releases unless they already exist in the ` Cargo.lock ` file.
328
+ releases unless they already exist in the ` Cargo.lock ` file or are explicitly
329
+ requested by the [ ` --precise ` ] flag of ` cargo update ` (nightly only).
329
330
330
331
[ yank ] : publishing.md#cargo-yank
332
+ [ `--precise` ] : ../commands/cargo-update.md#option-cargo-update---precise
331
333
332
334
## Dependency updates
333
335
Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ Cannot be used with \fB\-\-precise\fR\&.
39
39
When used with \fI spec \fR , allows you to specify a specific version number to set
40
40
the package to. If the package comes from a git repository, this can be a git
41
41
revision (such as a SHA hash or tag).
42
+ .sp
43
+ While not recommended, you can specify a yanked version of a package (nightly only).
44
+ When possible, try other non\- yanked SemVer\- compatible versions or seek help
45
+ from the maintainers of the package.
42
46
.RE
43
47
.sp
44
48
\fB \- w \fR ,
You can’t perform that action at this time.
0 commit comments