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 - Rust Tutorial
From the course: Rust Programming: From Fundamentals to Advanced Concepts with AI-Assisted Development
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
-
-
-
-
-
-
(Locked)
Introduction to Rust38s
-
(Locked)
Demo: Create a new Rust project5m 37s
-
(Locked)
Demo: Overview of project files6m
-
(Locked)
Demo: Basic components of Rust code6m 27s
-
(Locked)
Demo: Variable assignment and immutability6m 17s
-
(Locked)
Demo: Basics of control flow4m 7s
-
(Locked)
Demo: Shadowing variables5m 52s
-
(Locked)
Summary of introduction to Rust47s
-
(Locked)
-
-
-
-
-
-
-
-
-