Skip to content

Really update to edition 2024 #187

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

simo5
Copy link
Member

@simo5 simo5 commented Mar 18, 2025

Requires updating bindgen to 0.71 as well.

Description

Somehow the previous PR ended up missing the critical change to Cargo.toml that actually really switched editions, even though the migration preparation work was all done.

Checklist

  • Test suite updated with functionality tests
  • Test suite updated with negative tests
  • Documentation was updated
  • This is not a code change

Reviewer's checklist:

  • Any issues marked for closing are fully addressed
  • There is a test suite reasonably covering new functionality or modifications
  • This feature/change has adequate documentation added
  • A changelog entry is added if the change is significant
  • Code conform to coding style that today cannot yet be enforced via the check style test
  • Commits have short titles and sensible text

Requires updating bindgen to 0.71 as well.

Signed-off-by: Simo Sorce <[email protected]>
@simo5 simo5 requested a review from Jakuje March 18, 2025 12:00
@simo5 simo5 mentioned this pull request Mar 18, 2025
10 tasks
@Jakuje
Copy link
Contributor

Jakuje commented Mar 18, 2025

sounds like there are a bit more places that need to be fixed to really work. Sorry I missed that initially.

@simo5 simo5 marked this pull request as draft March 18, 2025 13:37
@simo5
Copy link
Member Author

simo5 commented Mar 18, 2025

Unfortunately bindgen is still not 2024 compliant.
For example it still misses to properly escape the new "gen" keyword.

These bindings make bindgen emit a special  __BindgenBitfieldUnit
structure and code that are not 2024 edition safe yet. Because we
do not need any of the structures and unions that cause this, let's just
mask them out for now by turning these structus into opaque sized blobs.

Signed-off-by: Simo Sorce <[email protected]>
@simo5
Copy link
Member Author

simo5 commented Mar 18, 2025

I guess we'll keep this feature in draft for a little while longer, given c10s and some Fedora versions do not have a rust version new enough anyway.

@simo5 simo5 added enhancement New feature or request deferred Will be finished later labels Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deferred Will be finished later enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants