forked from aditya-git16/proofPositive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
106 lines (93 loc) · 3.27 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
[workspace]
exclude = ["/home/rajasree/ast"]
[package]
name = "circ"
version = "0.1.0"
authors = ["Alex Ozdemir <aozdemir@hmc.edu>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
circ_fields = { path = "circ_fields" }
circ_opt = { path = "circ_opt" }
circ_hc = { path = "circ_hc", default-features = false, features = ["rc", "lru"]}
circ_waksman = { path = "circ_waksman" }
rug = { version = "1.11", features = ["serde"] }
gmp-mpfr-sys = { version = "1.4", optional = true }
lazy_static = { version = "1.4", optional = true }
rand = "0.8"
rand_chacha = "0.3"
rsmt2 = { version = "0.14", optional = true }
ieee754 = { version = "0.2", optional = true}
zokrates_parser = { path = "third_party/ZoKrates/zokrates_parser", optional = true }
zokrates_pest_ast = { path = "third_party/ZoKrates/zokrates_pest_ast", optional = true }
typed-arena = { version = "2.0", optional = true }
log = "0.4"
thiserror = "1.0"
bellman = { git = "https://github.com/alex-ozdemir/bellman.git", branch = "mirage", optional = true }
rug-polynomial = { version = "0.2.5", optional = true }
rayon = { version = "1", optional = true }
ff = { version = "0.12", optional = true }
fxhash = "0.2"
good_lp = { version = "1.1", features = ["lp-solvers", "coin_cbc"], default-features = false, optional = true }
group = { version = "0.12", optional = true }
lp-solvers = { version = "0.0.4", optional = true }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive", "rc"] }
serde_bytes = { version = "0.11", optional = true }
bincode = { version = "1.3.3", optional = true }
byteorder = { version = "1", optional = true }
lang-c = { version = "0.10.1", optional = true }
logos = "0.12"
pairing = { version = "0.22", optional = true }
pest = { version = "2.4", optional = true }
pest_derive = { version = "2.1", optional = true }
pest-ast = { version = "0.3", optional = true }
from-pest = { version = "0.3", optional = true }
itertools = "0.10"
petgraph = { version = "0.6", optional = true }
spartan = { version = "0.7.0", default-features = false, optional = true }
merlin = { version = "3.0.0", optional = true }
curve25519-dalek = {version = "3.2.0", features = ["serde"], optional = true}
# TODO: kill
paste = "1.0"
im = "15"
once_cell = "1"
[dev-dependencies]
quickcheck = "1"
quickcheck_macros = "1"
env_logger = "0.8"
bls12_381 = "0.7"
approx = "0.5.0"
[features]
default = []
# frontends
c = ["lang-c"]
zok = ["smt", "zokrates_parser", "zokrates_pest_ast", "typed-arena", "petgraph"]
datalog = ["pest", "pest-ast", "pest_derive", "from-pest", "lazy_static"]
# backends
smt = ["rsmt2", "ieee754"]
lp = ["good_lp", "lp-solvers"]
aby = ["lp"]
r1cs = ["bincode", "rayon"]
poly = ["rug-polynomial"]
spartan = ["r1cs", "dep:spartan", "merlin", "curve25519-dalek", "bincode", "gmp-mpfr-sys"]
bellman = ["r1cs", "dep:bellman", "ff", "group", "pairing", "serde_bytes", "bincode", "gmp-mpfr-sys", "byteorder", "rayon"]
[[example]]
name = "circ"
[[example]]
name = "zk"
required-features = ["r1cs"]
[[example]]
name = "cp"
required-features = ["bellman", "poly"]
[[example]]
name = "zxi"
required-features = ["smt", "zok"]
[[example]]
name = "zxc"
required-features = ["smt", "zok"]
[[example]]
name = "opa_bench"
required-features = ["lp", "aby"]
[profile.release]
debug = true