Rust requires a modern operating system (Windows 10+, macOS 10.12+, or a recent Linux distribution) and a C compiler with a linker (GCC, Clang, or Visual Studio Build Tools) to compile programs. You install the toolchain using rustup, which automatically manages the Rust compiler (rustc), package manager (cargo), and standard library.
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
On Windows, download the installer from rust-lang.org and follow the prompts to install the Visual Studio Build Tools if prompted.