Skip to content

Commit

Permalink
fix(zenoh-flow-nodes): expose common types in prelude
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
J-Loudet committed Jun 4, 2024
1 parent cebf975 commit 843533d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zenoh-flow-nodes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down

0 comments on commit 843533d

Please sign in to comment.