Lists all direct dependencies (name+version) of current cargo project.
# ~/.zshrc
alias cargo-list="cargo tree --prefix depth | rg '^1.*' | xargs -I % echo % | sd '^\d' ''"Example Output
# being in dir with Cargo.toml
❯ cargo-list
bytes v1.0.1
env_logger v0.8.3
futures v0.3.14
log v0.4.14 (*)
prost v0.7.0
quick-error v2.0.0
tokio v1.5.0
tonic v0.4.2
url v2.2.1
uuid v0.8.2
warp v0.3.1
tonic-build v0.4.2