New depot cargo command for accelerated Rust builds
We're excited to announce the new depot cargo command in the Depot CLI, available as of v2.90.0, which supercharges your Rust builds with the Depot Cache 🦀
The depot cargo command is a drop-in replacement for cargo that automatically configures sccache to use Depot Cache. Your Rust compilation artifacts are then automatically cached and shared across builds, dramatically speeding up your development workflow.
Usage:
Simply replace cargo with depot cargo in your commands:
# Instead of:
cargo build --release
# Use:
depot cargo build --releaseAll standard cargo commands work, including build, test, run, check, and more.
Example CI integration:
- uses: depot/setup-action@v1
- name: Build with Depot
  run: depot cargo build --release
- name: Run tests
  run: depot cargo testThe command automatically handles sccache setup and connection to Depot Cache, so you can focus on building great Rust projects faster than ever.