-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathCargo.toml
More file actions
290 lines (254 loc) · 7.71 KB
/
Cargo.toml
File metadata and controls
290 lines (254 loc) · 7.71 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
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
[package]
name = "threshold-fhe"
version.workspace = true
edition.workspace = true
publish.workspace = true
authors.workspace = true
license.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# ⚠️ IMPORTANT: Add new dependencies to workspace root Cargo.toml, NOT here!
# Use .workspace = true to reference workspace dependencies
# Maintain alphabetical order
aes.workspace = true
aes-prng.workspace = true
anyhow.workspace = true
async-trait.workspace = true
attestation-doc-validation = { workspace = true, optional = true}
backoff = { workspace = true, features = ["tokio"], optional = true }
bc2wrap.workspace = true
bincode.workspace = true
cfg-if.workspace = true
clap = { workspace = true, features = ["derive", "env"] }
const_format.workspace = true
crypto-bigint = { workspace = true, optional = true }
dashmap.workspace = true
derive_more.workspace = true
futures.workspace = true
futures-util.workspace = true
g2p.workspace = true
getrandom.workspace = true
hex = { workspace = true, features = ["serde"] }
hyper-rustls-ring = { workspace = true, optional = true }
itertools.workspace = true
k256.workspace = true
lazy_static.workspace = true
minijinja = { workspace = true, optional = true }
mockall.workspace = true
ndarray.workspace = true
num-integer.workspace = true
num-traits.workspace = true
observability = { workspace = true, optional = true }
oid-registry.workspace = true
opentelemetry = { workspace = true, optional = true }
paste.workspace = true
peak_alloc = { workspace = true, optional = true }
prost.workspace = true
rand.workspace = true
rayon.workspace = true
rcgen = { workspace = true, optional = true }
redis = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive", "rc"] }
sha2.workspace = true
sha3.workspace = true
statrs.workspace = true
strum = { workspace = true, features = ["derive"] }
strum_macros.workspace = true
tfhe = { workspace = true, features = [
"boolean",
"shortint",
"integer",
"zk-pok",
] }
tfhe-csprng.workspace = true
tfhe-versionable.workspace = true
tfhe-zk-pok = { workspace = true, optional = true }
tokio = { workspace = true, features = [
"sync",
"rt",
"macros",
"time",
], optional = true }
tokio-rustls = { workspace = true, optional = true }
tonic = { workspace = true, features = ["tls-ring"], optional = true }
tonic-health = { workspace = true, optional = true }
tonic-tls = { workspace = true, optional = true }
tower = { workspace = true, features = ["retry", "timeout"], optional = true }
tower-http = { workspace = true, features = ["trace"], optional = true }
tracing = { workspace = true, features = ["log"] }
x509-parser = { workspace = true, optional = true }
zeroize.workspace = true
[build-dependencies]
tonic-build.workspace = true
[dev-dependencies]
# ⚠️ IMPORTANT: Add new dependencies to workspace root Cargo.toml, NOT here!
# Use .workspace = true to reference workspace dependencies
# Maintain alphabetical order
async-std.workspace = true
criterion= {workspace = true, features = ["async_tokio", "html_reports"] }
ctor.workspace = true
pprof.workspace = true
proptest.workspace = true
rstest.workspace = true
rustls-webpki.workspace = true
serial_test.workspace = true
tempfile.workspace = true
tfhe-zk-pok = { workspace = true, features = ["experimental"] }
threshold-fhe = { workspace = true, features = ["testing"] }
tracing-test.workspace = true
[package.metadata.cargo-machete]
ignored = ["getrandom", "opentelemetry", "prost"]
[lib]
crate-type = ["lib", "cdylib"]
[[bin]]
name = "moby"
path = "src/bin/moby/moby.rs"
required-features = ["choreographer"]
[[bin]]
name = "mobygo"
path = "src/bin/moby/mobygo.rs"
required-features = ["choreographer"]
[[bin]]
name = "gen-experiment"
path = "src/bin/benches/gen-experiment.rs"
required-features = ["templating"]
[[bin]]
name = "stairwayctl"
path = "src/experimental/bin/stairwayctl.rs"
required-features = ["experimental", "choreographer", "testing"]
[[bin]]
name = "threshold-gen-tls-certs"
path = "src/bin/threshold-gen-tls-certs.rs"
[[bin]]
name = "non-threshold-kat"
path = "src/bin/non-threshold/kat.rs"
[[bench]]
name = "ddec"
harness = false
required-features = ["testing", "extension_degree_8"]
[[bench]]
name = "decoding"
harness = false
required-features = ["experimental", "extension_degree_8"]
[[bench]]
name = "algebra"
harness = false
required-features = ["experimental"]
[[bench]]
name = "bgv"
harness = false
required-features = ["experimental", "testing"]
[[bench]]
name = "bench_switch_and_squash"
harness = false
required-features = ["testing"]
[[bench]]
name = "bench_prss"
harness = false
required-features = ["extension_degree_8"]
[[bench]]
name = "prep"
harness = false
required-features = ["testing", "extension_degree_8"]
[[bench]]
name = "bit_dec"
harness = false
required-features = ["testing", "extension_degree_8"]
[[bench]]
name = "ceremony"
harness = false
required-features = ["testing", "extension_degree_8"]
# TFHE-rs benchmarks
[[bench]]
name = "non-threshold_tfhe-rs_erc20_speed"
path = "benches/non-threshold/tfhe-rs/speed/erc20.rs"
harness = false
[[bench]]
name = "non-threshold_tfhe-rs_basic-ops_speed"
path = "benches/non-threshold/tfhe-rs/speed/basic_ops.rs"
harness = false
[[bench]]
name = "non-threshold_tfhe-rs_keygen_speed"
path = "benches/non-threshold/tfhe-rs/speed/keygen.rs"
harness = false
[[bench]]
name = "non-threshold_tfhe-rs_erc20_memory"
path = "benches/non-threshold/tfhe-rs/memory/erc20.rs"
required-features = ["measure_memory"]
harness = false
[[bench]]
name = "non-threshold_tfhe-rs_basic-ops_memory"
path = "benches/non-threshold/tfhe-rs/memory/basic_ops.rs"
required-features = ["measure_memory"]
harness = false
[[bench]]
name = "non-threshold_tfhe-rs_keygen_memory"
path = "benches/non-threshold/tfhe-rs/memory/keygen.rs"
required-features = ["measure_memory"]
harness = false
# BGV Benchmarks
[[bench]]
name = "non-threshold_bgv_basic-ops_speed"
path = "benches/non-threshold/bgv/speed/basic_ops.rs"
required-features = ["experimental"]
harness = false
[[bench]]
name = "non-threshold_bgv_keygen_speed"
path = "benches/non-threshold/bgv/speed/keygen.rs"
required-features = ["experimental"]
harness = false
[[bench]]
name = "non-threshold_bgv_basic-ops_memory"
path = "benches/non-threshold/bgv/memory/basic_ops.rs"
required-features = ["measure_memory","experimental"]
harness = false
[[bench]]
name = "non-threshold_bgv_keygen_memory"
path = "benches/non-threshold/bgv/memory/keygen.rs"
required-features = ["measure_memory","experimental"]
harness = false
[features]
default = ["non-wasm", "extension_degree_4"]
# Some utilities used in the `testing` feature require the `non-wasm` feature to be enabled
testing = ["dep:tokio", "non-wasm"]
slow_tests = ["testing", "all_extension_degrees"]
experimental = ["dep:crypto-bigint"]
templating = ["minijinja"]
choreographer = ["malicious_strategies"]
measure_memory = ["dep:peak_alloc"]
malicious_strategies = ["testing"]
# put all the dependencies that does not work well with wasm
# namely libraries that doesn't work on 32-bit architectures
# or uses tokio
non-wasm = [
"dep:attestation-doc-validation",
"dep:hyper-rustls-ring",
"dep:tokio",
"dep:tokio-rustls",
"dep:tonic",
"dep:tonic-health",
"dep:tonic-tls",
"dep:backoff",
"dep:tower",
"dep:tower-http",
"dep:observability",
"dep:opentelemetry",
"dep:redis",
"dep:rcgen",
"dep:tfhe-zk-pok",
"dep:x509-parser",
]
all_extension_degrees = [
"extension_degree_3",
"extension_degree_4",
"extension_degree_5",
"extension_degree_6",
"extension_degree_7",
"extension_degree_8",
]
extension_degree_8 = []
extension_degree_7 = []
extension_degree_6 = []
extension_degree_5 = []
extension_degree_4 = []
extension_degree_3 = []