Cargo is the package manager of Rust, and you use it to make a lot of tasks easier. For example, Cargo takes care of building your code, downloading the libraries your code depends on and building those libraries.
- [Narrator] Cargo is Rust's build system…and package manager.…And Rustecians use Cargo to manage their Rust projects…because it makes a lot of things easier.…For example, cargo take care…of building your code,…downloading the libraries your code depends on…and building those libraries.…The core libraries your code needs as dependencies.…The simplest Rust programs,…like the we've written so far,…don't have any dependencies.…
So right now you'll be using the part…of Cargo that can take care of building your code.…As you write more complex Rust programs,…you'll want to add dependencies.…And if you start off using Cargo…that will be a lot easier to do.…Let's first check if Cargo is installed in your system.…So open up your PowerShell…and type cargo space --version.…
If you'll get a version number like this,…you're good to go.…If you see an error like command not found,…then you should look at the documentation…and install Cargo separately.…Let's create a new project using cargo…and look at how it differs,…from our project in Hello_world.…
- Installing Rust
- Data types
- Adjusting memory allocation
- Setting up race conditions
- Working with functions
- Exploring references and borrowing
- Using structs
- Method syntax
- Demonstrating recoverable errors with Result
- Working with enums
- Getting user input
Skill Level Beginner
Programming Foundations: Data Structureswith Simon Allardice2h 29m Intermediate
1. Hello, Rust!
2. Basic Programming Concepts
3. Ownership in Rust
4. Data Handling and Pattern Matching in Rust
5. Error Handling
6. Sample Rust Project: The Guessing Game
Next steps1m 14s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.