Rust · Concept
Modules and crates
Rust compiles code in units called crates. A package managed by Cargo can contain binary crates and optionally one library crate.
Last updated
Syntax
fn main() { /* executable crate entry point */ }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
modulesCargobinary cratelibrary crateworkspaces