From 1512fc7000074f52334635793f1c23b2ac90cbd2 Mon Sep 17 00:00:00 2001 From: Antoine Date: Mon, 21 Aug 2023 14:43:59 +0200 Subject: [PATCH] Add MSRV to readme I think that good to put MSRV in the README. Fix somehow https://github.com/matklad/once_cell/issues/201 --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 2ac9b53..d4eacb1 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,17 @@ More patterns and use-cases are in the [docs](https://docs.rs/once_cell/)! * [generic_once_cell](https://crates.io/crates/generic_once_cell) (bring your own mutex) Parts of `once_cell` API are included into `std` [as of Rust 1.70.0](https://github.com/rust-lang/rust/pull/105587). + +# Minimum Supported Rust Version (MSRV) + +We support workflows which target up-to-date, supported versions of Rust compiler, but we also give somewhat generous grace period, as keeping perfectly up-to-date is hard. + +We explicitly do not support workflows which depend on using the old compiler. Making sure that the latest once_cell can be compiled with rustc packaged with debian stable is a non-goal. + +If users of once_cell find themselves with an outdated compiler, the following actions are suggested: + + 1. Find a way to upgrade compiler + 2. If using old compiler is required, stick to old version of once_cell as well + 3. If a combination of old compiler and new once_cell is required, it's on the consumer to maintain a fork with backports. + +See https://github.com/matklad/once_cell/issues/201 for talk about MSRV.