###################
Gentoo Rust Patches
###################

This repository contains patches required to build Rust on Gentoo Linux. These patches were previously
part of the main Gentoo repository but have been moved here due to their size and to make maintenance easier.

The patches are applied to the Rust source code during the build process. They address various issues such as
compatibility with the Gentoo environment, specific compiler flags, and other adjustments needed for a successful build,
or are backports to fix specific issues.

Usage
=====

A branch will be created for each new Rust release (e.g. ``1.88``), and patches will be added to that branch as needed.

Tags for ``${PV}`` will be created for each release, e.g. ``1.88.0``, ``1.88.1``, etc., to track the specific versions of
Rust that these patches apply to.

If a revbump is required on the ebuild side, please use _pN for the git tag
in rust-patches.git, e.g. `1.88.1_p1`.

If a revbump is NOT required, and you're fixing a compile error or whatever,
please use '-N' for the git tag in rust-patches.git, e.g. `1.88.1-1`.

We do NOT use `-rN` in the tags here to avoid confusion when we need to
revbump the Rust ebuilds for an unrelated reason.

``master`` will contain patches required for ``nightly`` (live / ``9999``) ebuilds and will be updated as needed.

To use the patches, you can clone this repository and apply the patches to the Rust source code before building
(or use the Gentoo ebuild system which will handle this automatically!).
