Preface
Rust Package Manager (Cargo) Study Notes
Check version
List all commands
View help
View help for a specific subcommand
<sub_command>
: Subcommand
1
| cargo <sub_command> --help
|
Create a Rust project maintained by Cargo
<project_name>
: Project name
1
| cargo new <project_name>
|
Check the project
- Check for errors in the project without compiling the source code
Compile the current project
Compile and execute the current project
Clean the project
- Delete all directories and files in the
target
directory
Update all dependencies of the project
- Update all dependencies listed in the
Cargo.lock
file in the project directory
Completion
References
Bilibili - Focused Learning for Salary Increase