rustrust-cargorustup

How can I install rustup and cargo with a toolchain for all users on Linux?


I am trying to install rustup with clippy, but I am looking way of installing for all users.

I installed rustup in /opt/setup. Whenever I switch users, I get this:

error: no default toolchain configured

If I try to install a toolchain it does not take /opt/setup, but /home/user. I specified RUSTUP_HOME and CARGO_HOME in my .bashrc file, but still it chooses /home/user. Is there a way to achieve this?


Solution

  • As of 2016-04-16:

    It does not support it now

    Even in 2017-09-10 the issue is still open, so I'd not wait for it, since installing Rust with clippy is straightforward.