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

Bumb bindgen dependency to 0.70 #452

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

luca-della-vedova
Copy link
Collaborator

@luca-della-vedova luca-della-vedova commented Dec 23, 2024

Alternative to #451, fixes #449.

It turns out bindgen fully dropped the which dependency that caused the issue in the first place in 0.70 in this PR.

We can just avoid the issue altogether by bumping bindgen. Why not 0.71? Because I encountered a build error due to an outdated lock file that would be fixed by this PR that is however not released. If we were to bump to 0.71 users that have a semi-old lockfile will have a failing build.
My proposal would be, once that PR is released, to update to the version with it (most likely a 0.71.2).

Migration

The one line code diff addresses a deprecated API. Note however that it is a behavior change as noted here. The new behavior looked sensible but we can just set it to false if we want to be extra conservative

Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
@luca-della-vedova
Copy link
Collaborator Author

Incidentally this also brings the number of built crates for rclrs down to 56 from 64, so that's a nice side effect.

Copy link
Collaborator

@esteve esteve left a comment

Choose a reason for hiding this comment

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

@luca-della-vedova this is the cleanest solution in my opinion, thanks!

@esteve esteve merged commit 9a845c1 into ros2-rust:main Dec 23, 2024
6 checks passed
@luca-della-vedova luca-della-vedova deleted the luca/bump_bindgen branch December 24, 2024 02:10
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.

Rust Minimal Workflow Failing
3 participants