mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-04 15:48:39 +00:00
Move package list from config/asdf/cargo-packages into install-cargo-packages.sh as a bash array and remove the external file. Update documentation accordingly.
660 B
660 B
install-cargo-packages
Install Rust packages defined in the script.
Usage
scripts/install-cargo-packages.sh
What it does
- If
cargo-install-updateis available, updates all existing packages first and tracks which packages are already installed. - Installs each package from the inline list using
cargo install, skipping any already handled by the update step. Builds run in parallel using available CPU cores (minus two). - Runs package-specific post-install steps.
- Cleans the cargo cache with
cargo cache --autoclean.
To add or remove packages, edit the packages array in scripts/install-cargo-packages.sh.