xref: /aosp_15_r20/external/mesa3d/docs/rust.rst (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1*61046927SAndroid Build Coastguard WorkerRust
2*61046927SAndroid Build Coastguard Worker====
3*61046927SAndroid Build Coastguard Worker
4*61046927SAndroid Build Coastguard WorkerRust Update Policy
5*61046927SAndroid Build Coastguard Worker------------------
6*61046927SAndroid Build Coastguard Worker
7*61046927SAndroid Build Coastguard WorkerGiven that for some distributions it's not feasible to keep up with the
8*61046927SAndroid Build Coastguard Workerpace of Rust, we promise to only bump the minimum required Rust version
9*61046927SAndroid Build Coastguard Workerfollowing those rules:
10*61046927SAndroid Build Coastguard Worker
11*61046927SAndroid Build Coastguard Worker-  Only up to the Rust requirement of other major Linux desktop
12*61046927SAndroid Build Coastguard Worker   components, e.g.:
13*61046927SAndroid Build Coastguard Worker
14*61046927SAndroid Build Coastguard Worker   -  `Firefox ESR <https://whattrainisitnow.com/release/?version=esr>`__:
15*61046927SAndroid Build Coastguard Worker      `Minimum Supported Rust Version:
16*61046927SAndroid Build Coastguard Worker      <https://firefox-source-docs.mozilla.org/writing-rust-code/update-policy.html#schedule>`__
17*61046927SAndroid Build Coastguard Worker
18*61046927SAndroid Build Coastguard Worker   -  latest `Linux Kernel Rust requirement
19*61046927SAndroid Build Coastguard Worker      <https://docs.kernel.org/process/changes.html#current-minimal-requirements>`__
20*61046927SAndroid Build Coastguard Worker
21*61046927SAndroid Build Coastguard Worker-  Only require a newer Rust version than stated by other rules if and only
22*61046927SAndroid Build Coastguard Worker   if it's required to get around a bug inside rustc.
23*61046927SAndroid Build Coastguard Worker
24*61046927SAndroid Build Coastguard WorkerAs bug fixes might run into rustc compiler bugs, a rust version bump _can_
25*61046927SAndroid Build Coastguard Workerhappen on a stable branch as well.
26