Install this package:
emerge -a dev-lang/rust
If the package is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask dev-lang/rust
Or alternatively:
emerge --autounmask-write -a dev-lang/rust
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.94.1 | 8 | ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 | 1.94.1 |
<pkgmetadata> <maintainer type="project"> <email>rust@gentoo.org</email> <name>Rust Project</name> </maintainer> <use> <flag name="clippy">Install clippy, Rust code linter</flag> <flag name="dist">Install dist tarballs (used for bootstrapping)</flag> <flag name="miri">Install miri, an interpreter for Rust's mid-level intermediate representation (requires USE=nightly, sometimes is broken)</flag> <flag name="mrustc-bootstrap">Use <pkg>dev-lang/mrustc</pkg> to build the bootstrap Rust sysroot from this package's source</flag> <flag name="nightly">Enable nightly (UNSTABLE) features (NOTE: it does not install nightly version, just enables features marked as nightly at time of release)</flag> <flag name="parallel-compiler">Build a multi-threaded rustc (experimental, not tested by upstream)</flag> <flag name="rust-analyzer">Install rust-analyzer, A Rust compiler front-end for IDEs (language server)</flag> <flag name="rust-src">Install rust-src, needed by developer tools and for build-std (cross)</flag> <flag name="rustfmt">Install rustfmt, Rust code formatter</flag> <flag name="system-llvm">Use the system LLVM installation</flag> <flag name="wasm">Build support for the wasm32-unknown-unknown target</flag> </use> <upstream> <remote-id type="github">rust-lang/rust</remote-id> </upstream> </pkgmetadata>
Manage flags for this package:
euse -i <flag> -p dev-lang/rust |
euse -E <flag> -p dev-lang/rust |
euse -D <flag> -p dev-lang/rust
| Flag | Description | 1.94.1 |
|---|---|---|
| ${ALL_LLVM_TARGETS[*]} | ⚠️ | ✓ |
| ${ALL_RUST_SYSROOTS[*]} | ⚠️ | ✓ |
| big-endian | ⚠️ | ✓ |
| clippy | Install clippy, Rust code linter | ⊕ |
| cpu_flags_x86_sse2 | ⚠️ | ✓ |
| debug | ⚠️ | ✓ |
| dist | Install dist tarballs (used for bootstrapping) | ✓ |
| doc | ⚠️ | ⊕ |
| llvm-libunwind | ⚠️ | ✓ |
| lto | ⚠️ | ✓ |
| miri | Install miri, an interpreter for Rust's mid-level intermediate representation (requires USE=nightly, sometimes is broken) | ✓ |
| rust-analyzer | Install rust-analyzer, A Rust compiler front-end for IDEs (language server) | ✓ |
| rust-src | Install rust-src, needed by developer tools and for build-std (cross) | ✓ |
| rustfmt | Install rustfmt, Rust code formatter | ⊕ |
| system-llvm | Use the system LLVM installation | ⊕ |
| test | ⚠️ | ✓ |
| Type | File | Size | Versions |
|---|---|---|---|
| DIST | rustc-1.94.1-src.tar.xz | 274077388 bytes | 1.94.1 |
| DIST | rustc-1.94.1-src.tar.xz.asc | 801 bytes | 1.94.1 |
| Type | File | Size |
|---|---|---|
| DIST | rust-patches-1.94.1.tar.bz2 | 3152 bytes |