|
1 | 1 | # rosidl_rust |
2 | | - rosidl support for Rust |
| 2 | + |
| 3 | +rosidl support for Rust |
| 4 | + |
| 5 | +## Debian packages |
| 6 | + |
| 7 | +The Debian package build workflow publishes apt repositories to package branches |
| 8 | +named `<ubuntu-codename>-<ros-distro>`. |
| 9 | + |
| 10 | +| ROS distribution | Ubuntu distribution | Package branch | |
| 11 | +| --- | --- | --- | |
| 12 | +| Rolling | Resolute | `resolute-rolling` | |
| 13 | +| Lyrical | Resolute | `resolute-lyrical` | |
| 14 | +| Kilted | Noble | `noble-kilted` | |
| 15 | +| Jazzy | Noble | `noble-jazzy` | |
| 16 | +| Humble | Jammy | `jammy-humble` | |
| 17 | + |
| 18 | +To install the generated packages, choose the matching package branch for your |
| 19 | +ROS and Ubuntu distribution: |
| 20 | + |
| 21 | +```bash |
| 22 | +export ROS_DISTRO=rolling |
| 23 | +export PACKAGE_BRANCH=resolute-rolling |
| 24 | + |
| 25 | +echo "deb [trusted=yes] https://raw.githubusercontent.com/ros2-rust/rosidl_rust/${PACKAGE_BRANCH}/ ./" \ |
| 26 | + | sudo tee "/etc/apt/sources.list.d/ros2-rust-rosidl-rust-${PACKAGE_BRANCH}.list" |
| 27 | + |
| 28 | +echo "yaml https://raw.githubusercontent.com/ros2-rust/rosidl_rust/${PACKAGE_BRANCH}/local.yaml ${ROS_DISTRO}" \ |
| 29 | + | sudo tee "/etc/ros/rosdep/sources.list.d/1-ros2-rust-rosidl-rust-${PACKAGE_BRANCH}.list" |
| 30 | + |
| 31 | +sudo apt update |
| 32 | +rosdep update |
| 33 | +sudo apt install "ros-${ROS_DISTRO}-rosidl-generator-rs" |
| 34 | +``` |
| 35 | + |
| 36 | +Replace `ROS_DISTRO` and `PACKAGE_BRANCH` with the matching values from the |
| 37 | +table above. |
| 38 | + |
| 39 | +Generated package versions use the nearest reachable tag, the number of commits |
| 40 | +since that tag, the commit date in UTC, and the short commit SHA. For example, |
| 41 | +a package built from tag `0.4.13` sorts below the official ROS buildfarm release: |
| 42 | + |
| 43 | +```text |
| 44 | +0.4.13-0~2026.06.14.22.00+gabcdef123456 |
| 45 | +``` |
| 46 | + |
| 47 | +A package built from a newer commit after that tag sorts above the older tagged |
| 48 | +release while remaining deterministic for rebuilds of the same commit: |
| 49 | + |
| 50 | +```text |
| 51 | +0.4.13+git1-0~2026.06.15.09.30+g123456abcdef |
| 52 | +``` |
0 commit comments