-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathCargo.toml
More file actions
243 lines (220 loc) · 6.47 KB
/
Cargo.toml
File metadata and controls
243 lines (220 loc) · 6.47 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
[workspace]
exclude = [
"debug_utils/casm-data-flow",
]
members = [
"debug_utils",
"debug_utils/sierra-emu",
"debug_utils/cairo-native-stress",
"binaries/cairo-native-compile",
"binaries/cairo-native-dump",
"binaries/cairo-native-run",
"binaries/cairo-native-test",
"binaries/cairo-native-test-2",
"binaries/scarb-native-dump",
"binaries/scarb-native-test",
"binaries/starknet-native-compile",
"binaries/cairo-native-bin-utils",
"test_utils",
]
[workspace.package]
version = "0.9.0-rc.6"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/starkware-libs/cairo_native"
[workspace.dependencies]
anyhow = "1.0"
aquamarine = "0.6.0"
ark-ec = "0.5.0"
ark-ff = "0.5.0"
ark-secp256k1 = "0.5.0"
ark-secp256r1 = "0.5.0"
bincode = "2.0.1"
bumpalo = "3.16.0"
cairo-lang-casm = "~2.17.0-rc.4"
cairo-lang-compiler = "~2.17.0-rc.4"
cairo-lang-defs = "~2.17.0-rc.4"
cairo-lang-filesystem = "~2.17.0-rc.4"
cairo-lang-lowering = "~2.17.0-rc.4"
cairo-lang-runner = "~2.17.0-rc.4"
cairo-lang-semantic = "~2.17.0-rc.4"
cairo-lang-sierra = "~2.17.0-rc.4"
cairo-lang-sierra-ap-change = "~2.17.0-rc.4"
cairo-lang-sierra-gas = "~2.17.0-rc.4"
cairo-lang-sierra-generator = "~2.17.0-rc.4"
cairo-lang-sierra-to-casm = "~2.17.0-rc.4"
cairo-lang-sierra-type-size = "~2.17.0-rc.4"
cairo-lang-starknet = "~2.17.0-rc.4"
cairo-lang-starknet-classes = "~2.17.0-rc.4"
cairo-lang-test-plugin = "~2.17.0-rc.4"
cairo-lang-test-runner = "~2.17.0-rc.4"
cairo-lang-utils = "~2.17.0-rc.4"
cairo-native-bin-utils.path = "binaries/cairo-native-bin-utils"
cairo-native = { path = ".", version = "0.9.0-rc.6" }
clap = "4.5.23"
colored = "2.1.0"
criterion = "0.5.1"
itertools = "0.14.0"
k256 = "0.13.4"
keccak = "0.1.5"
lambdaworks-math = "0.13.0"
lazy_static = "1.5"
libc = "0.2"
libloading = "0.8.6"
llvm-sys = "191.0.0"
melior = "0.21.0"
mlir-sys = "0.4.1"
num-bigint = "0.4.6"
num-integer = "0.1.46"
num-traits = "0.2"
p256 = "0.13.2"
pretty_assertions_sorted = "1.2.3"
proptest = "1.5.0"
rand = "0.9.0"
rayon = "1.10.0"
rstest = "0.24.0"
scarb-metadata = "1.12.0"
scarb-ui = "0.1.5"
sec1 = "0.7.3"
serde = "1.0.0"
serde_json = "1.0.128"
sha2 = "0.10.8"
sierra-emu = { path = "debug_utils/sierra-emu", version = "0.9.0-rc.6" }
smallvec = "1.13.2"
starknet-crypto = "0.8.1"
starknet-curve = "0.6.0"
starknet-types-core = { version = "0.2.3", features = ["hash"]}
stats_alloc = "0.1.10"
tempfile = "3.15.0"
test-case = "3.3"
thiserror = "2.0.9"
tracing = "0.1"
tracing-subscriber = "0.3.19"
utf8_iter = "1.0.4"
walkdir = "2.5.0"
# Can't update until https://github.com/magiclen/educe/issues/27.
educe = "0.5.11"
# Can't use version > 0.14.7 due to deprecation, as stated in issue https://github.com/fizyk20/generic-array/issues/158
generic-array = "<=0.14.7"
[package]
name = "cairo-native"
description = "A compiler to convert Cairo's IR Sierra code to MLIR and execute it."
readme = "README.md"
keywords = ["starknet", "cairo", "compiler", "mlir"]
categories = ["compilers"]
exclude = ["vendor/"]
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
# Explicitly set the resolver to the default for edition >= 2021
# https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html
resolver = "2"
[features]
with-cheatcode = []
with-debug-utils = []
with-mem-tracing = []
with-libfunc-profiling = []
with-segfault-catcher = []
with-trace-dump = ["dep:sierra-emu"]
testing = ["dep:cairo-lang-compiler", "dep:cairo-lang-filesystem"]
[dependencies]
aquamarine.workspace = true
bumpalo.workspace = true
cairo-lang-compiler = { workspace = true, optional = true }
cairo-lang-filesystem = { workspace = true, optional = true }
cairo-lang-lowering.workspace = true
cairo-lang-starknet.workspace = true
cairo-lang-runner.workspace = true
cairo-lang-sierra.workspace = true
cairo-lang-sierra-type-size.workspace = true
cairo-lang-utils.workspace = true
educe.workspace = true
itertools.workspace = true
lazy_static.workspace = true
libc.workspace = true
libloading.workspace = true
llvm-sys.workspace = true
melior = { workspace = true, features = ["ods-dialects", "helpers"] }
mlir-sys.workspace = true
num-bigint.workspace = true
num-integer.workspace = true
num-traits.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
sierra-emu = { workspace = true, optional = true }
starknet-types-core = { workspace = true, features = [ "std", "serde", "num-traits" ] }
tempfile.workspace = true
thiserror.workspace = true
tracing.workspace = true
utf8_iter.workspace = true
# Gas cost computation dependencies. Removing these implies either duplicating
# code or moving shared code to another crate.
cairo-lang-sierra-to-casm.workspace = true
cairo-lang-sierra-ap-change.workspace = true
cairo-lang-sierra-gas.workspace = true
# Contract compilation dependencies.
cairo-lang-starknet-classes.workspace = true
# Syscall handler implementation dependencies.
ark-ec.workspace = true
ark-ff.workspace = true
ark-secp256k1.workspace = true
ark-secp256r1.workspace = true
keccak.workspace = true
sha2.workspace = true
# Runtime library dependencies.
rand.workspace = true
starknet-curve.workspace = true
lambdaworks-math.workspace = true
[dev-dependencies]
cairo-lang-compiler.workspace = true
cairo-lang-filesystem.workspace = true
cairo-lang-runner.workspace = true
cairo-lang-sierra-generator.workspace = true
criterion = { workspace = true, features = ["html_reports"] }
lambdaworks-math.workspace = true
pretty_assertions_sorted.workspace = true
proptest.workspace = true
rayon.workspace = true
rstest.workspace = true
serde_json.workspace = true
test-case.workspace = true
tracing-subscriber = { workspace = true, features = ["env-filter", "json", "registry"] }
walkdir.workspace = true
[profile.optimized-dev]
inherits = "dev"
opt-level = 3
[profile.ci]
inherits = "dev"
opt-level = 3
debug = "line-tables-only"
[profile.release]
lto = true
codegen-units = 1
# Set the settings for build scripts and proc-macros.
[profile.dev.build-override]
opt-level = 3
# On dev optimize dependencies a bit so it's not as slow.
[profile.dev.package."*"]
opt-level = 1
[[bench]]
name = "benches"
harness = false
required-features = [ "testing" ]
[[bench]]
name = "compile_time"
harness = false
required-features = [ "testing" ]
[[bench]]
name = "libfuncs"
harness = false
required-features = [ "testing" ]
[[test]]
name = "entry"
required-features = [ "testing" ]
[[example]]
name = "invoke"
required-features = [ "testing" ]
[[example]]
name = "easy_api"
required-features = [ "testing" ]