Skip to content

Commit 1c84d82

Browse files
committed
Add documentation for cargo install --ignore-rust-version
1 parent ae1c3c2 commit 1c84d82

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

src/doc/man/cargo-install.md

+2
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ See also the `--profile` option for choosing a specific profile by name.
179179

180180
{{> options-profile }}
181181

182+
{{> options-ignore-rust-version }}
183+
182184
{{> options-timings }}
183185

184186
{{/options}}

src/doc/man/generated_txt/cargo-install.txt

+5
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ OPTIONS
215215
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
216216
details on profiles.
217217

218+
--ignore-rust-version
219+
Install the target even if the selected Rust compiler is older than
220+
the required Rust version as configured in the project’s
221+
rust-version field.
222+
218223
--timings=fmts
219224
Output information how long each compilation takes, and track
220225
concurrency information over time. Accepts an optional

src/doc/src/commands/cargo-install.md

+6
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ See the <a href="../reference/profiles.html">the reference</a> for more details
248248

249249

250250

251+
<dt class="option-term" id="option-cargo-install---ignore-rust-version"><a class="option-anchor" href="#option-cargo-install---ignore-rust-version"></a><code>--ignore-rust-version</code></dt>
252+
<dd class="option-desc">Install the target even if the selected Rust compiler is older than the
253+
required Rust version as configured in the project’s <code>rust-version</code> field.</dd>
254+
255+
256+
251257
<dt class="option-term" id="option-cargo-install---timings=fmts"><a class="option-anchor" href="#option-cargo-install---timings=fmts"></a><code>--timings=</code><em>fmts</em></dt>
252258
<dd class="option-desc">Output information how long each compilation takes, and track concurrency
253259
information over time. Accepts an optional comma-separated list of output

src/etc/man/cargo-install.1

+6
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,12 @@ Install with the given profile.
273273
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
274274
.RE
275275
.sp
276+
\fB\-\-ignore\-rust\-version\fR
277+
.RS 4
278+
Install the target even if the selected Rust compiler is older than the
279+
required Rust version as configured in the project\[cq]s \fBrust\-version\fR field.
280+
.RE
281+
.sp
276282
\fB\-\-timings=\fR\fIfmts\fR
277283
.RS 4
278284
Output information how long each compilation takes, and track concurrency

0 commit comments

Comments
 (0)