-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathCargo.toml
More file actions
97 lines (82 loc) · 3.06 KB
/
Copy pathCargo.toml
File metadata and controls
97 lines (82 loc) · 3.06 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[package]
name = "boltz-client"
description = "a boltz exchange client for swaps between BTC/LBTC & LN"
authors = ["i5hi <ishi@satoshiportal.com>", "Rajarshi Maitra <raj@bitshala.org>"]
version = "0.4.1"
edition = "2021"
license = "MIT"
[lib]
name = "boltz_client"
path = "src/lib.rs"
doctest = false
crate-type = ["lib"]
[workspace]
members = [
"bindings",
"macros",
]
[workspace.dependencies]
bitcoin = { version = "0.32.2", features = ["rand", "base64", "rand-std"] }
elements = { version = "0.26.2", features = ["serde"] }
serde = { version = "1.0.0", features = ["derive"] }
serde_json = "1.0.0"
async-trait = "0.1.86"
tokio = { version = "1.43.0", features = ["time"] }
serial_test = "3.2.0"
[profile.release]
strip = true
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
[dependencies]
bitcoin = { workspace = true }
# Used for musig API not available in secp included in bitcoin/elements
# TODO: remove once bitcoin included version contains musig
secp256k1_musig = { package = "secp256k1", version = "0.32.0-beta.0" }
elements = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
async-trait = { workspace = true }
tokio = { workspace = true }
bip39 = "2.0.0"
lightning-invoice = "0.34.0"
url = "2.5.0"
log = "^0.4"
env_logger = "0.11.8"
hex = "0.4"
lnurl-rs = { version = "0.9.0", default-features = false, features = ["async", "async-https"], optional = true }
reqwest = { version = "0.12.12" , default-features = false, features = ["json", "rustls-tls"] }
macros = { version = "1.0.0", package = "boltz-client-macros" }
futures-util = "0.3.31"
tokio-tungstenite-wasm = { version = "0.6.0", features = ["rustls-tls-webpki-roots"], optional = true }
bip85_extended = "1.1.0"
lightning = "0.2.2"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies]
electrum-client = { version = "0.25.0", default-features = false, features = ["use-rustls-ring", "proxy"], optional = true }
rustls = { version = "0.23.32", default-features = false, features = ["ring"], optional = true }
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
js-sys = "0.3.77"
web-sys = "0.3.77"
wasm-bindgen-futures = "0.4.50"
gloo-timers = { version = "0.3.0", features = ["futures"] }
[dev-dependencies]
serial_test = { workspace = true }
tokio = { version = "1.43.0", features = ["rt", "macros"] }
anyhow = "1.0.100"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies]
bitcoind = { version = "0.36.0", features = ["25_0"] }
elementsd = { version = "0.11.0", features = ["22_1_1"] }
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dev-dependencies]
wasm-bindgen-test = "0.3.50"
wasm-bindgen = "0.2.100"
futures = "0.3.31"
[features]
default = ["esplora"]
lnurl = ["dep:lnurl-rs"]
esplora = []
electrum = ["dep:electrum-client"]
# Feature to enable tests that require previous initialization of a regtest environment
regtest = []
ws = ["tokio/sync", "tokio/rt", "tokio/macros", "dep:tokio-tungstenite-wasm", "dep:rustls"]