2020-01-22 23:13:11 +01:00
|
|
|
[package]
|
2020-09-14 14:25:38 +02:00
|
|
|
name = "bdk"
|
2023-02-15 16:42:20 -06:00
|
|
|
version = "0.27.1"
|
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"
|
2022-11-03 15:59:38 +08:00
|
|
|
# TODO: remove this when examples all work
|
|
|
|
autoexamples = false
|
2020-01-22 23:13:11 +01:00
|
|
|
|
|
|
|
[dependencies]
|
2020-01-27 22:02:55 +01:00
|
|
|
log = "^0.4"
|
2022-11-03 15:59:38 +08:00
|
|
|
miniscript = { version = "9", features = ["serde"] }
|
|
|
|
bitcoin = { version = "0.29", features = ["serde", "base64", "rand"] }
|
2020-01-27 22:02:55 +01:00
|
|
|
serde = { version = "^1.0", features = ["derive"] }
|
|
|
|
serde_json = { version = "^1.0" }
|
2022-11-03 15:59:38 +08:00
|
|
|
bdk_chain = { version = "0.1", features = ["miniscript", "serde"] }
|
2022-10-24 12:01:56 +02:00
|
|
|
rand = "^0.8"
|
2020-02-05 11:59:02 +01:00
|
|
|
|
|
|
|
# Optional dependencies
|
2023-01-26 15:13:37 -06:00
|
|
|
hwi = { version = "0.5", optional = true, features = [ "use-miniscript"] }
|
2021-10-31 20:23:25 +05:30
|
|
|
bip39 = { version = "1.0.1", optional = true }
|
2021-05-19 13:04:32 +10:00
|
|
|
|
2021-08-31 14:23:24 +05:30
|
|
|
# Platform-specific dependencies
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
2022-08-03 13:12:25 -03:00
|
|
|
tokio = { version = "1", features = ["rt", "macros"] }
|
2021-08-31 14:23:24 +05:30
|
|
|
|
2020-07-20 15:51:57 +02:00
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
2022-10-24 12:01:56 +02:00
|
|
|
getrandom = "0.2"
|
2020-08-06 11:12:15 +02:00
|
|
|
js-sys = "0.3"
|
2020-07-20 15:51:57 +02:00
|
|
|
|
2020-02-05 11:59:02 +01:00
|
|
|
[features]
|
2023-01-10 15:10:02 +11:00
|
|
|
default = ["std"]
|
|
|
|
std = []
|
2023-02-15 12:23:59 +11:00
|
|
|
file-store = [ "std", "bdk_chain/file_store"]
|
2020-12-21 18:38:35 -08:00
|
|
|
compiler = ["miniscript/compiler"]
|
2020-09-18 17:26:58 +02:00
|
|
|
all-keys = ["keys-bip39"]
|
2021-10-31 20:23:25 +05:30
|
|
|
keys-bip39 = ["bip39"]
|
2022-07-26 00:07:04 +05:30
|
|
|
hardware-signer = ["hwi"]
|
2021-05-17 17:20:32 +02:00
|
|
|
|
2020-08-10 10:49:34 +02:00
|
|
|
# Debug/Test features
|
2022-11-03 15:59:38 +08:00
|
|
|
test-md-docs = []
|
2022-07-26 00:07:04 +05:30
|
|
|
test-hardware-signer = ["hardware-signer"]
|
2020-08-10 10:49:34 +02:00
|
|
|
|
2022-10-24 12:01:56 +02:00
|
|
|
# This feature is used to run `cargo check` in our CI targeting wasm. It's not recommended
|
|
|
|
# for libraries to explicitly include the "getrandom/js" feature, so we only do it when
|
|
|
|
# necessary for running our CI. See: https://docs.rs/getrandom/0.2.8/getrandom/#webassembly-support
|
|
|
|
dev-getrandom-wasm = ["getrandom/js"]
|
|
|
|
|
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"
|
2022-10-25 11:15:43 +02:00
|
|
|
# Move back to importing from rust-bitcoin once https://github.com/rust-bitcoin/rust-bitcoin/pull/1342 is released
|
|
|
|
base64 = "^0.13"
|
2022-12-13 07:55:32 +10:00
|
|
|
assert_matches = "1.5.0"
|
2023-02-03 12:13:20 -06:00
|
|
|
# zip versions after 0.6.3 don't work with our MSRV 1.57.0
|
|
|
|
zip = "=0.6.3"
|
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"]
|
|
|
|
|
2022-09-02 15:26:21 +05:30
|
|
|
[[example]]
|
|
|
|
name = "policy"
|
|
|
|
path = "examples/policy.rs"
|
2023-01-10 15:10:02 +11:00
|
|
|
required-features = ["std"]
|
2022-09-02 15:26:21 +05:30
|
|
|
|
2022-09-08 14:18:13 +03:00
|
|
|
[[example]]
|
|
|
|
name = "mnemonic_to_descriptors"
|
|
|
|
path = "examples/mnemonic_to_descriptors.rs"
|
|
|
|
required-features = ["all-keys"]
|
|
|
|
|
2020-08-10 10:49:34 +02:00
|
|
|
[workspace]
|
2022-11-03 15:59:38 +08:00
|
|
|
members = ["bdk_test_client"]
|
2020-08-31 10:49:44 +02:00
|
|
|
[package.metadata.docs.rs]
|
2022-11-03 15:59:38 +08:00
|
|
|
all-feautres = true
|
2020-08-31 10:49:44 +02:00
|
|
|
# defines the configuration attribute `docsrs`
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|