Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use rustup.rs instead of rustup.sh for language: rust projects #7276

Closed
gifnksm opened this issue Feb 5, 2017 · 5 comments
Closed

Use rustup.rs instead of rustup.sh for language: rust projects #7276

gifnksm opened this issue Feb 5, 2017 · 5 comments

Comments

@gifnksm
Copy link

gifnksm commented Feb 5, 2017

Currently, for rust project, rustup.sh is used, but rust's official installation tool has been changed to rustup.rs.

rustup.rs supports more functions than rustup.sh such as cross compiling. I saw many Travis users generating cross compiled binaries on Travis with installing rustup.rs by their own.

@BanzaiMan BanzaiMan added the rust label Feb 5, 2017
@BanzaiMan
Copy link
Contributor

How does this affect Rust builds? We download rustup.sh to install the version of Rust specified. Nowhere else is it used. Are you just requesting that rustup.rs be available for your builds?

@phil-opp
Copy link

rustup.rs is the official installation tool now and completely replaces rustup.sh (see the Readme of rustup.sh).

rustup.rs provides additional functionality after installation. For example, one can add cross compile to android through rustup target add arm-linux-androideabi. It is also possible to download the corresponding Rust source code through rustup component add rust-src (this is needed by tools such as xargo).

To use these features at the moment, one has to install Rust a second time by manually executing:

curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=$TRAVIS_RUST_VERSION -y

@beefsack
Copy link

I currently need rustup.rs to install a target that works on both AWS Lambda and AWS Elastic Beanstalk (I need to target x86_64-unknown-linux-musl.)

Currently manually installing rustup.rs using the previous comment's technique but would be much easier if rustup.rs was installed and exposed.

@BanzaiMan
Copy link
Contributor

if rustup.rs was installed and exposed.

Do you mean rustup, perhaps? The curl | sh pipe will execute the install script given by https://sh.rustup.rs, which puts binaries in $HOME/.cargo/bin. The binaries installed are:

$ ls ~/.cargo/bin
cargo  rustc  rustdoc  rust-gdb  rust-lldb  rustup

@Arzte
Copy link

Arzte commented Mar 23, 2017

Whoot! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants