-
Notifications
You must be signed in to change notification settings - Fork 31
/
Cargo.toml
194 lines (177 loc) · 4.86 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
[package]
name = "semaphore"
version = "0.1.0"
authors = [
"Remco Bloemen <[email protected]>",
"Philipp Sippl <[email protected]>",
]
description = "Rust support library for Semaphore"
keywords = ["worldcoin", "protocol", "signup"]
categories = ["cryptography"]
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
[workspace]
members = ["crates/*"]
[workspace.package]
edition = "2021"
homepage = "https://github.com/worldcoin/semaphore-rs"
license = "MIT"
repository = "https://github.com/worldcoin/semaphore-rs"
[workspace.dependencies]
# Internal
ark-zkey = { path = "crates/ark-zkey" }
poseidon = { path = "crates/poseidon" }
hasher = { path = "crates/hasher" }
keccak = { path = "crates/keccak" }
trees = { path = "crates/trees" }
storage = { path = "crates/storage" }
semaphore-depth-config = { path = "crates/semaphore-depth-config" }
semaphore-depth-macros = { path = "crates/semaphore-depth-macros" }
# 3rd Party
bincode = "1.3.3"
bytemuck = "1.18"
color-eyre = "0.6"
criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
derive-where = "1"
ethabi = "18.0.0"
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false }
hex = "0.4.0"
hex-literal = "0.4"
itertools = "0.13"
mmap-rs = "0.6.1"
num-bigint = { version = "0.4", default-features = false, features = ["rand"] }
once_cell = "1.8"
proptest = "1.0"
rand = "0.8.4"
rand_chacha = "0.3.1"
rayon = "1.5.1"
reqwest = { version = "0.11", features = ["blocking"] }
ruint = { version = "1.12.3", features = [
"bytemuck",
"serde",
"num-bigint",
"ark-ff-04",
] }
serde = "1.0"
serde_json = "1.0.79"
serial_test = "3"
sha2 = "0.10.1"
test-case = "3.3.1"
tempfile = "3.0"
thiserror = "1.0.0"
tiny-keccak = { version = "2.0.2" }
tracing-test = "0.2"
witness = { git = "https://github.com/philsippl/circom-witness-rs" }
zeroize = "1.6.0"
memmap2 = "0.9"
flame = "0.2"
flamer = "0.5"
# Proc macros
syn = { version = "2.0.9", features = ["full", "visit-mut", "extra-traits"] }
proc-macro2 = "1.0.53"
quote = "1.0.26"
# Ark
ark-bn254 = { version = "=0.4.0" }
ark-circom = { git = "https://github.com/Dzejkop/circom-compat.git", rev = "3b19f79", features = [
"circom-2",
] }
ark-ec = { version = "0.4.2", default-features = false, features = [
"parallel",
] }
ark-ff = { version = "0.4.2", default-features = false, features = [
"parallel",
"asm",
] }
ark-groth16 = { version = "=0.4.0", features = ["parallel"] }
ark-relations = { version = "=0.4.0", default-features = false }
ark-std = { version = "0.4.0", default-features = false, features = [
"parallel",
] }
ark-serialize = { version = "0.4.2", features = ["derive"] }
# Necessary because there's an issue with dependencies in the workspace
# this has something to do with `net` feature not being enabled in `mio`.
tokio = "=1.38"
[features]
default = []
depth_16 = [
"semaphore-depth-config/depth_16",
"semaphore-depth-macros/depth_16",
]
depth_20 = [
"semaphore-depth-config/depth_20",
"semaphore-depth-macros/depth_20",
]
depth_30 = [
"semaphore-depth-config/depth_30",
"semaphore-depth-macros/depth_30",
]
[[bench]]
name = "cascading_merkle_tree"
harness = false
[dependencies]
# Internal
ark-zkey.workspace = true
poseidon.workspace = true
hasher.workspace = true
keccak.workspace = true
trees.workspace = true
storage.workspace = true
semaphore-depth-config.workspace = true
semaphore-depth-macros.workspace = true
# 3rd Party
bincode.workspace = true
bytemuck.workspace = true
color-eyre.workspace = true
ethabi.workspace = true
ethers-core.workspace = true
hex.workspace = true
hex-literal.workspace = true
itertools.workspace = true
mmap-rs.workspace = true
num-bigint.workspace = true
once_cell.workspace = true
rand.workspace = true
rayon.workspace = true
ruint.workspace = true
serde.workspace = true
sha2.workspace = true
thiserror.workspace = true
tiny-keccak.workspace = true
witness.workspace = true
zeroize.workspace = true
tokio.workspace = true
# Ark
ark-bn254.workspace = true
ark-circom.workspace = true
ark-ec.workspace = true
ark-ff.workspace = true
ark-groth16.workspace = true
ark-relations.workspace = true
ark-std.workspace = true
[dev-dependencies]
serial_test.workspace = true
criterion.workspace = true
bincode.workspace = true
proptest.workspace = true
rand_chacha.workspace = true
serde_json.workspace = true
tempfile.workspace = true
tiny-keccak.workspace = true
tracing-test.workspace = true
[build-dependencies]
ark-zkey.workspace = true
color-eyre.workspace = true
reqwest.workspace = true
semaphore-depth-config.workspace = true
[profile.release]
codegen-units = 1
lto = true
panic = "abort"
opt-level = 3
# Compilation profile for any non-workspace member.
# Dependencies are optimized, even in a dev build. This improves dev performance
# while having neglible impact on incremental build times.
[profile.dev.package."*"]
opt-level = 3