Skip to content

Commit 83511d1

Browse files
committed
update README.md to reflect rust-version in cargo.toml
1 parent 81737bf commit 83511d1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,14 @@ specifying the minimum supported Rust version (MSRV) in the clippy configuration
214214
msrv = "1.30.0"
215215
```
216216

217+
Alternatively, the [`rust-version` field](https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field)
218+
in the `Cargo.toml` can be used.
219+
220+
```toml
221+
# Cargo.toml
222+
rust-version = "1.30"
223+
```
224+
217225
The MSRV can also be specified as an inner attribute, like below.
218226

219227
```rust

0 commit comments

Comments
 (0)