...

/

Using Cargo to Build, Check, or Run our Project

Using Cargo to Build, Check, or Run our Project

Learn how to build and execute projects in Rust.

We’ve now become familiar with Cargo. Cargo offers a few other ways to interact with our program. We can type cargo help for a full list or cargo [command] --help for detailed help about a command’s options. We can:

  • Quickly check to see if a project is valid by typing cargo check. This checks our project and its dependencies for basic structural errors, typically much faster than a full build.

  • Compile without running our project with cargo build.

  • Remove the entire ...