clap-rs / clap

A full featured, fast Command Line Argument Parser for Rust
docs.rs/clap
Apache License 2.0
14.14k stars 1.03k forks source link

clap_dervie doesnt working on rust version 1.72.1 #5399

Closed satyakommula96 closed 6 months ago

satyakommula96 commented 6 months ago

Please complete the following tasks

Rust Version

1.71.1

Clap Version

4.5.9

Minimal reproducible code

fn main() {}

Steps to reproduce the bug with the above code

cargo msrv --linear
Fetching index
Determining the Minimum Supported Rust Version (MSRV) for toolchain x86_64-unknown-linux-gnu
Using check command cargo check
Check for toolchain '1.76.0-x86_64-unknown-linux-gnu' succeeded
Check for toolchain '1.75.0-x86_64-unknown-linux-gnu' succeeded
Check for toolchain '1.74.1-x86_64-unknown-linux-gnu' succeeded

Check for toolchain '1.73.0-x86_64-unknown-linux-gnu' failed with:
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ error: package `clap_derive v4.5.3` cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version  │
│ is 1.73.0                                                                                                                              │
│ Either upgrade to rustc 1.74 or newer, or use                                                                                          │
│ cargo update -p clap_derive@4.5.3 --precise ver                                                                                        │
│ where `ver` is the latest version of `clap_derive` supporting rustc 1.73.0                                                             │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
   Finished The MSRV is: 1.74.1   ███████████████████████████████████████████████████████████████████████████████████████████████ 00:03:23

Actual Behaviour

should work on rust version 1.72.1 also without breaking anythings

Expected Behaviour

should work on rust version1.72.1 also

Additional Context

No response

Debug Output

clap = { version = "4", features = ["derive", "cargo"] }

epage commented 6 months ago

This states it should work on 1.72 but doesn't say why.

satyakommula96 commented 6 months ago

@epage is there way to get full verbose output?

epage commented 6 months ago

Verbose output of what?

epage commented 6 months ago

Without further information, I'm closing this. Our MSRV policy is N-2 so it is within that policy to support 1.74