diff --git a/release-plz.toml b/release-plz.toml new file mode 100644 index 0000000..6a78d54 --- /dev/null +++ b/release-plz.toml @@ -0,0 +1,6 @@ +[workspace] + +[[package]] +name = "rosidl_runtime_rs" +publish_features = ["use_ros_shim"] +publish_all_features = false diff --git a/rosidl_runtime_rs/Cargo.toml b/rosidl_runtime_rs/Cargo.toml index d75466b..eebb233 100644 --- a/rosidl_runtime_rs/Cargo.toml +++ b/rosidl_runtime_rs/Cargo.toml @@ -21,7 +21,7 @@ serde = { version = "1", optional = true } default = [] # This feature is solely for the purpose of being able to generate documetation without a ROS installation # The only intended usage of this feature is for docs.rs builders to work, and is not intended to be used by end users -generate_docs = [] +use_ros_shim = [] [dev-dependencies] # Needed for writing property tests @@ -34,4 +34,4 @@ serde_json = "1" cfg-if = "1.0.0" [package.metadata.docs.rs] -features = ["generate_docs"] +features = ["use_ros_shim"] diff --git a/rosidl_runtime_rs/build.rs b/rosidl_runtime_rs/build.rs index fb98aeb..6f4c2a6 100644 --- a/rosidl_runtime_rs/build.rs +++ b/rosidl_runtime_rs/build.rs @@ -1,5 +1,5 @@ cfg_if::cfg_if! { - if #[cfg(not(feature="generate_docs"))] { + if #[cfg(not(feature="use_ros_shim"))] { use std::env; use std::path::Path; @@ -19,7 +19,7 @@ cfg_if::cfg_if! { } fn main() { - #[cfg(not(feature = "generate_docs"))] + #[cfg(not(feature = "use_ros_shim"))] { let ament_prefix_path_list = get_env_var_or_abort(AMENT_PREFIX_PATH); for ament_prefix_path in ament_prefix_path_list.split(':') {