# New depot cargo command for accelerated Rust builds (https://depot.dev/changelog/2025-06-30-depot-cargo-command)

> Published 2025-06-30

We're excited to announce the new `depot cargo` command in the Depot CLI, available as of [v2.90.0](https://github.com/depot/cli/releases/tag/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](/products/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:

```bash
# Instead of:
cargo build --release

# Use:
depot cargo build --release
```

All standard cargo commands work, including `build`, `test`, `run`, `check`, and more.

**Example CI integration:**

```yaml
- uses: depot/setup-action@v1

- name: Build with Depot
  run: depot cargo build --release

- name: Run tests
  run: depot cargo test
```

The command automatically handles sccache setup and connection to Depot Cache, so you can focus on building great Rust projects faster than ever.

## For AI Agents

The full site index is at [llms.txt](https://depot.dev/llms.txt). Append `.md` to any documentation, blog, changelog, or customer URL to fetch its markdown source directly.