Skip to content

Conversation

@gsokoll
Copy link
Contributor

@gsokoll gsokoll commented Jan 6, 2026

Add blocklist patterns to generate_bindings.py to prevent bindgen from generating typesupport function declarations that clash with vendored message crates (rosidl_generator_rs generates these with *const c_void).

Remove existing duplicate extern declarations from all 4 generated binding files for:

  • rosidl_typesupport_c__get_message_type_support_handle__action_msgs__*
  • rosidl_typesupport_c__get_service_type_support_handle__action_msgs__*

Also fix clippy useless_vec warning in build.rs.

Closes #559

Add blocklist patterns to generate_bindings.py to prevent bindgen from
generating typesupport function declarations that clash with vendored
message crates (rosidl_generator_rs generates these with *const c_void).

Remove existing duplicate extern declarations from all 4 generated
binding files for:
- rosidl_typesupport_c__get_message_type_support_handle__action_msgs__*
- rosidl_typesupport_c__get_service_type_support_handle__action_msgs__*

Also fix clippy useless_vec warning in build.rs.

Closes ros2-rust#559
@esteve esteve force-pushed the fix/clashing-extern-declarations branch from 6b7d897 to 9b7cab2 Compare January 14, 2026 18:57
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.

@gsokoll thanks! LGTM, waiting for CI to finish

@esteve esteve merged commit 7517fb7 into ros2-rust:main Jan 14, 2026
9 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.

Duplicate extern declarations causing clashing_extern_declarations warnings

2 participants