forked from farcaster-project/farcaster-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
227 lines (204 loc) · 5.76 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
[package]
name = "farcaster_node"
version = "0.0.2"
authors = ["Farcaster Devs", "Dr. Maxim Orlovsky <[email protected]>"]
build = "build.rs"
edition = "2018"
exclude = [".github", "/test", "Dockerfile"]
keywords = ["bitcoin", "monero", "node", "atomic swaps"]
license = "MIT"
readme = "README.md"
description = "Farcaster node"
[lib]
name = "farcaster_node"
[[bin]]
name = "farcasterd"
required-features = ["server"]
[[bin]]
name = "peerd"
required-features = ["server"]
[[bin]]
name = "swapd"
required-features = ["server"]
[[bin]]
name = "swap-cli"
required-features = ["cli"]
[[bin]]
name = "walletd"
required-features = ["server"]
[[bin]]
name = "syncerd"
required-features = ["server"]
[dependencies]
# Farcaster crates
farcaster_core = { version = "0.4.3", features = ["serde"] }
anyhow = "1"
hex = "^0.4.3"
# LNP/BP crates
amplify = "3"
amplify_derive = "2"
base64 = { version = "0.12", optional = true }
bech32 = { version = "0.7", optional = true }
bitcoin = "0.27"
bitcoincore-rpc = "0.14.0"
chrono = "0.4"
config = "0.11"
clap = { version = "3.0.0-beta.4", optional = true }
colored = { version = "2", optional = true }
configure_me = { version = "0.4", optional = true }
dotenv = { version = "0.15", optional = true }
# Coin clients
electrum-client = "0.8.0"
env_logger = "0.7"
internet2 = "0.5.0-alpha.2"
# Rust language
lazy_static = "1.4"
lightning_encoding = "0.5.0-beta.3"
# lnp-core = { path = "../ext/lnp-core" }
# internet2 = { path = "../ext/rust-internet2" }
lnp-core = "0.4.0-beta.3"
lnpbp = { version = "0.5.0-beta.3", features = ["all"] }
# Congig & logging
log = { version = "0.4", features = ["max_level_trace", "release_max_level_debug"] }
monero = "0.16"
monero-rpc = { git = "https://github.com/monero-ecosystem/monero-rpc-rs", branch = "master" }
# monero-rpc = { path = "../monero-rpc-rs/" }
nix = { version = "0.19", optional = true }
# Misc
paste = "1.0"
regex = { version = "1.5", optional = true }
# Serialization & parsing
serde_crate = { package = "serde", version = "1", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true }
serde_with = { version = "1.8", optional = true }
serde_yaml = { version = "0.8", optional = true }
settings = { version = "0.10", package = "config", optional = true }
shellexpand = { version = "2", optional = true }
slip132 = "0.3"
strict_encoding = "1.7.4"
strict_encoding_derive = "1.7.4"
sysinfo = { version = "0.18.2" }
# Async
tokio = { version = "1.12.0", features = ["full"] }
toml = { version = "0.5", optional = true }
# IPC
zmq = { version = "0.9.2", features = ["vendored"] }
[build-dependencies]
farcaster_core = { version = "0.4.3", features = ["serde"] }
anyhow = "1"
serde_yaml = { version = "0.8", optional = true }
toml = { version = "0.5", optional = true }
amplify = "3"
amplify_derive = "2"
lnpbp = { version = "0.5.0-beta.3", features = ["all"] }
lightning_encoding = "0.5.0-beta.3"
# Bitcoin
bitcoin = "0.27"
# Monero
monero = "0.16"
# lnp-core = { path = "../ext/lnp-core" }
# internet2 = { path = "../ext/rust-internet2" }
lnp-core = "0.4.0-beta.3"
strict_encoding = "=1.7.4"
strict_encoding_derive = "=1.7.4"
internet2 = "0.5.0-alpha.2"
lazy_static = "1.4"
clap = "3.0.0-beta.4"
clap_generate = "3.0.0-beta.4"
log = { version = "0.4", features = ["max_level_trace", "release_max_level_debug"] }
shellexpand = "2"
configure_me_codegen = "0.4"
electrum-client = "0.8.0"
[dependencies.microservices]
# path = '../ext/rust-internet2'
version = "0.5.0-alpha.1"
default-features = false
features = ['peer']
[dev-dependencies]
ntest = "0.7.3"
rand = "0.8.4"
# Test
strip-ansi-escapes = "0.1.1"
futures = "0.3.18"
[build-dependencies.microservices]
# path = '../ext/rust-internet2'
version = "0.5.0-alpha.1"
default-features = false
features = ['peer']
# Recommended set of features:
# 1. Standalone node: `server` (=`node`+`shell`)
# 2. Cli to remote node: `cli` (auto includes `shell` and `integration`)
# 3. Mobile app talking to a server: `client`
# 4. Mobile app with embedded node: `embedded` (auto includes `client` + `node`)
# 5. Simple cli utility app: `shell`
[features]
default = ["server", "cli"]
all = ["server", "cli", "serde", "tor"]
# Server is a standalone application that runs daemon
server = ["node", "shell", "microservices/server", "nix"]
# Command-line application feature
cli = ["shell", "client", "serde", "microservices/cli"]
# Embedded is an app that contains embedded node and that talks to it through
# integration layer
embedded = ["client", "node", "microservices/embedded"]
# Server node can be run as a part of mobile app and other types of clients;
# thus `server` != `node`.
# This feature results in building with features not required for command-line
node = [
"serde",
"internet2/keygen",
"bitcoin/rand",
"internet2/zmq",
"microservices/node",
"internet2/url",
"base64",
# Required for storing config and cache
"_config",
"_rpc",
]
# Feature is required for any applications that talks to daemon processes
client = [
"internet2/zmq",
"microservices/client",
"microservices/node",
"bitcoin/rand",
"base64",
"internet2/url",
"clap",
"_rpc",
]
# Required for all apps that can be launched from command-line shell as binaries
# (i.e. both servers and cli)
shell = [
"dotenv",
"clap",
"settings",
"configure_me",
"serde",
"amplify/parse_arg",
"microservices/shell",
"shellexpand",
"colored",
]
# Internally used features for convenience
_config = ["serde_yaml", "toml"]
_rpc = []
serde = [
"serde_crate",
"serde_with",
"serde_yaml",
"serde_json",
"toml",
"chrono/serde",
"bitcoin/use-serde",
"slip132/serde",
"amplify/serde",
"internet2/serde",
"microservices/serde",
"lnpbp/serde",
"lnp-core/serde",
]
tor = ["microservices/tor", "internet2/tor"]
integration_test = ["regex"]
[package.metadata.configure_me]
spec = "config_spec.toml"