slackbuilds/development/rustup
Andrew Clemons 0dde9e3c9c
development/rustup: Use static.crates.io.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
2023-08-11 11:02:01 +09:00
..
README development/rustup: Updated for version 1.25.2. 2023-02-25 09:18:07 +07:00
rustup.SlackBuild development/rustup: Updated for version 1.25.0. 2023-05-06 08:28:17 +07:00
rustup.info development/rustup: Use static.crates.io. 2023-08-11 11:02:01 +09: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-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"