-
Notifications
You must be signed in to change notification settings - Fork 157
/
Cargo.toml
299 lines (282 loc) · 9.3 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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
[package]
name = "forest-filecoin"
version = "0.21.1"
authors = ["ChainSafe Systems <[email protected]>"]
repository = "https://github.com/ChainSafe/forest"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Rust Filecoin implementation."
exclude = [".config", ".github", ".maintain", "documentation", "scripts", "interop-tests", "go.work*"]
[dependencies]
ahash = "0.8"
anes = "0.2"
anyhow = "1.0"
argon2 = "0.5"
async-compression = { version = "0.4", features = ["tokio", "zstd"] }
async-fs = "2"
async-trait = "0.1"
asynchronous-codec = "0.7"
axum = "0.7"
backoff = { version = "0.4", features = ['tokio'] }
base64 = "0.22"
bigdecimal = "=0.4.2" # TODO(forest): https://github.com/ChainSafe/forest/issues/4035
blake2b_simd = "1.0"
bls-signatures = { version = "0.15", default-features = false, features = [
"multicore",
"blst-portable",
] } # prevent SIGINT on CI runners by using portable assembly
blstrs = { version = "0.7", features = ["portable"] }
byteorder = "1"
bytes = "1"
cbor4ii = { version = "0.2", default-features = false, features = ["use_alloc", "use_std"] }
cfg-if = "1"
cfg-vis = "0.3"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
cid = { version = "0.10", default-features = false, features = ["std"] }
clap = { version = "4", features = ["derive"] }
colored = "2.0"
crypto_secretbox = "0.1"
daemonize-me = "2"
data-encoding = "2"
data-encoding-macro = "0.1"
derive_builder = "0.20"
derive_more = { version = "1", features = ["from", "into"] }
dialoguer = "0.11"
digest = "0.10"
directories = "5"
displaydoc = "0.2"
ethereum-types = "0.15"
ez-jsonrpc-types = "0.3"
fil_actor_account_state = { version = "17.0.3" }
fil_actor_cron_state = { version = "17.0.3" }
fil_actor_datacap_state = { version = "17.0.3" }
fil_actor_init_state = { version = "17.0.3" }
fil_actor_interface = { version = "17.0.3" }
fil_actor_market_state = { version = "17.0.3" }
fil_actor_miner_state = { version = "17.0.3" }
fil_actor_power_state = { version = "17.0.3" }
fil_actor_reward_state = { version = "17.0.3" }
fil_actor_system_state = { version = "17.0.3" }
fil_actor_verifreg_state = { version = "17.0.3" }
fil_actors_shared = { version = "17.0.3", features = ["json"] }
flume = "0.11"
fs_extra = "1"
futures = "0.3"
fvm2 = { package = "fvm", version = "~2.9", default-features = false }
fvm3 = { package = "fvm", default-features = false, version = "~3.11", features = ["arb"] }
fvm4 = { package = "fvm", default-features = false, version = "~4.3.3", features = ["arb", "verify-signature"] }
fvm_ipld_blockstore = "0.2"
fvm_ipld_encoding = "0.4"
fvm_shared2 = { package = "fvm_shared", version = "~2.9" }
fvm_shared3 = { package = "fvm_shared", version = "~3.11", features = ["arb", "proofs"] }
fvm_shared4 = { package = "fvm_shared", version = "~4.3.3", features = ["arb", "proofs"] }
gethostname = "0.5"
git-version = "0.3"
group = "0.13"
hex = { version = "0.4", features = ["serde"] }
hickory-resolver = { version = "0.24", default-features = false, features = ["system-config"] }
http = "1"
human-repr = "1"
human_bytes = "0.4"
humantime = "2"
indexmap = { version = "2", features = ["serde"] }
indicatif = { version = "0.17", features = ["tokio"] }
integer-encoding = "4.0"
is-terminal = "0.4"
itertools = "0.13"
jsonrpsee = { version = "0.24", features = ["server", "ws-client", "http-client"] }
jsonwebtoken = "9"
keccak-hash = "0.11"
kubert-prometheus-process = "0.1"
libipld = { version = "0.16", default-features = false, features = ["dag-cbor", "dag-json", "derive", "serde-codec"] }
libipld-core = { version = "0.16", features = ['arb', 'serde-codec'] }
libipld-macro = "0.16"
libp2p = { version = "0.54", default-features = false, features = [
'autonat',
'gossipsub',
'kad',
'identify',
'ping',
'mdns',
'noise',
'yamux',
'tcp',
'quic',
'dns',
'request-response',
'metrics',
'tokio',
'macros',
'serde',
'upnp',
'rsa',
'ecdsa',
'ed25519',
'secp256k1',
] }
libsecp256k1 = "0.7"
lru = "0.12"
memmap2 = "0.9"
memory-stats = "1"
multiaddr = "0.18"
multimap = "0.10"
nom = "7"
nonzero_ext = "0.3"
num = "0.4"
num-bigint = "0.4"
num-derive = "0.4"
num-rational = "0.4"
num-traits = "0.2"
num_cpus = "1"
nunny = { version = "0.2", features = ["serde", "quickcheck", "schemars"] }
once_cell = "1"
openrpc-types = "0.4"
parity-db = { version = "0.5", default-features = false }
parking_lot = { version = "0.12", features = ["deadlock_detection"] }
pathfinding = "4"
pin-project-lite = "0.2"
positioned-io = "0.3"
pretty_assertions = "1"
prometheus-client = "0.22"
quick-protobuf = "0.8"
quick-protobuf-codec = "0.3"
rand = "0.8"
rand_distr = "0.4"
raw_sync_2 = "0.1"
rayon = "1"
regex = "1"
reqwest = { version = "0.12", default-features = false, features = [
"stream",
"rustls-tls",
"json",
] } # use rustls instead of native (openSSL) tls to drop the number of build dependencies
rlimit = "0.10"
rlp = "0.6"
rs-car-ipfs = "0.3"
rust2go = { version = "0.3" }
sailfish = "0.9"
schemars = { version = "0.8", features = ["chrono", "uuid1"] }
scopeguard = "1"
semver = "1"
serde = { version = "1", default-features = false, features = ["derive"] }
serde_ipld_dagcbor = "0.4"
serde_json = { version = "1.0", features = ["raw_value"] }
serde_tuple = "1"
serde_with = { version = "3", features = ["chrono_0_4"] }
serde_yaml = "0.9"
sha2 = { version = "0.10", default-features = false }
shared_memory = "0.12"
similar = "2"
slotmap = "1.0"
smallvec = "1.13"
smart-default = "0.7"
stacker = "0.1"
static_assertions = "1"
statrs = "0.17"
strum = { version = "0.26", features = ["derive"] }
strum_macros = "0.26"
tabled = "0.16"
tap = "1"
tar = "0.4"
tempfile = "3"
thiserror = "1"
ticker = "0.1"
tokio = { version = "1", features = ['full'] }
tokio-stream = { version = "0.1", features = ["fs", "io-util"] }
tokio-util = { version = "0.7", features = ["compat", "io-util"] }
toml = "0.8"
tower = { version = "0.4", features = ["util"] }
tower-http = { version = "0.6", features = ["compression-full", "sensitive-headers"] }
tracing = "0.1"
tracing-appender = "0.2"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
unsigned-varint = { version = "0.8", features = ["codec"] }
url = { version = "2", features = ["serde"] }
uuid = { version = "1", features = ["v4", "serde"] }
walkdir = "2"
zstd = "0.13"
# optional dependencies
console-subscriber = { version = "0.4", features = ["parking_lot"], optional = true }
mimalloc = { version = "0.1", optional = true, default-features = false }
paste = "1.0.15"
tikv-jemallocator = { version = "0.6", optional = true }
tracing-chrome = { version = "0.7", optional = true }
tracing-loki = { version = "0.2", default-features = false, features = ["compat-0-2-1", "rustls"], optional = true }
[target.'cfg(unix)'.dependencies]
termios = "0.3"
[dev-dependencies]
ariadne = "0.4"
assert_cmd = "2"
bimap = "0.6"
cargo_metadata = "0.18"
criterion = { version = "0.5", features = ["async_tokio", "csv"] }
cs_serde_bytes = "0.12"
derive-quickcheck-arbitrary = "0.1"
fvm_shared3 = { package = "fvm_shared", version = "~3.11", features = ["arb", "proofs", "testing"] }
fvm_shared4 = { package = "fvm_shared", version = "~4.3.3", features = ["arb", "proofs", "testing"] }
glob = "0.3"
http-range-header = "0.4"
insta = { version = "1", features = ["yaml"] }
libp2p-swarm-test = "0.4"
num-bigint = { version = "0.4", features = ['quickcheck'] }
petgraph = "0.6"
predicates = "3"
proc-macro2 = { version = "1", default-features = false, features = ["span-locations"] }
quickcheck = "1"
quickcheck_async = "0.1"
quickcheck_macros = "1"
ra_ap_syntax = "0.0.241"
regex-automata = "0.4"
syn = { version = "2", default-features = false, features = ["full", "parsing", "visit", "printing", "extra-traits"] }
tokio-test = "0.4"
[build-dependencies]
rust2go = { version = "0.3", features = ["build"] }
# This needs to be set as default. Otherwise, a regular build or test will produce
# gargantuan artifacts (around 70G for all tests). For a debugging session, you can
# temporarily comment it out.
[profile.dev]
debug = 0
split-debuginfo = "unpacked"
[profile.quick]
inherits = "release"
opt-level = 1
lto = "off"
[profile.release]
# https://doc.rust-lang.org/cargo/reference/profiles.html#strip
strip = true
# The FVM relies on catching panics. See: https://github.com/ChainSafe/forest/issues/3153
panic = "unwind"
overflow-checks = true
lto = "thin"
[profile.release-lto-fat]
inherits = "release"
lto = "fat"
# These should be refactored (probably removed) in #2984
[features]
default = ["jemalloc", "tokio-console", "tracing-loki", "tracing-chrome"]
slim = ["rustalloc"]
doctest-private = [] # see lib.rs::doctest_private
benchmark-private = [] # see lib.rs::benchmark_private
interop-tests-private = [] # see lib.rs::interop_tests_private
# Allocator
rustalloc = []
jemalloc = ["dep:tikv-jemallocator"]
mimalloc = ["dep:mimalloc"]
tokio-console = ["dep:console-subscriber"]
tracing-loki = ["dep:tracing-loki"]
tracing-chrome = ["dep:tracing-chrome"]
no-f3-sidecar = []
[[bench]]
name = "example-benchmark"
harness = false
required-features = ["benchmark-private"]
[[bench]]
name = "car-index"
harness = false
required-features = ["benchmark-private"]
[package.metadata.docs.rs]
# See https://docs.rs/about/metadata
rustdoc-args = ["--document-private-items"]
[workspace]
members = ["interop-tests"]
resolver = "2"