From 126059516d2bcabaf7b3291cdff93d8f62c81c39 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Thu, 9 Nov 2023 16:42:07 +0200 Subject: [PATCH 1/2] rpc: expose http, websocket under client 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. --- rpc/src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/src/client.rs b/rpc/src/client.rs index f826e3ec1..523a32d1c 100644 --- a/rpc/src/client.rs +++ b/rpc/src/client.rs @@ -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"))] From 79ee9d0dbe6584c77e007a9353bd541ab2b4d175 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Thu, 9 Nov 2023 16:48:29 +0200 Subject: [PATCH 2/2] Changelog entry for #1378 --- .../unreleased/improvements/1378-expose-rpc-client-builders.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/unreleased/improvements/1378-expose-rpc-client-builders.md diff --git a/.changelog/unreleased/improvements/1378-expose-rpc-client-builders.md b/.changelog/unreleased/improvements/1378-expose-rpc-client-builders.md new file mode 100644 index 000000000..335c19289 --- /dev/null +++ b/.changelog/unreleased/improvements/1378-expose-rpc-client-builders.md @@ -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)).