As part of the effort to get Rust working with ROS 2, I’ve been trying to design a package that will allow things generated by Cargo to get written to the Ament index (see the ament_cargo_plugin project). Unfortunately, I’m getting stymied by both by not knowing exactly how Ament operates and wants everything organized, and also by Cargo’s opinions on the order everythign should be done during a build process.
From what I understand, Ament wants empty files placed at certain areas of a directory in order to indicate package availability? And I think it wants it done after compilation has been done? This would come into slight conflict with how Cargo build scripts work, since the build script is executed before compilation.
Would any Ament and/oror Cargo/Rust enthusiasts be willing to work with me on this project? I feel like it’s one of the missing components for getting Rust support for Ros 2. Being able to trigger Rust builds via Colcon would be very important, I feel.
And I apologize if this should have been on Ros Answers instead. I put it here so that a discussion could be formed. And so that other people might be able to wander by here and see the nitty-gritty of Ament and Cargo.