From the course: Rust Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Crates
- In rust, the term crate is used to describe a collection of Rust source code files. And crates come in one of two possible flavors. A binary crate contains the code you can compile to produce an executable program. Although I haven't been referring to them as crates. All of the programs we write in this course are technically binary crates with a main.rs source file. The other type of crates are called libraries. The library itself isn't really a program but it's a collection of code that's intended to be used in other programs. Creating your own library crates goes beyond the scope of this course, but we will look at how to bring existing third-party libraries into your program. Crates.io is the official registry for crates from the Rust community. If your program needs something that's not included in the standard library, there's a reasonable chance you'll be able to find it on crates.io. For example, as of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.