Giter Club home page Giter Club logo

rustup's Introduction

Build Status

The rustup.sh script installs Rust from the Rust release channels.

This script is most often run directly from the web.

curl -sf https://static.rust-lang.org/rustup.sh | sudo sh

Features:

  • Install from stable, beta, or nightly channels.
  • Install from the archives.
  • Verifies hashes.
  • Verifies signatures (if gpg is available).
  • Resumes downloads.
  • For Linux and OS X (Windows support someday).

Examples

Download and install the default channel, currently beta.

rustup.sh

Install to a particular location.

rustup.sh --prefix=my/install/dir

Save downloads for faster re-installs.

rustup.sh --save

Install nightly.

rustup.sh --channel=nightly

Install nightly archives.

rustup.sh --channel=nightly --date=2015-04-09

Install explicit versions.

rustup.sh --revision=1.0.0-beta

Using custom downloader

export RUSTUP_DOWNLOADER="aria2c -c -j 10 -x 10 -s 10 --min-split-size=1M --connect-timeout=600 --timeout=600 -m0" 
export RUSTUP_DOWNLOADER="axel -n 5 --alternate" 

Future work

  • GC old temp and cache files.
  • Error on unknown command line options.
  • Do cleanup of in-use temp files on trap.
  • Don't clobber multirust if it is installed at the destination prefix.

License

This software is distributed under the terms of both the MIT license and/or the Apache License (Version 2.0), at your option.

See LICENSE-APACHE, LICENSE-MIT for details.

rustup's People

Contributors

brson avatar alexcrichton avatar lilyball avatar sourcefrog avatar canndrew avatar adfernandes avatar chris-morgan avatar cuviper avatar mriehl avatar steveklabnik avatar spacemaniac avatar valentintrinque avatar fishman2009 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.