Skip to content

Commit 713b9e6

Browse files
committed
build!:changed msrv to 1.71, added async-minreq features
1 parent 5740ceb commit 713b9e6

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

.clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
msrv="1.63.0"
1+
msrv="1.71.0"

.github/workflows/cont_integration.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
rust:
1919
- version: stable # STABLE
20-
- version: 1.63.0 # MSRV
20+
- version: 1.71.0 # MSRV
2121
features:
2222
- default
2323
- blocking
@@ -30,6 +30,10 @@ jobs:
3030
- async-https-native
3131
- async-https-rustls
3232
- async-https-rustls-manual-roots
33+
- async-minreq
34+
- async-minreq-https
35+
- async-minreq-https-native
36+
- async-minreq-https-rustls
3337
steps:
3438
- name: Checkout
3539
uses: actions/checkout@v4
@@ -52,13 +56,13 @@ jobs:
5256
- name: Update toolchain
5357
run: rustup update
5458
- name: Pin dependencies for MSRV
55-
if: matrix.rust.version == '1.63.0'
59+
if: matrix.rust.version == '1.71.0'
5660
run: |
5761
cargo update -p reqwest --precise "0.12.4"
5862
cargo update -p minreq --precise "2.13.2"
5963
cargo update -p home --precise "0.5.5"
6064
cargo update -p url --precise "2.5.0"
61-
cargo update -p tokio --precise "1.38.1"
65+
cargo update -p tokio --precise "1.44.0"
6266
cargo update -p security-framework-sys --precise "2.11.1"
6367
cargo update -p native-tls --precise "0.2.13"
6468
cargo update -p ring --precise "0.17.12"

Cargo.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ documentation = "https://docs.rs/esplora-client/"
1010
description = "Bitcoin Esplora API client library. Supports plaintext, TLS and Onion servers. Blocking or async"
1111
keywords = ["bitcoin", "esplora"]
1212
readme = "README.md"
13-
rust-version = "1.63.0"
13+
rust-version = "1.71.0"
1414

1515
[lib]
1616
name = "esplora_client"
@@ -22,6 +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 = { version = "0.1.0", default-features = false, features = ["json-using-serde"], optional = true }
2526
reqwest = { version = "0.12", features = ["json"], default-features = false, optional = true }
2627

2728
# default async runtime
@@ -47,3 +48,9 @@ async-https = ["async", "reqwest/default-tls"]
4748
async-https-native = ["async", "reqwest/native-tls"]
4849
async-https-rustls = ["async", "reqwest/rustls-tls"]
4950
async-https-rustls-manual-roots = ["async", "reqwest/rustls-tls-manual-roots"]
51+
async-minreq = ["async_minreq", "async_minreq/proxy", "tokio?/time"]
52+
async-minreq-https = ["async-minreq", "async_minreq/https"]
53+
async-minreq-https-native = ["async-minreq", "async_minreq/https-native"]
54+
async-minreq-https-rustls = ["async-minreq", "async_minreq/https-rustls"]
55+
# TODO async-mineq does not support it for now
56+
# async-minreq-https-rustls-manual-roots = ["async-minreq"]

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Bitcoin Esplora API client library. Supports plaintext, TLS and Onion servers. B
1414

1515
## Minimum Supported Rust Version (MSRV)
1616

17-
This library should compile with any combination of features with Rust 1.63.0.
17+
This library should compile with any combination of features with Rust 1.71.0.
1818

1919
To build with the MSRV you will need to pin dependencies as follows:
2020

@@ -36,3 +36,16 @@ cargo update -p lock_api --precise "0.4.12"
3636
cargo update -p [email protected] --precise "0.5.10"
3737
cargo update -p [email protected] --precise "1.0.1"
3838
```
39+
40+
## Experimental Features using [async-minreq](https://crates.io/crates/async_minreq)
41+
42+
async-minreq features are currently experimental but may become the only async client In the future once it's more mature.
43+
44+
Currently Supported features
45+
46+
```shell
47+
async-minreq
48+
async-minreq-https
49+
async-minreq-https-native
50+
async-minreq-https-rustls
51+
```

0 commit comments

Comments
 (0)