forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
x.toml
287 lines (244 loc) · 8.56 KB
/
x.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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
[grcov.installer]
version = "0.8.2"
[system-tests]
smoke-test = { path = "smoke-test" }
testcases = { path = "testsuite/testcases" }
[cargo.sccache]
bucket = "ci-artifacts.aptoslabs.com"
prefix = "sccache/aptos/"
public = true
region = "us-west-2"
endpoint = "https://s3-us-west-2.amazonaws.com"
required-cargo-home = "/opt/cargo"
required-git-home = "/opt/git/aptos-core"
envs = [
#To debug sccache uncomment the two lines below.
#["SCCACHE_ERROR_LOG","/tmp/sccache_log"],
#["SCCACHE_LOG", "sccache::compiler::compiler=trace,rusoto_core::request=trace"],
]
[cargo.sccache.installer]
version = "0.2.16-alpha.0"
git = "https://github.com/mozilla/sccache.git"
git-rev = "ef50d87a58260c30767520045e242ccdbdb965af"
features = [ "s3" ]
[fix]
[clippy]
allowed = [
# Deriving Arbitrary often causes this warning to show up.
"clippy::unit_arg",
"clippy::eval-order-dependence",
"clippy::new-without-default",
"clippy::rc_buffer",
"clippy::upper_case_acronyms",
"clippy::len-without-is-empty",
"clippy::from-iter-instead-of-collect",
"clippy::while-let-on-iterator",
"clippy::bool-assert-comparison",
"clippy::needless-collect",
"clippy::enum-variant-names",
"clippy::self-named-constructors",
]
warn = [
"clippy::wildcard_dependencies",
]
[hakari]
resolver = "2"
hakari-package = "aptos-workspace-hack"
exact-versions = true
platforms = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
]
# Ideally we'd have powerpc-unknown-linux-gnu here as well, but unification causes openssl-sys to be included,
# and openssl can't be cross-compiled without extra work. This may need to be fixed in hakari through being able
# to say "consider only these packages for these target platforms".
[hakari.traversal-excludes]
workspace-members = [
# Don't consider the crypto packages as they do weird things with mutually exclusive features.
"aptos-crypto",
"aptos-crypto-derive",
# Also exclude the devtools packages since they get compiled with a different set of options.
"x",
"x-core",
"x-lint",
# Don't consider since it includes excluded move crates
"move-deps",
# Don't include these since they contain test features that we don't want in production.
"forge",
"transaction-emitter",
]
[hakari.final-excludes]
third-party = [
# Exclude the fail crate because the failpoints feature should only be enabled
# for certain builds.
{ name = "fail" },
{ name = "move-binary-format", git = "https://github.com/move-language/move", rev = "f2e7585b1ed5bd2810163d6bdebafe5a388881d3" },
{ name = "move-core-types", git = "https://github.com/move-language/move", rev = "f2e7585b1ed5bd2810163d6bdebafe5a388881d3", features=["address32"] },
{ name = "move-stdlib", git = "https://github.com/move-language/move", rev = "f2e7585b1ed5bd2810163d6bdebafe5a388881d3" },
{ name = "move-vm-runtime", git = "https://github.com/move-language/move", rev = "f2e7585b1ed5bd2810163d6bdebafe5a388881d3" },
{ name = "move-vm-types", git = "https://github.com/move-language/move", rev = "f2e7585b1ed5bd2810163d6bdebafe5a388881d3" },
]
# This follows the same syntax as CargoOptionsSummary in guppy.
[summaries.default]
resolver = "2"
include-dev = false
initials-platform = "standard"
[summaries.default.target-platform]
triple = "x86_64-unknown-linux-gnu"
target-features = "all"
[summaries.default.host-platform]
triple = "x86_64-unknown-linux-gnu"
target-features = "all"
[summaries.default.omitted-packages]
workspace-members = [
"aptos-workspace-hack",
]
[summaries.full]
version = "v2"
include-dev = true
initials-platform = "standard"
# Don't set target or host platforms, or omitted packages, for the full set.
[workspace]
# Regex for allowed characters in paths. Regex must have ^ and $ anchors.
allowed-paths = "^([a-zA-Z0-9._\\-/@:]|-)+$"
whitespace-exceptions = [
".github/actions/*/dist/*",
# TODO: reevaluate skipping whitespace checks in .md files for the website
"developer-docs-site/**/*",
"**/*.exp",
"**/*.errmap",
"**/*.abi",
"terraform/**/*",
]
license-exceptions = [
"terraform/**/*",
]
[workspace.enforced-attributes]
authors = ["Aptos Labs <[email protected]>"]
license = "Apache-2.0"
[workspace.banned-deps.direct]
lazy_static = "use once_cell::sync::Lazy instead"
[workspace.banned-deps.default-build]
criterion = "criterion is only for benchmarks"
proptest = "proptest is only for testing and fuzzing"
[workspace.direct-dep-dups]
allow = [
]
[workspace.overlay]
features = ["failpoints", "fuzzing"]
# This is a list of test-only members. These are workspace members that do not form part of the main
# Aptos production codebase, and are only used to verify correctness and/or performance.
#
# *** IMPORTANT ***
#
# Published developer tools (e.g. Move compiler) ARE part of the production Aptos codebase.
# They should be listed in the root Cargo.toml's default-members, not here!
#
# Before adding a new crate to this list, ensure that it is *actually* test-only. If not, add it
# (or a crate that depends on it) to the root Cargo.toml's default-members list!
#
# For more, see the "Conditional compilation for tests" section in documentation/coding_guidelines.md.
[workspace.test-only]
members = [
# Please keep this list in alphabetical order!
"testcases",
"aptos-fuzz",
"aptos-fuzzer",
"aptos-keygen",
"aptos-proptest-helpers",
"aptos-retrier",
"aptos-transaction-benchmarks",
"aptos-writeset-generator",
"executor-benchmark",
"executor-test-helpers",
"forge",
"forge-cli",
"generate-format",
"language-e2e-tests",
"language-e2e-testsuite",
"memsocket",
"move-examples",
"smoke-test",
"transaction-emitter",
"x",
"x-core",
"x-lint",
# Please keep this list in alphabetical order!
]
[workspace.move-to-aptos-deps]
# By default, all crates in the language directory are considered Move crates
# and are forbidden from depending on any Aptos crates.
#
# Adding a crate's name to this list will mark it as a Aptos crate so that the
# linter will not impose said restriction on it.
#
# Note: if your crate is indeed a Move crate and you are getting the linter
# yelling at you, you should redesign your crate and properly remove that
# dependency, instead of adding the crate to this list and silencing the lint.
aptos_crates_in_language = [
]
# A special set of aptos crates Move crates are allowed to depend on.
#
# You should not add new entries to this list unless you have a rare justifiable
# reason. (read: Just don't.)
#
# Particularly, please do not abuse this to silence the lint when it complains
# about Move crates depending on Aptos ones. Again, you should instead fix
# the design of your crate so it doesn't have to depend on Aptos.
exclude = [
"aptos-workspace-hack",
]
# Interesting subsets of the workspace, These are used for generating and
# checking dependency summaries.
[subsets.lsr]
# The Aptos safety rules TCB.
root-members = [
"safety-rules",
]
[subsets.release]
# The Aptos release binaries
root-members = [
"backup-cli",
"db-bootstrapper",
"aptos",
"aptos-genesis-tool",
"aptos-node",
"aptos-operational-tool",
"safety-rules",
]
# ---
# Determinator rules
# ---
# CI-related files. TODO: maybe have separate rules for local and CI?
[[determinator.path-rule]]
globs = [".circleci/**/*", ".github/**/*", "codecov.yml"]
mark-changed = "all"
# Core devtools files.
[[determinator.path-rule]]
globs = [".config/nextest.toml", "scripts/dev_setup.sh", "x.toml"]
mark-changed = "all"
[[determinator.path-rule]]
# Ignore website and other ancillary files, and scripts not listed above.
globs = ["dashboards/**", "developer-docs-site/**/*", "documentation/**/*", "docker/**/*", "language/documentation/**/*", "specifications/**/*", "scripts/**/*", "terraform/**/*"]
mark-changed = []
[[determinator.path-rule]]
# Ignore ecosytem typescript
globs = ["ecosystem/typescript/**/*", "ecosystem/web-wallet/**/*", "ecosystem/platform/**/*"]
mark-changed = []
[[determinator.path-rule]]
# A bunch of images that should be ignored, I guess.
globs = [".assets/aptos_banner.png", ".assets/aptos.png", "storage/data.png"]
mark-changed = []
[[determinator.path-rule]]
# Ignore *.md documentation
globs = ["*.md"]
mark-changed = []
[[determinator.path-rule]]
# Required by get_stdlib_script_abis in transaction-builder-generator.
globs = ["aptos-move/framework/DPN/releases/artifacts/current/**/*"]
mark-changed = ["transaction-builder-generator"]
post-rule = "skip-rules"
[[determinator.package-rule]]
# x controls the build process, so if it changes, build everything.
on-affected = ["x"]
mark-changed = "all"