Skip to content

Commit 03e6e81

Browse files
committed
Merge commit 'refs/pull/174/head' of github.com:bitcoindevkit/bdk
2 parents 7566904 + 5c82789 commit 03e6e81

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
#### Changed
2020
- Remove `BlockchainMarker`, `OfflineClient` and `OfflineWallet` in favor of just using the unit
2121
type to mark for a missing client.
22+
- Upgrade `tokio` to `1.0`.
2223

2324
### CLI
2425
#### Changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ readme = "README.md"
1212
license = "MIT"
1313

1414
[dependencies]
15-
bdk-macros = "0.2"
15+
bdk-macros = { path = "./macros" }
1616
log = "^0.4"
1717
miniscript = "4.0"
1818
bitcoin = { version = "^0.25.2", features = ["use-serde"] }
@@ -23,7 +23,7 @@ rand = "^0.7"
2323
# Optional dependencies
2424
sled = { version = "0.34", optional = true }
2525
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"] }
2727
futures = { version = "0.3", optional = true }
2828
async-trait = { version = "0.1", optional = true }
2929
rocksdb = { version = "0.14", optional = true }
@@ -35,7 +35,7 @@ tiny-bip39 = { version = "^0.8", optional = true }
3535

3636
# Platform-specific dependencies
3737
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
38-
tokio = { version = "0.2", features = ["rt-core"] }
38+
tokio = { version = "1.0", features = ["rt"] }
3939

4040
[target.'cfg(target_arch = "wasm32")'.dependencies]
4141
async-trait = "0.1"

macros/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub fn await_or_block(expr: TokenStream) -> TokenStream {
145145
{
146146
#[cfg(all(not(target_arch = "wasm32"), not(feature = "async-interface")))]
147147
{
148-
tokio::runtime::Runtime::new().unwrap().block_on(#expr)
148+
tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap().block_on(#expr)
149149
}
150150

151151
#[cfg(any(target_arch = "wasm32", feature = "async-interface"))]

0 commit comments

Comments
 (0)