forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
215 lines (201 loc) · 8.7 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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
[workspace]
resolver = "2"
exclude = [
"external-crates/move/extensions/move-table-extension",
"external-crates/move/move-binary-format",
"external-crates/move/move-binary-format/serializer-tests",
"external-crates/move/move-borrow-graph",
"external-crates/move/move-bytecode-verifier",
"external-crates/move/move-bytecode-verifier/bytecode-verifier-tests",
"external-crates/move/move-bytecode-verifier/fuzz",
"external-crates/move/move-bytecode-verifier/invalid-mutations",
"external-crates/move/move-bytecode-verifier/transactional-tests",
"external-crates/move/move-command-line-common",
"external-crates/move/move-compiler",
"external-crates/move/move-compiler/transactional-tests",
"external-crates/move/move-core/types",
"external-crates/move/move-ir/types",
"external-crates/move/move-ir-compiler",
"external-crates/move/move-ir-compiler/move-bytecode-source-map",
"external-crates/move/move-ir-compiler/move-ir-to-bytecode",
"external-crates/move/move-ir-compiler/move-ir-to-bytecode/syntax",
"external-crates/move/move-ir-compiler/transactional-tests",
"external-crates/move/move-model",
"external-crates/move/move-prover",
"external-crates/move/move-prover/boogie-backend",
"external-crates/move/move-prover/bytecode",
"external-crates/move/move-prover/interpreter",
"external-crates/move/move-prover/interpreter/crypto",
"external-crates/move/move-prover/interpreter-testsuite",
"external-crates/move/move-prover/move-abigen",
"external-crates/move/move-prover/move-docgen",
"external-crates/move/move-prover/move-errmapgen",
"external-crates/move/move-prover/test-utils",
"external-crates/move/move-stdlib",
"external-crates/move/move-symbol-pool",
"external-crates/move/move-vm/integration-tests",
"external-crates/move/move-vm/paranoid-tests",
"external-crates/move/move-vm/runtime",
"external-crates/move/move-vm/test-utils",
"external-crates/move/move-vm/transactional-tests",
"external-crates/move/move-vm/types",
"external-crates/move/testing-infra/module-generation",
"external-crates/move/testing-infra/test-generation",
"external-crates/move/testing-infra/transactional-test-runner",
"external-crates/move/tools/move-bytecode-utils",
"external-crates/move/tools/move-bytecode-viewer",
"external-crates/move/tools/move-cli",
"external-crates/move/tools/move-coverage",
"external-crates/move/tools/move-disassembler",
"external-crates/move/tools/move-explain",
"external-crates/move/tools/move-package",
"external-crates/move/tools/move-resource-viewer",
"external-crates/move/tools/move-unit-test",
"external-crates/move/tools/read-write-set",
"external-crates/move/tools/read-write-set/dynamic",
"external-crates/move/tools/read-write-set/types"
]
members = [
"crates/mysten-common",
"crates/mysten-metrics",
"crates/mysten-network",
"crates/mysten-util-mem",
"crates/mysten-util-mem-derive",
"crates/prometheus-closure-metric",
"crates/shared-crypto",
"crates/sui",
"crates/sui-adapter",
"crates/sui-adapter-transactional-tests",
"crates/sui-benchmark",
"crates/sui-cluster-test",
"crates/sui-config",
"crates/sui-core",
"crates/sui-cost",
"crates/sui-cost-tables",
"crates/sui-faucet",
"crates/sui-framework",
"crates/sui-framework-build",
"crates/sui-framework-tests",
"crates/sui-indexer",
"crates/sui-json",
"crates/sui-json-rpc",
"crates/sui-json-rpc-types",
"crates/sui-keys",
"crates/sui-macros",
"crates/sui-move",
"crates/sui-network",
"crates/sui-node",
"crates/sui-open-rpc",
"crates/sui-open-rpc-macros",
"crates/sui-proc-macros",
"crates/sui-protocol-config",
"crates/sui-proxy",
"crates/sui-rosetta",
"crates/sui-rpc-loadgen",
"crates/sui-sdk",
"crates/sui-simulator",
"crates/sui-source-validation",
"crates/sui-storage",
"crates/sui-swarm",
"crates/sui-telemetry",
"crates/sui-test-validator",
"crates/sui-tls",
"crates/sui-tool",
"crates/sui-transaction-builder",
"crates/sui-transactional-test-runner",
"crates/sui-types",
"crates/sui-verifier",
"crates/sui-verifier-transactional-tests",
"crates/telemetry-subscribers",
"crates/test-utils",
"crates/typed-store",
"crates/typed-store-derive",
"crates/workspace-hack",
"crates/x",
"narwhal/config",
"narwhal/consensus",
"narwhal/crypto",
"narwhal/dag",
"narwhal/examples",
"narwhal/executor",
"narwhal/network",
"narwhal/node",
"narwhal/primary",
"narwhal/storage",
"narwhal/test-utils",
"narwhal/types",
"narwhal/worker",
]
[workspace.package]
# This version string will be inherited by sui-core, sui-faucet, sui-node, sui-tools, sui-sdk, and sui crates
version = "0.31.0"
[profile.release]
# debug = 1 means line charts only, which is minimum needed for good stack traces
debug = 1
# Write debug info into a separate file.
split-debuginfo = 'packed'
# Without stripping, sui binary size would be > 1GB.
strip = 'debuginfo'
# Exit process with SIGABRT when any thread panics
panic = 'abort'
# Same as release, but build binary with debug symbols (binary size will be ~ 1GB).
[profile.release-dbgsym]
inherits = "release"
split-debuginfo = 'off'
strip = 'none'
# Inherits from the release profile above.
[profile.bench]
# For convenience.
strip = 'none'
[profile.test.package.move-compiler]
# opt-level 2 for move-compiler reduces the size of some of its
# (recursive) stack frames by up to 10x, avoiding stack overflows.
opt-level = 2
[profile.simulator]
inherits = "test"
debug = true
debug-assertions = true
overflow-checks = true
# opt-level 1 gives >5x speedup for simulator tests without slowing down build times very much.
opt-level = 1
# Dependencies that should be kept in sync through the whole workspace
[workspace.dependencies]
bcs = "0.1.4"
tokio = "1.27.0"
axum = { version = "0.6.6", default-features = false, features = ["headers", "tokio", "http1", "http2", "json", "matched-path", "original-uri", "form", "query"] }
# Move dependencies
move-binary-format = { path = "external-crates/move/move-binary-format" }
move-bytecode-utils = { path = "external-crates/move/tools/move-bytecode-utils" }
move-bytecode-verifier = { path = "external-crates/move/move-bytecode-verifier" }
move-cli = { path = "external-crates/move/tools/move-cli" }
move-compiler = { path = "external-crates/move/move-compiler" }
move-core-types = { path = "external-crates/move/move-core/types", features = ["address32"] }
move-disassembler = { path = "external-crates/move/tools/move-disassembler" }
move-package = { path = "external-crates/move/tools/move-package" }
move-stdlib = { path = "external-crates/move/move-stdlib" }
move-vm-runtime = { path = "external-crates/move/move-vm/runtime" }
move-unit-test = { path = "external-crates/move/tools/move-unit-test" }
move-vm-test-utils = { path = "external-crates/move/move-vm/test-utils" }
move-vm-types = { path = "external-crates/move/move-vm/types" }
move-command-line-common = { path = "external-crates/move/move-command-line-common" }
move-transactional-test-runner = { path = "external-crates/move/testing-infra/transactional-test-runner" }
move-ir-types = { path = "external-crates/move/move-ir/types" }
move-prover = { path = "external-crates/move/move-prover" }
move-prover-boogie-backend = { path = "external-crates/move/move-prover/boogie-backend" }
move-stackless-bytecode = { path = "external-crates/move/move-prover/bytecode" }
move-symbol-pool = { path = "external-crates/move/move-symbol-pool" }
fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "84fd7c7428c5f59185aecc56a2e0a006e8e07de1" }
fastcrypto-zkp = { git = "https://github.com/MystenLabs/fastcrypto", rev = "84fd7c7428c5f59185aecc56a2e0a006e8e07de1", package = "fastcrypto-zkp" }
# anemo dependencies
anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "40e3bf357313fe5caa924673711af8be4dc4096e" }
anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "40e3bf357313fe5caa924673711af8be4dc4096e" }
anemo-cli = { git = "https://github.com/mystenlabs/anemo.git", rev = "40e3bf357313fe5caa924673711af8be4dc4096e"}
anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "40e3bf357313fe5caa924673711af8be4dc4096e"}
# Use the same workspace-hack across crates.
workspace-hack = { path = "crates/workspace-hack" }
mysten-common = { path = "crates/mysten-common" }
mysten-network = { path = "crates/mysten-network" }
mysten-util-mem = { path = "crates/mysten-util-mem" }
telemetry-subscribers = { path = "crates/telemetry-subscribers" }
typed-store = { path = "crates/typed-store" }
typed-store-derive = { path = "crates/typed-store-derive" }