Automic VaultAutomic Vault

brew

Installer cargo-chef avec Homebrew, apk, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de cargo-chef pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install cargo-chef

local Homebrew formula metadata

Linux

Alpine Linux apkvérifié · 92%
sudo apk add cargo-chef

Alpine Linux edge package indexes · cargo-chef · Source: dl-cdn.alpinelinux.org

Nixvérifié · 92%
nix profile install nixpkgs#cargo-chef

nixpkgs package indexes · pkgs/by-name/ca/cargo-chef/package.nix · Source: api.github.com

aperçu

Résumé du paquet

Cargo subcommand to speed up Rust Docker builds using Docker layer caching

Commandes et alias

  • cargo-chef

historique

Historique du projet et usages

cargo-chef is a Cargo subcommand for making Rust container builds friendlier to Docker layer caching. It analyzes a project into a dependency recipe, builds that recipe in an earlier image layer, and lets later source-code-only changes reuse the expensive dependency build.

Historique du projet

The project was created by Luca Palmieri in 2020 and its README says it was initially developed for the deployment chapter of Zero to Production in Rust. The upstream repository describes the command as a way to speed up Rust Docker builds using Docker layer caching.

Its design codified a pattern Rust teams were already hand-rolling in Dockerfiles: copy manifests first, build dependencies, then copy application sources. cargo-chef made that approach workspace-aware and less fragile by generating a recipe from Cargo.toml and Cargo.lock inputs.

Historique d'adoption

cargo-chef spread through Rust backend and CI workflows because Docker build cache misses are especially painful for projects with large dependency graphs. The project publishes a prebuilt Docker image, and the crate has accumulated millions of crates.io downloads, showing adoption beyond a one-off example tool.

Packaging in Homebrew, apk, and Nix reflects its use by developers who want the subcommand available outside pure cargo-install workflows.

Modes d'utilisation

A typical workflow runs `cargo chef prepare --recipe-path recipe.json` after copying the source tree in a planner stage, then `cargo chef cook --release --recipe-path recipe.json` in a builder stage before copying the full application code.

The README emphasizes that the tool is mainly intended for container builds, not normal local development, because it writes the project skeleton needed to cache dependencies.

Pourquoi les passionnés de paquets s'y intéressent

For package managers, cargo-chef is interesting because it turns Cargo metadata into a build-cache artifact. It is a small CLI, but it sits directly at the intersection of Cargo workspaces, lockfiles, reproducible images, and CI build economics.

It is also a recognizable Rust ecosystem answer to the `requirements.txt`-style dependency layer used in other language containers.

Chronologie

  • 2020: GitHub repository created and first crates.io release published.
  • 2020: README documents its origin in Zero to Production in Rust.
  • 2025-2026: Release stream continues through the 0.1.x series, with crates.io showing more than three million downloads by June 2026.

Related projects

  • Cargo is the package manager and build tool that cargo-chef extends.
  • Docker and the official Rust container images are the primary environment targeted by the documented workflow.
  • Zero to Production in Rust is the book project that originally motivated the tool.

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucun hook post-install Homebrew n’est enregistré dans les métadonnées de formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 6 plateformes.
  • Les métadonnées de compilation listent 1 dépendances de compilation.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

exécutables

Exécutables installés

CommandeTypeExpositionNote
cargo-chefcliexécutable global

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-07-25
version du gestionnaire0.1.77
gestionnaire mis à jour
données localesOK
amontà jour
dernière version détectéev0.1.77

https://github.com/LukeMathWalker/cargo-chef

  • infoNo package-manager update timestamp was available.confiance faible

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:cargo-chef
Version0.1.77
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/cargo-chef
Page d'accueilhttps://github.com/LukeMathWalker/cargo-chef
Dépôthttps://github.com/LukeMathWalker/cargo-chef
Docs amonthttps://github.com/LukeMathWalker/cargo-chef#readme
LicenceApache-2.0 OR MIT
Archive sourcehttps://github.com/LukeMathWalker/cargo-chef/archive/refs/tags/v0.1.77.tar.gz
Dépendances de compilationrust
Bouteilledisponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
post-install Homebrewnon défini
Serviceaucun déclaré

faits du registre

Détails de la base source

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecargo-chef
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

Nix95%

cargo-chef

nix profile install nixpkgs#cargo-chef
  • normalized package name match
  • Correspondance par : Cargo Chef
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/cargo-chef/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

cargo-chef 0.1.77-r0

A cargo sub-command to build project dependencies for optimal Docker layer caching.

https://github.com/LukeMathWalker/cargo-chef

sudo apk add cargo-chef
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: cargo-chef
  • 1 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : Cargo Chef
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-chef from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

cargo-chef-doc 0.1.77-r0

A cargo sub-command to build project dependencies for optimal Docker layer caching. (documentation)

https://github.com/LukeMathWalker/cargo-chef

sudo apk add cargo-chef-doc
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: cargo-chef
  • normalized package name match
  • Correspondance par : Cargo Chef
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-chef-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment