File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
#### Changed
20
20
- Remove ` BlockchainMarker ` , ` OfflineClient ` and ` OfflineWallet ` in favor of just using the unit
21
21
type to mark for a missing client.
22
+ - Upgrade ` tokio ` to ` 1.0 ` .
22
23
23
24
### CLI
24
25
#### Changed
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ readme = "README.md"
12
12
license = " MIT"
13
13
14
14
[dependencies ]
15
- bdk-macros = " 0.2 "
15
+ bdk-macros = { path = " ./macros " }
16
16
log = " ^0.4"
17
17
miniscript = " 4.0"
18
18
bitcoin = { version = " ^0.25.2" , features = [" use-serde" ] }
@@ -23,7 +23,7 @@ rand = "^0.7"
23
23
# Optional dependencies
24
24
sled = { version = " 0.34" , optional = true }
25
25
electrum-client = { version = " 0.5.0-beta.1" , optional = true }
26
- reqwest = { version = " 0.10 " , optional = true , features = [" json" ] }
26
+ reqwest = { version = " 0.11 " , optional = true , features = [" json" ] }
27
27
futures = { version = " 0.3" , optional = true }
28
28
async-trait = { version = " 0.1" , optional = true }
29
29
rocksdb = { version = " 0.14" , optional = true }
@@ -35,7 +35,7 @@ tiny-bip39 = { version = "^0.8", optional = true }
35
35
36
36
# Platform-specific dependencies
37
37
[target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
38
- tokio = { version = " 0.2 " , features = [" rt-core " ] }
38
+ tokio = { version = " 1.0 " , features = [" rt" ] }
39
39
40
40
[target .'cfg(target_arch = "wasm32")' .dependencies ]
41
41
async-trait = " 0.1"
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ pub fn await_or_block(expr: TokenStream) -> TokenStream {
145
145
{
146
146
#[ cfg( all( not( target_arch = "wasm32" ) , not( feature = "async-interface" ) ) ) ]
147
147
{
148
- tokio:: runtime:: Runtime :: new ( ) . unwrap( ) . block_on( #expr)
148
+ tokio:: runtime:: Builder :: new_current_thread ( ) . enable_all ( ) . build ( ) . unwrap( ) . block_on( #expr)
149
149
}
150
150
151
151
#[ cfg( any( target_arch = "wasm32" , feature = "async-interface" ) ) ]
You can’t perform that action at this time.
0 commit comments