Skip to content
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 dependency bitflags from v1 to v2 #211

Merged

Conversation

LeoniePhiline
Copy link
Contributor

@LeoniePhiline LeoniePhiline commented Nov 22, 2023

This change updates bitflags from v1
to v2.

bitflags v2 no longer implements
PartialEq, Eq, PartialOrd, Ord, Hash,
Debug, Clone and Copy for generated structs
by default.

For backwards compatibility of EventMask and
WatchMask (both part of the public API)
these standard traits are deliberately derived,
in line with the rust library
API guidelines.

Implements #210.

This change updates `bitflags` from v1
to [v2][bitflags-2].

`bitflags` v2 no longer implements
`PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`,
`Debug`, `Clone` and `Copy` for generated structs
by default.

For backwards compatibility of `EventMask` and
`WatchMask` (both part of the public API)
these standard traits are deliberately derived,
in line with the rust library
[API guidelines][api-guidelines].

[bitflags-2]: https://github.com/bitflags/bitflags/releases/tag/2.0.0
[api-guidelines]: https://rust-lang.github.io/api-guidelines/interoperability.html#types-eagerly-implement-common-traits-c-common-traits
Copy link
Owner

@hannobraun hannobraun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you, @LeoniePhiline!

@hannobraun hannobraun merged commit 39b6429 into hannobraun:main Nov 22, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants