You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/src/reference/manifest.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -163,9 +163,14 @@ will have `edition` explicitly specified to a newer value.
163
163
### The `rust-version` field
164
164
165
165
The `rust-version` field is an optional key that tells cargo what version of the
166
-
Rust language and compiler your package can be compiled with. If the currently
167
-
selected version of the Rust compiler is older than the stated version, cargo
168
-
will exit with an error, telling the user what version is required.
166
+
Rust language and compiler your package can be compiled with.
167
+
If the currently selected version of the Rust compiler is older than the stated
168
+
version, cargo will exit with an error, telling the user what version is
169
+
required.
170
+
This affects all targets/crates in the package, including test suites,
171
+
benchmarks, binaries, examples, etc.
172
+
173
+
The `rust-version` may be ignored using the `--ignore-rust-version` option.
169
174
170
175
```toml
171
176
[package]
@@ -177,11 +182,6 @@ The Rust version must be a bare version number with at least one component; it
177
182
cannot include semver operators or pre-release identifiers. Compiler pre-release
178
183
identifiers such as -nightly will be ignored while checking the Rust version.
179
184
180
-
The `rust-version` may be ignored using the `--ignore-rust-version` option.
181
-
182
-
Setting the `rust-version` key in `[package]` will affect all targets/crates in
183
-
the package, including test suites, benchmarks, binaries, examples, etc.
184
-
185
185
To find the minimum `rust-version` compatible with your project, you can use third-party tools like [`cargo-msrv`](https://crates.io/crates/cargo-msrv).
186
186
187
187
When used on packages that get published, we recommend [verifying the `rust-version`](../guide/continuous-integration.md#verifying-rust-version).
0 commit comments