Installation
Learn how to install Rust on your system and get started with development.
Why Rust?
Rust is a systems programming language that focuses on performance, safety, and concurrency. It helps you write fast and secure code, making it ideal for building high-quality software.
Getting Started
To install Rust, we recommend using rustup
, a toolchain installer for Rust. rustup
not only installs Rust but also allows you to manage different versions of the compiler and libraries.
Install Rust with rustup
Open your terminal and run the following command for Linux/macOS:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
For Windows, you can download an installer from the official Rust website.
Verify Your Installation
After the installation completes, verify rust is installed correctly by running:
rustc --version
Create Your First Rust Project
Now that Rust is installed, create a new Rust project by running:
cargo new hello-world cd hello-world
You can run this project with:
cargo run
Explore More
Check out the Rust programming documentation and guides to learn more. You can also join the Rust community to get help with your questions and connect with other Rustaceans.
Happy coding in Rust!