Skip to content

Commit

Permalink
rpc: expose http, websocket under client
Browse files Browse the repository at this point in the history
Re-export client::transport::{http, websocket} (guarded by appropriate
feature gates) publicly under the client module.
This is to expose the Builder types defined in each of the modules
as public API, with properly built documentation.
  • Loading branch information
mzabaluev committed Nov 9, 2023
1 parent 062945a commit 1260595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ pub mod sync;
mod transport;

#[cfg(feature = "http-client")]
pub use transport::http::{HttpClient, HttpClientUrl};
pub use transport::http::{self, HttpClient, HttpClientUrl};
#[cfg(feature = "websocket-client")]
pub use transport::websocket::{
WebSocketClient, WebSocketClientDriver, WebSocketClientUrl, WebSocketConfig,
self, WebSocketClient, WebSocketClientDriver, WebSocketClientUrl, WebSocketConfig,
};

#[cfg(any(feature = "http-client", feature = "websocket-client"))]
Expand Down

0 comments on commit 1260595

Please sign in to comment.