From b11c86d074a8f56f99bd5f3af77d3b056af71de4 Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Thu, 29 Sep 2022 11:59:21 +0200 Subject: [PATCH] Rename internal esplora modules, fix docs --- src/blockchain/esplora/{reqwest.rs => async.rs} | 0 src/blockchain/esplora/{ureq.rs => blocking.rs} | 0 src/blockchain/esplora/mod.rs | 12 ++++++------ 3 files changed, 6 insertions(+), 6 deletions(-) rename src/blockchain/esplora/{reqwest.rs => async.rs} (100%) rename src/blockchain/esplora/{ureq.rs => blocking.rs} (100%) diff --git a/src/blockchain/esplora/reqwest.rs b/src/blockchain/esplora/async.rs similarity index 100% rename from src/blockchain/esplora/reqwest.rs rename to src/blockchain/esplora/async.rs diff --git a/src/blockchain/esplora/ureq.rs b/src/blockchain/esplora/blocking.rs similarity index 100% rename from src/blockchain/esplora/ureq.rs rename to src/blockchain/esplora/blocking.rs diff --git a/src/blockchain/esplora/mod.rs b/src/blockchain/esplora/mod.rs index 7a4b1937..57032e49 100644 --- a/src/blockchain/esplora/mod.rs +++ b/src/blockchain/esplora/mod.rs @@ -15,22 +15,22 @@ //! depending on your needs (blocking or async respectively). //! //! Please note, to configure the Esplora HTTP client correctly use one of: -//! Blocking: --features='esplora,ureq' -//! Async: --features='async-interface,esplora,reqwest' --no-default-features +//! Blocking: --features='use-esplora-blocking' +//! Async: --features='async-interface,use-esplora-async' --no-default-features pub use esplora_client::Error as EsploraError; #[cfg(feature = "use-esplora-async")] -mod reqwest; +mod r#async; #[cfg(feature = "use-esplora-async")] -pub use self::reqwest::*; +pub use self::r#async::*; #[cfg(feature = "use-esplora-blocking")] -mod ureq; +mod blocking; #[cfg(feature = "use-esplora-blocking")] -pub use self::ureq::*; +pub use self::blocking::*; /// Configuration for an [`EsploraBlockchain`] #[derive(Debug, serde::Deserialize, serde::Serialize, Clone, PartialEq)]