t-k / rsvm

Rust Version Manager

Home Page:http://sdepold.github.com/rsvm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rsvm

A version manager for rust.

Installation

curl https://raw.github.com/sdepold/rsvm/master/install.sh | sh

or

wget -qO- https://raw.github.com/sdepold/rsvm/master/install.sh | sh

Usage

Show the help messages. Choose the one that you like most.

rsvm help
rsvm --help
rsvm -h

Download and install a <version>. <version> could be for example "0.4".

rsvm install <version>
e.g.: rsvm install 0.4

Activate <version> for now and the future.

rsvm use <version>
e.g. rsvm use 0.4

List all installed versions of rust. Choose the one that you like most.

rsvm ls
rsvm list

Example: Install 0.4

curl https://raw.github.com/sdepold/rsvm/master/install.sh | sh
source ~/.rsvm/rsvm.sh
rsvm install 0.4
rsvm use 0.4

# you will now be able to access the rust binaries:
~ ∴ rustc -v
rustc 0.4
host: x86_64-apple-darwin

~ ∴ cargo -h
Usage: cargo <cmd> [options] [args..]

~ ∴ rustdoc -h
Usage: rustdoc [options] <cratefile>

Running the tests

RSVM is tested with bats. Install like this:

git clone https://github.com/sstephenson/bats.git
cd bats
./install.sh /usr/local

Inside the rsvm repository do this:

bats test/rsvm.sh.bats

License

Hereby placed under MIT license.

About

Rust Version Manager

http://sdepold.github.com/rsvm

License:MIT License


Languages

Language:Shell 100.0%