forked from EspressoSystems/HotShot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
180 lines (168 loc) · 5.16 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
[workspace.package]
version = "0.3.3" # same as `hotshot`, but workspace subcrate can also release its own version
authors = ["Espresso Systems <[email protected]>"]
edition = "2021"
rust-version = "1.65.0"
homepage = "https://github.com/EspressoSystems/HotShot"
documentation = "https://hotshot.docs.espressosys.com"
repository = "https://github.com/EspressoSystems/HotShot"
### Workspace
# The hotshot-types crate needs to be a separate crate, as to not create a circular dependency
# when implementing traits externally
[workspace]
members = [
"crates/constants",
"crates/hotshot",
"crates/hotshot-stake-table",
"crates/libp2p-networking",
"crates/testing-macros",
"crates/task",
"crates/task-impls",
"crates/testing",
"crates/types",
"crates/utils",
"crates/examples",
"crates/example-types",
]
resolver = "2"
[workspace.dependencies]
ark-bls12-381 = "0.4"
ark-bn254 = "0.4"
ark-ec = "0.4"
ark-ed-on-bn254 = "0.4"
ark-ff = "0.4"
ark-serialize = "0.4"
ark-std = { version = "0.4", default-features = false }
async-broadcast = "0.7.0"
async-compatibility-layer = { git = "https://github.com/EspressoSystems/async-compatibility-layer.git", tag = "1.4.1", default-features = false, features = [
"logging-utils",
] }
task = { git = "https://github.com/EspressoSystems/HotShotTasks.git" }
async-lock = "2.8"
async-trait = "0.1.77"
bincode = "1.3.3"
bitvec = { version = "1.0.1", default-features = false, features = [
"alloc",
"atomic",
"serde",
] }
blake3 = "1.5"
commit = { git = "https://github.com/EspressoSystems/commit" }
custom_debug = "0.5"
digest = "0.10"
either = { version = "1.10" }
espresso-systems-common = { git = "https://github.com/espressosystems/espresso-systems-common", tag = "0.4.1" }
ethereum-types = { version = "0.14.1", features = ["impl-serde"] }
futures = "0.3.30"
# TODO generic-array should not be a direct dependency
# https://github.com/EspressoSystems/HotShot/issues/1850
generic-array = { version = "0.14.7", features = ["serde"] }
jf-primitives = { git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.0" }
jf-plonk = { git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.0" }
jf-relation = { git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.0" }
jf-utils = { git = "https://github.com/espressosystems/jellyfish", tag = "0.4.0" }
lazy_static = "1.4.0"
libp2p-identity = "0.2"
libp2p-networking = { path = "./crates/libp2p-networking", version = "0.1.0", default-features = false }
libp2p-swarm-derive = { version = "0.34.1" }
rand = "0.8.5"
rand_chacha = { version = "0.3.1", default-features = false }
serde = { version = "1.0.197", features = ["derive"] }
serde_json = { version = "1.0.114" }
sha2 = "0.10"
snafu = "0.7.5"
surf-disco = { git = "https://github.com/EspressoSystems/surf-disco.git", tag = "v0.4.6" }
tagged-base64 = { git = "https://github.com/EspressoSystems/tagged-base64", tag = "0.3.4" }
tide-disco = { git = "https://github.com/EspressoSystems/tide-disco.git", tag = "v0.4.6" }
time = "0.3.34"
toml = "0.8.10"
tracing = "0.1.40"
typenum = "1.17.0"
libp2p = { package = "libp2p", version = "0.53.2", features = [
"macros",
"autonat",
"cbor",
"dns",
"floodsub",
"gossipsub",
"identify",
"kad",
"mdns",
"noise",
"ping",
"plaintext",
"pnet",
"quic",
"relay",
"request-response",
"rendezvous",
"secp256k1",
"serde",
"tcp",
"uds",
"websocket",
"yamux",
] }
async-std = { version = "1.12.0", features = ["attributes"] }
tokio = { version = "1.36.0", features = [
"fs",
"io-util",
"io-std",
"macros",
"net",
"parking_lot",
"process",
"rt",
"rt-multi-thread",
"signal",
"sync",
"time",
"tracing",
] }
### Profiles
###
### Note: these only apply to example executables or tests built from within this crate. They have
### no effect on crates that depend on this crate.
## Apply some optimizations to test dependencies in debug/test builds
[profile.dev]
strip = true
debug = 0
# Generally optimize dependencies a little
[profile.dev.package."*"]
opt-level = 1
strip = true
debug = 0
# The default release profile without LTO.
[profile.release]
debug = 1
# Disable LTO to decrease the linking time.
lto = "off"
incremental = true
# The release profile with LTO.
# CI uses this profile. To run it locally, add `--profile=release-lto` to `cargo build` or `cargo
# test`.
[profile.release-lto]
inherits = "release"
# Enable "thin" LTO to optimize performance.
lto = "thin"
## LTO doesn't work with careful
## explicitly specifying features in case releases features change
[profile.careful]
debug = 1
inherits = "release"
lto = "off"
incremental = true
[workspace.lints.clippy]
# warns
all = "warn"
pedantic = "warn"
missing_docs_in_private_items = "warn"
panic = "warn"
# allows
module_name_repetitions = "allow"
[workspace.lints.rust]
# warns
rust_2018_idioms = "warn"
# TODO cahnge to deny
missing_docs = "warn"
warnings = "warn"