Simple play icon Course

Packages, Crates, and Modules in Rust

by Mike Woodring

This course will teach you how to organize Rust applications, split them into libraries ("crates"), use libraries written by other Rustaceans, and share your own libraries with the Rust community.

What you'll learn

In practice, production grade Rust code is developed using a higher order build and package manager utility. In this course, Packages, Crates, and Modules in Rust, you’ll learn how to create, use, update and publish modular libraries (crates) in Rust. First, you’ll explore Rust’s model for modular code segregation and reuse: crates and modules. Next, you’ll learn how to use Rust’s package manager, Cargo, to create new packages and leverage external libraries. You’ll then explore Rust’s facilities for working with larger projects: workspaces and features. Finally, you’ll learn how to use Cargo to publish modular libraries that other developers in the Rust ecosystem can leverage in their projects. When you’re finished with this course, you’ll have the skills and knowledge needed to build, use, and share modular libraries in Rust.

About the author

Mike was the Head of Curriculum at Pluralsight, where he led the team that drove the vision and strategy for delivering world class technical content for professional technologists around the world working as developers, architects, IT operations professionals and data scientists and analysts. A former Microsoft C# MVP and multiple U.S. patent holder, Mike has over 20 years of experience developing high performance software systems and training developers around the world.

Ready to upskill? Get started