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.
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: 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. ```
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT