forked from AleoNet/snarkVM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
200 lines (171 loc) · 4.02 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
195
196
197
198
199
200
[package]
name = "snarkvm"
version = "0.7.5"
authors = [ "The Aleo Team <hello@aleo.org>" ]
description = "A decentralized virtual machine"
homepage = "https://aleo.org"
repository = "https://github.com/AleoHQ/snarkVM"
keywords = [
"aleo",
"cryptography",
"blockchain",
"decentralized",
"zero-knowledge"
]
categories = [ "compilers", "cryptography", "mathematics", "wasm", "web-programming" ]
include = [ "Cargo.toml", "snarkvm", "README.md", "LICENSE.md" ]
license = "GPL-3.0"
edition = "2021"
[workspace]
members = [
"algorithms",
"bytecode",
"circuit",
"circuit/account",
"circuit/algorithms",
"circuit/environment",
"circuit/environment/witness",
"circuit/network",
"circuit/program",
"circuit/types",
"circuit/types/address",
"circuit/types/boolean",
"circuit/types/field",
"circuit/types/integers",
"circuit/types/group",
"circuit/types/scalar",
"circuit/types/string",
"console",
"console/account",
"console/algorithms",
"console/network",
"console/program",
"console/types",
"curves",
"dpc",
"fields",
"gadgets",
"parameters",
"r1cs",
"utilities",
"utilities/derives", # excluded from [features], for internal use primarily
"wasm", # excluded from [features], WASM contexts will typically import this crate directly
".integration" # excluded from [features], for CI only
]
[lib]
path = "snarkvm/lib.rs"
[[bin]]
name = "snarkvm"
path = "snarkvm/cli/main.rs"
required-features = ["cli"]
[features]
default = ["core"]
#
# `core` is defined as the commonly-used members of snarkVM with default features.
#
# If you need more granular control of members and/or member features,
# please import the requisite crates directly and enable features as needed.
core = ["dpc", "utilities"]
full = ["algorithms", "bytecode", "circuit", "console", "curves", "dpc", "fields", "gadgets", "parameters", "r1cs", "utilities"]
## snarkVM workspace ##
algorithms = ["snarkvm-algorithms"]
bytecode = ["snarkvm-bytecode"]
circuit = ["snarkvm-circuit"]
console = ["snarkvm-console"]
curves = ["snarkvm-curves"]
dpc = ["snarkvm-dpc"]
fields = ["snarkvm-fields"]
gadgets = ["snarkvm-gadgets"]
parameters = ["snarkvm-parameters"]
r1cs = ["snarkvm-r1cs"]
utilities = ["snarkvm-utilities"]
## snarkVM workspace specific ##
cuda = ["snarkvm-algorithms/cuda"]
parameters_no_std_out = ["snarkvm-parameters/no_std_out"]
## snarkVM CLI ##
cli = ["anyhow", "clap", "colored", "self_update", "thiserror"]
## CI ##
noconfig = []
[dependencies.snarkvm-algorithms]
path = "./algorithms"
version = "0.7.5"
optional = true
[dependencies.snarkvm-bytecode]
path = "./bytecode"
version = "0.7.5"
optional = true
[dependencies.snarkvm-circuit]
path = "./circuit"
version = "0.7.5"
optional = true
[dependencies.snarkvm-console]
path = "./console"
version = "0.7.5"
optional = true
[dependencies.snarkvm-curves]
path = "./curves"
version = "0.7.5"
optional = true
[dependencies.snarkvm-dpc]
path = "./dpc"
version = "0.7.5"
optional = true
[dependencies.snarkvm-fields]
path = "./fields"
version = "0.7.5"
optional = true
[dependencies.snarkvm-gadgets]
path = "./gadgets"
version = "0.7.5"
optional = true
[dependencies.snarkvm-parameters]
path = "./parameters"
version = "0.7.5"
optional = true
[dependencies.snarkvm-r1cs]
path = "./r1cs"
version = "0.7.5"
optional = true
[dependencies.snarkvm-utilities]
path = "./utilities"
version = "0.7.5"
optional = true
[dependencies.anyhow]
version = "1.0.57"
optional = true
[dependencies.colored]
version = "2"
optional = true
[dependencies.self_update]
version = "0.30"
optional = true
[dependencies.clap]
version = "3.1"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "1.0"
optional = true
[dev-dependencies.rusty-hook]
version = "0.11.2"
[profile.release]
opt-level = 3
lto = "thin"
incremental = true
[profile.bench]
opt-level = 3
debug = false
rpath = false
lto = "thin"
incremental = true
debug-assertions = false
[profile.dev]
opt-level = 3
lto = "thin"
incremental = true
[profile.test]
opt-level = 3
lto = "thin"
incremental = true
debug = true
debug-assertions = true