#install #proxy #multirust

bin+lib multirust-rs

multirust in rust - manage multiple rust installations with ease

4 releases

Uses old Rust 2015

0.0.4 Oct 5, 2015
0.0.3 Oct 2, 2015
0.0.2 Oct 2, 2015
0.0.1 Sep 29, 2015

#13 in #install

34 downloads per month

MIT license

39KB
969 lines

multirust-rs

Multirust-rs is a reimplementation of multirust in rust. It provides both a command line interface, and a rust library, so it's trivial to integrate it with external tools.

Documentation

Installation

Run this command in a writable directory:

git clone --depth 1 https://github.com/Diggsey/multirust-rs.git multirust-rs && cd multirust-rs && cargo run --release install [-a]

Passing -a will attempt to automatically add ~/.multirust/bin to your PATH.

On linux, this is done by appending to ~/.profile. On windows, this is done by modifying the registry entry HKCU\Environment\PATH.

The changes to PATH will not take effect immediately within the same terminal.

The multirust-rs directory which is created is no longer required once installation has completed, but keeping it around will make future updates much faster:

cd multirust-rs && git pull && cargo run --release install

Usage

USAGE:
        multirust [FLAGS] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
    -v, --verbose    Enable verbose output

SUBCOMMANDS:
    ctl
    default             Set the default toolchain.
    delete-data         Delete all user metadata.
    doc                 Open the documentation for the current toolchain.
    help                Prints this message
    install             Installs multirust.
    list-overrides      List all overrides.
    list-toolchains     List all installed toolchains.
    override            Set the toolchain override.
    remove-override     Remove an override.
    remove-toolchain    Uninstall a toolchain.
    run                 Run a command.
    show-default        Show information about the current default.
    show-override       Show information about the current override.
    uninstall           Uninstalls multirust.
    update              Install or update a given toolchain.
    upgrade-data        Upgrade the ~/.multirust directory.
    which               Report location of the currently active Rust tool.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

Dependencies

~9.5MB
~183K SLoC