


Start with a simple program that prints "Hello, world!" on the screen. Once they're installed and set up, verify which versions of Rust and Cargo you have: $ rustc -versionĬargo 1.41.0 (626f0f40e ) Building and running Rust by hand If you prefer to use your package manager (such as DNF or Apt on Linux), look for Rust and Cargo packages in your distribution's repositories and install accordingly. You can also refer to the Install Rust webpage for more information.Īfter installing Rust and Cargo, you must source the env file: $ source $HOME/.cargo/envīetter yet, add the required directory to your PATH variable: $ source $HOME/.cargo/env Read the script to make sure you're happy with what it intends to do, and then run it: $ sh. To get the script, open a browser to and save the file. The Rust project provides a downloadable script to handle the installation. Installing Rust and Cargoīefore getting started, you need to install Rust and Cargo. The two are bundled together, so you get Cargo when you install Rust. Cargo handles a lot of tasks, like building code, downloading libraries or dependencies, and so on. In addition to being a great programming language, Rust also features a build system and package manager called Cargo. It has consistently been voted as the most-loved language on StackOverflow surveys for a few years now. Rust is a modern programming language that provides performance, reliability, and productivity.
