mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-10 20:49:31 +01:00
851533f256
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
20 lines
603 B
Text
20 lines
603 B
Text
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-clippy cargo-fmt cargo-miri clippy-driver \
|
|
rls rust-gdb rust-lldb rustc rustdoc rustfmt
|
|
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"
|