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 --versionYou 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
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!