-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
66 lines (56 loc) · 2.03 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
# Project structuring (for node)
# ---------------------------
# The workspace deals with crates for different compilation
# targets, two in particular: `mozak` for zk-platform mozak and `native`.
# `native` targets are supposed to be built for dev machines'
# specifications e.g. `x86_64-unknown-linux-gnu` or `aarch64-apple-darwin`.
# `mozak` targets are supposed to be built with
# `buildtarget/riscv32im-mozak-mozakvm-elf.json` or originally:
# https://github.com/0xmozak/mozak-vm/blob/main/examples/.cargo/riscv32im-mozak-mozakvm-elf.json
#
# The `members` described below list only crates with `native` target
# The `exclude` described below list only crates with `mozak` target
#
# Crates that target `mozak` while live in the same repository, do not form
# the part of this workspace
[workspace]
exclude = ["sdk"]
members = [
"build-scripts",
"circuits",
"cli",
"examples-builder",
"expr",
"node",
"recproofs",
"runner",
"signatures",
"wasm-demo",
]
resolver = "2"
[profile.dev]
lto = "thin"
# We are running our tests with optimizations turned on to make them faster.
# Please turn optimizations off, when you want accurate stack traces for debugging.
opt-level = 2
[profile.dev.package."*"]
# Set the default for dependencies in Development mode.
opt-level = 3
[profile.dev.package.mozak-cli]
opt-level = 1
[profile.release]
lto = "fat"
[profile.bench]
lto = "thin"
opt-level = 3
[workspace.dependencies]
plonky2 = { version = "0", default-features = false }
plonky2_maybe_rayon = { version = "0", default-features = false }
starky = { version = "0", default-features = false }
plonky2_crypto = { git = "https://github.com/0xmozak/plonky2-crypto.git" }
criterion = { version = "0.5", default-features = false, features = ["html_reports", "plotters", "cargo_bench_support"] }
[patch.crates-io]
clio = { git = "https://github.com/0xmozak/clio.git" }
plonky2 = { git = "https://github.com/0xmozak/plonky2.git" }
plonky2_maybe_rayon = { git = "https://github.com/0xmozak/plonky2.git" }
starky = { git = "https://github.com/0xmozak/plonky2.git" }