slackbuilds/development/rustup
Heinz Wiesinger 63daf9f79a All: Support $PRINT_PACKAGE_NAME env var
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
2021-07-17 21:55:09 +02:00
..
README development/rustup: Fix README. 2020-10-24 08:14:57 +07:00
offline_build.diff.gz development/rustup: Updated for version 1.23.0. 2020-11-29 01:02:58 +07:00
rustup.SlackBuild All: Support $PRINT_PACKAGE_NAME env var 2021-07-17 21:55:09 +02:00
rustup.info development/rustup: Updated for version 1.24.3. 2021-07-04 01:25:31 +07:00
slack-desc development/rustup: Updated for version 1.21.1. 2020-10-03 09:01:52 +07:00

README

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"