forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
360 lines (337 loc) · 12.1 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
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
[workspace]
resolver = "2"
members = [
"crates/node-file-trace",
"crates/tower-uds",
"crates/turbo-static",
"crates/turbo-tasks*",
"crates/turbo-prehash",
"crates/turbopack*",
"crates/turborepo*",
"crates/update-informer",
"packages/turbo-repository/rust",
"xtask",
]
default-members = [
"crates/node-file-trace",
"crates/turbo-tasks",
"crates/turbo-tasks-auto-hash-map",
"crates/turbo-tasks-build",
"crates/turbo-tasks-bytes",
"crates/turbo-tasks-env",
"crates/turbo-tasks-fetch",
"crates/turbo-tasks-fs",
"crates/turbo-tasks-hash",
"crates/turbo-tasks-macros-shared",
"crates/turbo-tasks-macros-tests",
"crates/turbo-tasks-malloc",
"crates/turbo-tasks-memory",
"crates/turbo-tasks-signposter",
"crates/turbo-tasks-signposter-sys",
"crates/turbo-tasks-testing",
"crates/turbo-tasks-tracing-signpost",
"crates/turbopack",
"crates/turbopack-bench",
"crates/turbopack-cli-utils",
"crates/turbopack-core",
"crates/turbopack-create-test-app",
"crates/turbopack-css",
"crates/turbopack-browser",
"crates/turbopack-dev-server",
"crates/turbopack-ecmascript",
"crates/turbopack-env",
"crates/turbopack-json",
"crates/turbopack-mdx",
"crates/turbopack-node",
"crates/turbopack-resolve",
"crates/turbopack-static",
"crates/turbopack-swc-ast-explorer",
"crates/turbopack-swc-utils",
"crates/turbopack-test-utils",
"crates/turbopack-tests",
"crates/turbopack-trace-server",
"crates/turbopack-trace-utils",
"crates/turbopack-wasm",
"xtask",
]
[workspace.metadata.groups]
# Only the libraries, does not include the turborepo binary.
# That way we don't have to build the Go code
turborepo-libraries = ["path:crates/turborepo-*"]
turborepo = ["path:crates/turborepo*"]
turbopack = [
"path:crates/turbopack*",
"path:crates/turbo-tasks*",
"path:crates/node-file-trace",
]
# List of the packages can be compiled against wasm32-wasi target.
turbopack-wasi = [
"path:crates/turbo-tasks-auto-hash-map",
"path:crates/turbo-tasks-hash",
"path:crates/turbo-tasks-macro",
"path:crates/turbo-tasks-macros-shared",
"path:crates/turbo-tasks-build",
]
# Config for 'cargo dist'
[workspace.metadata.dist]
# Whether to consider the binaries in a package for distribution (defaults true)
dist = false
# Build only the required packages, and individually
precise-builds = true
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.15.1"
# CI backends to support
ci = "github"
# The installers to generate for each app
installers = ["npm"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-musl", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"]
# The archive format to use for windows builds (defaults .zip)
windows-archive = ".tar.gz"
# The archive format to use for non-windows builds (defaults .tar.xz)
unix-archive = ".tar.gz"
# Publish jobs to run in CI
pr-run-mode = "plan"
# Whether CI should trigger releases with dispatches instead of tag pushes
dispatch-releases = true
[workspace.metadata.dist.dependencies.homebrew]
protobuf = "*"
capnp = "*"
[workspace.metadata.dist.dependencies.chocolatey]
protoc = "27.1.0"
capnproto = "*"
[workspace.metadata.dist.dependencies.apt]
build-essential = "*"
musl-tools = "*"
musl-dev = "*"
clang = "*"
llvm = "*"
capnproto = "*"
gcc-aarch64-linux-gnu = { version = "*", targets = ["aarch64-unknown-linux-musl"] }
binutils-aarch64-linux-gnu = { version = "*", targets = ["aarch64-unknown-linux-musl"] }
protobuf-compiler = "2"
[workspace.lints.clippy]
too_many_arguments = "allow"
# This crate is particularly sensitive to compiler optimizations
[profile.dev.package.turbo-tasks-memory]
opt-level = 1
# Set the options for dependencies (not crates in the workspace), this mostly impacts cold builds
[profile.dev.package."*"]
opt-level = 1
# Set the settings for build scripts and proc-macros.
[profile.dev.build-override]
opt-level = 3
[profile.release]
lto = "off"
[profile.release-turborepo-lsp]
inherits = "release"
strip = true
opt-level = "z"
[profile.release-turborepo]
inherits = "release"
strip = true
# The profile that 'cargo dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"
# Declare dependencies used across workspace packages requires single version bump.
# ref: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#inheriting-a-dependency-from-a-workspace
[workspace.dependencies]
async-recursion = "1.0.2"
# Keep consistent with preset_env_base through swc_core
browserslist-rs = { version = "0.15.0" }
miette = { version = "5.10.0", features = ["fancy"] }
mdxjs = "0.2.4"
modularize_imports = { version = "0.68.16" }
styled_components = { version = "0.96.17" }
styled_jsx = { version = "0.73.24" }
swc_core = { version = "0.95.2", features = [
"ecma_loader_lru",
"ecma_loader_parking_lot",
] }
swc_emotion = { version = "0.72.15" }
swc_relay = { version = "0.44.16" }
testing = { version = "0.36.0" }
# Temporary: Reference the latest git minor version of pathfinder_simd until it's published.
pathfinder_simd = "0.5.3"
auto-hash-map = { path = "crates/turbo-tasks-auto-hash-map" }
node-file-trace = { path = "crates/node-file-trace", default-features = false }
signposter = { path = "crates/turbo-tasks-signposter" }
signposter-sys = { path = "crates/turbo-tasks-signposter-sys" }
tracing-signpost = { path = "crates/turbo-tasks-tracing-signpost" }
swc-ast-explorer = { path = "crates/turbopack-swc-ast-explorer" }
turbo-prehash = { path = "crates/turbo-prehash" }
turbo-tasks-malloc = { path = "crates/turbo-tasks-malloc", default-features = false }
turbo-tasks = { path = "crates/turbo-tasks" }
turbo-tasks-build = { path = "crates/turbo-tasks-build" }
turbo-tasks-bytes = { path = "crates/turbo-tasks-bytes" }
turbo-tasks-env = { path = "crates/turbo-tasks-env" }
turbo-tasks-fetch = { path = "crates/turbo-tasks-fetch", default-features = false }
turbo-tasks-fs = { path = "crates/turbo-tasks-fs" }
turbo-tasks-hash = { path = "crates/turbo-tasks-hash" }
turbo-tasks-macros = { path = "crates/turbo-tasks-macros" }
turbo-tasks-macros-shared = { path = "crates/turbo-tasks-macros-shared" }
turbo-tasks-macros-tests = { path = "crates/turbo-tasks-macros-tests" }
turbo-tasks-memory = { path = "crates/turbo-tasks-memory" }
turbo-tasks-testing = { path = "crates/turbo-tasks-testing" }
turbo-updater = { path = "crates/turborepo-updater" }
turbopack = { path = "crates/turbopack" }
turbopack-bench = { path = "crates/turbopack-bench" }
turbopack-nodejs = { path = "crates/turbopack-nodejs" }
turbopack-cli = { path = "crates/turbopack-cli" }
turbopack-cli-utils = { path = "crates/turbopack-cli-utils" }
turbopack-core = { path = "crates/turbopack-core" }
turbopack-create-test-app = { path = "crates/turbopack-create-test-app" }
turbopack-css = { path = "crates/turbopack-css" }
turbopack-browser = { path = "crates/turbopack-browser" }
turbopack-dev-server = { path = "crates/turbopack-dev-server" }
turbopack-ecmascript = { path = "crates/turbopack-ecmascript" }
turbopack-ecmascript-plugins = { path = "crates/turbopack-ecmascript-plugins", default-features = false }
turbopack-ecmascript-runtime = { path = "crates/turbopack-ecmascript-runtime" }
turbopack-ecmascript-hmr-protocol = { path = "crates/turbopack-ecmascript-hmr-protocol" }
turbopack-env = { path = "crates/turbopack-env" }
turbopack-image = { path = "crates/turbopack-image" }
turbopack-json = { path = "crates/turbopack-json" }
turbopack-mdx = { path = "crates/turbopack-mdx" }
turbopack-node = { path = "crates/turbopack-node" }
turbopack-resolve = { path = "crates/turbopack-resolve" }
turbopack-static = { path = "crates/turbopack-static" }
turbopack-swc-utils = { path = "crates/turbopack-swc-utils" }
turbopack-test-utils = { path = "crates/turbopack-test-utils" }
turbopack-tests = { path = "crates/turbopack-tests" }
turbopack-trace-server = { path = "crates/turbopack-trace-server" }
turbopack-trace-utils = { path = "crates/turbopack-trace-utils" }
turbopack-wasm = { path = "crates/turbopack-wasm" }
turbopath = { path = "crates/turborepo-paths" }
turborepo = { path = "crates/turborepo" }
turborepo-analytics = { path = "crates/turborepo-analytics" }
turborepo-api-client = { path = "crates/turborepo-api-client" }
turborepo-cache = { path = "crates/turborepo-cache" }
turborepo-ci = { path = "crates/turborepo-ci" }
turborepo-env = { path = "crates/turborepo-env" }
turborepo-errors = { path = "crates/turborepo-errors" }
turborepo-fs = { path = "crates/turborepo-fs" }
turborepo-lib = { path = "crates/turborepo-lib", default-features = false }
turborepo-lockfiles = { path = "crates/turborepo-lockfiles" }
turborepo-repository = { path = "crates/turborepo-repository" }
turborepo-ui = { path = "crates/turborepo-ui" }
turborepo-scm = { path = "crates/turborepo-scm" }
wax = { path = "crates/turborepo-wax" }
turborepo-vercel-api = { path = "crates/turborepo-vercel-api" }
turborepo-vercel-api-mock = { path = "crates/turborepo-vercel-api-mock" }
turborepo-vt100 = { path = "crates/turborepo-vt100" }
update-informer = { path = "crates/update-informer", default-features = false, features = ["reqwest"] }
# Be careful when selecting tls backend, including change default tls backend.
# If you changed, must verify with ALL build targets with next-swc to ensure
# it works. next-swc have various platforms, some doesn't support native (using openssl-sys)
# and some aren't buildable with rustls.
reqwest = { version = "0.12.4", default-features = false }
chromiumoxide = { version = "0.5.0", features = [
"tokio-runtime",
], default-features = false }
# For matching on errors from chromiumoxide. Keep in
# sync with chromiumoxide's tungstenite requirement.
tungstenite = "0.18.0"
anyhow = "1.0.69"
assert_cmd = "2.0.8"
async-compression = { version = "0.3.13", default-features = false, features = [
"gzip",
"tokio",
] }
async-trait = "0.1.64"
atty = "0.2.14"
axum = "0.6.2"
axum-server = "0.4.4"
biome_console = "0.5.7"
biome_deserialize = "0.5.7"
biome_diagnostics = "0.5.7"
biome_json_parser = "0.5.7"
biome_json_syntax = "0.5.7"
bytes = "1.1.0"
camino = { version = "1.1.4", features = ["serde1"] }
chrono = "0.4.23"
clap = "4.5.2"
clap_complete = "4.5.1"
concurrent-queue = "2.1.0"
console = "0.15.5"
console-subscriber = "0.1.8"
criterion = "0.4.0"
crossbeam-channel = "0.5.8"
dashmap = "5.4.0"
dialoguer = "0.10.3"
dunce = "1.0.3"
either = "1.9.0"
futures = "0.3.26"
futures-retry = "0.6.0"
hex = "0.4.3"
httpmock = { version = "0.6.8", default-features = false }
image = { version = "0.25.0", default-features = false }
indexmap = "1.9.2"
indicatif = "0.17.3"
indoc = "2.0.0"
itertools = "0.10.5"
lazy_static = "1.4.0"
lightningcss = { version = "1.0.0-alpha.57", features = [
"serde",
"visitor",
"into_owned",
] }
mime = "0.3.16"
nohash-hasher = "0.2.0"
notify = "6.1.1"
notify-debouncer-full = "0.3.1"
notify-debouncer-mini = { version = "0.3.0", default-features = false }
once_cell = "1.17.1"
owo-colors = "3.5.0"
parcel_selectors = "0.26.0"
parking_lot = "0.12.1"
path-clean = "1.0.1"
pathdiff = "0.2.1"
petgraph = "0.6.3"
pin-project-lite = "0.2.9"
port_scanner = "0.1.5"
postcard = "1.0.4"
predicates = "2.1.5"
pretty_assertions = "1.3.0"
proc-macro2 = "1.0.79"
qstring = "0.7.2"
quote = "1.0.23"
radix_trie = "0.2.1"
rand = "0.8.5"
ratatui = "0.26.1"
regex = "1.7.0"
rstest = "0.16.0"
rustc-hash = "1.1.0"
semver = "1.0.16"
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.93"
serde_qs = "0.11.0"
serde_with = "2.3.2"
serde_yaml = "0.9.17"
sha2 = "0.10.6"
smallvec = { version = "1.13.1", features = [
"serde",
"const_generics",
"union",
"const_new",
] }
sourcemap = "8.0.1"
syn = "1.0.107"
tempfile = "3.3.0"
test-case = "3.0.0"
thiserror = "1.0.48"
tiny-gradient = "0.1.0"
tokio = "1.25.0"
tokio-util = { version = "0.7.7", features = ["io"] }
tracing = "0.1.37"
tracing-appender = "0.2.2"
tracing-subscriber = "0.3.16"
tui-term = { version = "0.1.9", default-features = false }
url = "2.2.2"
urlencoding = "2.1.2"
webbrowser = "0.8.7"
which = "4.4.0"
unicode-segmentation = "1.10.1"
[patch.crates-io]
# TODO: Use upstream when https://github.com/servo/pathfinder/pull/566 lands
pathfinder_simd = { git = "https://github.com/vercel/pathfinder", branch = "rm-stdarch_arm_crc32" }