Skip to content

Instantly share code, notes, and snippets.

@seanjensengrey
Last active January 19, 2016 17:59
Show Gist options
  • Save seanjensengrey/07bb8ae5397a81d39321 to your computer and use it in GitHub Desktop.
Save seanjensengrey/07bb8ae5397a81d39321 to your computer and use it in GitHub Desktop.
Multirust Install

Multirust is a system for managing multiple installs of the Rust compiler and Cargo, the Rust package manager.

By default multirust installs into /usr/local, we will be installing into our home directory to avoid giving multirust any unneccesary privledges.

  1. Install GPG for checking compiler signatures, brew install gpg
  2. Clone the repo, git clone https://github.com/brson/multirust.git
cd multirust
mkdir ~/rustbase
./build.sh
./install.sh --prefix=~/rustbase

Add ~/rustbase/bin/ to your PATH

Making stable your default compiler

multirust default stable
rustc --version

rustc 1.5.0 (3d7cd77e4 2015-12-04)

Using nightly in a specific directory

git clone https://github.com/ruud-v-a/robigo-luculenta.git
cd robigo-luculenta
multirust override nightly
cargo build
rustc --version

rustc 1.7.0-nightly (d0bac3f14 2016-01-18)

Testing against 1.0.0

multirust update 1.0.0
multirust override 1.0.0
rustc --version

rustc 1.0.0 (a59de37e9 2015-05-13) (built 2015-05-14)

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