Skip to content

Commit 1323c63

Browse files
committed
fixing dependencies for MSRV 1.57.0
1 parent 17911ce commit 1323c63

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

.github/workflows/cont_integration.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@ jobs:
5757
cargo update -p tempfile --precise 3.6.0
5858
cargo update -p base64ct --precise 1.5.3
5959
cargo update -p cc --precise 1.0.81
60-
cargo update -p tokio --precise 1.29.1
6160
cargo update -p flate2 --precise 1.0.26
62-
cargo update -p reqwest --precise "0.11.18"
63-
cargo update -p h2 --precise "0.3.20"
61+
cargo update -p h2:0.3.21 --precise "0.3.20"
62+
cargo update -p reqwest:0.11.20 --precise "0.11.18"
63+
cargo update -p tokio:1.32.0 --precise 1.29.1
64+
cargo update -p tokio-util:0.7.9 --precise 0.7.8
6465
cargo update -p rustls --precise "0.20.8"
6566
6667
- name: Build

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dirs-next = "2.0"
2222
env_logger = "0.7"
2323
base64 = "^0.13"
2424
# payjoin dependencies
25-
payjoin = { version = "=0.8.2", features = ["send"] }
25+
payjoin = { version = "=0.8.2", features = ["send"] }
2626
# reqwest
2727
reqwest = { version = "0.10.10", features = ["blocking"] }
2828

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,17 @@ cargo update -p tempfile --precise 3.6.0
135135
cargo update -p base64ct --precise 1.5.3
136136
# cc 1.0.82 is throwing error with rust 1.57.0, "error[E0599]: no method named `retain_mut`..."
137137
cargo update -p cc --precise 1.0.81
138-
# tokio 0.30.0 has MSRV 1.63.0
139-
cargo update -p tokio --precise 1.29.1
138+
139+
cargo update -p rustls --precise "0.20.8"
140140
# flate2 1.0.27 has MSRV 1.63.0+
141141
cargo update -p flate2 --precise 1.0.26
142+
143+
cargo update -p h2:0.3.21 --precise "0.3.20"
142144
# reqwest 0.11.19 has MSRV 1.63.0+
143-
cargo update -p reqwest --precise "0.11.18"
144-
# h2 0.3.21 has MSRV 1.63.0+
145-
cargo update -p h2 --precise "0.3.20"
146-
# rustls 0.20.9 has MSRV 1.60.0+
147-
cargo update -p rustls --precise "0.20.8"
145+
cargo update -p reqwest:0.11.20 --precise "0.11.18"
146+
# tokio 0.32.0 has MSRV 1.63.0
147+
cargo update -p tokio:1.32.0 --precise 1.29.1
148+
cargo update -p tokio-util:0.7.9 --precise 0.7.8
148149

149150
```
150151

src/commands.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ pub enum OnlineWalletSubCommand {
527527
#[clap(name = "CONFIRMATIONS", long = "confirmations", default_value = "6")]
528528
confirmations: u32,
529529
},
530-
#[cfg(not(feature = "async-interface"))]
530+
#[cfg(any(feature = "electrum", feature = "esplora-ureq",))]
531531
/// Sends a Payjoin Transaction. Takes a valid payjoin bip21 uri.
532532
SendPayjoin {
533533
/// Sets the bip21 uri to send to.
@@ -623,13 +623,15 @@ mod test {
623623
use std::str::{self, FromStr};
624624

625625
use super::OfflineWalletSubCommand::{BumpFee, CreateTx, GetNewAddress};
626+
#[cfg(any(feature = "electrum", feature = "esplora-ureq",))]
627+
use super::OnlineWalletSubCommand::SendPayjoin;
626628
#[cfg(any(
627629
feature = "electrum",
628630
feature = "esplora",
629631
feature = "compact_filters",
630632
feature = "rpc"
631633
))]
632-
use super::OnlineWalletSubCommand::{Broadcast, SendPayjoin, Sync};
634+
use super::OnlineWalletSubCommand::{Broadcast, Sync};
633635
use super::WalletSubCommand::OfflineWalletSubCommand;
634636
#[cfg(any(
635637
feature = "electrum",

src/handlers.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,9 @@ where
322322
B: Blockchain,
323323
D: BatchDatabase,
324324
{
325-
use crate::bitcoin::psbt::Input;
326325
use bdk::SyncOptions;
327-
use payjoin::PjUriExt;
328-
use payjoin::UriExt;
326+
#[cfg(any(feature = "electrum", feature = "esplora-ureq",))]
327+
use payjoin::{bitcoin::psbt::Input, PjUriExt, UriExt};
329328
use std::convert::TryFrom;
330329

331330
match online_subcommand {
@@ -399,7 +398,7 @@ where
399398
Ok(json!({ "spendable": spendable }))
400399
}
401400

402-
#[cfg(not(feature = "async-interface"))]
401+
#[cfg(any(feature = "electrum", feature = "esplora-ureq",))]
403402
// Payjoin Logic goes here
404403
SendPayjoin { uri } => {
405404
// convert the bip21 uri into a payjoin uri, and handle error if necessary

0 commit comments

Comments
 (0)