document MSRV policy (#16384)

This documents our minimum supported Rust version policy. See
https://github.com/astral-sh/ruff/issues/16370
This commit is contained in:
Carl Meyer 2025-02-26 07:09:23 -08:00 committed by GitHub
parent 87d011e1bd
commit 592532738f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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