# Best practice Dockerfile for Rust (https://depot.dev/changelog/2024-03-30-rust-dockerfile)

> Published 2024-03-30

We've rolled out a new best practice integration guide for building Docker images for Rust. The guide is now available in our new Rust section of our docs. In the guide, we walk through how to configure a `Dockerfile` for a Rust project, including how to leverage `cargo-chef` for dependency management, use `sccache` for finer-grained caching, and use BuildKit cache mounts in Depot for even faster builds.

You can read the [complete guide in our docs.](/docs/container-builds/optimal-dockerfiles/rust-dockerfile)

## 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.