Automic VaultAutomic Vault

brew

cargo-chef を Homebrew, apk, Nix でインストール

cargo-chef のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install cargo-chef

local Homebrew formula metadata

Linux

Alpine Linux apk確認済み · 92%
sudo apk add cargo-chef

Alpine Linux edge package indexes · cargo-chef · ソース: dl-cdn.alpinelinux.org

Nix確認済み · 92%
nix profile install nixpkgs#cargo-chef

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

概要

パッケージ概要

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

コマンドとエイリアス

  • cargo-chef

履歴

プロジェクトの歴史と使われ方

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.

プロジェクトの歴史

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.

採用の歴史

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.

使われ方

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.

パッケージ好きにとっての重要性

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.

タイムライン

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

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
cargo-chefcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版0.1.77
マネージャ更新日
ローカルデータOK
上流最新
検出された最新v0.1.77

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

  • 情報No package-manager update timestamp was available.信頼度 低

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:cargo-chef
バージョン0.1.77
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/cargo-chef
ホームページhttps://github.com/LukeMathWalker/cargo-chef
リポジトリhttps://github.com/LukeMathWalker/cargo-chef
上流ドキュメントhttps://github.com/LukeMathWalker/cargo-chef#readme
ライセンスApache-2.0 OR MIT
ソースアーカイブhttps://github.com/LukeMathWalker/cargo-chef/archive/refs/tags/v0.1.77.tar.gz
ビルド依存関係rust
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

cargo-chef

nix profile install nixpkgs#cargo-chef
  • normalized package name match
  • 一致条件: 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 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: 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
  • 一致条件: 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

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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