Crates.io | roslibrust_codegen_macro |
lib.rs | roslibrust_codegen_macro |
version | 0.11.1 |
source | src |
created_at | 2022-08-28 20:57:47.505509 |
updated_at | 2024-10-17 19:42:51.161897 |
description | Provides macro-based message generation for roslibrust |
homepage | |
repository | https://github.com/Carter12s/roslibrust |
max_upload_size | |
id | 654066 |
size | 5,388 |
This crate defines the proc-macro for generating ROS message types. It invokes APIs from the roslibrust_codegen
crate.
This macro cannot detect if the message files it generates from have changed. If you are creating a crate which just contains your message definitions and won't be recompiled otherwise, you'll likely want to use roslibrust_codegen
with a build.rs
script.
If you're generating messages in an environment with ROS installed, no arguments need to be passed.
use roslibrust_codegen_macro::find_and_generate_ros_messages;
find_and_generate_ros_messages!();
If you're generating without ROS installed or your environment can't depend on the ROS_PACKAGE_PATH
variable, you can specify additional paths to search:
use roslibrust_codegen_macro::find_and_generate_ros_messages;
find_and_generate_ros_messages!("/path/to/my/msg/package", "/opt/ros/noetic");