Skip to content

Commit 5925327

Browse files
authored
document MSRV policy (#16384)
This documents our minimum supported Rust version policy. See #16370
1 parent 87d011e commit 5925327

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/versioning.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ Ruff uses a custom versioning scheme that uses the **minor** version number for
4848
- A new server setting is added
4949
- A server setting is deprecated
5050

51+
## Minimum supported Rust version
52+
53+
The minimum supported Rust version required to compile Ruff is listed in the `rust-version` key of
54+
the `[workspace.package]` section in `Cargo.toml`. It may change in any release (minor or patch). It
55+
will never be newer than N-2 Rust versions, where N is the latest stable version. For example, if
56+
the latest stable Rust version is 1.85, Ruff's minimum supported Rust version will be at most 1.83.
57+
58+
This is only relevant to users who build Ruff from source. Installing Ruff from the Python package
59+
index usually installs a pre-built binary and does not require Rust compilation.
5160

5261
## Preview mode
5362

0 commit comments

Comments
 (0)