Back to Developer Roadmap

Modules and Crates

src/data/roadmaps/rust/content/modules--crates@Zpowr_NGd-E2DC3g-oW9h.md

4.0777 B
Original Source

Modules and Crates

Modules provide namespacing and encapsulation within a crate, organizing code with mod keyword and controlling visibility with pub. Crates are compilation units (binaries or libraries) that can depend on other crates. The module system organizes code within crates, while crates enable sharing functionality between projects.

Visit the following resources to learn more: