This article will briefly cover how to set up Rust for Rust-based projects.
Installing Rust
2. The page should automatically detect your operating system and present you with appropriate download options. Hit the button that is most appropriate for your system.
3. Once downloaded, double-click the file to start the installation process. This will open a new Shell window. Where prompted in this window, select the Standard installation option.
4. Wait for Rust to install. Once it is finished, you should receive a confirmation message.
5. To confirm Rust installed, open a new Command Prompt or Terminal window. In the window, type in the following and hit enter:
If Rust installed correctly, you should be presented with a variety of cargo options.
6. From here, the next step is to set up a code editor of your choice. You can review this article for information on installing Visual Studio Code, which is our recommendation for Rust:
How to Install Visual Studio Code
7. After setting up a code editor, you can create a new Rust project by opening Command Prompt/Terminal again, navigating to your project folder, and typing the following:
- cargo new YOURPROJECTNAME
This will create a new project folder ready for your Rust project!