No clap_derive for latest clap
Cthutu opened this issue · comments
Please complete the following tasks
- I have searched the discussions
- I have searched the open and rejected issues
Rust Version
rustc 1.77.2
Clap Version
4.5.4
Minimal reproducible code
fn main() {}
Steps to reproduce the bug with the above code
Add clap using cargo add clap -F derive
.
Actual Behaviour
error: failed to select a version for the requirement `clap_derive = "=4.5.4"`
candidate versions found which didn't match: 4.4.7, 4.4.2, 4.4.0, ...
location searched: crates.io index
required by package `clap v4.5.4`
... which satisfies dependency `clap = "^4.5.4"` (locked to 4.5.4) of package `mchat v0.1.0 (C:\Users\Matt17\mud\mchat)`
if you are looking for the prerelease package it needs to be specified explicitly
clap_derive = { version = "4.0.0-rc.1" }
perhaps a crate was updated and forgotten to be re-vendored?
Expected Behaviour
Derive feature should be added without error.
Additional Context
No response
Debug Output
Can't compile clap.
By running cargo update
, it seemed to fix itself. Not sure if it is a local issue or not.
Also tried those reproduction steps and they didn't work for me. Sometimes cargo can get into weird states when multiple dependencies are present. Were those your actual steps or was this only on an existing project?