Skip to content

Module System

Terms1

  • Packages: A Cargo feature that lets you build, test, and share crates
  • Crates: A tree of modules that produces a library or executable
  • Modules and use Let you control the organization, scope, and privacy of paths
  • Paths: A way of naming an item, such as a struct, function, or module

  1. Klabnik, Steve. The Rust Programming Language. No Starch Press, Inc, 2018.