Skip to content

Commit

Permalink
rpc: expose http::Builder, websocket::Builder under client (inf…
Browse files Browse the repository at this point in the history
…ormalsystems#1378)

Re-export client::transport::{http, websocket} (guarded by appropriate
feature gates) publicly under the client module.
This exposes the Builder types defined in each of the modules
as public API, with properly built documentation.
  • Loading branch information
mzabaluev authored Nov 10, 2023
1 parent 67354dd commit 194d81e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[tendermint-rpc]` Export the `http`, `websocket`
modules under `client`, each with the public `Builder` type
([\#1378](https://github.com/informalsystems/tendermint-rs/pull/1378)).
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 194d81e

Please sign in to comment.