File tree 5 files changed +20
-17
lines changed
5 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,11 @@ jobs:
57
57
cargo update -p tempfile --precise 3.6.0
58
58
cargo update -p base64ct --precise 1.5.3
59
59
cargo update -p cc --precise 1.0.81
60
- cargo update -p tokio --precise 1.29.1
61
60
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
64
65
cargo update -p rustls --precise "0.20.8"
65
66
66
67
- name : Build
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ dirs-next = "2.0"
22
22
env_logger = " 0.7"
23
23
base64 = " ^0.13"
24
24
# payjoin dependencies
25
- payjoin = { version = " =0.8.2" , features = [" send" ] }
25
+ payjoin = { version = " =0.8.2" , features = [" send" ] }
26
26
# reqwest
27
27
reqwest = { version = " 0.10.10" , features = [" blocking" ] }
28
28
Original file line number Diff line number Diff line change @@ -135,16 +135,17 @@ cargo update -p tempfile --precise 3.6.0
135
135
cargo update -p base64ct --precise 1.5.3
136
136
# cc 1.0.82 is throwing error with rust 1.57.0, "error[E0599]: no method named `retain_mut`..."
137
137
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 "
140
140
# flate2 1.0.27 has MSRV 1.63.0+
141
141
cargo update -p flate2 --precise 1.0.26
142
+
143
+ cargo update -p h2:0.3.21 --precise " 0.3.20"
142
144
# 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
148
149
149
150
```
150
151
Original file line number Diff line number Diff line change @@ -527,7 +527,7 @@ pub enum OnlineWalletSubCommand {
527
527
#[ clap( name = "CONFIRMATIONS" , long = "confirmations" , default_value = "6" ) ]
528
528
confirmations : u32 ,
529
529
} ,
530
- #[ cfg( not ( feature = "async-interface" ) ) ]
530
+ #[ cfg( any ( feature = "electrum" , feature = "esplora-ureq" , ) ) ]
531
531
/// Sends a Payjoin Transaction. Takes a valid payjoin bip21 uri.
532
532
SendPayjoin {
533
533
/// Sets the bip21 uri to send to.
@@ -623,13 +623,15 @@ mod test {
623
623
use std:: str:: { self , FromStr } ;
624
624
625
625
use super :: OfflineWalletSubCommand :: { BumpFee , CreateTx , GetNewAddress } ;
626
+ #[ cfg( any( feature = "electrum" , feature = "esplora-ureq" , ) ) ]
627
+ use super :: OnlineWalletSubCommand :: SendPayjoin ;
626
628
#[ cfg( any(
627
629
feature = "electrum" ,
628
630
feature = "esplora" ,
629
631
feature = "compact_filters" ,
630
632
feature = "rpc"
631
633
) ) ]
632
- use super :: OnlineWalletSubCommand :: { Broadcast , SendPayjoin , Sync } ;
634
+ use super :: OnlineWalletSubCommand :: { Broadcast , Sync } ;
633
635
use super :: WalletSubCommand :: OfflineWalletSubCommand ;
634
636
#[ cfg( any(
635
637
feature = "electrum" ,
Original file line number Diff line number Diff line change @@ -322,10 +322,9 @@ where
322
322
B : Blockchain ,
323
323
D : BatchDatabase ,
324
324
{
325
- use crate :: bitcoin:: psbt:: Input ;
326
325
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 } ;
329
328
use std:: convert:: TryFrom ;
330
329
331
330
match online_subcommand {
@@ -399,7 +398,7 @@ where
399
398
Ok ( json ! ( { "spendable" : spendable } ) )
400
399
}
401
400
402
- #[ cfg( not ( feature = "async-interface" ) ) ]
401
+ #[ cfg( any ( feature = "electrum" , feature = "esplora-ureq" , ) ) ]
403
402
// Payjoin Logic goes here
404
403
SendPayjoin { uri } => {
405
404
// convert the bip21 uri into a payjoin uri, and handle error if necessary
You can’t perform that action at this time.
0 commit comments