File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 9999 for path in $(colcon list | awk '$3 == "(ament_cargo)" { print $2 }'); do
100100 cd $path
101101 echo "Running clippy in $path"
102- # Run clippy for all features except generate_docs (needed for docs.rs)
102+ # Run clippy for all features except use_ros_shim (needed for docs.rs)
103103 if [ "$(basename $path)" = "rclrs" ]; then
104104 cargo clippy --no-deps --all-targets -F default,dyn_msg -- -D warnings
105105 else
@@ -115,7 +115,7 @@ jobs:
115115 for path in $(colcon list | awk '$3 == "(ament_cargo)" && $1 != "examples_rclrs_minimal_pub_sub" && $1 != "examples_rclrs_minimal_client_service" && $1 != "rust_pubsub" { print $2 }'); do
116116 cd $path
117117 echo "Running cargo test in $path"
118- # Run cargo test for all features except generate_docs (needed for docs.rs)
118+ # Run cargo test for all features except use_ros_shim (needed for docs.rs)
119119 if [ "$(basename $path)" = "rclrs" ]; then
120120 cargo test -F default,dyn_msg
121121 elif [ "$(basename $path)" = "rosidl_runtime_rs" ]; then
Original file line number Diff line number Diff line change 9999 for path in $(colcon list | awk '$3 == "(ament_cargo)" { print $2 }'); do
100100 cd $path
101101 echo "Running clippy in $path"
102- # Run clippy for all features except generate_docs (needed for docs.rs)
102+ # Run clippy for all features except use_ros_shim (needed for docs.rs)
103103 if [ "$(basename $path)" = "rclrs" ]; then
104104 cargo clippy --no-deps --all-targets -F default,dyn_msg -- -D warnings
105105 else
@@ -115,7 +115,7 @@ jobs:
115115 for path in $(colcon list | awk '$3 == "(ament_cargo)" && $1 != "examples_rclrs_minimal_pub_sub" && $1 != "examples_rclrs_minimal_client_service" && $1 != "rust_pubsub" { print $2 }'); do
116116 cd $path
117117 echo "Running cargo test in $path"
118- # Run cargo test for all features except generate_docs (needed for docs.rs)
118+ # Run cargo test for all features except use_ros_shim (needed for docs.rs)
119119 if [ "$(basename $path)" = "rclrs" ]; then
120120 cargo test -F default,dyn_msg
121121 elif [ "$(basename $path)" = "rosidl_runtime_rs" ]; then
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ dyn_msg = ["ament_rs", "libloading"]
7676serde = [" dep:serde" , " dep:serde-big-array" , " rosidl_runtime_rs/serde" ]
7777# This feature is solely for the purpose of being able to generate documetation without a ROS installation
7878# The only intended usage of this feature is for docs.rs builders to work, and is not intended to be used by end users
79- generate_docs = [" rosidl_runtime_rs/generate_docs " ]
79+ use_ros_shim = [" rosidl_runtime_rs/use_ros_shim " ]
8080
8181[package .metadata .docs .rs ]
82- features = [" generate_docs " ]
82+ features = [" use_ros_shim " ]
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ fn main() {
2626 let error_msg =
2727 "ROS_DISTRO environment variable not set - please source ROS 2 installation first." ;
2828 cfg_if:: cfg_if! {
29- if #[ cfg( feature="generate_docs " ) ] {
29+ if #[ cfg( feature="use_ros_shim " ) ] {
3030 println!( "{}" , error_msg) ;
3131 return ;
3232 } else {
Original file line number Diff line number Diff line change 1212#![ allow( missing_docs) ]
1313
1414cfg_if:: cfg_if! {
15- if #[ cfg( feature="generate_docs " ) ] {
15+ if #[ cfg( feature="use_ros_shim " ) ] {
1616 #[ repr( C ) ]
1717 #[ derive( Debug ) ]
1818 pub struct rcl_allocator_t;
You can’t perform that action at this time.
0 commit comments