update README.md to reflect rust-version in cargo.toml

This commit is contained in:
Marcel Hellwig 2022-05-10 13:09:28 +02:00
parent 81737bf850
commit 83511d1d9a

View file

@ -214,6 +214,14 @@ specifying the minimum supported Rust version (MSRV) in the clippy configuration
msrv = "1.30.0" msrv = "1.30.0"
``` ```
Alternatively, the [`rust-version` field](https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field)
in the `Cargo.toml` can be used.
```toml
# Cargo.toml
rust-version = "1.30"
```
The MSRV can also be specified as an inner attribute, like below. The MSRV can also be specified as an inner attribute, like below.
```rust ```rust