Add wallet_esplora_async example and various fixes

Fixes include:
* Allow `bdk_esplora` to use async with tls
* Reorganize `bdk_esplora` crate to have separate files for
  async vs blocking
* Use optional dependencies for `bdk_esplora` async
This commit is contained in:
志宇
2023-03-09 10:59:18 +13:00
parent 26ab2e2d6c
commit def0c9ed39
8 changed files with 717 additions and 581 deletions

View File

@@ -0,0 +1,12 @@
[package]
name = "wallet_esplora_async"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bdk = { path = "../../crates/bdk" }
bdk_esplora = { path = "../../crates/esplora", features = ["async-https"] }
bdk_file_store = { path = "../../crates/file_store" }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }