forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
228 lines (218 loc) · 9.28 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
216
217
218
219
220
221
222
223
224
225
226
227
228
[workspace]
resolver = "2"
members = [
"api",
"api/openapi-spec-generator",
"api/test-context",
"api/types",
"aptos-move/aptos-aggregator",
"aptos-move/aptos-gas",
"aptos-move/aptos-resource-viewer",
"aptos-move/aptos-sdk-builder",
"aptos-move/aptos-transaction-benchmarks",
"aptos-move/aptos-transactional-test-harness",
"aptos-move/aptos-validator-interface",
"aptos-move/aptos-vm",
"aptos-move/e2e-move-tests",
"aptos-move/e2e-tests",
"aptos-move/e2e-testsuite",
"aptos-move/framework",
"aptos-move/framework/artifacts-test",
"aptos-move/framework/cached-packages",
"aptos-move/gas-algebra-ext",
"aptos-move/move-examples",
"aptos-move/mvhashmap",
"aptos-move/package-builder",
"aptos-move/parallel-executor",
"aptos-move/vm-genesis",
"aptos-move/writeset-transaction-generator",
"aptos-node",
"config",
"config/global-constants",
"consensus",
"consensus/consensus-types",
"consensus/safety-rules",
"crates/aptos",
"crates/aptos-bitvec",
"crates/aptos-build-info",
"crates/aptos-compression",
"crates/aptos-crypto",
"crates/aptos-crypto-derive",
"crates/aptos-faucet",
"crates/aptos-faucet-cli",
"crates/aptos-genesis",
"crates/aptos-id-generator",
"crates/aptos-infallible",
"crates/aptos-keygen",
"crates/aptos-log-derive",
"crates/aptos-logger",
"crates/aptos-metrics-core",
"crates/aptos-network-checker",
"crates/aptos-openapi",
"crates/aptos-proptest-helpers",
"crates/aptos-rate-limiter",
"crates/aptos-rest-client",
"crates/aptos-retrier",
"crates/aptos-rosetta",
"crates/aptos-rosetta-cli",
"crates/aptos-telemetry",
"crates/aptos-telemetry-service",
"crates/aptos-temppath",
"crates/aptos-time-service",
"crates/aptos-warp-webserver",
"crates/bounded-executor",
"crates/channel",
"crates/crash-handler",
"crates/fallible",
"crates/indexer",
"crates/inspection-service",
"crates/node-resource-metrics",
"crates/num-variants",
"crates/proxy",
"crates/short-hex-str",
"crates/transaction-emitter",
"crates/transaction-emitter-lib",
"ecosystem/node-checker",
"ecosystem/node-checker/fn-check-client",
"ecosystem/sf-indexer/firehose-stream",
"execution/db-bootstrapper",
"execution/executor",
"execution/executor-benchmark",
"execution/executor-test-helpers",
"execution/executor-types",
"mempool",
"network",
"network/builder",
"network/discovery",
"network/memsocket",
"network/netcore",
"network/peer-monitoring-service/client",
"network/peer-monitoring-service/server",
"network/peer-monitoring-service/types",
"sdk",
"secure/net",
"secure/storage",
"secure/storage/github",
"secure/storage/vault",
"state-sync/aptos-data-client",
"state-sync/inter-component/consensus-notifications",
"state-sync/inter-component/event-notifications",
"state-sync/inter-component/mempool-notifications",
"state-sync/state-sync-v2/data-streaming-service",
"state-sync/state-sync-v2/state-sync-driver",
"state-sync/storage-service/client",
"state-sync/storage-service/server",
"state-sync/storage-service/types",
"storage/accumulator",
"storage/aptosdb",
"storage/backup/backup-cli",
"storage/backup/backup-service",
"storage/indexer",
"storage/jellyfish-merkle",
"storage/rocksdb-options",
"storage/schemadb",
"storage/scratchpad",
"storage/state-view",
"storage/storage-interface",
"testsuite/aptos-fuzzer",
"testsuite/aptos-fuzzer/fuzz",
"testsuite/dos/http_test",
"testsuite/dos/listener",
"testsuite/dos/sender",
"testsuite/forge",
"testsuite/forge-cli",
"testsuite/generate-format",
"testsuite/smoke-test",
"testsuite/testcases",
"types",
"vm-validator",
]
exclude = ["crates/aptos-protos", "ecosystem/sf-indexer"]
# NOTE: default-members is the complete list of binaries that form the "production Aptos codebase". These members should
# never include crates that require fuzzing features or test features. These are the crates we want built with no extra
# test-only code included.
#
# For more, see the "Conditional compilation for tests" section in documentation/coding_guidelines.md.
default-members = [
"aptos-node",
"consensus/safety-rules",
"crates/aptos",
"crates/aptos-faucet",
"crates/aptos-keygen",
"crates/aptos-rate-limiter",
"crates/aptos-rosetta",
"crates/transaction-emitter",
"aptos-move/framework",
"execution/db-bootstrapper",
"storage/backup/backup-cli",
"ecosystem/node-checker",
]
# All workspace members should inherit these keys
# for package declarations.
[workspace.package]
authors = ["Aptos Labs <opensource@aptoslabs.com>"]
edition = "2021"
homepage = "https://aptoslabs.com"
license = "Apache-2.0"
publish = false
repository = "https://github.com/aptos-labs/aptos-core"
rust-version = "1.64"
[workspace.dependencies]
# BEGIN MOVE DEPENDENCIES
move-abigen = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-binary-format = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-bytecode-verifier = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-bytecode-utils = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-cli = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-command-line-common = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-compiler ={ git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-core-types = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753", features = ["address32"] }
move-docgen = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-ir-compiler = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-model = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-package = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-prover = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-prover-boogie-backend = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-stackless-bytecode = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-prover-test-utils = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-resource-viewer = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-stackless-bytecode-interpreter = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-stdlib = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-symbol-pool = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-table-extension = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-transactional-test-runner = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
move-unit-test = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753", features = ["table-extension"] }
move-vm-runtime = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753", features = ["lazy_natives"] }
move-vm-test-utils = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753", features = ["table-extension"] }
move-vm-types = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
read-write-set = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
read-write-set-dynamic = { git = "https://github.com/move-language/move", rev = "64a03b1d5bdc3751b95d89c675e63f1ca205e753" }
# END MOVE DEPENDENCIES
[profile.release]
debug = true
overflow-checks = true
# The performance build is not currently recommended
# for production deployments. It has not been widely tested.
[profile.performance]
inherits = "release"
opt-level = 3
debug = true
overflow-checks = true
lto = true
codegen-units = 1
[profile.cli]
inherits = "release"
debug = false
opt-level = "z"
lto = true
strip = true
codegen-units = 1
[profile.bench]
debug = true
# This is a temporary workaround to avoid multiple library
# definitions for LZ4 (caused by rust-rocksdb).
# This will be removed once our pull requests land.
# https://github.com/rust-rocksdb/rust-rocksdb/issues/666
[patch.crates-io]
rocksdb = { git = 'https://github.com/aptos-labs/rust-rocksdb' }
serde-reflection = { git = "https://github.com/aptos-labs/serde-reflection", rev = "839aed62a20ddccf043c08961cfe74875741ccba" }