Skip to content

Commit d74f02e

Browse files
committed
docs(ref): Group all functional comments
1 parent f51524c commit d74f02e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/doc/src/reference/manifest.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,14 @@ will have `edition` explicitly specified to a newer value.
163163
### The `rust-version` field
164164

165165
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.
169174

170175
```toml
171176
[package]
@@ -177,11 +182,6 @@ The Rust version must be a bare version number with at least one component; it
177182
cannot include semver operators or pre-release identifiers. Compiler pre-release
178183
identifiers such as -nightly will be ignored while checking the Rust version.
179184

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-
185185
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).
186186

187187
When used on packages that get published, we recommend [verifying the `rust-version`](../guide/continuous-integration.md#verifying-rust-version).

0 commit comments

Comments
 (0)