Update Cargo.toml

- Changed to local bdk-macro
- Added back tokio
- Update esplora-reqwest and test-esplora feature guards

(cherry picked from commit 2459740f7218603447307b20bd3776dc14898a6e)
This commit is contained in:
rajarshimaitra 2021-08-31 14:23:24 +05:30 committed by Steve Myers
parent 5694b98304
commit 6e12468b12
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051

View File

@ -12,7 +12,7 @@ readme = "README.md"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
[dependencies] [dependencies]
bdk-macros = "0.5" bdk-macros = { path = "macros"} # TODO: Change this to version number after next release.
log = "^0.4" log = "^0.4"
miniscript = "^6.0" miniscript = "^6.0"
bitcoin = { version = "^0.27", features = ["use-serde", "base64"] } 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 # Needed by bdk_blockchain_tests macro
core-rpc = { version = "0.14", optional = true } 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] [target.'cfg(target_arch = "wasm32")'.dependencies]
async-trait = "0.1" async-trait = "0.1"
js-sys = "0.3" js-sys = "0.3"
@ -70,7 +74,7 @@ rpc = ["core-rpc"]
async-interface = ["async-trait"] async-interface = ["async-trait"]
electrum = ["electrum-client"] electrum = ["electrum-client"]
# MUST ALSO USE `--no-default-features`. # 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"] use-esplora-ureq = ["esplora", "ureq"]
# Typical configurations will not need to use `esplora` feature directly. # Typical configurations will not need to use `esplora` feature directly.
esplora = [] esplora = []
@ -80,7 +84,7 @@ esplora = []
test-blockchains = ["core-rpc", "electrum-client"] test-blockchains = ["core-rpc", "electrum-client"]
test-electrum = ["electrum", "electrsd/electrs_0_8_10", "test-blockchains"] test-electrum = ["electrum", "electrsd/electrs_0_8_10", "test-blockchains"]
test-rpc = ["rpc", "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"] test-md-docs = ["electrum"]
[dev-dependencies] [dev-dependencies]