LukeMathWalker / LukeMathWalker/cargo-chef
cargo chef prepare always looks at dev dependencies, but those may not be relevant if building in release mode
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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