Cargo Commands

To build our project we can execute cargo build anywhere in the project directory (including subdirectories!).

We can also do cargo run to build and run.

Notice that these commands will resolve all dependencies, download crates if needed, and build everything, including your crate.