2023-02-21 16:23:08 +11:00
|
|
|
[package]
|
2024-02-06 08:56:31 -06:00
|
|
|
name = "bdk_wallet"
|
2023-02-21 16:23:08 +11:00
|
|
|
homepage = "https://bitcoindevkit.org"
|
2024-05-09 19:15:33 -05:00
|
|
|
version = "1.0.0-alpha.11"
|
2023-02-21 16:23:08 +11:00
|
|
|
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"
|
|
|
|
license = "MIT OR Apache-2.0"
|
2023-02-21 16:55:08 +11:00
|
|
|
authors = ["Bitcoin Dev Kit Developers"]
|
2023-03-02 22:05:11 -06:00
|
|
|
edition = "2021"
|
2023-10-24 21:55:19 -05:00
|
|
|
rust-version = "1.63"
|
2023-02-21 16:23:08 +11:00
|
|
|
|
|
|
|
[dependencies]
|
2024-04-13 10:21:24 -10:00
|
|
|
anyhow = { version = "1", default-features = false }
|
2023-02-21 16:23:08 +11:00
|
|
|
rand = "^0.8"
|
2023-10-16 19:51:53 +11:00
|
|
|
miniscript = { version = "11.0.0", features = ["serde"], default-features = false }
|
|
|
|
bitcoin = { version = "0.31.0", features = ["serde", "base64", "rand-std"], default-features = false }
|
2023-02-21 16:23:08 +11:00
|
|
|
serde = { version = "^1.0", features = ["derive"] }
|
|
|
|
serde_json = { version = "^1.0" }
|
2024-05-09 19:15:33 -05:00
|
|
|
bdk_chain = { path = "../chain", version = "0.14.0", features = ["miniscript", "serde"], default-features = false }
|
|
|
|
bdk_persist = { path = "../persist", version = "0.2.0" }
|
2023-02-21 16:23:08 +11:00
|
|
|
|
|
|
|
# Optional dependencies
|
2024-01-07 17:08:30 +01:00
|
|
|
bip39 = { version = "2.0", optional = true }
|
2023-02-21 16:23:08 +11:00
|
|
|
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
|
|
getrandom = "0.2"
|
|
|
|
js-sys = "0.3"
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = ["std"]
|
2023-03-15 11:44:52 -05:00
|
|
|
std = ["bitcoin/std", "miniscript/std", "bdk_chain/std"]
|
2023-02-21 16:23:08 +11:00
|
|
|
compiler = ["miniscript/compiler"]
|
|
|
|
all-keys = ["keys-bip39"]
|
|
|
|
keys-bip39 = ["bip39"]
|
|
|
|
|
2023-03-03 12:07:04 +01: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"]
|
|
|
|
|
2023-02-21 16:23:08 +11:00
|
|
|
[dev-dependencies]
|
|
|
|
lazy_static = "1.4"
|
|
|
|
assert_matches = "1.5.0"
|
2023-10-31 06:46:27 +08:00
|
|
|
tempfile = "3"
|
|
|
|
bdk_file_store = { path = "../file_store" }
|
2023-11-16 10:22:37 -06:00
|
|
|
anyhow = "1"
|
2023-02-21 16:23:08 +11:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "mnemonic_to_descriptors"
|
|
|
|
path = "examples/mnemonic_to_descriptors.rs"
|
|
|
|
required-features = ["all-keys"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "miniscriptc"
|
|
|
|
path = "examples/compiler.rs"
|
|
|
|
required-features = ["compiler"]
|