Skip to content

Commit b256ad4

Browse files
committed
update README.md to reflect rust-version in cargo.toml
1 parent 31c71b5 commit b256ad4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,13 @@ 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+
rust-version = "1.30"
222+
```
223+
217224
The MSRV can also be specified as an inner attribute, like below.
218225

219226
```rust

0 commit comments

Comments
 (0)