From the course: Rust Programming: From Fundamentals to Advanced Concepts with AI-Assisted Development

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Demo: Create a new Rust project

Demo: Create a new Rust project

- [Instructor] Let's see how we can create a new Rust project. For these, we will actually be using Cargo. So make sure that you have Cargo installed in this case. I have it in my system. That's not going to be a problem. So if you've gone through the Rust stop and the installation process, you should be good to go. It is not a requirement to use cargo, however, so you can actually create the files from scratch if you want to, but there's nothing like having some automation and allowing you to make some progress very quickly by using a tool that will put everything in its right place. There are a couple of options here, and I am in a temporary directory that I've created and I've created this example. Temporary or subdirectory in my temporary directory. And there's two ways that you can go about these. The first one is if you say cargo init and you say dot. And what that does is actually utilize the same, the same working directory, but using the name of the directory as the project…

Contents