Skip to content

Commit dff5969

Browse files
committed
added all async-minreq features and docs update
1 parent e87541c commit dff5969

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ bitcoin = { version = "0.32", features = ["serde", "std"], default-features = fa
2222
hex = { version = "0.2", package = "hex-conservative" }
2323
log = "^0.4"
2424
minreq = { version = "2.11.0", features = ["json-using-serde"], optional = true }
25-
async_minreq = { git = "https://github.com/psg-19/async-minreq", default-features = false, features = ["json-using-serde"], optional = true }
25+
async_minreq = { path = "../../test_fix_am/async-minreq", default-features = false, features = ["json-using-serde"], optional = true }
2626

2727
# default async runtime
2828
tokio = { version = "1", features = ["time"], optional = true }
@@ -42,7 +42,7 @@ blocking-https-native = ["blocking", "minreq/https-native"]
4242
blocking-https-bundled = ["blocking", "minreq/https-bundled"]
4343

4444
tokio = ["dep:tokio"]
45-
async = ["async_minreq", "tokio?/time"]
45+
async = ["async_minreq", "async_minreq/proxy", "tokio?/time"]
4646
async-https = ["async", "async_minreq/https"]
4747
async-https-native = ["async", "async_minreq/https-native"]
4848
async-https-rustls = ["async", "async_minreq/https-rustls"]

src/async.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// You may not use this file except in accordance with one or both of these
1010
// licenses.
1111

12-
//! Esplora by way of `reqwest` HTTP client.
12+
//! Esplora by way of `asyn_minreq` HTTP client.
1313
1414
use bitcoin::consensus::{deserialize, serialize, Decodable, Encodable};
1515
use bitcoin::hashes::{sha256, Hash};
@@ -25,7 +25,7 @@ use std::str::FromStr;
2525
use crate::api::AddressStats;
2626
use crate::{
2727
BlockStatus, BlockSummary, Builder, Error, MerkleProof, OutputStatus, Tx, TxStatus,
28-
BASE_BACKOFF_MILLIS, RETRYABLE_ERROR_CODES, VALID_HTTP_CODE
28+
BASE_BACKOFF_MILLIS, RETRYABLE_ERROR_CODES, VALID_HTTP_CODE,
2929
};
3030
use async_minreq::{Method, Request, Response};
3131
#[allow(unused_imports)]

src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! async Esplora client to query Esplora's backend.
55
//!
66
//! The library provides the possibility to build a blocking
7-
//! client using [`minreq`] and an async client using [`reqwest`].
7+
//! client using [`minreq`] and an async client using [`async_minreq`].
88
//! The library supports communicating to Esplora via a proxy
99
//! and also using TLS (SSL) for secure communication.
1010
//!
@@ -53,14 +53,14 @@
5353
//! capabilities using the platform's native TLS backend (likely OpenSSL).
5454
//! * `blocking-https-bundled` enables [`minreq`], the blocking client with proxy and TLS (SSL)
5555
//! capabilities using a bundled OpenSSL library backend.
56-
//! * `async` enables [`reqwest`], the async client with proxy capabilities.
57-
//! * `async-https` enables [`reqwest`], the async client with support for proxying and TLS (SSL)
58-
//! using the default [`reqwest`] TLS backend.
59-
//! * `async-https-native` enables [`reqwest`], the async client with support for proxying and TLS
56+
//! * `async` enables [`async_minreq`], the async client with proxy capabilities.
57+
//! * `async-https` enables [`async_minreq`], the async client with support for proxying and TLS (SSL)
58+
//! using the default [`async_minreq`] TLS backend.
59+
//! * `async-https-native` enables [`async_minreq`], the async client with support for proxying and TLS
6060
//! (SSL) using the platform's native TLS backend (likely OpenSSL).
61-
//! * `async-https-rustls` enables [`reqwest`], the async client with support for proxying and TLS
61+
//! * `async-https-rustls` enables [`async_minreq`], the async client with support for proxying and TLS
6262
//! (SSL) using the `rustls` TLS backend.
63-
//! * `async-https-rustls-manual-roots` enables [`reqwest`], the async client with support for
63+
//! * `async-https-rustls-manual-roots` enables [`async_minreq`], the async client with support for
6464
//! proxying and TLS (SSL) using the `rustls` TLS backend without using its the default root
6565
//! certificates.
6666
//!

0 commit comments

Comments
 (0)