Skip to content

Conversation

@mxgrey
Copy link
Contributor

@mxgrey mxgrey commented Oct 10, 2025

Following up on ros2-rust/ros2_rust#532 there is a flaw in the way actions are generated: We use the template for messages twice side-by-side, and that template includes a use serde::{...} declaration. That means a duplicate declaration will be put in, and the Rust compiler does not like this.

This PR refactors the templates just slightly so that the message templates don't contain that declaration, and instead it exists in the outer template, exactly once in each spot where it belongs.

Signed-off-by: Michael X. Grey <greyxmike@gmail.com>
Signed-off-by: Michael X. Grey <greyxmike@gmail.com>
@esteve esteve merged commit 7127c8e into ros2-rust:main Oct 13, 2025
@mxgrey mxgrey deleted the fix_serde branch October 13, 2025 12:08
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.

2 participants