From the course: First Look: Rust

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Installation

Installation - Rust Tutorial

From the course: First Look: Rust

Start my 1-month free trial

Installation

- The first step to using Rust is to install it. We'll actually be installing Rust using rustup, a command line tool for managing Rust versions and associated tools. On Windows, head to the Rust homepage, click on install, and then you have to download the rustup-init.exe and run it. If you're on a Linux or a Mac, 99% of what you need to do is to open up a terminal and type this. If all goes well you'll see the text appear Rust is installed now, great. After installing just open up your command prompt and run the command rustup. As you can see here, the toolchain installer gives us a list of commands that we can use. Run rustup toolchain list to look at the various toolchains that are installed by default. There's usually a stable one, which is bug free and a nightly one which might have a few bugs. Rustup is smart enough to install cargo as well rust package manager. If you type cargo you can see that cargo is already installed on your machine and also the various commands that you…

Contents