Skip to content

Commit 6729752

Browse files
Only require macros at test time
This way they can remain part of the crate without breaking other ros package builds Other packages can load the dependency through cargo
1 parent ba3d941 commit 6729752

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rclrs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ rosidl_runtime_rs = "0.4"
3636
serde = { version = "1", optional = true, features = ["derive"] }
3737
serde-big-array = { version = "0.5.1", optional = true }
3838

39-
rclrs_proc_macros = {path = "../rclrs_proc_macros"}
4039

4140
[dev-dependencies]
4241
# Needed for e.g. writing yaml files in tests
4342
tempfile = "3.3.0"
4443
# Needed for parameter service tests
4544
tokio = { version = "1", features = ["rt", "time", "macros"] }
45+
rclrs_proc_macros = {path = "../rclrs_proc_macros"}
4646

4747
[build-dependencies]
4848
# Needed for uploading documentation to docs.rs

rclrs/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,4 @@ pub use subscription::*;
225225
pub use time::*;
226226
use time_source::*;
227227
pub use wait_set::*;
228-
pub use worker::*;
229-
230-
pub use rclrs_proc_macros::StructuredParameters;
228+
pub use worker::*;

0 commit comments

Comments
 (0)