{"id":28206342,"url":"https://github.com/colcon/colcon-ros-cargo","last_synced_at":"2025-08-04T19:43:08.877Z","repository":{"id":39880022,"uuid":"383592487","full_name":"colcon/colcon-ros-cargo","owner":"colcon","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-06T04:28:20.000Z","size":31,"stargazers_count":10,"open_issues_count":7,"forks_count":12,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-06-29T20:46:37.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colcon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-06T20:37:29.000Z","updated_at":"2025-03-18T07:23:56.000Z","dependencies_parsed_at":"2024-09-09T13:40:50.190Z","dependency_job_id":"3805c486-5755-4693-aaa3-b0cf6aec4404","html_url":"https://github.com/colcon/colcon-ros-cargo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/colcon/colcon-ros-cargo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colcon%2Fcolcon-ros-cargo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colcon%2Fcolcon-ros-cargo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colcon%2Fcolcon-ros-cargo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colcon%2Fcolcon-ros-cargo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colcon","download_url":"https://codeload.github.com/colcon/colcon-ros-cargo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colcon%2Fcolcon-ros-cargo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263120803,"owners_count":23416886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-17T10:09:39.796Z","updated_at":"2025-07-02T10:32:18.484Z","avatar_url":"https://github.com/colcon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# colcon-ros-cargo\nBuild cargo projects with colcon.\n\n\n## Usage\nPackages need to have a `package.xml` in addition to `Cargo.toml`. You should see such packages classified as `ament_cargo` in the output of `colcon list`. If they are classified as `ros.ament_cargo` instead, the `colcon-ros-cargo` extension has not been found by `colcon`. Make sure that you have built and loaded (`source install/setup.bash`) the extension. \n\nSimply list dependencies (other `ament_cargo` packages or message packages) in `Cargo.toml` and `package.xml` as if they were hosted on crates.io. `colcon-ros-cargo` will find the dependencies and create a `.cargo/config.toml` file that helps cargo find these packages.\n\nExtra arguments to `cargo` can be passed via the `--cargo-args` option, e.g. `colcon build --cargo-args --release`.\n\nAfter building, run binaries with `ros2 run`.\n\n`colcon-ros-cargo` also aims to support using `cargo` directly as the primary build tool. Just build with `colcon` once, to make sure all non-Cargo dependencies are built and the `.cargo/config.toml` file exists, and then using `cargo` will just work – `cargo build`, `cargo clippy`, `cargo doc`, etc. When the dependency graph changes, rebuild with `colcon`.\n\n\n## Limitations\nThis is by far not a perfect build system.\n\nNotably, there is _quadratic_ build cost as a function of the dependency chain length. To illustrate this, assume there are packages A, B and C, where C depends on B and B depends on A. If colcon builds this workspace, it builds A first, then B, then C. However, Cargo will _also_ build all the dependencies, i.e., to build B, Cargo will build A again, and to build C, it will build A and B again.\n\n`colcon test` is not yet supported.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolcon%2Fcolcon-ros-cargo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolcon%2Fcolcon-ros-cargo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolcon%2Fcolcon-ros-cargo/lists"}