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
+4-25Lines changed: 4 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Every manifest file consists of the following sections:
12
12
*[`version`](#the-version-field) --- The version of the package.
13
13
*[`authors`](#the-authors-field) --- The authors of the package.
14
14
*[`edition`](#the-edition-field) --- The Rust edition.
15
-
*[`rust-version`](#the-rust-version-field) --- The minimal supported Rust version.
15
+
*[`rust-version`](rust-version.md) --- The minimal supported Rust version.
16
16
*[`description`](#the-description-field) --- A description of the package.
17
17
*[`documentation`](#the-documentation-field) --- URL of the package documentation.
18
18
*[`readme`](#the-readme-field) --- Path to the package's README file.
@@ -163,31 +163,9 @@ will have `edition` explicitly specified to a newer value.
163
163
164
164
### The `rust-version` field
165
165
166
-
The `rust-version` field is an optional key that tells cargo what version of the
166
+
The `rust-version` field tells cargo what version of the
167
167
Rust language and compiler your package can be compiled with.
168
-
If the currently selected version of the Rust compiler is older than the stated
169
-
version, cargo will exit with an error, telling the user what version is
170
-
required.
171
-
This affects all targets/crates in the package, including test suites,
172
-
benchmarks, binaries, examples, etc.
173
-
174
-
The `rust-version` may be ignored using the `--ignore-rust-version` option.
175
-
176
-
```toml
177
-
[package]
178
-
# ...
179
-
rust-version = "1.56"
180
-
```
181
-
182
-
The Rust version must be a bare version number with at least one component; it
183
-
cannot include semver operators or pre-release identifiers. Compiler pre-release
184
-
identifiers such as -nightly will be ignored while checking the Rust version.
185
-
186
-
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).
187
-
188
-
When used on packages that get published, we recommend [verifying the `rust-version`](../guide/continuous-integration.md#verifying-rust-version).
189
-
190
-
> **MSRV:** Respected as of 1.56
168
+
See [the Rust version chapter](rust-version.md) for more detail.
The `rust-version` field is an optional key that tells cargo what version of the
4
+
Rust language and compiler your package can be compiled with.
5
+
If the currently selected version of the Rust compiler is older than the stated
6
+
version, cargo will exit with an error, telling the user what version is
7
+
required.
8
+
This affects all targets/crates in the package, including test suites,
9
+
benchmarks, binaries, examples, etc.
10
+
11
+
The `rust-version` may be ignored using the `--ignore-rust-version` option.
12
+
13
+
```toml
14
+
[package]
15
+
# ...
16
+
rust-version = "1.56"
17
+
```
18
+
19
+
The Rust version must be a bare version number with at least one component; it
20
+
cannot include semver operators or pre-release identifiers. Compiler pre-release
21
+
identifiers such as -nightly will be ignored while checking the Rust version.
22
+
23
+
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).
24
+
25
+
When used on packages that get published, we recommend [verifying the `rust-version`](../guide/continuous-integration.md#verifying-rust-version).
0 commit comments