1 min read 72 words Updated Sep 24, 2026 Created Sep 24, 2026
#CLI#Programming#Rust

For Rust in the terminal, cargo and rustcare important to know.
Get versions of both (should be the same):

cargo version

rustc --version

cargo clean removes build artifacts
cargo search search a package in the registry, by default crates.io
cargo update updates dependencies, but only writes it to the lockfile, Cargo.lock, not the actual Cargo.toml.

A helper for managing dependencies: cargo install cargo-edit

Self-updating rust and dependencies: rustup update

Update global deps: