You define Cargo aliases in the [alias] section of your .cargo/config.toml file to create shortcuts for long commands. Add the alias name and the full command sequence you want to replace, then run cargo <alias> in your terminal.
# .cargo/config.toml
[alias]
build-release = "build --release"
check-all = "check --all-targets"
Run cargo build-release to compile in release mode or cargo check-all to check all targets.