ros_add

Crates.ioros_add
lib.rsros_add
version0.1.6
created_at2025-08-04 17:47:20.117426+00
updated_at2025-08-25 07:17:19.112179+00
descriptionThe Purpose of the Package is to provide the `cargo ros_add` command to add dependencies to `Cargo.toml` and the `package.xml`
homepage
repositoryhttps://gitlab.com/rust_projects3505446/ros_add#
max_upload_size
id1780988
size63,916
Guelakais (Guelakais)

documentation

https://docs.rs/ros_add

README

Crates.io Docs Downloads Installs License Pipeline Status Rust

cargo ros-add - ROS Dependency Management Tool

Cargo subcommand for adding dependencies to ROS Rust packages, handling both package.xml and Cargo.toml files automatically.

Installation

cargo install ros-add

Usage

cargo ros-add <dependency_name>

This will:

  1. Add the dependency to your package.xml file
  2. Attempt to add the dependency to Cargo.toml with a wildcard version (*)

Features

  • Automatic XML Handling: Adds depend elements to package.xml while preserving formatting
  • Dual Configuration: Updates both ROS (package.xml) and Rust (Cargo.toml) dependency files
  • Idempotent Operation: Won't duplicate existing dependencies
  • Error Handling: Provides clear error messages for common issues

Examples

Add a standard ROS dependency:

cargo ros-add roscpp

Add a custom ROS package dependency:

cargo ros-add my_custom_msgs

Requirements

  • Rust toolchain (cargo)
  • Existing ROS package with package.xml and Cargo.toml files

Limitations

  • Requires the package to have a valid package.xml file
  • Supports all ros2 package.xml format 3 dependency types like:
    • build_depend
    • build_export_depend
    • buildtool_depend
    • buildtool_export_depend
    • exec_depend
    • depend
    • doc_depend
    • test_depend
    • conflict
    • replace

Contributing

Contributions are welcome! Please open an issue or pull request on Gitlab.

License

Apache-2.0

Commit count: 0

cargo fmt