diff --git a/Cargo.toml b/Cargo.toml index dabc59f..feb4dad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,7 @@ futures = "0.3.15" [dev-dependencies] serde_json = "1.0.62" futures = "0.3.15" +tokio = { version = "1", features = ["full"] } # for example [build-dependencies] common = { path = "common", version = "0.0.3" } diff --git a/src/lib.rs b/src/lib.rs index 2e245bd..15164ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -885,6 +885,8 @@ pub struct Node { pubs: Vec>, } +unsafe impl Send for Node {} + impl Node { pub fn name(&self) -> Result { let cstr = unsafe { rcl_node_get_name(self.node_handle.as_ref()) };