Installation
The recommended way to install Rust is to using rustup. If you're using macOS, Linux, or another Unix-like OS, you can run the following command in the terminal:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
On Windows, navigate to this link and follow the instructions for installing Rust.
To confirm that Rust is installed correctly, use the following command:
rustc --version
Alternate Installation Methods
If, for some reason, you don't wish to use rustup, you can explore the 'Other Rust Installation Methods' page at this link.
rustup
Rust is installed and managed by the rustup tool. Here are some useful commands you’ll often need:
- Update Rust to the latest version:
rustup update
- Uninstall Rust and
rustup:
rustup self uninstall
- Open the local Rust documentation (offline):
rustup doc
- Open the Rust Programming Language book (offline):
rustup doc --book
Introduction
Rust is a statically-typed general-purpose programming language, known for its emphasis on performance, type safety, concurrency and memory safety. It supports multiple programming paradigms - Functional, Object-oriented (OOP), Concurrent, Generic, Imperative, Structured.
Getting Started
In this page, we'll write a Hello World! program and explore cargo, which is Rust's package manager and build system.
