Skip to content

Commit 00f2658

Browse files
committed
Document cargo add's --ignore-rust-version flag
1 parent 5cb967c commit 00f2658

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

src/doc/man/cargo-add.md

+9
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ crates, the features for a specific crate may be enabled with
123123
which enables all specified features.
124124
{{/option}}
125125

126+
{{#option "`--ignore-rust-version`" }}
127+
Ignore `rust-version` specification in packages.
128+
129+
This option is unstable and available only on the
130+
[nightly channel](https://doc.rust-lang.org/book/appendix-07-nightly-rust.html)
131+
and requires the `-Z unstable-options` flag to enable.
132+
See <https://github.com/rust-lang/cargo/issues/5579> for more information.
133+
{{/option}}
134+
126135
{{/options}}
127136

128137

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

+9
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@ OPTIONS
111111
be enabled with package-name/feature-name syntax. This flag may be
112112
specified multiple times, which enables all specified features.
113113

114+
--ignore-rust-version
115+
Ignore rust-version specification in packages.
116+
117+
This option is unstable and available only on the nightly channel
118+
<https://doc.rust-lang.org/book/appendix-07-nightly-rust.html> and
119+
requires the -Z unstable-options flag to enable. See
120+
<https://github.com/rust-lang/cargo/issues/5579> for more
121+
information.
122+
114123
Display Options
115124
-v, --verbose
116125
Use verbose output. May be specified twice for “very verbose”

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

+8
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ crates, the features for a specific crate may be enabled with
129129
which enables all specified features.</dd>
130130

131131

132+
<dt class="option-term" id="option-cargo-add---ignore-rust-version"><a class="option-anchor" href="#option-cargo-add---ignore-rust-version"></a><code>--ignore-rust-version</code></dt>
133+
<dd class="option-desc">Ignore <code>rust-version</code> specification in packages.</p>
134+
<p>This option is unstable and available only on the
135+
<a href="https://doc.rust-lang.org/book/appendix-07-nightly-rust.html">nightly channel</a>
136+
and requires the <code>-Z unstable-options</code> flag to enable.
137+
See <a href="https://github.com/rust-lang/cargo/issues/5579">https://github.com/rust-lang/cargo/issues/5579</a> for more information.</dd>
138+
139+
132140
</dl>
133141

134142

src/etc/man/cargo-add.1

+10
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ crates, the features for a specific crate may be enabled with
140140
\fBpackage\-name/feature\-name\fR syntax. This flag may be specified multiple times,
141141
which enables all specified features.
142142
.RE
143+
.sp
144+
\fB\-\-ignore\-rust\-version\fR
145+
.RS 4
146+
Ignore \fBrust\-version\fR specification in packages.
147+
.sp
148+
This option is unstable and available only on the
149+
\fInightly channel\fR <https://doc.rust\-lang.org/book/appendix\-07\-nightly\-rust.html>
150+
and requires the \fB\-Z unstable\-options\fR flag to enable.
151+
See <https://github.com/rust\-lang/cargo/issues/5579> for more information.
152+
.RE
143153
.SS "Display Options"
144154
.sp
145155
\fB\-v\fR,

0 commit comments

Comments
 (0)