Installation

Linux

Rustup

Install rustup

APT

WARNING

May not be the latest stable release

Update system with apt

sudo apt install cargo -y
sudo apt upgrade cargo -y

Usage

# List installed packages
cargo install --list
# Add cargo module to install binaries
cargo install cargo-binstall

Path

# Check if cargo exists in PATH
echo $PATH | grep cargo
# Updating PATH for current session
export PATH=${PATH}:/home/${USER}/.cargo/bin
# Updating PATH permanently
{
	echo '';
	echo 'export PATH=${PATH}:/home/${USER}/.cargo/bin';
} | sudo tee --append /etc/profile > /dev/null

Appendix