LukeMathWalker / LukeMathWalker/cargo-chef

Feature request: `cargo-chef` support for patches

Open
#64 4 comments 1 reaction 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

Howdy! I work in a medium-large workspace that includes [patches](https://doc.rust-lang.org/edition-guide/rust-2018/cargo-and-crates-io/replacing-dependencies-with-patch.html) to a couple of dependencies (can provide a minimal example if that would be helpful). When trying to use `cargo chef cook`, it doesn't seem like the patches are included or applied---I'm seeing compilation errors.

Would it be possible to add [rust-patches](https://doc.rust-lang.org/edition-guide/rust-2018/cargo-and-crates-io/replacing-dependencies-with-patch.html) support to `cargo-chef`?

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 with the cargo chef cook workflow and the Rust Cargo patch documentation linked in the issue. Reproduce the failure with a workspace that uses dependency patches, then verify that cargo chef cook applies those patches and the workspace compiles successfully.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.