A crate is a compilation unit in Rust. A crate can be compiled into a binary or into a library. Most of the time, you will be using cargo
to manage external dependencies. Adding a dependency can be as simple as adding a line to your Cargo.toml
file.