blob: 842cd2561bbf467090eeed2c3a39685c689b5dfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
rustup - The Rust toolchain installer
If you want to use the versions of rust installed through rustup by
default for everything, you'll need to add links to the rustup binary
on your path before the system rust.
You are free to choose where, but here is an example for a single user:
mkdir -p $HOME/.rustup/shims
for lnk in cargo cargo-fmt rls rustc rustdoc rustfmt rust-gdb rust-lldb
do
(
cd $HOME/.rustup/shims
ln -s /usr/bin/rustup $lnk
)
done
Then add the directory to your path (.bashrc for example):
export PATH="$HOME/.rustup/shims:$PATH"
NOTE: rustup 1.24.3 is the latest version which will build since
1.25.0 and newer require rustc 1.61 or newer.
|