about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarcel Hellwig <github@cookiesoft.de>2022-05-10 13:09:28 +0200
committerMarcel Hellwig <github@cookiesoft.de>2022-06-28 08:03:44 +0200
commit83511d1d9a98b9506df710fb5bba3c20f57e8c85 (patch)
tree743c288bd4bc48614163dc28793e1405149b861b
parent81737bf85062509dbd2bd80f917aac786dd9642f (diff)
downloadrust-83511d1d9a98b9506df710fb5bba3c20f57e8c85.tar.gz
rust-83511d1d9a98b9506df710fb5bba3c20f57e8c85.zip
update README.md to reflect rust-version in cargo.toml
-rw-r--r--README.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index edbc626e354..136bf22ee42 100644
--- a/README.md
+++ b/README.md
@@ -214,6 +214,14 @@ specifying the minimum supported Rust version (MSRV) in the clippy configuration
 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.
 
 ```rust