-
Notifications
You must be signed in to change notification settings - Fork 677
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 bitflags to latest version #2352
Update bitflags to latest version #2352
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Firstly, this PR combines formatting changes with content changes. Don't do that. Secondly, instead of requiring the latest bitflags, can you relax the range? Maybe make the requirement "2.3" instead? That would allow cargo to choose anything from 2.3.0 or later, but not 3.0 .
Sorry about the formatting changes. I assumed this project would use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks better. Can you confirm that with this setting, cargo will let you do either cargo update -p bitflags --precise 2.3.1
or cargo update -p bitflags --precise 2.5.0
? And can you please squash your commits?
As for style settings, they're right in rustfmt.toml. But they aren't applied to Cargo.toml, only to .rs files.
Finally, you should probably add a "added" entry in the changelog dir.
Thank you for the hint.
|
That means that you have some other dependency pulling in bitflags-1.3.2. In that case, modify the commands I posted to specify the exact version of bitflags that you want to update, like this for example: |
Hi. Thank you for being patient with me. ~/RustroverProjects/nix> cargo update -p bitflags@2.3.1 --precise 2.5.0 2024-04-03T08:42:29
error: package ID specification `bitflags@2.3.1` did not match any packages
Did you mean one of these?
bitflags@1.3.2
bitflags@2.5.0
~/RustroverProjects/nix> From my original project:
As you can see, the pulled-in dependency by nix to bitflags 1.3.2 is really the issue here, while 2.3.1 appears to be updated to 2.5.0 without any issues already. Update: This can be closed. Sorry for the noise. |
What does this PR do
Update dependency of
bitflags
to latest release to avoid duplicate crate versions in serialport.Checklist:
CONTRIBUTING.md