Crates.io | ros_new |
lib.rs | ros_new |
version | 0.1.2 |
created_at | 2025-07-13 19:56:28.880502+00 |
updated_at | 2025-08-21 16:11:20.131212+00 |
description | Cargo plugin to create new ROS2 Rust packages with package.xml |
homepage | https://gitlab.com/rust_projects3505446/ros_new |
repository | https://gitlab.com/rust_projects3505446/ros_new |
max_upload_size | |
id | 1750753 |
size | 52,042 |
A Cargo plugin for creating new Rust packages with ROS package.xml
files.
cargo new
with all its featurespackage.xml
file with:
cargo new
options:
--bin
/--lib
)--edition
)--vcs
)Install from crates.io
:
cargo install cargo-ros-new
cargo ros-new my_package
This will create:
my_package
package.xml
file with default valuescargo ros-new my_package \
--maintainer "John Doe" \
--mail "john@example.com" \
--license "MIT" \
--description "My awesome ROS package" \
--edition 2024 \
--vcs git
You can also use it as a regular Cargo subcommand:
cargo new --ros my_package
The following default values are used if not specified:
If you have Nix installed, you can build and enter a development environment with:
nix develop
Then build with:
cargo build
Standard Rust build process:
cargo build
Apache-2.0
Contributions are welcome! Please open issues or merge requests on our GitLab repository.
The generated packages are compatible with ROS 2 and the Ament build system through the ament_cargo
build type.