Skip to content

chore: auto-generate cargo patch config for ROS message crates#28

Merged
rosterloh merged 1 commit into
devfrom
feature/gen-cargo-patches
Jul 12, 2026
Merged

chore: auto-generate cargo patch config for ROS message crates#28
rosterloh merged 1 commit into
devfrom
feature/gen-cargo-patches

Conversation

@rosterloh

Copy link
Copy Markdown
Owner

Summary

  • Add scripts/gen_cargo_patches.py (+ scripts/gen-cargo-patches.sh wrapper) to regenerate .cargo/config.toml's [patch.crates-io] block from the transitive closure of ROS 2 message crates talos-agent actually depends on, computed from the packages colcon built into rclrs_ws/install/.
  • Regenerated .cargo/config.toml, which drops nine unused crate patches (action_msgs, actionlib_msgs, composition_interfaces, example_interfaces, lifecycle_msgs, rosgraph_msgs, statistics_msgs, std_srvs, type_description_interfaces) that had accumulated from hand-maintenance.
  • Cargo.lock updated accordingly.

Rerun the script (./scripts/gen-cargo-patches.sh) whenever talos-agent/Cargo.toml's ROS message crate dependencies change, instead of hand-editing .cargo/config.toml.

Test plan

  • cargo check --workspace passes (via pixi run bash -c 'cd .. && cargo check --workspace')
  • Verified the generated patch set is a strict, correct subset of the prior hand-maintained list

🤖 Generated with Claude Code

Regenerate .cargo/config.toml's [patch.crates-io] block from the
transitive closure of ROS 2 message crates talos-agent actually
depends on, instead of hand-maintaining the list. Trims nine unused
crates that had accumulated in the config.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@rosterloh
rosterloh merged commit de56da2 into dev Jul 12, 2026
3 checks passed
@rosterloh
rosterloh deleted the feature/gen-cargo-patches branch July 12, 2026 18:52
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.

1 participant