slackbuilds_ponce/development/rustup
Andrew Clemons 85ef2346fc
development/rustup: Support building newer versions.
These won't build on 14.2, but this slackbuild should now support
building newer versions of rustup on -current.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2020-04-11 09:29:55 +07:00
..
README
rustup.info
rustup.SlackBuild
slack-desc

rustup - The Rust toolchain installer

To use the versions of rust installed through rustup, 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"