Skip to content

fix: let user pass compiler flag to specify the ROS distro #514

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

Merged
merged 3 commits into from
Aug 20, 2025

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 maspe36 and jhdcs August 20, 2025 05:18
@@ -43,10 +43,9 @@ tempfile = "3.3.0"
tokio = { version = "1", features = ["rt", "time", "macros"] }

[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