asdf and Rust Plugin
asdf is a single CLI tool for managing multiple runtime versions. It extend with a simple plugin system to install your favourite language: Dart, Elixir, Flutter, Golang (Go), Java, Node.js, Python, Ruby …
Rust is a language empowering everyone to build reliable and efficient software.
This article is about how to use
asdf and Rust plugin to install multiple Rust versions on macOS with the Homebrew package manager.
Xcode Command Line Tools
The Xcode Command Line Tools Package is a small self-contained package available for download separately from Xcode and that allows you to do command line development in macOS which is consists of the macOS SDK and command-line tools such as Clang, which are installed at this
For more information about installing and using Xcode Command Line Tools, see the Xcode Command Line Tools
Homebrew is the Missing Package Manager for macOS (or Linux).
For more information about installing and using Homebrew, see the Homebrew - https://brew.sh/.
Install asdf dependencies
asdf Rust Plugin
Install Rust plugin requirements
List all Rust Version
Update Rust plugin.
asdf plugin update rust
List all Rust versions.
asdf list all rust
Install Rust version
Install a Rust version manually.
asdf install rust 1.50.0
Or install another version.
asdf install rust 1.49.0
The source for Rust’s standard library can be obtained by running
rustup component add rust-src. It will be downloaded to the
<toolchain root>/lib/rustlib/src/rust directory of the current toolchain.
rustup component add rust-src