-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathCargo.toml
More file actions
203 lines (186 loc) · 6.8 KB
/
Cargo.toml
File metadata and controls
203 lines (186 loc) · 6.8 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
[workspace]
resolver = "2"
members = [
"skyscraper/fp-rounding",
"skyscraper/hla",
"skyscraper/bn254-multiplier",
"skyscraper/bn254-multiplier-codegen",
"skyscraper/core",
"provekit/common",
"provekit/r1cs-compiler",
"provekit/prover",
"provekit/verifier",
"tooling/cli",
"tooling/provekit-bench",
"tooling/provekit-ffi",
"tooling/provekit-gnark",
"tooling/provekit-wasm",
"tooling/verifier-server",
"ntt",
"poseidon2",
"playground/passport-input-gen",
]
[workspace.package]
edition = "2021"
rust-version = "1.85"
authors = [
"Remco Bloemen <[email protected]>",
"Philipp Sippl <[email protected]>",
"Yuval Domb",
"Xander van der Goot",
"Koh Wei Jie",
"Tony Wu",
"Vishruti Ganesh",
"Benjamin Wilson",
"Yogesh Swami",
"Ryan Cao",
"Shreyas Londhe",
"Aditya Bisht",
# TODO: More contributors
]
license = "MIT"
homepage = "https://github.com/worldfnd/ProveKit"
repository = "https://github.com/worldfnd/ProveKit"
[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)'] }
[workspace.lints.clippy]
cargo = "warn"
perf = "warn"
complexity = "warn"
style = "warn"
correctness = "warn"
suspicious = "warn"
cargo_common_metadata = { level = "allow", priority = 1 }
multiple_crate_versions = { level = "allow", priority = 1 }
missing_docs_in_private_items = { level = "allow", priority = 1 }
missing_safety_doc = { level = "deny", priority = 1 }
[profile.release]
opt-level = 3
codegen-units = 1
lto = "fat"
# Size-optimized builds for mobile (iOS/Android): cargo build --profile release-mobile
[profile.release-mobile]
inherits = "release"
opt-level = "z"
# Fast release builds for development iteration: cargo build --profile release-fast
[profile.release-fast]
inherits = "release"
codegen-units = 16
lto = "thin"
# Doing light optimizations helps test performance more than it hurts build time.
[profile.test]
opt-level = 2
# Compilation profile for any non-workspace member. We want to optimize these even in debug mode.
[profile.dev.package."*"]
opt-level = 3
[workspace.dependencies]
# Workspace members - Skyscraper
bn254-multiplier = { path = "skyscraper/bn254-multiplier" }
bn254-multiplier-codegen = { path = "skyscraper/bn254-multiplier-codegen" }
fp-rounding = { path = "skyscraper/fp-rounding" }
hla = { path = "skyscraper/hla" }
skyscraper = { path = "skyscraper/core" }
ntt = { path = "ntt" }
poseidon2 = { path = "poseidon2" }
# Workspace members - ProveKit
provekit-bench = { path = "tooling/provekit-bench" }
provekit-cli = { path = "tooling/cli" }
provekit-common = { path = "provekit/common" , features = ["provekit_ntt"]}
provekit-ffi = { path = "tooling/provekit-ffi" }
provekit-gnark = { path = "tooling/provekit-gnark" }
provekit-prover = { path = "provekit/prover", default-features = false }
provekit-r1cs-compiler = { path = "provekit/r1cs-compiler" }
provekit-verifier = { path = "provekit/verifier" }
provekit-verifier-server = { path = "tooling/verifier-server" }
provekit-wasm = { path = "tooling/provekit-wasm" }
# 3rd party
anyhow = "1.0.93"
argh = "0.1.12"
axum = "0.8.4"
base64 = "0.22.1"
bincode = "1.3"
bytes = "1.10.1"
chrono = "0.4.41"
# On CI divan get replaced by divan = { package = "codspeed-divan-compat", version = "3.0.1" } for benchmark tracking.
# This is a workaround because different package selection based on target does not mix well with workspace dependencies.
divan = "0.1.21"
hex = "0.4.3"
itertools = "0.14.0"
num-bigint = "0.4"
paste = "1.0.15"
postcard = { version = "1.1.1", features = ["use-std"] }
primitive-types = "0.13.1"
proptest = "1.6.0"
quickcheck = "1.0.3"
quickcheck_macros = "1.0.0"
rand = "0.9.1"
rand08 = { package = "rand", version = "0.8" }
rayon = "1.10.0"
reqwest = "0.12.23"
ruint = { version = "1.12.3", features = ["num-traits", "rand"] }
seq-macro = "0.3.6"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
blake3 = "1.8.3"
sha2 = { version = "0.10.9", features = ["asm"] }
sha3 = "0.10"
tempfile = "3"
test-case = "3.3.1"
tikv-jemallocator = "0.6"
toml = "0.8.8"
tokio = { version = "1.47.1", features = ["full"] }
tokio-util = "0.7.13"
tower = "0.5.2"
tower-http = { version = "0.6.6", features = ["cors", "timeout", "trace"] }
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "ansi"] }
tracing-tracy = "=0.11.4"
tracy-client = "=0.18.0"
tracy-client-sys = "=0.24.3"
parking_lot = "0.12"
# Version-anchored: acvm_blackbox_solver (noir beta.19) requires keccak = "0.2.0-rc.0"
# and calls keccak::f1600(), which was removed in keccak 0.2.0 stable. Pinning to
# the RC prevents `cargo update` from bumping acvm_blackbox_solver's keccak to stable.
keccak = "=0.2.0-rc.2"
xz2 = "0.1.7"
zerocopy = "0.8.25"
zeroize = "1.8.1"
zstd = "0.13"
# WASM-specific dependencies
js-sys = "0.3"
lzma-rs = "0.3"
ruzstd = "0.8"
wasm-bindgen-rayon = "1.2"
wasm-bindgen = "0.2"
serde-wasm-bindgen = "0.6"
console_error_panic_hook = "0.1"
getrandom = { version = "0.2", features = ["js"] }
getrandom03 = { package = "getrandom", version = "0.3", features = ["wasm_js"] }
# Required by transitive deps (e.g. rand_core 0.10) when building wasm32-unknown-unknown.
getrandom04 = { package = "getrandom", version = "0.4", features = ["wasm_js"] }
# Noir language dependencies
acir = { git = "https://github.com/noir-lang/noir", rev = "v1.0.0-beta.19" }
bn254_blackbox_solver = { git = "https://github.com/noir-lang/noir", rev = "v1.0.0-beta.19" }
nargo = { git = "https://github.com/noir-lang/noir", rev = "v1.0.0-beta.19" }
nargo_cli = { git = "https://github.com/noir-lang/noir", rev = "v1.0.0-beta.19" }
nargo_toml = { git = "https://github.com/noir-lang/noir", rev = "v1.0.0-beta.19" }
noir_artifact_cli = { git = "https://github.com/noir-lang/noir", rev = "v1.0.0-beta.19" }
noirc_abi = { git = "https://github.com/noir-lang/noir", rev = "v1.0.0-beta.19" }
noirc_artifacts = { git = "https://github.com/noir-lang/noir", rev = "v1.0.0-beta.19" }
noirc_driver = { git = "https://github.com/noir-lang/noir", rev = "v1.0.0-beta.19" }
# Cryptography and proof systems
ark-bn254 = { version = "0.5.0", default-features = false, features = [
"scalar_field",
] }
ark-ff = { version = "0.5", features = ["asm", "std"] }
ark-poly = "0.5"
ark-serialize = "0.5"
ark-std = { version = "0.5", features = ["std"] }
mavros-vm = { git = "https://github.com/reilabs/mavros", rev = "3e47fd58001a0109a0314bc080b5246fd807ba04" }
mavros-artifacts = { git = "https://github.com/reilabs/mavros", rev = "3e47fd58001a0109a0314bc080b5246fd807ba04" }
spongefish = { git = "https://github.com/arkworks-rs/spongefish", features = [
"ark-ff",
"sha2",
], rev = "fcc277f8a857fdeeadd7cca92ab08de63b1ff1a1" }
spongefish-pow = { git = "https://github.com/arkworks-rs/spongefish", rev = "fcc277f8a857fdeeadd7cca92ab08de63b1ff1a1" }
whir = { git ="https://github.com/WizardOfMenlo/whir/", rev="0aeaa7f337c743d9ddfcb9d909628d6491e3355c", features = ["tracing", "rs_in_order"] }