LukeMathWalker / LukeMathWalker/cargo-chef
`cargo install cargo-chef --locked` will not install on rust < 1.88 for versions > 0.1.74
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.7k
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Description
The edition flag in `cargo-chef` is still 2018. However, there are dependencies which are no longer compatible with edition 2018 (specifically `cargo-platform`). The version of that dependency should be locked to maintain this crate's ability to be installed on 2018 toolchains, or the edition flag bumped to reflect reality.
I know rust 1.86 is long in the tooth now, and we can install v0.1.75 which still compiles, but this is more about just ensuring that the metadata is aligned with reality. Thanks!
```
❯ cargo install cargo-chef --locked
Installing cargo-chef v0.1.77
Downloaded cfg-expr v0.20.6
Downloaded dissimilar v1.0.10
Downloaded jiff v0.2.22
Downloaded toml_datetime v1.0.0+spec-1.1.0
Downloaded env_filter v1.0.0
Downloaded env_logger v0.11.9
Downloaded toml v1.0.3+spec-1.1.0
Downloaded target-spec v3.5.7
Downloaded zerocopy v0.8.40
Downloaded toml_parser v1.0.9+spec-1.1.0
Downloaded 10 crates (1.3 MB) in 1.68s
error: failed to compile `cargo-chef v0.1.77`, intermediate artifacts can be found at `/var/folders/5c/bwfp2wmd44bgv46b__c6lm1h0000gn/T/cargo-installxuGVIM`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Caused by:
rustc 1.86.0 is not supported by the following package:
cargo-platform@0.3.2 requires rustc 1.88
```
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
Reproduce the failure with `cargo install cargo-chef --locked` on Rust 1.86. Inspect cargo-chef's dependency metadata and locked dependency versions, focusing on cargo-platform and the crate's stated edition. Done means versions above 0.1.74 can install on the supported 2018 toolchains while the metadata accurately reflects compatibility.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 70/100