-
Notifications
You must be signed in to change notification settings - Fork 126
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
Update dev-dependecy clap to v4.0 #76
Open
g0hl1n
wants to merge
2
commits into
serialport:main
Choose a base branch
from
g0hl1n:g0hl1n_update-dep_clap
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks for this. For the time being I think we should continue to support |
Ok. So I'll keep this open and updated so we can mere it whenever it fits. Do you have any "next major release" label or 5.0 milestone where we can "attach" this? |
Remove the patch version in the dependency definition to get minor fixes automatically. This shouldn't be a problem as clap should be API stable across patch versions. There were some deprecations in the 3.2.0 and 4.0.0 release which were also fixed in this patch: ArgMatches::value_of => ArgMatches::get_one::<T> ArgMatches::is_present => ArgMatches::get_flag Arg::takes_value(true) => Arg::num_args(1) Arg::validator => Arg::value_parser Arg::possible_values => Arg::value_parser(PossibleValuesParser::new()) For more information please see the corresponding changelog at https://github.com/clap-rs/clap/blob/master/CHANGELOG.md Signed-off-by: Richard Leitner <[email protected]>
This is needed as clap v4.0.0 raised its MSRV to 1.60.0. For more information please see the changelog: https://github.com/clap-rs/clap/blob/master/CHANGELOG.md#400---2022-09-28 Or the corresponding PR: clap-rs/clap#4060 Signed-off-by: Richard Leitner <[email protected]>
g0hl1n
force-pushed
the
g0hl1n_update-dep_clap
branch
from
March 21, 2023 12:23
e7f569c
to
aeabe37
Compare
g0hl1n
added a commit
to g0hl1n/serialport-rs
that referenced
this pull request
Mar 21, 2023
This updates our direct bitflags dependency from 1.3.2 to 2.0. There are no obvious changes necessary to our code base according to the release notes [1]. Unfortunately for dev builds we now have 2 bitflags versions as clap still depends on the 1.3.2 version. To resolve this issue there is an extra PR open [2]. [1] https://github.com/bitflags/bitflags/releases [2] serialport#76 Signed-off-by: Richard Leitner <[email protected]>
g0hl1n
added a commit
to g0hl1n/serialport-rs
that referenced
this pull request
Mar 21, 2023
This allows 2.0.y bitflags versions. There are no obvious changes necessary to our code base according to the release notes [1]. Therefore this should be fine. The range is given to avoid having 2 bitflags versions as clap still depends on the 1.3.2 version. To resolve this issue there is an extra PR open [2]. As soon as this got merged we can drop the 1.3.y support. We are excluding 2.1.y releases as bitflags may change the MSRV in minor releases. [1] https://github.com/bitflags/bitflags/releases [2] serialport#76 Signed-off-by: Richard Leitner <[email protected]>
eldruin
pushed a commit
that referenced
this pull request
Mar 21, 2023
This allows 2.0.y bitflags versions. There are no obvious changes necessary to our code base according to the release notes [1]. Therefore this should be fine. The range is given to avoid having 2 bitflags versions as clap still depends on the 1.3.2 version. To resolve this issue there is an extra PR open [2]. As soon as this got merged we can drop the 1.3.y support. We are excluding 2.1.y releases as bitflags may change the MSRV in minor releases. [1] https://github.com/bitflags/bitflags/releases [2] #76 Signed-off-by: Richard Leitner <[email protected]>
sirhcel
pushed a commit
to sirhcel/serialport-rs
that referenced
this pull request
May 10, 2023
This allows 2.0.y bitflags versions. There are no obvious changes necessary to our code base according to the release notes [1]. Therefore this should be fine. The range is given to avoid having 2 bitflags versions as clap still depends on the 1.3.2 version. To resolve this issue there is an extra PR open [2]. As soon as this got merged we can drop the 1.3.y support. We are excluding 2.1.y releases as bitflags may change the MSRV in minor releases. [1] https://github.com/bitflags/bitflags/releases [2] serialport#76 Signed-off-by: Richard Leitner <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates clap dependency to its latest version (3.1.6 => 4.0).
The clap update needed some changes in the code because of function deprecation in the clap v3.2.0 and clap v4.0.0 releases.
This PR is a follow-up of #72.
MSRV
Furthermore bump the MSRV to 1.60.0 as this is required by clap v4.0.0 (see clap-rs/clap#4060). 0a74354 reduced the MSRV because of a Yocto dependency. Currently following rust versions are used in the maintained yocto project versions:
Therefore this MSRV change (1.46.0 => 1.60.0) will drop kirkstone support, which is the current LTS release, supported until April 2024 at least (according to https://wiki.yoctoproject.org/wiki/Releases).