Skip to content

Conversation

@esteve
Copy link
Collaborator

@esteve esteve commented Aug 19, 2025

This PR lets the user set the target ROS distro via RUSTFLAGS = --cfg ros_distro="<ros_distro>"

This also fixes an issue in the release-plz job that prevented it from building the crate before being published to crates.io

@esteve esteve marked this pull request as ready for review August 19, 2025 16:30
Signed-off-by: Esteve Fernandez <[email protected]>
@esteve esteve requested review from jhdcs and maspe36 August 20, 2025 05:18

[build-dependencies]
# Needed for FFI
bindgen = "0.70"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason bindgen was removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not used anymore, the bindings are generated via the generate_binding.py script, which invokes the bindgen binary.

@esteve
Copy link
Collaborator Author

esteve commented Aug 20, 2025

@maspe36 thanks for the approval. Let's hope this time it works and release-plz can push rclrs to crates.io

@esteve esteve merged commit e02e0ea into ros2-rust:main Aug 20, 2025
9 checks passed
@esteve esteve deleted the compiler-flag-ros_distro branch August 20, 2025 14:20
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.

3 participants