Skip to content

Commit afda675

Browse files
committed
Move proto to be a sub-module of client
This makes it possible to expose proto-types that are only needed for accessing `client` methods, to be exposed from the `client`. Later on, there should be higher level interfaces for all these functions, so using the proto types directly wouldn't be necessary. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
1 parent 35b40a3 commit afda675

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/client.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ mod microgrid_client_actor;
88
mod retry_tracker;
99

1010
mod microgrid_api_client;
11-
pub use microgrid_api_client::MicrogridApiClient;
11+
pub(crate) use microgrid_api_client::MicrogridApiClient;
1212

1313
mod microgrid_client_handle;
1414
pub use microgrid_client_handle::MicrogridClientHandle;
1515

16+
pub(crate) mod proto;
17+
1618
#[cfg(test)]
1719
pub(crate) mod test_utils;
File renamed without changes.

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
mod bounds;
77
pub use bounds::Bounds;
88

9-
mod client;
9+
pub mod client;
1010
pub use client::MicrogridClientHandle;
11+
pub(crate) use client::proto;
1112

1213
mod error;
1314
pub use error::{Error, ErrorKind};
1415

1516
pub mod quantity;
1617

17-
mod proto;
18-
1918
mod sample;
2019
pub use sample::Sample;
2120

0 commit comments

Comments
 (0)