From 7f147e574a140afe389a420b21bae8da99ac4e4a Mon Sep 17 00:00:00 2001 From: Claudia Pellegrino Date: Thu, 18 Aug 2022 09:57:34 +0200 Subject: [PATCH] Add MSRV to Cargo.toml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a `rust_version` entry to `Cargo.toml` in order to codify the MSRV for `cargo` to pick it up. This leads to a more helpful and more actionable error message, for example: > error: package `parking_lot v0.12.1 ([…])` cannot be built because > it requires rustc 1.59 or newer, while the currently active rustc > version is 1.58.1 --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 90b653d4..997fe872 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ readme = "README.md" keywords = ["mutex", "condvar", "rwlock", "once", "thread"] categories = ["concurrency"] edition = "2018" +rust-version = "1.49" [dependencies] parking_lot_core = { path = "core", version = "0.9.0" }