From 843533d6728fd19812d8356efee4b97af484814b Mon Sep 17 00:00:00 2001 From: Julien Loudet Date: Tue, 4 Jun 2024 15:06:58 +0200 Subject: [PATCH] fix(zenoh-flow-nodes): expose common types in prelude To create the Python bindings and re-expose these types in Python, accessing them was required. By exposing them in the `prelude` of the `zenoh-flow-nodes` crate, users are not required to add a dependency on `zenoh-flow-commons` or `uhlc`. * zenoh-flow-nodes/src/lib.rs: expose in the prelude: - InstanceId, - NodeId, - RuntimeId, - uhlc::Timestamp. Signed-off-by: Julien Loudet --- zenoh-flow-nodes/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zenoh-flow-nodes/src/lib.rs b/zenoh-flow-nodes/src/lib.rs index 947ca413..26d1174c 100644 --- a/zenoh-flow-nodes/src/lib.rs +++ b/zenoh-flow-nodes/src/lib.rs @@ -45,7 +45,8 @@ pub use self::{ /// It also re-exposes items from the [anyhow], [zenoh_flow_commons] and [zenoh_flow_derive] crates. pub mod prelude { pub use anyhow::{anyhow, bail}; - pub use zenoh_flow_commons::{Configuration, Result}; + pub use uhlc::Timestamp; + pub use zenoh_flow_commons::{Configuration, InstanceId, NodeId, Result, RuntimeId}; pub use zenoh_flow_derive::{export_operator, export_sink, export_source}; pub use crate::{