When you install Rustup you’ll also get the latest stable version of the Rust build tool and package manager, also known as Cargo. Cargo does lots of things:
cargo build
cargo run
cargo test
cargo doc
cargo publish
To test that you have Rust and Cargo installed, you can run this in your terminal of choice:
cargo --version