diff --git a/rpcl2/Cargo.toml b/rpcl2/Cargo.toml index 980be8f..d36079f 100644 --- a/rpcl2/Cargo.toml +++ b/rpcl2/Cargo.toml @@ -59,7 +59,7 @@ path = "benches/roundtrip.rs" serde = ["dep:serde", "nalgebra/serde-serialize-no-std"] rosrust_msg = ["dep:rosrust_msg", "dep:rosrust"] r2r_msg = ["dep:r2r"] -ros2-interfaces-jazzy-rkyv = ["dep:ros2-interfaces-jazzy-rkyv"] +lh = ["dep:ros2-interfaces-jazzy-rkyv"] ros2-interfaces-jazzy = ["dep:ros2-interfaces-jazzy"] rayon = ["dep:rayon"] derive = ["dep:rpcl2-derive"] diff --git a/rpcl2/src/ros.rs b/rpcl2/src/ros.rs index 7ef168e..0a24c57 100644 --- a/rpcl2/src/ros.rs +++ b/rpcl2/src/ros.rs @@ -46,7 +46,7 @@ impl From for TimeMsg { } } -#[cfg(feature = "ros2-interfaces-jazzy-rkyv")] +#[cfg(feature = "lh")] impl From for TimeMsg { fn from(time: ros2_interfaces_jazzy_rkyv::builtin_interfaces::msg::Time) -> Self { Self { @@ -85,7 +85,7 @@ impl From for HeaderMsg { } } } -#[cfg(feature = "ros2-interfaces-jazzy-rkyv")] +#[cfg(feature = "lh")] impl From for HeaderMsg { fn from(header: ros2_interfaces_jazzy_rkyv::std_msgs::msg::Header) -> Self { Self { @@ -160,7 +160,7 @@ impl From for crate::Point } } -#[cfg(feature = "ros2-interfaces-jazzy-rkyv")] +#[cfg(feature = "lh")] impl From for crate::PointCloud2Msg { fn from(msg: ros2_interfaces_jazzy_rkyv::sensor_msgs::msg::PointCloud2) -> Self { Self { @@ -243,7 +243,7 @@ impl From for ros2_interfaces_jazzy::sensor_msgs::msg::Po } } -#[cfg(feature = "ros2-interfaces-jazzy-rkyv")] +#[cfg(feature = "lh")] impl From for ros2_interfaces_jazzy_rkyv::sensor_msgs::msg::PointCloud2 { fn from(msg: crate::PointCloud2Msg) -> Self { ros2_interfaces_jazzy_rkyv::sensor_msgs::msg::PointCloud2 { diff --git a/rpcl2/tests/ros2-interfaces-jazzy_test.rs b/rpcl2/tests/ros2-interfaces-jazzy_test.rs index b687f63..ca88f3b 100644 --- a/rpcl2/tests/ros2-interfaces-jazzy_test.rs +++ b/rpcl2/tests/ros2-interfaces-jazzy_test.rs @@ -31,7 +31,7 @@ fn convertxyz_ros2_interfaces_jazzy_msg() { assert_eq!(copy, back_to_type); } -#[cfg(feature = "ros2-interfaces-jazzy-rkyv")] +#[cfg(feature = "lh")] #[test] fn convertxyz_ros2_interfaces_jazzy_rkyv_msg() { use ros_pointcloud2::{points::PointXYZ, PointCloud2Msg};