@@ -56,6 +56,9 @@ available at <https://rust-lang.org>.
56
56
57
57
### Manifest Commands
58
58
59
+ [ cargo-add(1)] ( cargo-add.html ) \
60
+   ;  ;  ;  ; Add dependencies to a ` Cargo.toml ` manifest file.
61
+
59
62
[ cargo-generate-lockfile(1)] ( cargo-generate-lockfile.html ) \
60
63
  ;  ;  ;  ; Generate ` Cargo.lock ` for a project.
61
64
@@ -68,6 +71,9 @@ available at <https://rust-lang.org>.
68
71
[ cargo-pkgid(1)] ( cargo-pkgid.html ) \
69
72
  ;  ;  ;  ; Print a fully qualified package specification.
70
73
74
+ [ cargo-remove(1)] ( cargo-remove.html ) \
75
+   ;  ;  ;  ; Remove dependencies from a ` Cargo.toml ` manifest file.
76
+
71
77
[ cargo-tree(1)] ( cargo-tree.html ) \
72
78
  ;  ;  ;  ; Display a tree visualization of a dependency graph.
73
79
@@ -180,21 +186,21 @@ terminal.</li>
180
186
<a href =" ../reference/config.html " >config value</a >.</dd >
181
187
182
188
183
-
184
189
</dl >
185
190
186
191
### Manifest Options
187
192
188
193
<dl >
189
- <dt class =" option-term " id =" option-cargo---frozen " ><a class =" option-anchor " href =" #option-cargo---frozen " ></a ><code >--frozen</code ></dt >
190
194
<dt class =" option-term " id =" option-cargo---locked " ><a class =" option-anchor " href =" #option-cargo---locked " ></a ><code >--locked</code ></dt >
191
- <dd class =" option-desc " >Either of these flags requires that the <code >Cargo.lock</code > file is
192
- up-to-date. If the lock file is missing, or it needs to be updated, Cargo will
193
- exit with an error. The <code >--frozen</code > flag also prevents Cargo from
194
- attempting to access the network to determine if it is out-of-date.</p >
195
- <p >These may be used in environments where you want to assert that the
196
- <code >Cargo.lock</code > file is up-to-date (such as a CI build) or want to avoid network
197
- access.</dd >
195
+ <dd class =" option-desc " >Asserts that the exact same dependencies and versions are used as when the
196
+ existing <code >Cargo.lock</code > file was originally generated. Cargo will exit with an
197
+ error when either of the following scenarios arises:</p >
198
+ <ul >
199
+ <li >The lock file is missing.</li >
200
+ <li >Cargo attempted to change the lock file due to a different dependency resolution.</li >
201
+ </ul >
202
+ <p >It may be used in environments where deterministic builds are desired,
203
+ such as in CI pipelines.</dd >
198
204
199
205
200
206
<dt class =" option-term " id =" option-cargo---offline " ><a class =" option-anchor " href =" #option-cargo---offline " ></a ><code >--offline</code ></dt >
@@ -210,6 +216,9 @@ offline.</p>
210
216
<p >May also be specified with the <code >net.offline</code > <a href =" ../reference/config.html " >config value</a >.</dd >
211
217
212
218
219
+ <dt class =" option-term " id =" option-cargo---frozen " ><a class =" option-anchor " href =" #option-cargo---frozen " ></a ><code >--frozen</code ></dt >
220
+ <dd class =" option-desc " >Equivalent to specifying both <code >--locked</code > and <code >--offline</code >.</dd >
221
+
213
222
</dl >
214
223
215
224
### Common Options
@@ -252,19 +261,16 @@ requires the <code>-Z unstable-options</code> flag to enable (see
252
261
253
262
</dl >
254
263
255
-
256
264
## ENVIRONMENT
257
265
258
266
See [ the reference] ( ../reference/environment-variables.html ) for
259
267
details on environment variables that Cargo reads.
260
268
261
-
262
269
## EXIT STATUS
263
270
264
271
* ` 0 ` : Cargo succeeded.
265
272
* ` 101 ` : Cargo failed to complete.
266
273
267
-
268
274
## FILES
269
275
270
276
` ~/.cargo/ ` \
0 commit comments