What is Cargo?
Cargo is the Package Manager as well as the Build System for the Rust Programming Language. It comes built-in when you install Rust using rustup.
How to know Cargo version?
- Open Terminal/Command Prompt/PowerShell.
- Type the command,
cargo --version
You should see the version details as follows,
cargo 1.71.0 (cfd3bbd8f 2023-06-08)

On the Mac you can make use of the whereis or which command to locate cargo.
Example:
% whereis cargo
cargo: /Users/c2ctech/.cargo/bin/cargo
% which cargo
/Users/c2ctech/.cargo/bin/cargo
-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Rust,
- Rust: Cargo Init vs Cargo New Command
- Rust: Write and Run Hello World! Program Example
- How to Split a String using Rust Language
- How to Sort a Vector in Rust with Examples
- Fix: error: could not find `Cargo.toml` in Users or any parent directory
- How to uninstall Rust Language from Mac/Linux/Ubuntu
- How to update Cargo (Rust Lang)
- Fix: rust-analyzer failed to discover workspace [Visual Studio Code]
- How to install Rust using rustup on macOS/Linux/Ubuntu
- Cargo Watch: To Recompile Rust Project Automatically
- Difference between rustc and cargo build commands
- How to Split a String by Space in Rust
- How to know Rust is Installed on Mac?
- Rust: zsh: no such file or directory: ./main
- How to update Rust on Mac/Linux
- List of Rust Cargo Commands
- How to find version of Cargo in Rust
- Fix: error: mismatched closing delimiter } [Rust]
More Posts:
- 17: Find Factorial of a Number - 1000+ Python Programs - Python-Programs
- The Quick Analysis Tool in Excel for Mac? - MacOS
- [fix] MySQL cj jdbc CommunicationsException: Communications link failure - Java
- Android RatingBar Example - Android
- How to Convert String to DateTime in Python - Python
- Python: Create CSV file from a List Values - Python
- How to check if a Command Exists using Bash Script - Bash
- [fix] White Screen when open Teams on Windows - Teams