commit:     8562c054ab313c75ce0bed12d2177f98e7020ae6
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  7 07:49:19 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Mar  8 14:02:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8562c054

rust.eclass: add documentation for RUST_{SLOT,TYPE}

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 eclass/rust.eclass | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/eclass/rust.eclass b/eclass/rust.eclass
index f69ea466f502..41197ce4e3a3 100644
--- a/eclass/rust.eclass
+++ b/eclass/rust.eclass
@@ -144,6 +144,18 @@ declare -a -g -r _RUST_SLOTS_ORDERED=(
 # Lowest Rust slot supported by the package. Needs to be set before
 # rust_pkg_setup is called. If unset, no lower bound is assumed.
 
+# @ECLASS_VARIABLE: RUST_SLOT
+# @OUTPUT_VARIABLE
+# @DESCRIPTION:
+# The selected Rust slot for building, from the range defined by
+# RUST_MAX_VER and RUST_MIN_VER. This is set by rust_pkg_setup.
+
+# @ECLASS_VARIABLE: RUST_TYPE
+# @OUTPUT_VARIABLE
+# @DESCRIPTION:
+# The selected Rust type for building, either 'source' or 'binary'.
+# This is set by rust_pkg_setup.
+
 # @ECLASS_VARIABLE: RUST_NEEDS_LLVM
 # @DEFAULT_UNSET
 # @DESCRIPTION:

Reply via email to