diff options
authorRahil Bhimjiani <>2023-09-29 16:49:40 +0530
committerWANG Xuerui <>2023-10-02 16:09:09 +0800
commitb5e1feb40f6a9673c4ea132819861facb3f8149c (patch)
treeef0d9fd050dac992d933b26933448dc3dd251264 /virtual/rust/rust-1.66.1-r1.ebuild
parentdev-lang/rust: Fix build with musl 1.2.4 (diff)
virtual/rust: default to rust-bin
Prefer dev-lang/rust-bin over dev-lang/rust. Keeps it consistent with virtual/{jre,jdk}. Prevent long compile times when some dependency unknowingly pulls in rust. Imagine new user (unaware of rust-bin) wanting simple app-crypt/certbot or app-admin/ansible-core but having to compile whole rust for that. Because dep graph goes like app-admin/ansible-core -> dev-python/cryptography -> virtual/rust -> dev-lang/rust [xen0n: revbumped everything for correct static dep operation] Closes: Signed-off-by: Rahil Bhimjiani <> Signed-off-by: WANG Xuerui <>
Diffstat (limited to 'virtual/rust/rust-1.66.1-r1.ebuild')
1 files changed, 23 insertions, 0 deletions
diff --git a/virtual/rust/rust-1.66.1-r1.ebuild b/virtual/rust/rust-1.66.1-r1.ebuild
new file mode 100644
index 000000000000..006314ee8c24
--- /dev/null
+++ b/virtual/rust/rust-1.66.1-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+inherit multilib-build
+DESCRIPTION="Virtual for Rust language compiler"
+# adjust when rust upstream bumps internal llvm
+# we do not allow multiple llvm versions in dev-lang/rust for
+# neither system nor bundled, so we just hardcode it here.
+KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
+RDEPEND="|| (
+ ~dev-lang/rust-bin-${PV}[rustfmt?,${MULTILIB_USEDEP}]
+ ~dev-lang/rust-${PV}[rustfmt?,${MULTILIB_USEDEP}]