From 2459740f7218603447307b20bd3776dc14898a6e Mon Sep 17 00:00:00 2001 From: rajarshimaitra Date: Tue, 31 Aug 2021 14:23:24 +0530 Subject: [PATCH] Update Cargo.toml - Changed to local bdk-macro - Added back tokio - Update esplora-reqwest and test-esplora feature guards --- Cargo.toml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9ce2c627..4dc4dc4a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" license = "MIT OR Apache-2.0" [dependencies] -bdk-macros = "0.5" +bdk-macros = { path = "macros"} # TODO: Change this to version number after next release. log = "^0.4" miniscript = "^6.0" bitcoin = { version = "^0.27", features = ["use-serde", "base64"] } @@ -38,6 +38,10 @@ bitcoinconsensus = { version = "0.19.0-3", optional = true } # Needed by bdk_blockchain_tests macro core-rpc = { version = "0.14", optional = true } +# Platform-specific dependencies +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +tokio = { version = "1", features = ["rt"] } + [target.'cfg(target_arch = "wasm32")'.dependencies] async-trait = "0.1" js-sys = "0.3" @@ -70,7 +74,7 @@ rpc = ["core-rpc"] async-interface = ["async-trait"] electrum = ["electrum-client"] # MUST ALSO USE `--no-default-features`. -use-esplora-reqwest = ["async-interface", "esplora", "reqwest", "futures"] +use-esplora-reqwest = ["esplora", "reqwest", "futures"] use-esplora-ureq = ["esplora", "ureq"] # Typical configurations will not need to use `esplora` feature directly. esplora = [] @@ -80,7 +84,7 @@ esplora = [] test-blockchains = ["core-rpc", "electrum-client"] test-electrum = ["electrum", "electrsd/electrs_0_8_10", "test-blockchains"] test-rpc = ["rpc", "electrsd/electrs_0_8_10", "test-blockchains"] -test-esplora = ["esplora", "ureq", "electrsd/legacy", "electrsd/esplora_a33e97e1", "test-blockchains"] +test-esplora = ["electrsd/legacy", "electrsd/esplora_a33e97e1", "test-blockchains"] test-md-docs = ["electrum"] [dev-dependencies]