Rust
Rust binaries, such as rustc
, cargo
and rustup
are installed in /opt/rust/cargo/bin
.
The following components are pre installed:
- rls
- rust-analysis
- rust-src
These components are required for the Rust language server to work.
To manage Rust components system-wide, you must invoke rustup
as root and make sure that the login environment is correctly loaded using sudo -i
. Any dependencies for a project will be installed in the user home directory and do not require root privileges.
sudo -i rustup add component rls rust-analysis rust-src