summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bauman <bman@gentoo.org>2020-12-16 17:48:06 -0500
committerAaron Bauman <bman@gentoo.org>2020-12-16 18:13:23 -0500
commit839fe58f53bed7ba4233bbdea87e5beebfbb8259 (patch)
tree91443b0a82308a76cce5c4e4cd87df3f0b7bdb8f /eclass/cargo.eclass
parenteclass/bazel: fixup documentation (diff)
downloadgentoo-839fe58f53bed7ba4233bbdea87e5beebfbb8259.tar.gz
gentoo-839fe58f53bed7ba4233bbdea87e5beebfbb8259.tar.bz2
gentoo-839fe58f53bed7ba4233bbdea87e5beebfbb8259.zip
eclass/cargo: fixup documentation
Signed-off-by: Aaron Bauman <bman@gentoo.org>
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r--eclass/cargo.eclass17
1 files changed, 17 insertions, 0 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 7f7a681f6f52..d1e968b4e9ce 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -9,10 +9,18 @@
# @SUPPORTED_EAPIS: 6 7
# @BLURB: common functions and variables for cargo builds
+# @VARIABLE: _CARGO_ECLASS
+# @INTERNAL
+# @DESCRIPTION:
+# If null set to 1
+
if [[ -z ${_CARGO_ECLASS} ]]; then
_CARGO_ECLASS=1
+# @VARIABLE: RUST_DEPEND
+# @DESCRIPTION:
# we need this for 'cargo vendor' subcommand and net.offline config knob
+
RUST_DEPEND=">=virtual/rust-1.37.0"
case "${EAPI:-0}" in
@@ -35,7 +43,16 @@ fi
IUSE="${IUSE} debug"
+# @VARIABLE: ECARGO_HOME
+# @DESCRIPTION:
+# Adjust the working directory
+
ECARGO_HOME="${WORKDIR}/cargo_home"
+
+# @VARIABLE: ECARGO_VENDOR
+# @DESCRIPTION:
+# Vendorize the working directory
+
ECARGO_VENDOR="${ECARGO_HOME}/gentoo"
# @ECLASS-VARIABLE: CARGO_OPTIONAL