Organizing Your Rust Code
The features of Rust for managing your code’s organization are collectively referred to as the module system. But after reading the docs, I feel it would be more appropriate to call it the crate system. A crate is a tree of modules, and also the smallest logicial unit of code the Rust compiler will consider. Crates come in two flavors: binary crates and library crates. Binary crates can be compiled into an executable; library crates cannot. When Rustaceans refer to crates, they usually mean library crates, which contain code intended for use within multiple projects:
Packages, Crates, and Modules - The Rust Programming Language