LukeMathWalker / LukeMathWalker/cargo-chef

cargo chef prepare always looks at dev dependencies, but those may not be relevant if building in release mode

Open
#114 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
2.7k
Forks
146
PR merge metrics
No merged PRs in 30d

Description

`cargo chef prepare` is failing for me because it's looking for a dev dependency it can't find during a Docker build. Since I am going to build in release mode, looking for dev dependencies seems unnecessary.

I can work around it, but it would be nice if `cargo chef prepare` had a `--release` flag corresponding to `cargo chef cook --release` which just skipped any dev dependencies.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the `cargo chef prepare` entry point and compare its dependency handling with `cargo chef cook --release`. Determine how a `--release` option should skip dev dependencies, then verify that release-mode Docker builds still prepare and cook successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, rust
Domain
build-system, devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.