1. Install abrasive
Install
2. Authenticate
Run this and follow the prompts:
3. Initialize your project
From the root of any cargo project:
This writes an abrasive.toml at the root (team = "public", scope = <directory name>) and warms the remote build slot by syncing your source tree once. Edit abrasive.toml afterward if you want a different team or scope.
4. Build
From anywhere inside the project, run abrasive with the same flags you’d pass to cargo:
The first build warms the remote cache; subsequent builds across your team reuse it.
5. Set up a cargo alias (optional)
Abrasive is command-line compatible with cargo. Aliasing cargo=abrasive lets you keep typing cargo, and your existing scripts keep working too.
For bash:
For zsh, replace ~/.bashrc with ~/.zshrc. For fish:
Now cargo setup, cargo build, cargo run, etc. all route through abrasive.