Add A Cargo Crate
Cargo-installed CLI tools are managed via a list.
Preconditions
cargois installed.- You verified the crate name (for example with
cargo search <name> --limit 5).
Steps
-
Add the crate name (or a full
cargo installline) to:This installs as
~/.default-cargo-crates. -
Apply:
chezmoi apply
The hook will install missing crates and uninstall crates no longer listed:
Verification
cargo install --list
Rollback / Undo
- Remove the crate line from
home/readonly_dot_default-cargo-crates. - Re-apply:
chezmoi apply