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 99
99
for path in $(colcon list | awk '$3 == "(ament_cargo)" { print $2 }'); do
100
100
cd $path
101
101
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)
103
103
if [ "$(basename $path)" = "rclrs" ]; then
104
104
cargo clippy --no-deps --all-targets -F default,dyn_msg -- -D warnings
105
105
else
@@ -115,7 +115,7 @@ jobs:
115
115
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
116
116
cd $path
117
117
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)
119
119
if [ "$(basename $path)" = "rclrs" ]; then
120
120
cargo test -F default,dyn_msg
121
121
elif [ "$(basename $path)" = "rosidl_runtime_rs" ]; then
Original file line number Diff line number Diff line change 99
99
for path in $(colcon list | awk '$3 == "(ament_cargo)" { print $2 }'); do
100
100
cd $path
101
101
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)
103
103
if [ "$(basename $path)" = "rclrs" ]; then
104
104
cargo clippy --no-deps --all-targets -F default,dyn_msg -- -D warnings
105
105
else
@@ -115,7 +115,7 @@ jobs:
115
115
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
116
116
cd $path
117
117
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)
119
119
if [ "$(basename $path)" = "rclrs" ]; then
120
120
cargo test -F default,dyn_msg
121
121
elif [ "$(basename $path)" = "rosidl_runtime_rs" ]; then
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ dyn_msg = ["ament_rs", "libloading"]
58
58
serde = [" dep:serde" , " dep:serde-big-array" , " rosidl_runtime_rs/serde" ]
59
59
# This feature is solely for the purpose of being able to generate documetation without a ROS installation
60
60
# The only intended usage of this feature is for docs.rs builders to work, and is not intended to be used by end users
61
- generate_docs = [" rosidl_runtime_rs/generate_docs " ]
61
+ use_ros_shim = [" rosidl_runtime_rs/use_ros_shim " ]
62
62
63
63
[package .metadata .docs .rs ]
64
- features = [" generate_docs " ]
64
+ features = [" use_ros_shim " ]
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ fn main() {
26
26
let error_msg =
27
27
"ROS_DISTRO environment variable not set - please source ROS 2 installation first." ;
28
28
cfg_if:: cfg_if! {
29
- if #[ cfg( feature="generate_docs " ) ] {
29
+ if #[ cfg( feature="use_ros_shim " ) ] {
30
30
println!( "{}" , error_msg) ;
31
31
return ;
32
32
} else {
Original file line number Diff line number Diff line change 12
12
#![ allow( missing_docs) ]
13
13
14
14
cfg_if:: cfg_if! {
15
- if #[ cfg( feature="generate_docs " ) ] {
15
+ if #[ cfg( feature="use_ros_shim " ) ] {
16
16
#[ repr( C ) ]
17
17
#[ derive( Debug ) ]
18
18
pub struct rcl_allocator_t;
You can’t perform that action at this time.
0 commit comments