Skip to content

Commit 89765dd

Browse files
committed
electrsd: Bump MSRV to 1.75
No code changes required. Just document it in the manifest. This is the same MSRV as the rest of the repository. Includes usage of `bitreq` instead of `minreq` because `bitreq` is on the same MSRV (and it lives in this repo). FTR `bitreq` is our fork of `minreq`.
1 parent d6a5162 commit 89765dd

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

electrsd/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ description = "Utility to run a regtest electrs process, useful in integration t
66
repository = "https://github.com/rust-bitcoin/corepc"
77
documentation = "https://docs.rs/elecrtsd/"
88
license = "MIT"
9-
edition = "2018"
9+
edition = "2021"
10+
rust-version = "1.75.0"
1011
categories = ["cryptography::cryptocurrencies", "development-tools::testing"]
1112
exclude = ["tests", "contrib"]
1213

@@ -28,15 +29,15 @@ zip = { version = "0.6", default-features = false, optional = true, features = [
2829
"bzip2",
2930
"deflate",
3031
] }
31-
minreq = { version = "2.9.0", default-features = false, optional = true, features = [
32+
bitreq = { version = "0.3.4", path = "../bitreq", default-features = false, optional = true, features = [
3233
"https",
3334
] }
3435

3536
[features]
3637
legacy = []
3738

3839
# download is not supposed to be used directly only through selecting one of the version feature
39-
download = ["bitcoin_hashes", "zip", "minreq"]
40+
download = ["bitcoin_hashes", "zip", "bitreq"]
4041

4142
esplora_a33e97e1 = ["download", "legacy"]
4243
electrs_0_8_10 = ["download"]

electrsd/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ mod download {
6161
std::env::var("ELECTRSD_DOWNLOAD_ENDPOINT").unwrap_or(GITHUB_URL.to_string());
6262
let url = format!("{}/{}", download_endpoint, download_filename);
6363

64-
let downloaded_bytes = minreq::get(url).send().unwrap().into_bytes();
64+
let downloaded_bytes = bitreq::get(url).send().unwrap().into_bytes();
6565

6666
let downloaded_hash = sha256::Hash::hash(&downloaded_bytes);
6767
assert_eq!(expected_hash, downloaded_hash);

0 commit comments

Comments
 (0)