| 1 |
Rust |
| 2 |
==== |
| 3 |
|
| 4 |
Rust Subproject Names |
| 5 |
--------------------- |
| 6 |
|
| 7 |
All Rust subprojects should follow the convention ``NAME-SEMVER-rs``, |
| 8 |
where ``SEMVER`` is the version up to and including the first nonzero |
| 9 |
component. For example, ``zerocopy-0.8.13`` becomes ``zerocopy-0.8-rs``, |
| 10 |
whereas ``syn-2.0.66`` becomes ``syn-2-rs``. |
| 11 |
|
| 12 |
Rust Update Policy |
| 13 |
------------------ |
| 14 |
|
| 15 |
Given that for some distributions it's not feasible to keep up with the |
| 16 |
pace of Rust, we promise to only bump the minimum required Rust version |
| 17 |
following those rules: |
| 18 |
|
| 19 |
- Only up to the Rust requirement of other major Linux desktop |
| 20 |
components, e.g.: |
| 21 |
|
| 22 |
- `Firefox ESR <https://whattrainisitnow.com/release/?version=esr>`__: |
| 23 |
`Minimum Supported Rust Version: |
| 24 |
<https://firefox-source-docs.mozilla.org/writing-rust-code/update-policy.html#schedule>`__ |
| 25 |
|
| 26 |
- latest `Linux Kernel Rust requirement |
| 27 |
<https://docs.kernel.org/process/changes.html#current-minimal-requirements>`__ |
| 28 |
|
| 29 |
- Only require a newer Rust version than stated by other rules if and only |
| 30 |
if it's required to get around a bug inside rustc. |
| 31 |
|
| 32 |
As bug fixes might run into rustc compiler bugs, a rust version bump _can_ |
| 33 |
happen on a stable branch as well. |
| 34 |
|
| 35 |
Peripheral Support for crates.io uploads |
| 36 |
---------------------------------------- |
| 37 |
Certain Mesa crates are uploaded to crates.io at the discretion of certain |
| 38 |
sub-communities of Mesa. These crates are: |
| 39 |
|
| 40 |
- https://crates.io/crates/mesa3d_util |
| 41 |
|
| 42 |
These crates are used as dependencies to other Rust-based projects, such as: |
| 43 |
|
| 44 |
- https://crates.io/crates/rutabaga_gfx/0.1.61/dependencies |
| 45 |
|
| 46 |
This is not supported by the "core" Mesa quarterly release cycles, and the |
| 47 |
official Mesa maintainers are not liable for use or mis-use of the crates. |
| 48 |
Please contact the relevant sub-community before using these crates outside |
| 49 |
of Mesa3D. |
| 50 |
|
| 51 |
Official Mesa distribution of crates will likely have wait until improvements |
| 52 |
are made in the Meson build system: |
| 53 |
|
| 54 |
- https://github.com/mesonbuild/meson/issues/2173 |
| 55 |
|
| 56 |
The Meson build system is the only build system officially supported by |
| 57 |
Mesa3D. |