You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I delete my Cargo.lock and run cargo generate-lockfile, it picks clap_builder v4.5.2 which requires rustc 1.74 or newer. However, I am on 1.71 (and cannot upgrade yet due to toolchain reasons).
I have tried specifying rust-version = "1.71" in my Cargo.toml, however, that doesn't seem to have worked (I expect it would.)
It seems like cargo should only pick dependency versions that will actually compile on my version of rustc or should obey my rust-version
Steps
No response
Possible Solution(s)
If we don't want to auto-restrict to my version of rustc (or my rust-version in my cargo.toml), I think we could add an opt-in flag to restrict dependencies to a certain rustc version
Problem
If I delete my Cargo.lock and run
cargo generate-lockfile
, it picks clap_builder v4.5.2 which requires rustc 1.74 or newer. However, I am on 1.71 (and cannot upgrade yet due to toolchain reasons).I have tried specifying
rust-version = "1.71"
in my Cargo.toml, however, that doesn't seem to have worked (I expect it would.)It seems like cargo should only pick dependency versions that will actually compile on my version of rustc or should obey my rust-version
Steps
No response
Possible Solution(s)
If we don't want to auto-restrict to my version of rustc (or my
rust-version
in my cargo.toml), I think we could add an opt-in flag to restrict dependencies to a certain rustc versionNotes
No response
Version
The text was updated successfully, but these errors were encountered: