bdk/Cargo.toml

87 lines
2.5 KiB
TOML
Raw Normal View History

2020-01-22 23:13:11 +01:00
[package]
name = "magical-bitcoin-wallet"
version = "0.1.0"
edition = "2018"
authors = ["Alekos Filini <alekos.filini@gmail.com>", "Riccardo Casatta <riccardo@casatta.it>"]
2020-01-22 23:13:11 +01:00
[dependencies]
magical-macros = { path = "./macros" }
log = "^0.4"
bitcoin = { version = "0.23", features = ["use-serde"] }
2020-07-19 19:24:05 +02:00
miniscript = { version = "1.0" }
serde = { version = "^1.0", features = ["derive"] }
serde_json = { version = "^1.0" }
rand = "^0.7"
# Optional dependencies
sled = { version = "0.34", optional = true }
2020-07-15 18:49:24 +02:00
electrum-client = { version = "0.2.0-beta.1", optional = true }
reqwest = { version = "0.10", optional = true, features = ["json"] }
futures = { version = "0.3", optional = true }
clap = { version = "2.33", optional = true }
2020-07-19 19:24:05 +02:00
base64 = { version = "^0.11", optional = true }
async-trait = { version = "0.1", optional = true }
rocksdb = { version = "0.14", optional = true }
2020-08-29 19:40:45 +02:00
socks = { version = "0.3", optional = true }
lazy_static = { version = "1.4", optional = true }
[patch.crates-io]
bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin/", rev = "478e091" }
miniscript = { git = "https://github.com/MagicalBitcoin/rust-miniscript", branch = "descriptor-public-key" }
# Platform-specific dependencies
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { version = "0.2", features = ["rt-core"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
async-trait = "0.1"
js-sys = "0.3"
[features]
2020-02-07 23:22:28 +01:00
minimal = []
compiler = ["clap", "miniscript/compiler"]
default = ["key-value-db", "electrum"]
2020-02-07 23:22:28 +01:00
electrum = ["electrum-client"]
esplora = ["reqwest", "futures"]
2020-08-29 19:40:45 +02:00
compact_filters = ["rocksdb", "socks", "lazy_static"]
key-value-db = ["sled"]
2020-07-19 19:24:05 +02:00
cli-utils = ["clap", "base64"]
async-interface = ["async-trait"]
# Debug/Test features
debug-proc-macros = ["magical-macros/debug", "testutils-macros/debug"]
test-electrum = ["electrum"]
[dev-dependencies]
testutils = { path = "./testutils" }
testutils-macros = { path = "./testutils-macros" }
serial_test = "0.4"
2020-02-07 23:22:28 +01:00
lazy_static = "1.4"
rustyline = "6.0"
2020-02-07 23:22:28 +01:00
dirs = "2.0"
env_logger = "0.7"
2020-04-29 11:52:45 +02:00
rand = "0.7"
2020-04-28 17:28:15 +02:00
[[example]]
name = "repl"
required-features = ["cli-utils"]
2020-04-28 17:28:15 +02:00
[[example]]
name = "psbt"
2020-07-19 19:24:05 +02:00
required-features = ["cli-utils"]
2020-04-28 17:28:15 +02:00
[[example]]
name = "parse_descriptor"
2020-04-29 11:52:45 +02:00
[[example]]
name = "miniscriptc"
path = "examples/compiler.rs"
required-features = ["compiler"]
2020-04-28 17:28:15 +02:00
# Provide a more user-friendly alias for the REPL
[[example]]
name = "magic"
path = "examples/repl.rs"
required-features = ["cli-utils"]
2020-04-28 17:28:15 +02:00
[workspace]
members = ["macros", "testutils", "testutils-macros"]