🚀 Installing Rust Beginner Friendly
Welcome to your first step in becoming a Rustacean! 🦀 Whether you're a complete beginner, or coming from another language, getting Rust set up on your machine is fast and easy. Let’s get you coding in no time.
rustup
?- Installs Rust, Cargo (Rust’s package manager), and more in one go
- Makes it easy to update or switch versions
- Works across macOS, Linux, and Windows
1. Install Rust
Run this command in your terminal:
2. Follow the Prompts
- Proceed with the default installation (recommended for most users).
- Press Enter to confirm.
- The installer will handle the rest.
3. Restart Your Terminal
To ensure your shell recognizes the new commands, close and reopen your terminal.
4. Verify Your Installation
If you see something like rustc 1.77.0
, you’re golden! 🌟
5. (Optional) Add Rust to PATH
If you get a command not found
error after installation:
macOS / Linux
Windows
Restart the terminal or add %USERPROFILE%.cargo\bin
to your system environment variables.
6. Keeping Rust Up to Date
To update Rust:
To install nightly or switch versions:
🤓 Pro Tip: Not ready to install just yet? Try Rust in your browser: play.rust-lang.org
🎉 What’s Next? You’ve now got Rust on your system. Next up: writing your first “Hello, World!” and diving into projects with cargo
.