cargo-chef
« Back to VersTracker
Description:
Cargo subcommand to speed up Rust Docker builds using Docker layer caching
Type: Formula  |  Latest Version: 0.1.73@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust docker cargo caching devops build-tool
Install: brew install cargo-chef
About:
cargo-chef is a Cargo subcommand that optimizes Docker builds for Rust projects. It analyzes your project's dependency graph to create a layer containing only your dependencies, allowing them to be cached and reused between builds. This dramatically speeds up development iteration by avoiding recompiling unchanged dependencies.
Key Features:
  • Intelligent dependency layering for Docker
  • Seamless integration with existing Cargo workflows
  • Significantly reduces build times in CI/CD pipelines
  • Supports both cooking and preparing build steps
Use Cases:
  • Optimizing Docker image builds for Rust applications
  • Reducing CI/CD pipeline execution time
  • Improving developer productivity during containerized development
Alternatives:
  • cargo-build-deps – Less sophisticated approach that may not handle all dependency scenarios as robustly
  • Manual Docker layer caching – Requires more boilerplate and manual optimization, error-prone
License: Apache-2.0 OR MIT
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Oct 3, 2025 10:53am 0 VERSION_BUMP 92590128
Sep 12, 2025 5:47pm 0 VERSION_BUMP 9d40e1b8
Jan 13, 2025 10:51am 0 VERSION_BUMP 15cdf17e
Jan 12, 2025 2:07pm 0 VERSION_BUMP 773591fa
Jan 12, 2025 1:51pm 0 VERSION_BUMP 3efe4b9c