crate
A unit of Rust code the compiler builds at once: a program or a library.
A crate is the unit of compilation: a binary crate (with main) or a library crate, built from one root source file.
Examples
cargo new hellomakes a binary crate rooted atsrc/main.rs;cargo new --lib finesmakes a library crate rooted atsrc/lib.rs.
See also