-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Cargo.toml
73 lines (63 loc) · 2.4 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[package]
name = "bwt"
version = "0.2.4"
description = "a lightweight hd wallet tracker and query engine for Bitcoin"
authors = ["Nadav Ivgi <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/bwt-dev/bwt"
repository = "https://github.com/bwt-dev/bwt"
keywords = [ "bitcoin", "electrum-server", "hd-wallet", "bitcoin-api", "xpub" ]
edition = "2018"
include = [ "/src", "/LICENSE" ]
[features]
default = [ "cli", "electrum", "http", "proxy", "track-spends" ]
cli = [ "extra", "structopt", "dotenv" ]
extra = [ "dirs", "pretty_env_logger", "signal-hook" ]
electrum = []
http = [ "warp", "tokio", "tokio-stream", "bitcoin/base64" ]
proxy = [ "socks" ]
webhooks = [ "reqwest" ]
track-spends = []
android = [ "android_logger" ]
[lib]
crate-type = [ "lib" ]
[[bin]]
name = "bwt"
path = "src/main.rs"
required-features = [ "cli" ]
[dependencies]
bitcoin = { version = "0.27.1", features = [ "use-serde" ] }
bitcoin_hashes = { version = "0.10.0", features = [ "serde" ] }
bitcoincore-rpc = "0.14.0"
miniscript = { version = "6.0.1", features = [ "serde" ] }
chrono = { version = "0.4.19", default-features = false, features = ["alloc"] }
serde = { version = "1.0.117", features = [ "derive" ] }
serde_json = "1.0.59"
lazy_static = "1.4.0"
anyhow = "1.0.34"
log = "0.4.11"
thiserror = "1.0.22"
rand = "0.8.2"
# http deps
tokio = { version = "1.1.0", features = ["macros", "rt", "rt-multi-thread"], optional = true }
tokio-stream = { version = "0.1.2", default-features = false, optional = true }
warp = { version = "0.3.0", optional = true }
# socks proxy deps
socks = { version = "0.3.3", optional = true }
# webhooks deps
reqwest = { version = "0.11.0", optional = true, features = ["json", "blocking"] }
# android deps
android_logger = { version = "0.10.1", optional = true }
# cli/extra deps
structopt = { version = "0.3.20", optional = true }
dotenv = { version = "0.15.0", optional = true }
dirs = { version = "4.0.0", optional = true }
pretty_env_logger = { version = "0.4.0", optional = true }
[target.'cfg(unix)'.dependencies]
signal-hook = { version = "0.3.10", optional = true }
# Statically link OpenSSL when cross-compiling to ARM
# OpenSSL is currently disabled on ARM, see https://github.com/bwt-dev/bwt/issues/52
# [target.'cfg(any(target_arch = "arm", target_arch = "aarch64"))'.dependencies]
# openssl = { version = "0.10", features = ["vendored"], optional = true }
# webhooks = [ "reqwest", "openssl" ]