2020-01-22 23:13:11 +01:00
|
|
|
[package]
|
2020-09-14 14:25:38 +02:00
|
|
|
name = "bdk"
|
2021-06-11 11:29:42 +02:00
|
|
|
version = "0.8.1-dev"
|
2020-05-07 17:36:45 +02:00
|
|
|
edition = "2018"
|
2020-08-12 12:51:50 +02:00
|
|
|
authors = ["Alekos Filini <alekos.filini@gmail.com>", "Riccardo Casatta <riccardo@casatta.it>"]
|
2020-12-21 14:03:32 +01:00
|
|
|
homepage = "https://bitcoindevkit.org"
|
|
|
|
repository = "https://github.com/bitcoindevkit/bdk"
|
|
|
|
documentation = "https://docs.rs/bdk"
|
|
|
|
description = "A modern, lightweight, descriptor-based wallet library"
|
|
|
|
keywords = ["bitcoin", "wallet", "descriptor", "psbt"]
|
|
|
|
readme = "README.md"
|
2021-03-03 13:22:05 -08:00
|
|
|
license = "MIT OR Apache-2.0"
|
2020-01-22 23:13:11 +01:00
|
|
|
|
|
|
|
[dependencies]
|
2021-03-17 15:17:43 +01:00
|
|
|
bdk-macros = "^0.4"
|
2020-01-27 22:02:55 +01:00
|
|
|
log = "^0.4"
|
2021-02-02 20:06:40 -05:00
|
|
|
miniscript = "5.1"
|
2021-06-10 15:14:00 +02:00
|
|
|
bitcoin = { version = "~0.26.2", features = ["use-serde", "base64"] }
|
2020-01-27 22:02:55 +01:00
|
|
|
serde = { version = "^1.0", features = ["derive"] }
|
|
|
|
serde_json = { version = "^1.0" }
|
2020-08-06 16:56:41 +02:00
|
|
|
rand = "^0.7"
|
2020-02-05 11:59:02 +01:00
|
|
|
|
|
|
|
# Optional dependencies
|
2020-08-25 16:07:26 +02:00
|
|
|
sled = { version = "0.34", optional = true }
|
2021-02-26 14:09:46 +11:00
|
|
|
electrum-client = { version = "0.7", optional = true }
|
2020-11-17 18:27:01 -06:00
|
|
|
reqwest = { version = "0.11", optional = true, features = ["json"] }
|
2020-05-07 17:36:45 +02:00
|
|
|
futures = { version = "0.3", optional = true }
|
2020-08-10 11:41:19 +02:00
|
|
|
async-trait = { version = "0.1", optional = true }
|
2020-08-25 16:07:26 +02:00
|
|
|
rocksdb = { version = "0.14", optional = true }
|
2021-02-03 09:42:23 -05:00
|
|
|
cc = { version = ">=1.0.64", optional = true }
|
2020-08-29 19:40:45 +02:00
|
|
|
socks = { version = "0.3", optional = true }
|
2020-08-25 16:07:26 +02:00
|
|
|
lazy_static = { version = "1.4", optional = true }
|
2020-11-24 10:01:42 +01:00
|
|
|
tiny-bip39 = { version = "^0.8", optional = true }
|
2020-02-05 11:59:02 +01:00
|
|
|
|
2021-05-19 13:04:32 +10:00
|
|
|
# Needed by bdk_blockchain_tests macro
|
2021-05-17 17:20:32 +02:00
|
|
|
bitcoincore-rpc = { version = "0.13", optional = true }
|
2021-05-19 13:04:32 +10:00
|
|
|
serial_test = { version = "0.4", optional = true }
|
|
|
|
|
2020-07-20 15:51:57 +02:00
|
|
|
# Platform-specific dependencies
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
2021-02-16 16:31:55 +11:00
|
|
|
tokio = { version = "1", features = ["rt"] }
|
2020-07-20 15:51:57 +02:00
|
|
|
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
|
|
async-trait = "0.1"
|
2020-08-06 11:12:15 +02:00
|
|
|
js-sys = "0.3"
|
2020-09-16 17:30:11 +02:00
|
|
|
rand = { version = "^0.7", features = ["wasm-bindgen"] }
|
2020-07-20 15:51:57 +02:00
|
|
|
|
2020-02-05 11:59:02 +01:00
|
|
|
[features]
|
2020-02-07 23:22:28 +01:00
|
|
|
minimal = []
|
2020-12-21 18:38:35 -08:00
|
|
|
compiler = ["miniscript/compiler"]
|
2020-05-03 16:15:11 +02:00
|
|
|
default = ["key-value-db", "electrum"]
|
2020-02-07 23:22:28 +01:00
|
|
|
electrum = ["electrum-client"]
|
2020-07-20 15:51:57 +02:00
|
|
|
esplora = ["reqwest", "futures"]
|
2020-11-19 13:11:06 +01:00
|
|
|
compact_filters = ["rocksdb", "socks", "lazy_static", "cc"]
|
2020-02-05 11:59:02 +01:00
|
|
|
key-value-db = ["sled"]
|
2020-08-10 11:41:19 +02:00
|
|
|
async-interface = ["async-trait"]
|
2020-09-18 17:26:58 +02:00
|
|
|
all-keys = ["keys-bip39"]
|
|
|
|
keys-bip39 = ["tiny-bip39"]
|
2021-05-17 17:20:32 +02:00
|
|
|
rpc = ["bitcoincore-rpc"]
|
|
|
|
|
2020-02-06 12:17:28 +01:00
|
|
|
|
2020-08-10 10:49:34 +02:00
|
|
|
# Debug/Test features
|
2021-05-19 16:09:01 +10:00
|
|
|
test-blockchains = ["bitcoincore-rpc", "electrum-client"]
|
2021-05-17 17:20:32 +02:00
|
|
|
test-electrum = ["electrum"]
|
|
|
|
test-rpc = ["rpc"]
|
2021-06-01 14:18:40 +02:00
|
|
|
test-esplora = ["esplora"]
|
2020-12-21 18:38:35 -08:00
|
|
|
test-md-docs = ["electrum"]
|
2020-08-10 10:49:34 +02:00
|
|
|
|
2020-02-06 12:17:28 +01:00
|
|
|
[dev-dependencies]
|
2020-02-07 23:22:28 +01:00
|
|
|
lazy_static = "1.4"
|
|
|
|
env_logger = "0.7"
|
2020-12-21 18:38:35 -08:00
|
|
|
clap = "2.33"
|
2021-05-19 13:04:32 +10:00
|
|
|
serial_test = "0.4"
|
2021-06-03 11:07:39 +02:00
|
|
|
bitcoind = "0.10.0"
|
2020-04-28 17:28:15 +02:00
|
|
|
|
2020-08-15 23:21:13 +02:00
|
|
|
[[example]]
|
|
|
|
name = "address_validator"
|
2020-11-27 17:52:30 +01:00
|
|
|
[[example]]
|
|
|
|
name = "compact_filters_balance"
|
|
|
|
required-features = ["compact_filters"]
|
2020-04-28 17:28:15 +02:00
|
|
|
|
2020-04-29 11:52:45 +02:00
|
|
|
[[example]]
|
|
|
|
name = "miniscriptc"
|
|
|
|
path = "examples/compiler.rs"
|
|
|
|
required-features = ["compiler"]
|
|
|
|
|
2020-08-10 10:49:34 +02:00
|
|
|
[workspace]
|
2021-05-19 13:04:32 +10:00
|
|
|
members = ["macros"]
|
2020-08-31 10:49:44 +02:00
|
|
|
[package.metadata.docs.rs]
|
2020-09-22 16:12:09 +02:00
|
|
|
features = ["compiler", "electrum", "esplora", "compact_filters", "key-value-db", "all-keys"]
|
2020-08-31 10:49:44 +02:00
|
|
|
# defines the configuration attribute `docsrs`
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|