-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backwards incompatibility for ArgMatches and UnwindSafe #3876
Comments
I'm curious, how did you find this? |
I had code which was working which is let's say a wrapper for executing binaries on worker machines and when someone from my org bumped clap in develop my code broke after rebasing |
Note: I'm assuming we'd need to add another trait bound. It gets a little awkward making a breaking change to fix a breaking change but this would be unlikely to break someone. |
By checking these types, we'll get some other types for free, like `Command` verifying `Arg`. This was inspired by clap-rs#3876
By checking these types, we'll get some other types for free, like `Command` verifying `Arg`. This was inspired by clap-rs#3876
Some thoughts in working on a fix (#3878)
|
Can we then get an interface to get all the args from ArgMatches instead so that we can pass the args in some other format across this boundary? |
That most likely is blocked on breaking changes, see #1206 |
As clap v4 is now out, I'm going ahead and closing this. |
Please complete the following tasks
Rust Version
1.60
Clap Version
between 3.1.18 and 3.2.6
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo check
Actual Behaviour
Compile should pass
Expected Behaviour
Compile fails
Additional Context
This looks like a backwards incompatibility
Debug Output
The text was updated successfully, but these errors were encountered: