A small tool for creating ros2 rust packages is available.
I found it really tedious to build the ros2 rust packages myself every time. So over the weekend I've written a tool to do this automatically. Is this interesting for you? ros2_rust_packaging_tool
@Guelakais this is really cool, thanks!
Have you checked https://docs.ros.org/en/iron/Tutorials/Beginner-Client-Libraries/Creating-Your-First-ROS2-Package.html ? The traditional way of creating a package in ROS 2 is via the ros2 tool (i.e. ros2 pkg create ...), unfortunately it only supports packages that use the ament_cmake or ament_python build types, but it'd be really useful if it supported other build types (i.e. ament_cargo).
Perhaps you could reach out to the developers of the ros2 tool and find a way to make it extensible to any build type. The repository for the ros2 tool is https://github.com/ros2/ros2cli/tree/rolling and you can the code for ros2 pkg create at https://github.com/ros2/ros2cli/blob/rolling/ros2pkg/ros2pkg/verb/create.py
I knew the tutorial, like the ros2 command line tool and had some looks at the source code. I'm not sure if it will be expandable in the near future to support ament-cargo or other new build types. My tool isn't intended to replace the ros2 command line tool. It's more about getting more experience with Rust by building something I want to use myself.
I consider this problem to be solved.