https://github.com/maspe36/ament_cargo
https://github.com/maspe36/ament_cargo
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maspe36/ament_cargo
- Owner: maspe36
- Created: 2025-02-23T19:06:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-12T16:43:44.000Z (about 1 year ago)
- Last Synced: 2025-05-19T10:08:32.162Z (about 1 year ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ament_cargo
A build script dependency for registering Rust crates as ROS 2 packages in the Ament index.
The associated package needs to have a package.xml. Also, there are some additional changes required for colcon-cargo
to set environment variables that we would use within the macro. Still a WIP.
## Example
build.rs
```rust
use ament_cargo::ament_package;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
ament_package!();
}
```
Ideally, this is published to crates.io. This shouldn't need to be vendored in a workspace.