June 2021
Beginner
344 pages
8h 9m
English
You’ve already used Cargo to run your project, in Run Hello, World. Cargo offers a few other ways to interact with your program. You can type cargo help for a full list, or cargo [command] --help for detailed help about a command’s options. You can:
Quickly check to see if a project is valid by typing cargo check. This checks your project and its dependencies for basic structural errors. This is typically a lot faster than a full build.
Compile—but do not run—your project with cargo build.
Remove the entire target directory (into which compiled code is placed) with cargo clean.
Cargo provides a few options to customize your build setup.
When you execute cargo run or ...
Read now
Unlock full access