From 80c9d7af10b5fbfeb36e4fc5593f9635f99871d9 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Tue, 25 Feb 2025 12:40:49 -0800 Subject: [PATCH] document MSRV policy --- docs/versioning.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/versioning.md b/docs/versioning.md index 3546d0a696cc43..2740cf2b6efc78 100644 --- a/docs/versioning.md +++ b/docs/versioning.md @@ -48,6 +48,15 @@ Ruff uses a custom versioning scheme that uses the **minor** version number for - A new server setting is added - A server setting is deprecated +## Minimum supported Rust version + +The minimum supported Rust version required to compile Ruff is listed in the `rust-version` key of +the `[workspace.package]` section in `Cargo.toml`. It may change in any release (minor or patch). It +will never be newer than N-2 Rust versions, where N is the latest stable version. For example, if +the latest stable Rust version is 1.85, Ruff's minimum supported Rust version will be at most 1.83. + +This is only relevant to users who build Ruff from source. Installing Ruff from the Python package +index usually installs a pre-built binary and does not require Rust compilation. ## Preview mode