From 07ed8bad338738a70136ba3fc32cef85d432586f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Tue, 2 Sep 2025 18:19:22 +0200 Subject: [PATCH] backend::Rpc: Export `RpcParams` and `rpc_params!` (#2077) * backend::Rpc: Export `RpcParams` and `rpc_params!` These are required to for example call `request` on the client and thus, should also be re-exported. * Move exports together --------- Co-authored-by: James Wilson --- subxt/src/backend/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/subxt/src/backend/mod.rs b/subxt/src/backend/mod.rs index f453548484..72549fc35c 100644 --- a/subxt/src/backend/mod.rs +++ b/subxt/src/backend/mod.rs @@ -22,7 +22,8 @@ use subxt_core::client::RuntimeVersion; /// Some re-exports from the [`subxt_rpcs`] crate, also accessible in full via [`crate::ext::subxt_rpcs`]. pub mod rpc { - pub use subxt_rpcs::client::{RawRpcFuture, RawRpcSubscription, RawValue}; + pub use subxt_rpcs::client::{RawRpcFuture, RawRpcSubscription, RawValue, RpcParams}; + pub use subxt_rpcs::{RpcClient, RpcClientT, rpc_params}; crate::macros::cfg_reconnecting_rpc_client! { /// An RPC client that automatically reconnects. @@ -64,8 +65,6 @@ pub mod rpc { /// ``` pub use subxt_rpcs::client::reconnecting_rpc_client; } - - pub use subxt_rpcs::{RpcClient, RpcClientT}; } /// Prevent the backend trait being implemented externally.